@remotion/transitions 4.0.149 → 4.0.150

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/bundle.ts CHANGED
@@ -1,7 +1,21 @@
1
- const presentations = ['slide', 'flip', 'wipe', 'fade', 'clock-wipe'];
2
- import {build} from 'bun';
1
+ import {build, revision} from 'bun';
3
2
  import path from 'path';
4
3
 
4
+ if (process.env.NODE_ENV !== 'production') {
5
+ throw new Error('This script must be run using NODE_ENV=production');
6
+ }
7
+
8
+ if (!revision.startsWith('07ce')) {
9
+ // eslint-disable-next-line no-console
10
+ console.warn('warn: Remotion currently uses a fork of Bun to bundle.');
11
+ // eslint-disable-next-line no-console
12
+ console.log(
13
+ 'You dont currently run the fork, this could lead to duplicate key warnings in React.',
14
+ );
15
+ }
16
+
17
+ const presentations = ['slide', 'flip', 'wipe', 'fade', 'clock-wipe'];
18
+
5
19
  const output = await build({
6
20
  entrypoints: [
7
21
  'src/index.ts',
@@ -22,9 +36,7 @@ const output = await build({
22
36
 
23
37
  for (const file of output.outputs) {
24
38
  const str = await file.text();
25
- const newStr = str
26
- .replace(/jsxDEV/g, 'jsx')
27
- .replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
39
+ const newStr = str;
28
40
 
29
41
  Bun.write(path.join('dist', 'esm', file.path), newStr);
30
42
  }
@@ -4,7 +4,8 @@ import {makePie} from "@remotion/shapes";
4
4
  import {useMemo, useState} from "react";
5
5
  import {AbsoluteFill, random} from "remotion";
6
6
  import {
7
- jsx
7
+ jsx,
8
+ jsxs
8
9
  } from "react/jsx-runtime";
9
10
  var ClockWipePresentation = ({ children, presentationDirection, presentationProgress, passedProps }) => {
10
11
  const finishedRadius = Math.sqrt(passedProps.width ** 2 + passedProps.height ** 2) / 2;
@@ -34,13 +35,13 @@ var ClockWipePresentation = ({ children, presentationDirection, presentationProg
34
35
  passedProps.outerExitStyle,
35
36
  presentationDirection
36
37
  ]);
37
- return jsx(AbsoluteFill, {
38
+ return jsxs(AbsoluteFill, {
38
39
  style: outerStyle,
39
40
  children: [
40
41
  jsx(AbsoluteFill, {
41
42
  style,
42
43
  children
43
- }, undefined, false, undefined, this),
44
+ }),
44
45
  presentationDirection === "exiting" ? null : jsx(AbsoluteFill, {
45
46
  children: jsx("svg", {
46
47
  children: jsx("defs", {
@@ -49,13 +50,13 @@ var ClockWipePresentation = ({ children, presentationDirection, presentationProg
49
50
  children: jsx("path", {
50
51
  d: translatedPath,
51
52
  fill: "black"
52
- }, undefined, false, undefined, this)
53
- }, undefined, false, undefined, this)
54
- }, undefined, false, undefined, this)
55
- }, undefined, false, undefined, this)
56
- }, undefined, false, undefined, this)
53
+ })
54
+ })
55
+ })
56
+ })
57
+ })
57
58
  ]
58
- }, undefined, true, undefined, this);
59
+ });
59
60
  };
60
61
  var clockWipe = (props) => {
61
62
  return { component: ClockWipePresentation, props: props ?? {} };
package/dist/esm/fade.mjs CHANGED
@@ -21,7 +21,7 @@ var FadePresentation = ({ children, presentationDirection, presentationProgress,
21
21
  return jsx(AbsoluteFill, {
22
22
  style,
23
23
  children
24
- }, undefined, false, undefined, this);
24
+ });
25
25
  };
26
26
  var fade = (props) => {
27
27
  return {
package/dist/esm/flip.mjs CHANGED
@@ -49,8 +49,8 @@ var Flip = ({
49
49
  children: jsx(AbsoluteFill, {
50
50
  style,
51
51
  children
52
- }, undefined, false, undefined, this)
53
- }, undefined, false, undefined, this);
52
+ })
53
+ });
54
54
  };
55
55
  var flip = (props) => {
56
56
  return { component: Flip, props: props ?? {} };
@@ -69,7 +69,7 @@ var SlidePresentation = ({
69
69
  return jsx(AbsoluteFill, {
70
70
  style,
71
71
  children
72
- }, undefined, false, undefined, this);
72
+ });
73
73
  };
74
74
  var slide = (props) => {
75
75
  return {
@@ -262,9 +262,9 @@ var TransitionSeriesChildren = ({
262
262
  presentationDirection: "entering",
263
263
  presentationProgress: prevProgress,
264
264
  children: child
265
- }, undefined, false, undefined, this)
266
- }, undefined, false, undefined, this)
267
- }, i, false, undefined, this);
265
+ })
266
+ })
267
+ }, i);
268
268
  }
269
269
  if (prevProgress !== null && prev) {
270
270
  const prevPresentation = prev.props.presentation ?? slide();
@@ -279,8 +279,8 @@ var TransitionSeriesChildren = ({
279
279
  presentationDirection: "entering",
280
280
  presentationProgress: prevProgress,
281
281
  children: child
282
- }, undefined, false, undefined, this)
283
- }, i, false, undefined, this);
282
+ })
283
+ }, i);
284
284
  }
285
285
  if (nextProgress !== null && next) {
286
286
  const nextPresentation = next.props.presentation ?? slide();
@@ -295,8 +295,8 @@ var TransitionSeriesChildren = ({
295
295
  presentationDirection: "exiting",
296
296
  presentationProgress: nextProgress,
297
297
  children: child
298
- }, undefined, false, undefined, this)
299
- }, i, false, undefined, this);
298
+ })
299
+ }, i);
300
300
  }
301
301
  return jsx2(Sequence, {
302
302
  from: Math.floor(actualStartFrame),
@@ -304,12 +304,12 @@ var TransitionSeriesChildren = ({
304
304
  ...passedProps,
305
305
  name: passedProps.name || "<TS.Sequence>",
306
306
  children: child
307
- }, i, false, undefined, this);
307
+ }, i);
308
308
  });
309
309
  }, [children, fps, frame]);
310
310
  return jsx2(Fragment, {
311
311
  children: childrenValue
312
- }, undefined, false, undefined, this);
312
+ });
313
313
  };
314
314
  var TransitionSeries = ({ children, name, layout: passedLayout, ...otherProps }) => {
315
315
  const displayName = name ?? "<TransitionSeries>";
@@ -323,8 +323,8 @@ var TransitionSeries = ({ children, name, layout: passedLayout, ...otherProps })
323
323
  ...otherProps,
324
324
  children: jsx2(TransitionSeriesChildren, {
325
325
  children
326
- }, undefined, false, undefined, this)
327
- }, undefined, false, undefined, this);
326
+ })
327
+ });
328
328
  };
329
329
  TransitionSeries.Sequence = SeriesSequence;
330
330
  TransitionSeries.Transition = TransitionSeriesTransition;
@@ -69,7 +69,7 @@ var SlidePresentation = ({
69
69
  return jsx(AbsoluteFill, {
70
70
  style,
71
71
  children
72
- }, undefined, false, undefined, this);
72
+ });
73
73
  };
74
74
  var slide = (props) => {
75
75
  return {
package/dist/esm/wipe.mjs CHANGED
@@ -2,7 +2,8 @@
2
2
  import {useMemo, useState} from "react";
3
3
  import {AbsoluteFill, random} from "remotion";
4
4
  import {
5
- jsx
5
+ jsx,
6
+ jsxs
6
7
  } from "react/jsx-runtime";
7
8
  var makePathIn = (progress, direction) => {
8
9
  switch (direction) {
@@ -155,13 +156,13 @@ var WipePresentation = ({
155
156
  pointerEvents: "none"
156
157
  };
157
158
  }, []);
158
- return jsx(AbsoluteFill, {
159
+ return jsxs(AbsoluteFill, {
159
160
  style: outerStyle,
160
161
  children: [
161
162
  jsx(AbsoluteFill, {
162
163
  style,
163
164
  children
164
- }, undefined, false, undefined, this),
165
+ }),
165
166
  jsx(AbsoluteFill, {
166
167
  children: jsx("svg", {
167
168
  viewBox: "0 0 1 1",
@@ -173,13 +174,13 @@ var WipePresentation = ({
173
174
  children: jsx("path", {
174
175
  d: path,
175
176
  fill: "black"
176
- }, undefined, false, undefined, this)
177
- }, undefined, false, undefined, this)
178
- }, undefined, false, undefined, this)
179
- }, undefined, false, undefined, this)
180
- }, undefined, false, undefined, this)
177
+ })
178
+ })
179
+ })
180
+ })
181
+ })
181
182
  ]
182
- }, undefined, true, undefined, this);
183
+ });
183
184
  };
184
185
  var wipe = (props) => {
185
186
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/transitions",
3
- "version": "4.0.149",
3
+ "version": "4.0.150",
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
- "remotion": "4.0.149",
20
- "@remotion/shapes": "4.0.149",
21
- "@remotion/paths": "4.0.149"
19
+ "remotion": "4.0.150",
20
+ "@remotion/paths": "4.0.150",
21
+ "@remotion/shapes": "4.0.150"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jonny/eslint-config": "3.0.281",
@@ -32,8 +32,8 @@
32
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.149",
36
- "@remotion/test-utils": "4.0.149"
35
+ "remotion": "4.0.150",
36
+ "@remotion/test-utils": "4.0.150"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=16.8.0",
@@ -108,6 +108,6 @@
108
108
  "test": "vitest src --run",
109
109
  "lint": "eslint src --ext ts,tsx",
110
110
  "formatting": "prettier src --check",
111
- "build": "bun bundle.ts"
111
+ "build": "bun --env-file=../.env.bundle bundle.ts"
112
112
  }
113
113
  }