@remotion/transitions 4.0.147 → 4.0.149

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.
@@ -13,7 +13,7 @@ type SeriesSequenceProps = PropsWithChildren<{
13
13
  */
14
14
  readonly stack?: string;
15
15
  } & LayoutBasedProps & Pick<SequencePropsWithoutDuration, 'name'>>;
16
- declare const SeriesSequence: ({ children }: SeriesSequenceProps) => import("react/jsx-runtime.js").JSX.Element;
16
+ declare const SeriesSequence: ({ children }: SeriesSequenceProps) => import("react").ReactNode;
17
17
  /**
18
18
  * @description A React component designed to manage a series of transitions and sequences where each transition may have specific timing and presentation components. It extends the capabilities of `<Sequence>` and is specifically structured to handle transitions that involve entering and exiting sequences.
19
19
  * @see [Documentation](https://remotion.dev/docs/transitions/transitionseries)
@@ -16,7 +16,7 @@ _props) {
16
16
  };
17
17
  const SeriesSequence = ({ children }) => {
18
18
  // eslint-disable-next-line react/jsx-no-useless-fragment
19
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
19
+ return children;
20
20
  };
21
21
  const TransitionSeriesChildren = ({ children, }) => {
22
22
  const { fps } = (0, remotion_1.useVideoConfig)();
@@ -123,19 +123,27 @@ const TransitionSeriesChildren = ({ children, }) => {
123
123
  const prevPresentation = (_c = prev.props.presentation) !== null && _c !== void 0 ? _c : (0, slide_js_1.slide)();
124
124
  const UppercaseNextPresentation = nextPresentation.component;
125
125
  const UppercasePrevPresentation = prevPresentation.component;
126
- 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
+ return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
127
+ // eslint-disable-next-line react/no-array-index-key
128
+ , { 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 }) }) }, i));
127
129
  }
128
130
  if (prevProgress !== null && prev) {
129
131
  const prevPresentation = (_f = prev.props.presentation) !== null && _f !== void 0 ? _f : (0, slide_js_1.slide)();
130
132
  const UppercasePrevPresentation = prevPresentation.component;
131
- 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 }) }));
133
+ return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
134
+ // eslint-disable-next-line react/no-array-index-key
135
+ , { 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 }) }, i));
132
136
  }
133
137
  if (nextProgress !== null && next) {
134
138
  const nextPresentation = (_h = next.props.presentation) !== null && _h !== void 0 ? _h : (0, slide_js_1.slide)();
135
139
  const UppercaseNextPresentation = nextPresentation.component;
136
- 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 }) }));
140
+ return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
141
+ // eslint-disable-next-line react/no-array-index-key
142
+ , { 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 }) }, i));
137
143
  }
138
- return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: child }));
144
+ return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
145
+ // eslint-disable-next-line react/no-array-index-key
146
+ , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: child }, i));
139
147
  });
140
148
  }, [children, fps, frame]);
141
149
  // eslint-disable-next-line react/jsx-no-useless-fragment
@@ -13,7 +13,6 @@ var SlidePresentation = ({
13
13
  }) => {
14
14
  const directionStyle = useMemo(() => {
15
15
  const presentationProgressWithEpsilonCorrection = presentationProgress === 1 ? presentationProgress * 100 : presentationProgress * 100 - epsilon;
16
- console.log(presentationProgressWithEpsilonCorrection);
17
16
  if (presentationDirection === "exiting") {
18
17
  switch (direction) {
19
18
  case "from-left":
@@ -158,9 +157,7 @@ var TransitionSeriesTransition = function(_props) {
158
157
  return null;
159
158
  };
160
159
  var SeriesSequence = ({ children }) => {
161
- return jsx2(Fragment, {
162
- children
163
- }, undefined, false, undefined, this);
160
+ return children;
164
161
  };
165
162
  var TransitionSeriesChildren = ({
166
163
  children
@@ -267,7 +264,7 @@ var TransitionSeriesChildren = ({
267
264
  children: child
268
265
  }, undefined, false, undefined, this)
269
266
  }, undefined, false, undefined, this)
270
- }, undefined, false, undefined, this);
267
+ }, i, false, undefined, this);
271
268
  }
272
269
  if (prevProgress !== null && prev) {
273
270
  const prevPresentation = prev.props.presentation ?? slide();
@@ -283,7 +280,7 @@ var TransitionSeriesChildren = ({
283
280
  presentationProgress: prevProgress,
284
281
  children: child
285
282
  }, undefined, false, undefined, this)
286
- }, undefined, false, undefined, this);
283
+ }, i, false, undefined, this);
287
284
  }
288
285
  if (nextProgress !== null && next) {
289
286
  const nextPresentation = next.props.presentation ?? slide();
@@ -299,7 +296,7 @@ var TransitionSeriesChildren = ({
299
296
  presentationProgress: nextProgress,
300
297
  children: child
301
298
  }, undefined, false, undefined, this)
302
- }, undefined, false, undefined, this);
299
+ }, i, false, undefined, this);
303
300
  }
304
301
  return jsx2(Sequence, {
305
302
  from: Math.floor(actualStartFrame),
@@ -307,7 +304,7 @@ var TransitionSeriesChildren = ({
307
304
  ...passedProps,
308
305
  name: passedProps.name || "<TS.Sequence>",
309
306
  children: child
310
- }, undefined, false, undefined, this);
307
+ }, i, false, undefined, this);
311
308
  });
312
309
  }, [children, fps, frame]);
313
310
  return jsx2(Fragment, {
@@ -13,7 +13,6 @@ var SlidePresentation = ({
13
13
  }) => {
14
14
  const directionStyle = useMemo(() => {
15
15
  const presentationProgressWithEpsilonCorrection = presentationProgress === 1 ? presentationProgress * 100 : presentationProgress * 100 - epsilon;
16
- console.log(presentationProgressWithEpsilonCorrection);
17
16
  if (presentationDirection === "exiting") {
18
17
  switch (direction) {
19
18
  case "from-left":
@@ -12,7 +12,6 @@ const SlidePresentation = ({ children, presentationProgress, presentationDirecti
12
12
  const presentationProgressWithEpsilonCorrection = presentationProgress === 1
13
13
  ? presentationProgress * 100
14
14
  : presentationProgress * 100 - epsilon;
15
- console.log(presentationProgressWithEpsilonCorrection);
16
15
  if (presentationDirection === 'exiting') {
17
16
  switch (direction) {
18
17
  case 'from-left':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/transitions",
3
- "version": "4.0.147",
3
+ "version": "4.0.149",
4
4
  "description": "Transition presets for Remotion",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.mjs",
@@ -16,24 +16,24 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "remotion": "4.0.147",
20
- "@remotion/shapes": "4.0.147",
21
- "@remotion/paths": "4.0.147"
19
+ "remotion": "4.0.149",
20
+ "@remotion/shapes": "4.0.149",
21
+ "@remotion/paths": "4.0.149"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jonny/eslint-config": "3.0.281",
25
25
  "eslint": "8.56.0",
26
26
  "prettier": "3.2.5",
27
27
  "prettier-plugin-organize-imports": "3.2.4",
28
- "react": "18.2.0",
29
- "react-dom": "18.2.0",
28
+ "react": "18.3.1",
29
+ "react-dom": "18.3.1",
30
30
  "vitest": "0.31.1",
31
- "@types/react": "18.2.48",
32
- "@types/react-dom": "18.2.18",
31
+ "@types/react": "18.3.1",
32
+ "@types/react-dom": "18.3.0",
33
33
  "@types/bun": "^1.0.12",
34
34
  "@vitejs/plugin-react": "^2.0.0",
35
- "remotion": "4.0.147",
36
- "@remotion/test-utils": "4.0.147"
35
+ "remotion": "4.0.149",
36
+ "@remotion/test-utils": "4.0.149"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=16.8.0",
@@ -108,7 +108,6 @@
108
108
  "test": "vitest src --run",
109
109
  "lint": "eslint src --ext ts,tsx",
110
110
  "formatting": "prettier src --check",
111
- "watch": "tsc -w",
112
- "build": "tsc -d && bun bundle.ts"
111
+ "build": "bun bundle.ts"
113
112
  }
114
113
  }