@remotion/mac-cursors 4.0.529 → 4.0.530
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/dist/esm/index.mjs +7 -5
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/MacOSCursor.tsx
|
|
2
|
-
import React from "react";
|
|
3
2
|
import {
|
|
4
3
|
Freeze,
|
|
5
4
|
Sequence,
|
|
@@ -253,6 +252,7 @@ var MacOSCursorInner = ({
|
|
|
253
252
|
styleWhilePostmounted,
|
|
254
253
|
trimBefore,
|
|
255
254
|
playbackRate,
|
|
255
|
+
loop,
|
|
256
256
|
freeze,
|
|
257
257
|
hidden,
|
|
258
258
|
name,
|
|
@@ -260,7 +260,6 @@ var MacOSCursorInner = ({
|
|
|
260
260
|
controls
|
|
261
261
|
}) => {
|
|
262
262
|
const resolved = cursor === "custom" ? customCursor ? resolveCursor(customCursor) : null : resolveCursor(cursor);
|
|
263
|
-
const refForOutline = React.useRef(null);
|
|
264
263
|
const width = resolved?.width ?? undefined;
|
|
265
264
|
const height = resolved?.height ?? undefined;
|
|
266
265
|
const currentScale = useCurrentScale({ dontThrowIfOutsideOfRemotion: true });
|
|
@@ -274,7 +273,11 @@ var MacOSCursorInner = ({
|
|
|
274
273
|
premountingStyle
|
|
275
274
|
} = Internals.usePremounting({
|
|
276
275
|
from: from ?? 0,
|
|
277
|
-
durationInFrames:
|
|
276
|
+
durationInFrames: Internals.resolveSequenceDuration({
|
|
277
|
+
durationInFrames,
|
|
278
|
+
playbackRate,
|
|
279
|
+
loop
|
|
280
|
+
}),
|
|
278
281
|
premountFor: premountFor ?? null,
|
|
279
282
|
postmountFor: postmountFor ?? null,
|
|
280
283
|
style: style ?? null,
|
|
@@ -290,19 +293,18 @@ var MacOSCursorInner = ({
|
|
|
290
293
|
from: from ?? 0,
|
|
291
294
|
trimBefore,
|
|
292
295
|
playbackRate,
|
|
296
|
+
loop,
|
|
293
297
|
durationInFrames: durationInFrames ?? Infinity,
|
|
294
298
|
freeze,
|
|
295
299
|
hidden,
|
|
296
300
|
name: name ?? "<MacOSCursor>",
|
|
297
301
|
showInTimeline: showInTimeline ?? true,
|
|
298
302
|
controls,
|
|
299
|
-
outlineRef: refForOutline,
|
|
300
303
|
_remotionInternalPremountDisplay: effectivePremountFor || null,
|
|
301
304
|
_remotionInternalPostmountDisplay: effectivePostmountFor || null,
|
|
302
305
|
_remotionInternalIsPremounting: premountingActive,
|
|
303
306
|
_remotionInternalIsPostmounting: postmountingActive,
|
|
304
307
|
children: resolved ? /* @__PURE__ */ jsx("svg", {
|
|
305
|
-
ref: refForOutline,
|
|
306
308
|
className,
|
|
307
309
|
width,
|
|
308
310
|
height,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/mac-cursors",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.530",
|
|
4
4
|
"description": "macOS cursor components for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.530"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.8.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"react": "19.2.3",
|
|
43
43
|
"react-dom": "19.2.3",
|
|
44
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/eslint-config-internal": "4.0.530",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
47
47
|
},
|