@remotion/three 4.0.144 → 4.0.146

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
@@ -16,7 +16,9 @@ const output = await build({
16
16
  });
17
17
 
18
18
  const [file] = output.outputs;
19
- const text = await file.text();
19
+ const text = (await file.text())
20
+ .replace(/jsxDEV/g, 'jsx')
21
+ .replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
20
22
 
21
23
  await Bun.write('dist/esm/index.mjs', text);
22
24
 
@@ -15,8 +15,8 @@ import {Internals, continueRender as continueRender2, delayRender as delayRender
15
15
  import {Suspense, useLayoutEffect} from "react";
16
16
  import {continueRender, delayRender} from "remotion";
17
17
  import {
18
- jsxDEV
19
- } from "react/jsx-dev-runtime";
18
+ jsx
19
+ } from "react/jsx-runtime";
20
20
  var Unblocker = () => {
21
21
  if (typeof document !== "undefined") {
22
22
  useLayoutEffect(() => {
@@ -29,8 +29,8 @@ var Unblocker = () => {
29
29
  return null;
30
30
  };
31
31
  var SuspenseLoader = ({ children }) => {
32
- return jsxDEV(Suspense, {
33
- fallback: jsxDEV(Unblocker, {}, undefined, false, undefined, this),
32
+ return jsx(Suspense, {
33
+ fallback: jsx(Unblocker, {}, undefined, false, undefined, this),
34
34
  children
35
35
  }, undefined, false, undefined, this);
36
36
  };
@@ -41,8 +41,8 @@ var validateDimension = NoReactInternals.validateDimension;
41
41
 
42
42
  // src/ThreeCanvas.tsx
43
43
  import {
44
- jsxDEV as jsxDEV2
45
- } from "react/jsx-dev-runtime";
44
+ jsx as jsx2
45
+ } from "react/jsx-runtime";
46
46
  var Scale = ({
47
47
  width,
48
48
  height
@@ -71,17 +71,17 @@ var ThreeCanvas = (props) => {
71
71
  continueRender2(waitForCreated);
72
72
  onCreated?.(state);
73
73
  }, [onCreated, waitForCreated]);
74
- return jsxDEV2(SuspenseLoader, {
75
- children: jsxDEV2(Canvas, {
74
+ return jsx2(SuspenseLoader, {
75
+ children: jsx2(Canvas, {
76
76
  style: actualStyle,
77
77
  ...rest,
78
78
  onCreated: remotion_onCreated,
79
79
  children: [
80
- jsxDEV2(Scale, {
80
+ jsx2(Scale, {
81
81
  width,
82
82
  height
83
83
  }, undefined, false, undefined, this),
84
- jsxDEV2(Internals.RemotionContextProvider, {
84
+ jsx2(Internals.RemotionContextProvider, {
85
85
  contexts,
86
86
  children
87
87
  }, undefined, false, undefined, this)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/three",
3
- "version": "4.0.144",
3
+ "version": "4.0.146",
4
4
  "description": "Utility functions for using react-three-fiber with remotion",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -16,14 +16,14 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "remotion": "4.0.144"
19
+ "remotion": "4.0.146"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@react-three/fiber": ">=8.0.0",
23
23
  "react": ">=16.8.0",
24
24
  "react-dom": ">=16.8.0",
25
25
  "three": ">=0.137.0",
26
- "remotion": "4.0.144"
26
+ "remotion": "4.0.146"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@jonny/eslint-config": "3.0.281",
@@ -39,7 +39,7 @@
39
39
  "react": "18.2.0",
40
40
  "react-dom": "18.2.0",
41
41
  "three": "0.158.0",
42
- "remotion": "4.0.144"
42
+ "remotion": "4.0.146"
43
43
  },
44
44
  "keywords": [
45
45
  "remotion",