@remotion/motion-blur 4.0.542 → 4.0.544

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.
@@ -35,7 +35,6 @@ const htmlInCanvasMotionBlurSchema = {
35
35
  const MotionBlurSample = ({ children, width, height, index, count, shutterInFrames, firstFrame, lastFrame, }) => {
36
36
  const frame = (0, remotion_1.useCurrentFrame)();
37
37
  const sampleFrame = Math.max(firstFrame, Math.min(lastFrame, frame + ((index + 0.5) / count - 0.5) * shutterInFrames));
38
- const content = (0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: sampleFrame, children: children });
39
38
  const isRepresentativeSample = index === Math.floor(count / 2);
40
39
  return ((0, jsx_runtime_1.jsx)("div", { "aria-hidden": !isRepresentativeSample, ...(index === 0 ? {} : { drawable: '' }), style: {
41
40
  position: 'absolute',
@@ -49,7 +48,7 @@ const MotionBlurSample = ({ children, width, height, index, count, shutterInFram
49
48
  // Test: https://github.com/remotion-dev/remotion/blob/5d2ff05db91c1e5a02fc3d01f359638e98807882/packages/it-tests/src/ssr/render-frames.test.ts#L77
50
49
  visibility: 'visible',
51
50
  pointerEvents: isRepresentativeSample ? 'auto' : 'none',
52
- }, children: isRepresentativeSample ? (content) : ((0, jsx_runtime_1.jsx)(remotion_1.Internals.DisableSequenceRegistrationProvider, { children: content })) }));
51
+ }, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.DisableSequenceRegistrationProvider, { disabled: !isRepresentativeSample, children: (0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: sampleFrame, children: children }) }) }));
53
52
  };
54
53
  const HtmlInCanvasMotionBlurInner = ({ children, width, height, shutterAngle = 180, samples = 8, disabled = false, from, durationInFrames, trimBefore, playbackRate, loop, freeze, hidden, name, premountFor, postmountFor, showInTimeline, styleWhilePremounted, styleWhilePostmounted, controls, }) => {
55
54
  const { durationInFrames: compositionDurationInFrames } = (0, remotion_1.useVideoConfig)();
@@ -110,10 +110,6 @@ var MotionBlurSample = ({
110
110
  }) => {
111
111
  const frame = useCurrentFrame2();
112
112
  const sampleFrame = Math.max(firstFrame, Math.min(lastFrame, frame + ((index + 0.5) / count - 0.5) * shutterInFrames));
113
- const content = /* @__PURE__ */ jsx2(Freeze2, {
114
- frame: sampleFrame,
115
- children
116
- });
117
113
  const isRepresentativeSample = index === Math.floor(count / 2);
118
114
  return /* @__PURE__ */ jsx2("div", {
119
115
  "aria-hidden": !isRepresentativeSample,
@@ -127,8 +123,12 @@ var MotionBlurSample = ({
127
123
  visibility: "visible",
128
124
  pointerEvents: isRepresentativeSample ? "auto" : "none"
129
125
  },
130
- children: isRepresentativeSample ? content : /* @__PURE__ */ jsx2(Internals.DisableSequenceRegistrationProvider, {
131
- children: content
126
+ children: /* @__PURE__ */ jsx2(Internals.DisableSequenceRegistrationProvider, {
127
+ disabled: !isRepresentativeSample,
128
+ children: /* @__PURE__ */ jsx2(Freeze2, {
129
+ frame: sampleFrame,
130
+ children
131
+ })
132
132
  })
133
133
  });
134
134
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/motion-blur"
4
4
  },
5
5
  "name": "@remotion/motion-blur",
6
- "version": "4.0.542",
6
+ "version": "4.0.544",
7
7
  "description": "Motion blur effect for Remotion",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/remotion-dev/remotion/issues"
22
22
  },
23
23
  "dependencies": {
24
- "remotion": "4.0.542"
24
+ "remotion": "4.0.544"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.8.0",
@@ -39,8 +39,8 @@
39
39
  "devDependencies": {
40
40
  "react": "19.3.1",
41
41
  "react-dom": "19.3.1",
42
- "remotion": "4.0.542",
43
- "@remotion/eslint-config-internal": "4.0.542",
42
+ "remotion": "4.0.544",
43
+ "@remotion/eslint-config-internal": "4.0.544",
44
44
  "eslint": "9.19.0",
45
45
  "typescript": "7.1.0-beta"
46
46
  },