Skip to content

Commit

Permalink
Merge branch 'main' into homepage-player
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger authored Sep 30, 2024
2 parents 938e941 + 4d9dfc0 commit 28d91c5
Show file tree
Hide file tree
Showing 619 changed files with 79,631 additions and 4,232 deletions.
7 changes: 0 additions & 7 deletions TESTING.md

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "turbo run lint test --no-update-notifier",
"ts-build": "tsc -b --verbose",
"stylecheck": "turbo run lint formatting --no-update-notifier",
"build": "turbo run build --no-update-notifier",
"build": "turbo run make --no-update-notifier",
"build-docs": "turbo run build-docs --no-update-notifier",
"ci": "turbo run build test --concurrency=50% --no-update-notifier",
"watch": "tsc -b --verbose -w",
Expand All @@ -26,19 +26,19 @@
},
"devDependencies": {
"@jonny/eslint-config": "3.0.281",
"@types/bun": "1.0.12",
"@types/bun": "1.1.10",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"eslint": "8.56.0",
"eslint-plugin-10x": "1.5.2",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.4.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"prettier-plugin-organize-imports": "3.2.4"
},
"dependencies": {
"turbo": "1.13.3",
"typescript": "5.3.3"
"typescript": "5.5.4"
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/animated-emoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"formatting": "prettier src --check",
"lint": "eslint src --ext ts,tsx",
"build": "bun --env-file=../.env.bundle bundle.ts",
"make": "bun --env-file=../.env.bundle bundle.ts",
"test": "bun test src"
},
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/animation-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"formatting": "prettier src --check",
"lint": "eslint src --ext ts,tsx",
"build": "bun --env-file=../.env.bundle bundle.ts",
"make": "bun --env-file=../.env.bundle bundle.ts",
"test": "bun test src"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/animation-utils/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ type UnitNumberAndFunction = UnitNumberAndFunctions[0];

export type {
AngleUnit,
ColorMatchers,
CSSPropertiesKey,
CSSPropertiesValue,
ColorMatchers,
LengthPercentageUnit,
LengthUnit,
Style,
Expand Down
50 changes: 25 additions & 25 deletions packages/astro-example/src/components/Counter.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import "./Counter.css";
import { Player } from "@remotion/player";
import { Gif } from "@remotion/gif";
import {Gif} from '@remotion/gif';
import {Player} from '@remotion/player';
import './Counter.css';

const Comp: React.FC = () => {
return (
<div>
<Gif
src="https://media.giphy.com/media/xT0GqH01ZyKwd3aT3G/giphy.gif"
fit="cover"
height={200}
width={200}
/>
</div>
);
return (
<div>
<Gif
src="https://media.giphy.com/media/xT0GqH01ZyKwd3aT3G/giphy.gif"
fit="cover"
height={200}
width={200}
/>
</div>
);
};

export default function Counter() {
return (
<>
<Player
component={Comp}
durationInFrames={100}
compositionWidth={400}
compositionHeight={400}
fps={30}
controls
></Player>
</>
);
return (
<>
<Player
component={Comp}
durationInFrames={100}
compositionWidth={400}
compositionHeight={400}
fps={30}
controls
></Player>
</>
);
}
2 changes: 1 addition & 1 deletion packages/bundler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const BundlerInternals = {

export type {GitSource} from '@remotion/studio-shared';
export {
bundle,
BundleOptions,
LegacyBundleOptions,
MandatoryLegacyBundleOptions,
bundle,
} from './bundle';
export {WebpackConfiguration, WebpackOverrideFn} from './webpack-config';
export {webpack};
2 changes: 1 addition & 1 deletion packages/cli-autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"scripts": {
"formatting": "prettier src --check",
"build": "bun src/generate.ts"
"make": "bun src/generate.ts"
}
}
4 changes: 2 additions & 2 deletions packages/cli/src/render-queue/process-video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export const processVideoJob = async ({
muted: job.type === 'video' ? job.muted : true,
enforceAudioTrack: job.type === 'video' ? job.enforceAudioTrack : false,
proResProfile:
job.type === 'video' ? job.proResProfile ?? undefined : undefined,
x264Preset: job.type === 'video' ? job.x264Preset ?? null : null,
job.type === 'video' ? (job.proResProfile ?? undefined) : undefined,
x264Preset: job.type === 'video' ? (job.x264Preset ?? null) : null,
pixelFormat: job.type === 'video' ? job.pixelFormat : 'yuv420p',
videoBitrate: job.type === 'video' ? job.videoBitrate : null,
encodingBufferSize: job.type === 'video' ? job.encodingBufferSize : null,
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudrun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "dist/index.js",
"sideEffects": false,
"scripts": {
"build": "bun build.ts",
"make": "bun build.ts",
"buildContainer": "bun src/admin/bundle-renderLogic.ts",
"tarInstaller": "bun src/admin/bundle-installer.ts",
"lint": "eslint src --ext ts,tsx",
Expand Down
4 changes: 2 additions & 2 deletions packages/cloudrun/src/api/get-buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const getRemotionStorageBuckets = async (
return {remotionBuckets: []};
}

let remotionBuckets = buckets.filter(
(b) => b.name?.startsWith(REMOTION_BUCKET_PREFIX),
let remotionBuckets = buckets.filter((b) =>
b.name?.startsWith(REMOTION_BUCKET_PREFIX),
);

if (region !== 'all regions') {
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudrun/src/api/upload-dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const uploadDir = async ({
name: res,
size,
},
];
];
}),
);
return _files.flat(1);
Expand Down
8 changes: 4 additions & 4 deletions packages/cloudrun/src/cli/commands/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import type {ServiceInfo} from '../../../api/get-service-info';
import {BINARY_NAME} from '../../../shared/constants';
import {quit} from '../../helpers/quit';
import {Log} from '../../log';
import {cloudRunDeploySubcommand, CLOUD_RUN_DEPLOY_SUBCOMMAND} from './deploy';
import {servicesLsCommand, SERVICES_LS_SUBCOMMAND} from './ls';
import {servicesRmCommand, SERVICES_RM_SUBCOMMAND} from './rm';
import {servicesRmallCommand, SERVICES_RMALL_SUBCOMMAND} from './rmall';
import {CLOUD_RUN_DEPLOY_SUBCOMMAND, cloudRunDeploySubcommand} from './deploy';
import {SERVICES_LS_SUBCOMMAND, servicesLsCommand} from './ls';
import {SERVICES_RM_SUBCOMMAND, servicesRmCommand} from './rm';
import {SERVICES_RMALL_SUBCOMMAND, servicesRmallCommand} from './rmall';

export const SERVICES_COMMAND = 'services';

Expand Down
4 changes: 2 additions & 2 deletions packages/cloudrun/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export {getServiceInfo} from './api/get-service-info';
export {getServices} from './api/get-services';
export {getSites} from './api/get-sites';
export {
renderMediaOnCloudrun,
RenderMediaOnCloudrunInput,
renderMediaOnCloudrun,
} from './api/render-media-on-cloudrun';
export {
renderStillOnCloudrun,
RenderStillOnCloudrunInput,
renderStillOnCloudrun,
} from './api/render-still-on-cloudrun';
export {speculateServiceName} from './api/speculate-service-name';
16 changes: 8 additions & 8 deletions packages/cloudrun/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ const getSites = deprecatedGetSites;

export {
CloudrunInternals,
deleteService,
deleteSite,
deployService,
deploySite,
deleteSite,
deleteService,
getServices,
getOrCreateBucket,
renderMediaOnCloudrun,
renderStillOnCloudrun,
getServiceInfo,
getRegions,
getServiceInfo,
getServices,
getSites,
renderMediaOnCloudrun,
renderStillOnCloudrun,
speculateServiceName,
testPermissions,
};
export type {
GcpRegion,
DeployServiceInput,
DeployServiceOutput,
RenderMediaOnCloudrunOutput,
GcpRegion,
RenderMediaOnCloudrunInput,
RenderMediaOnCloudrunOutput,
};
12 changes: 6 additions & 6 deletions packages/convert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
"@remotion/webcodecs": "workspace:*",
"@vercel/remix": "^2.11.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"isbot": "^4.1.0",
"clsx": "2.1.1",
"isbot": "4.1.0",
"lucide-react": "^0.439.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"tailwind-merge": "^2.5.2",
"tailwind-merge": "2.5.2",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@remix-run/dev": "^2.11.2",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"autoprefixer": "10.4.20",
"postcss": "8.4.47",
"tailwindcss": "3.4.13",
"vite": "^5.4.6",
"vite-tsconfig-paths": "^4.2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prepublishOnly": "bun ensure-correct-version.ts && cp ../../README.md .",
"lint": "eslint src --ext ts,tsx",
"test": "vitest --run",
"build": "bun --env-file=../.env.bundle bundle.ts"
"make": "bun --env-file=../.env.bundle bundle.ts"
},
"bugs": {
"url": "https://github.com/remotion-dev/remotion/issues"
Expand Down
14 changes: 5 additions & 9 deletions packages/core/src/CompositionManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,11 @@ export const CompositionManagerProvider: React.FC<{
[],
);

useImperativeHandle(
compositionsRef,
() => {
return {
getCompositions: () => currentcompositionsRef.current,
};
},
[],
);
useImperativeHandle(compositionsRef, () => {
return {
getCompositions: () => currentcompositionsRef.current,
};
}, []);

const composition = compositions.find((c) =>
canvasContent?.type === 'composition'
Expand Down
16 changes: 6 additions & 10 deletions packages/core/src/EditorProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,12 @@ export const EditorPropsProvider: React.FC<{
setProps({});
}, []);

useImperativeHandle(
editorPropsProviderRef,
() => {
return {
getProps: () => props,
setProps,
};
},
[props],
);
useImperativeHandle(editorPropsProviderRef, () => {
return {
getProps: () => props,
setProps,
};
}, [props]);

const ctx = useMemo((): EditorPropsContextType => {
return {props, updateProps, resetUnsaved};
Expand Down
10 changes: 3 additions & 7 deletions packages/core/src/Img.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,9 @@ const ImgRefForwarding: React.ForwardRefRenderFunction<
throw new Error('No "src" prop was passed to <Img>.');
}

useImperativeHandle(
ref,
() => {
return imageRef.current as HTMLImageElement;
},
[],
);
useImperativeHandle(ref, () => {
return imageRef.current as HTMLImageElement;
}, []);

const actualSrc = usePreload(src as string);

Expand Down
Loading

0 comments on commit 28d91c5

Please sign in to comment.