@remotion/transitions 4.0.142 → 4.0.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bunfig.toml +2 -0
- package/dist/TransitionSeries.d.ts +4 -4
- package/dist/TransitionSeries.js +3 -3
- package/dist/esm/index.mjs +3 -0
- package/happydom.ts +6 -0
- package/package.json +7 -7
- package/vitest.config.mts +11 -0
package/bunfig.toml
ADDED
|
@@ -3,13 +3,13 @@ import type { LayoutAndStyle, SequencePropsWithoutDuration } from 'remotion';
|
|
|
3
3
|
import type { TransitionSeriesTransitionProps } from './types.js';
|
|
4
4
|
declare const TransitionSeriesTransition: <PresentationProps extends Record<string, unknown>>(_props: TransitionSeriesTransitionProps<PresentationProps>) => null;
|
|
5
5
|
type SeriesSequenceProps = PropsWithChildren<{
|
|
6
|
-
durationInFrames: number;
|
|
7
|
-
offset?: number;
|
|
8
|
-
className?: string;
|
|
6
|
+
readonly durationInFrames: number;
|
|
7
|
+
readonly offset?: number;
|
|
8
|
+
readonly className?: string;
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated For internal use only
|
|
11
11
|
*/
|
|
12
|
-
stack?: string;
|
|
12
|
+
readonly stack?: string;
|
|
13
13
|
} & LayoutAndStyle & Pick<SequencePropsWithoutDuration, 'name'>>;
|
|
14
14
|
declare const SeriesSequence: ({ children }: SeriesSequenceProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
15
15
|
declare const TransitionSeries: FC<SequencePropsWithoutDuration> & {
|
package/dist/TransitionSeries.js
CHANGED
|
@@ -122,17 +122,17 @@ const TransitionSeriesChildren = ({ children, }) => {
|
|
|
122
122
|
const prevPresentation = (_c = prev.props.presentation) !== null && _c !== void 0 ? _c : (0, slide_js_1.slide)();
|
|
123
123
|
const UppercaseNextPresentation = nextPresentation.component;
|
|
124
124
|
const UppercasePrevPresentation = prevPresentation.component;
|
|
125
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_d = nextPresentation.props) !== null && _d !== void 0 ? _d : {}, presentationDirection: "exiting", presentationProgress: nextProgress, children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_e = prevPresentation.props) !== null && _e !== void 0 ? _e : {}, presentationDirection: "entering", presentationProgress: prevProgress, children: child }) }) }));
|
|
125
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_d = nextPresentation.props) !== null && _d !== void 0 ? _d : {}, presentationDirection: "exiting", presentationProgress: nextProgress, children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_e = prevPresentation.props) !== null && _e !== void 0 ? _e : {}, presentationDirection: "entering", presentationProgress: prevProgress, children: child }) }) }));
|
|
126
126
|
}
|
|
127
127
|
if (prevProgress !== null && prev) {
|
|
128
128
|
const prevPresentation = (_f = prev.props.presentation) !== null && _f !== void 0 ? _f : (0, slide_js_1.slide)();
|
|
129
129
|
const UppercasePrevPresentation = prevPresentation.component;
|
|
130
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_g = prevPresentation.props) !== null && _g !== void 0 ? _g : {}, presentationDirection: "entering", presentationProgress: prevProgress, children: child }) }));
|
|
130
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_g = prevPresentation.props) !== null && _g !== void 0 ? _g : {}, presentationDirection: "entering", presentationProgress: prevProgress, children: child }) }));
|
|
131
131
|
}
|
|
132
132
|
if (nextProgress !== null && next) {
|
|
133
133
|
const nextPresentation = (_h = next.props.presentation) !== null && _h !== void 0 ? _h : (0, slide_js_1.slide)();
|
|
134
134
|
const UppercaseNextPresentation = nextPresentation.component;
|
|
135
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_j = nextPresentation.props) !== null && _j !== void 0 ? _j : {}, presentationDirection: "exiting", presentationProgress: nextProgress, children: child }) }));
|
|
135
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_j = nextPresentation.props) !== null && _j !== void 0 ? _j : {}, presentationDirection: "exiting", presentationProgress: nextProgress, children: child }) }));
|
|
136
136
|
}
|
|
137
137
|
return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: child }));
|
|
138
138
|
});
|
package/dist/esm/index.mjs
CHANGED
|
@@ -252,6 +252,7 @@ var TransitionSeriesChildren = ({
|
|
|
252
252
|
const UppercasePrevPresentation = prevPresentation.component;
|
|
253
253
|
return jsx2(Sequence, {
|
|
254
254
|
from: Math.floor(actualStartFrame),
|
|
255
|
+
durationInFrames: durationInFramesProp,
|
|
255
256
|
...passedProps,
|
|
256
257
|
name: passedProps.name || "<TS.Sequence>",
|
|
257
258
|
children: jsx2(UppercaseNextPresentation, {
|
|
@@ -272,6 +273,7 @@ var TransitionSeriesChildren = ({
|
|
|
272
273
|
const UppercasePrevPresentation = prevPresentation.component;
|
|
273
274
|
return jsx2(Sequence, {
|
|
274
275
|
from: Math.floor(actualStartFrame),
|
|
276
|
+
durationInFrames: durationInFramesProp,
|
|
275
277
|
...passedProps,
|
|
276
278
|
name: passedProps.name || "<TS.Sequence>",
|
|
277
279
|
children: jsx2(UppercasePrevPresentation, {
|
|
@@ -287,6 +289,7 @@ var TransitionSeriesChildren = ({
|
|
|
287
289
|
const UppercaseNextPresentation = nextPresentation.component;
|
|
288
290
|
return jsx2(Sequence, {
|
|
289
291
|
from: Math.floor(actualStartFrame),
|
|
292
|
+
durationInFrames: durationInFramesProp,
|
|
290
293
|
...passedProps,
|
|
291
294
|
name: passedProps.name || "<TS.Sequence>",
|
|
292
295
|
children: jsx2(UppercaseNextPresentation, {
|
package/happydom.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/transitions",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.143",
|
|
4
4
|
"description": "Transition presets for Remotion",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/esm/index.mjs",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"
|
|
20
|
-
"remotion": "4.0.
|
|
21
|
-
"@remotion/paths": "4.0.
|
|
19
|
+
"remotion": "4.0.143",
|
|
20
|
+
"@remotion/shapes": "4.0.143",
|
|
21
|
+
"@remotion/paths": "4.0.143"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@jonny/eslint-config": "3.0.281",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@types/react-dom": "18.2.18",
|
|
33
33
|
"@types/bun": "^1.0.12",
|
|
34
34
|
"@vitejs/plugin-react": "^2.0.0",
|
|
35
|
-
"
|
|
36
|
-
"remotion": "4.0.
|
|
35
|
+
"remotion": "4.0.143",
|
|
36
|
+
"@remotion/test-utils": "4.0.143"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=16.8.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
|
-
"test": "vitest --run",
|
|
108
|
+
"test": "vitest src --run",
|
|
109
109
|
"lint": "eslint src --ext ts,tsx",
|
|
110
110
|
"formatting": "prettier src --check",
|
|
111
111
|
"watch": "tsc -w",
|