remotion 4.0.537 → 4.0.539

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.
Files changed (179) hide show
  1. package/dist/cjs/AbsoluteFill.d.ts +62 -62
  2. package/dist/cjs/AbsoluteFill.js +3 -3
  3. package/dist/cjs/AbsoluteFillElement.d.ts +1 -1
  4. package/dist/cjs/AbsoluteFillElement.js +43 -5
  5. package/dist/cjs/CanUseRemotionHooks.js +1 -1
  6. package/dist/cjs/Composition.js +5 -11
  7. package/dist/cjs/CompositionErrorBoundary.js +5 -2
  8. package/dist/cjs/CompositionManager.d.ts +1 -0
  9. package/dist/cjs/CompositionManagerProvider.d.ts +1 -1
  10. package/dist/cjs/CompositionManagerProvider.js +1 -1
  11. package/dist/cjs/CompositionRegistryProvider.d.ts +1 -1
  12. package/dist/cjs/CompositionRegistryProvider.js +1 -1
  13. package/dist/cjs/EditorProps.d.ts +2 -2
  14. package/dist/cjs/EditorProps.js +1 -1
  15. package/dist/cjs/Folder.js +1 -1
  16. package/dist/cjs/HtmlInCanvas.d.ts +58 -67
  17. package/dist/cjs/HtmlInCanvas.js +22 -9
  18. package/dist/cjs/HtmlInCanvasFallback.d.ts +6 -0
  19. package/dist/cjs/HtmlInCanvasFallback.js +39 -0
  20. package/dist/cjs/IFrame.d.ts +2 -2
  21. package/dist/cjs/IFrame.js +1 -1
  22. package/dist/cjs/Img.d.ts +62 -62
  23. package/dist/cjs/Img.js +160 -132
  24. package/dist/cjs/Interactive.d.ts +147 -145
  25. package/dist/cjs/Interactive.js +2 -2
  26. package/dist/cjs/RemotionRoot.js +1 -1
  27. package/dist/cjs/RenderAssetManager.js +1 -1
  28. package/dist/cjs/Sequence.js +37 -27
  29. package/dist/cjs/SequenceActivityBoundary.js +1 -1
  30. package/dist/cjs/SequenceActivityBudget.js +1 -1
  31. package/dist/cjs/SequenceActivitySuspensionProvider.js +1 -1
  32. package/dist/cjs/SequenceManager.d.ts +6 -0
  33. package/dist/cjs/SequenceManager.js +71 -27
  34. package/dist/cjs/SequenceRegistryProvider.js +16 -3
  35. package/dist/cjs/TimelineContext.js +1 -1
  36. package/dist/cjs/Track.js +2 -2
  37. package/dist/cjs/animated-image/AnimatedImage.d.ts +69 -69
  38. package/dist/cjs/animated-image/AnimatedImage.js +6 -6
  39. package/dist/cjs/animated-image/canvas.d.ts +6 -5
  40. package/dist/cjs/animated-image/canvas.js +1 -1
  41. package/dist/cjs/animated-image/create-image-decoder.d.ts +1 -1
  42. package/dist/cjs/animated-image/decode-image.d.ts +1 -1
  43. package/dist/cjs/animated-image/decode-image.js +2 -0
  44. package/dist/cjs/animated-image/get-duration-in-seconds.d.ts +1 -1
  45. package/dist/cjs/animated-image/index.js +1 -1
  46. package/dist/cjs/audio/AudioForPreview.js +5 -28
  47. package/dist/cjs/audio/AudioForRendering.d.ts +5 -20
  48. package/dist/cjs/audio/AudioForRendering.js +44 -5
  49. package/dist/cjs/audio/html5-audio.d.ts +36 -36
  50. package/dist/cjs/audio/html5-audio.js +8 -10
  51. package/dist/cjs/audio/index.js +1 -1
  52. package/dist/cjs/audio/shared-audio-tags.js +10 -16
  53. package/dist/cjs/audio/shared-element-source-node.d.ts +1 -1
  54. package/dist/cjs/audio/use-audio-context.d.ts +2 -1
  55. package/dist/cjs/audio/wait-until-actually-resumed.d.ts +2 -1
  56. package/dist/cjs/buffer-until-first-frame.d.ts +4 -3
  57. package/dist/cjs/buffering.js +1 -1
  58. package/dist/cjs/cancel-render.js +3 -0
  59. package/dist/cjs/canvas-image/CanvasImage.d.ts +71 -71
  60. package/dist/cjs/canvas-image/CanvasImage.js +27 -24
  61. package/dist/cjs/canvas-image/index.js +1 -1
  62. package/dist/cjs/codec.d.ts +1 -1
  63. package/dist/cjs/committed-metadata.d.ts +4 -2
  64. package/dist/cjs/composition-registry-fallback.d.ts +4 -2
  65. package/dist/cjs/composition-registry-fallback.js +12 -10
  66. package/dist/cjs/create-element-source-proxy.js +46 -6
  67. package/dist/cjs/default-css.d.ts +1 -1
  68. package/dist/cjs/delay-render.d.ts +2 -1
  69. package/dist/cjs/delay-render.js +4 -2
  70. package/dist/cjs/easing.js +3 -1
  71. package/dist/cjs/effects/Solid.d.ts +60 -60
  72. package/dist/cjs/effects/Solid.js +2 -2
  73. package/dist/cjs/effects/canvas-pool.js +6 -9
  74. package/dist/cjs/effects/create-curve-sampler.d.ts +1 -0
  75. package/dist/cjs/effects/create-curve-sampler.js +100 -0
  76. package/dist/cjs/effects/effect-source-observer.d.ts +13 -0
  77. package/dist/cjs/effects/effect-source-observer.js +177 -0
  78. package/dist/cjs/effects/index.js +1 -1
  79. package/dist/cjs/effects/run-effect-chain.js +3 -0
  80. package/dist/cjs/effects/use-memoized-effects.d.ts +2 -1
  81. package/dist/cjs/effects/use-memoized-effects.js +29 -13
  82. package/dist/cjs/freeze.js +2 -2
  83. package/dist/cjs/get-cross-origin-value.d.ts +1 -1
  84. package/dist/cjs/get-effective-visual-mode-value.d.ts +2 -2
  85. package/dist/cjs/index.d.ts +3 -1
  86. package/dist/cjs/index.js +32 -32
  87. package/dist/cjs/interactivity-schema.d.ts +286 -286
  88. package/dist/cjs/internals.d.ts +412 -595
  89. package/dist/cjs/internals.js +11 -0
  90. package/dist/cjs/interpolate-colors.d.ts +1 -1
  91. package/dist/cjs/interpolate-colors.js +28 -23
  92. package/dist/cjs/interpolate.d.ts +2 -9
  93. package/dist/cjs/interpolate.js +37 -33
  94. package/dist/cjs/is-player.js +1 -1
  95. package/dist/cjs/loading-indicator.js +2 -6
  96. package/dist/cjs/log-level-context.d.ts +1 -1
  97. package/dist/cjs/log.d.ts +12 -7
  98. package/dist/cjs/loop/index.js +1 -1
  99. package/dist/cjs/media-resource-manager.d.ts +1 -1
  100. package/dist/cjs/media-tag-current-time-timestamp.d.ts +1 -1
  101. package/dist/cjs/no-react.d.ts +85 -91
  102. package/dist/cjs/no-react.js +2 -2
  103. package/dist/cjs/nonce.d.ts +11 -0
  104. package/dist/cjs/nonce.js +42 -0
  105. package/dist/cjs/play-and-handle-not-allowed-error.d.ts +5 -4
  106. package/dist/cjs/playback-logging.d.ts +2 -1
  107. package/dist/cjs/playback-pitch-context.d.ts +1 -0
  108. package/dist/cjs/playback-pitch-context.js +5 -0
  109. package/dist/cjs/prefetch-state.js +1 -1
  110. package/dist/cjs/prefetch.d.ts +7 -6
  111. package/dist/cjs/prefetch.js +30 -5
  112. package/dist/cjs/props-if-has-props.d.ts +2 -1
  113. package/dist/cjs/prores-profile.d.ts +1 -1
  114. package/dist/cjs/register-root.d.ts +2 -2
  115. package/dist/cjs/render-resource-manager.d.ts +1 -1
  116. package/dist/cjs/render-types.d.ts +2 -2
  117. package/dist/cjs/resolve-video-config.d.ts +8 -8
  118. package/dist/cjs/runtime-value-store.d.ts +1 -1
  119. package/dist/cjs/scale-value.d.ts +1 -1
  120. package/dist/cjs/seek.d.ts +3 -2
  121. package/dist/cjs/sequence-activity-context.js +1 -1
  122. package/dist/cjs/sequence-crop.js +1 -4
  123. package/dist/cjs/sequence-order-marker.d.ts +58 -0
  124. package/dist/cjs/sequence-order-marker.js +44 -0
  125. package/dist/cjs/series/flatten-children.d.ts +3 -1
  126. package/dist/cjs/series/index.js +4 -5
  127. package/dist/cjs/series/is-inside-series.js +2 -2
  128. package/dist/cjs/spring/index.d.ts +1 -1
  129. package/dist/cjs/spring/index.js +2 -4
  130. package/dist/cjs/spring/measure-spring.d.ts +1 -1
  131. package/dist/cjs/spring/spring-utils.d.ts +1 -1
  132. package/dist/cjs/spring/spring-utils.js +11 -5
  133. package/dist/cjs/timeline-position-state.d.ts +1 -1
  134. package/dist/cjs/timeline-position-state.js +2 -2
  135. package/dist/cjs/use-amplification.d.ts +4 -7
  136. package/dist/cjs/use-current-scale.d.ts +2 -2
  137. package/dist/cjs/use-delay-render.d.ts +2 -1
  138. package/dist/cjs/use-lazy-component.d.ts +1 -1
  139. package/dist/cjs/use-lazy-component.js +20 -9
  140. package/dist/cjs/use-media-buffering.d.ts +3 -2
  141. package/dist/cjs/use-media-duration.d.ts +4 -0
  142. package/dist/cjs/use-media-duration.js +36 -0
  143. package/dist/cjs/use-media-enabled.d.ts +1 -1
  144. package/dist/cjs/use-media-enabled.js +1 -1
  145. package/dist/cjs/use-media-in-timeline.d.ts +1 -1
  146. package/dist/cjs/use-media-playback.d.ts +3 -3
  147. package/dist/cjs/use-media-tag.d.ts +2 -2
  148. package/dist/cjs/use-pixel-density.d.ts +1 -1
  149. package/dist/cjs/use-premounting.d.ts +1 -1
  150. package/dist/cjs/use-premounting.js +6 -2
  151. package/dist/cjs/use-request-video-callback-time.d.ts +3 -3
  152. package/dist/cjs/use-schema.d.ts +4 -4
  153. package/dist/cjs/use-video.js +1 -1
  154. package/dist/cjs/validate-media-props.d.ts +1 -1
  155. package/dist/cjs/validation/validate-default-props.d.ts +1 -1
  156. package/dist/cjs/version.d.ts +1 -1
  157. package/dist/cjs/version.js +1 -1
  158. package/dist/cjs/video/MediaPlaybackError.js +0 -1
  159. package/dist/cjs/video/OffthreadVideo.js +5 -5
  160. package/dist/cjs/video/OffthreadVideoForRendering.js +9 -7
  161. package/dist/cjs/video/VideoForPreview.js +6 -28
  162. package/dist/cjs/video/VideoForRendering.d.ts +5 -3
  163. package/dist/cjs/video/VideoForRendering.js +4 -2
  164. package/dist/cjs/video/duration-state.d.ts +1 -0
  165. package/dist/cjs/video/duration-state.js +8 -2
  166. package/dist/cjs/video/emit-video-frame.d.ts +1 -1
  167. package/dist/cjs/video/html5-video.d.ts +36 -36
  168. package/dist/cjs/video/html5-video.js +8 -10
  169. package/dist/cjs/video/index.js +2 -2
  170. package/dist/cjs/video/seek-until-right.d.ts +3 -2
  171. package/dist/cjs/warn-about-non-seekable-media.d.ts +1 -1
  172. package/dist/cjs/with-interactivity-schema.d.ts +1 -1
  173. package/dist/cjs/with-interactivity-schema.js +3 -8
  174. package/dist/cjs/wrap-remotion-context.d.ts +4 -4
  175. package/dist/cjs/wrap-remotion-context.js +2 -2
  176. package/dist/esm/index.mjs +1304 -819
  177. package/dist/esm/no-react.mjs +74 -52
  178. package/dist/esm/version.mjs +1 -1
  179. package/package.json +4 -4
@@ -47,6 +47,27 @@ exports.canvasImageSchema = {
47
47
  ...interactivity_schema_js_1.borderSchema,
48
48
  ...interactivity_schema_js_1.borderRadiusSchema,
49
49
  };
50
+ const continueImageLoadDelay = (pendingLoadDelayRef, setIsLoadPending, continueRender, { markAsReady }) => {
51
+ const pending = pendingLoadDelayRef.current;
52
+ if (!pending || pending.continued) {
53
+ return;
54
+ }
55
+ pending.continued = true;
56
+ if (markAsReady) {
57
+ setIsLoadPending(false);
58
+ }
59
+ continueRender(pending.handle);
60
+ pendingLoadDelayRef.current = null;
61
+ };
62
+ const setCanvasRef = (setOutputCanvas, ref, canvas) => {
63
+ setOutputCanvas(canvas);
64
+ if (typeof ref === 'function') {
65
+ ref(canvas);
66
+ }
67
+ else if (ref) {
68
+ ref.current = canvas;
69
+ }
70
+ };
50
71
  const makeAbortError = () => {
51
72
  if (typeof DOMException !== 'undefined') {
52
73
  return new DOMException('Image loading was aborted', 'AbortError');
@@ -96,7 +117,7 @@ const loadImage = ({ src, signal, crossOrigin, }) => {
96
117
  onAbort();
97
118
  return;
98
119
  }
99
- image.crossOrigin = crossOrigin !== null && crossOrigin !== void 0 ? crossOrigin : 'anonymous';
120
+ image.crossOrigin = crossOrigin || 'anonymous';
100
121
  image.src = src;
101
122
  });
102
123
  };
@@ -129,33 +150,15 @@ const CanvasImageContent = (0, react_1.forwardRef)(({ src, crossOrigin, width, h
129
150
  const [isLoadPending, setIsLoadPending] = (0, react_1.useState)(false);
130
151
  const isPremounting = Boolean(sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.premounting);
131
152
  const isPostmounting = Boolean(sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.postmounting);
132
- const continuePendingLoadDelay = (0, react_1.useCallback)(({ markAsReady }) => {
133
- const pending = pendingLoadDelayRef.current;
134
- if (!pending || pending.continued) {
135
- return;
136
- }
137
- pending.continued = true;
138
- if (markAsReady) {
139
- setIsLoadPending(false);
140
- }
141
- continueRender(pending.handle);
142
- pendingLoadDelayRef.current = null;
143
- }, [continueRender]);
153
+ // Bound callbacks keep only these inputs, including after minification.
154
+ const continuePendingLoadDelay = (0, react_1.useMemo)(() => continueImageLoadDelay.bind(null, pendingLoadDelayRef, setIsLoadPending, continueRender), [continueRender]);
144
155
  const sourceCanvas = (0, react_1.useMemo)(() => {
145
156
  if (typeof document === 'undefined') {
146
157
  return null;
147
158
  }
148
159
  return document.createElement('canvas');
149
160
  }, []);
150
- const canvasRef = (0, react_1.useCallback)((canvas) => {
151
- setOutputCanvas(canvas);
152
- if (typeof ref === 'function') {
153
- ref(canvas);
154
- }
155
- else if (ref) {
156
- ref.current = canvas;
157
- }
158
- }, [ref]);
161
+ const canvasRef = (0, react_1.useMemo)(() => setCanvasRef.bind(null, setOutputCanvas, ref), [ref]);
159
162
  (0, react_1.useLayoutEffect)(() => {
160
163
  if (!pauseWhenLoading ||
161
164
  !isLoadPending ||
@@ -327,7 +330,7 @@ const CanvasImageContent = (0, react_1.forwardRef)(({ src, crossOrigin, width, h
327
330
  sourceCanvas,
328
331
  width,
329
332
  ]);
330
- return (jsx_runtime_1.jsx("canvas", { ...canvasProps, ref: canvasRef, width: width, height: height, className: className, style: style, id: id }));
333
+ return ((0, jsx_runtime_1.jsx)("canvas", { ...canvasProps, ref: canvasRef, width: width, height: height, className: className, style: style, id: id }));
331
334
  });
332
335
  CanvasImageContent.displayName = 'CanvasImageContent';
333
336
  const CanvasImageInner = (0, react_1.forwardRef)(({ src, crossOrigin, width, height, fit, effects = [], effectsOutputSize, className, style, id, onError, pauseWhenLoading, maxRetries, delayRenderRetries, delayRenderTimeoutInMilliseconds, durationInFrames, from, trimBefore, loop, freeze, premountFor, postmountFor, styleWhilePremounted, styleWhilePostmounted, hidden, name, showInTimeline, cropLeft, cropRight, cropTop, cropBottom, controls, _remotionInternalDocumentationLink, _remotionInternalCropComponentName, ...canvasProps }, ref) => {
@@ -365,7 +368,7 @@ const CanvasImageInner = (0, react_1.forwardRef)(({ src, crossOrigin, width, hei
365
368
  style: premountingStyle,
366
369
  componentName: _remotionInternalCropComponentName !== null && _remotionInternalCropComponentName !== void 0 ? _remotionInternalCropComponentName : '<CanvasImage />',
367
370
  });
368
- return (jsx_runtime_1.jsx(freeze_js_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, _remotionInternalIsPremounting: premountingActive, children: jsx_runtime_1.jsx(Sequence_js_1.Sequence, { layout: "none", from: from !== null && from !== void 0 ? from : 0, trimBefore: trimBefore, loop: loop, durationInFrames: durationInFrames, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : true, name: name !== null && name !== void 0 ? name : '<CanvasImage>', _remotionInternalDocumentationLink: _remotionInternalDocumentationLink !== null && _remotionInternalDocumentationLink !== void 0 ? _remotionInternalDocumentationLink : 'https://www.remotion.dev/docs/canvasimage', controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, _remotionInternalIsMedia: isMedia, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: jsx_runtime_1.jsx(sequence_activity_context_js_1.SequenceContent, { children: jsx_runtime_1.jsx(CanvasImageContent, { ref: actualRef, src: src, crossOrigin: crossOrigin, width: width, height: height, fit: fit, effects: effects, effectsOutputSize: effectsOutputSize !== null && effectsOutputSize !== void 0 ? effectsOutputSize : null, controls: controls, className: className, style: croppedStyle !== null && croppedStyle !== void 0 ? croppedStyle : undefined, id: id, onError: onError, pauseWhenLoading: pauseWhenLoading, maxRetries: maxRetries, delayRenderRetries: delayRenderRetries, delayRenderTimeoutInMilliseconds: delayRenderTimeoutInMilliseconds, ...canvasProps }) }) }) }));
371
+ return ((0, jsx_runtime_1.jsx)(freeze_js_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, _remotionInternalIsPremounting: premountingActive, children: (0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence, { layout: "none", from: from !== null && from !== void 0 ? from : 0, trimBefore: trimBefore, loop: loop, durationInFrames: durationInFrames, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : true, name: name !== null && name !== void 0 ? name : '<CanvasImage>', _remotionInternalDocumentationLink: _remotionInternalDocumentationLink !== null && _remotionInternalDocumentationLink !== void 0 ? _remotionInternalDocumentationLink : 'https://www.remotion.dev/docs/canvasimage', controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, _remotionInternalIsMedia: isMedia, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: (0, jsx_runtime_1.jsx)(sequence_activity_context_js_1.SequenceContent, { children: (0, jsx_runtime_1.jsx)(CanvasImageContent, { ref: actualRef, src: src, crossOrigin: crossOrigin, width: width, height: height, fit: fit, effects: effects, effectsOutputSize: effectsOutputSize !== null && effectsOutputSize !== void 0 ? effectsOutputSize : null, controls: controls, className: className, style: croppedStyle !== null && croppedStyle !== void 0 ? croppedStyle : undefined, id: id, onError: onError, pauseWhenLoading: pauseWhenLoading, maxRetries: maxRetries, delayRenderRetries: delayRenderRetries, delayRenderTimeoutInMilliseconds: delayRenderTimeoutInMilliseconds, ...canvasProps }) }) }) }));
369
372
  });
370
373
  /*
371
374
  * @description Renders a static image to a `<canvas>` and applies Remotion effects.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CanvasImage = void 0;
4
- const CanvasImage_js_1 = require("./CanvasImage.js");
4
+ var CanvasImage_js_1 = require("./CanvasImage.js");
5
5
  Object.defineProperty(exports, "CanvasImage", { enumerable: true, get: function () { return CanvasImage_js_1.CanvasImage; } });
@@ -1,4 +1,4 @@
1
- export declare const validCodecs: readonly ["h264", "h265", "vp8", "vp9", "av1", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
1
+ export declare const validCodecs: readonly ['h264', 'h265', 'vp8', 'vp9', 'av1', 'mp3', 'aac', 'wav', 'prores', 'h264-mkv', 'h264-ts', 'gif'];
2
2
  export type Codec = (typeof validCodecs)[number];
3
3
  export type CodecOrUndefined = Codec | undefined;
4
4
  export declare const DEFAULT_CODEC: Codec;
@@ -1,6 +1,7 @@
1
1
  import type { Provider, ProviderExoticComponent, ProviderProps, RefObject } from 'react';
2
2
  import type { AnyComposition, TSequence } from './CompositionManager.js';
3
3
  import type { TFolder } from './Folder.js';
4
+ declare const COMMITTED_METADATA_PROP = "_remotionCommitMetadata";
4
5
  export declare const COMMIT_ORDER_EVENT = "remotion:commit-order";
5
6
  export declare const COMMIT_REGISTRATION_ERROR_EVENT = "remotion:commit-registration-error";
6
7
  export declare const isCommitRegistrationObserverInstalled: () => boolean;
@@ -54,15 +55,16 @@ export type CommittedMetadata = {
54
55
  readonly onCommit: ((snapshot: CommittedCompositionSnapshot) => void) | null;
55
56
  };
56
57
  export declare const withCommittedMetadata: <T>(provider: Provider<T>) => ProviderExoticComponent<ProviderProps<T> & {
57
- readonly _remotionCommitMetadata: CommittedMetadata | null;
58
+ readonly [COMMITTED_METADATA_PROP]: CommittedMetadata | null;
58
59
  }>;
59
60
  export declare const CommittedMetadataProvider: ProviderExoticComponent<ProviderProps<null> & {
60
61
  readonly _remotionCommitMetadata: CommittedMetadata | null;
61
62
  }>;
62
63
  export declare const CommittedMetadataInternals: {
63
- metadataProp: "_remotionCommitMetadata";
64
+ metadataProp: typeof COMMITTED_METADATA_PROP;
64
65
  eventName: string;
65
66
  installationMarker: symbol;
66
67
  failureMarker: symbol;
67
68
  registrationErrorEventName: string;
68
69
  };
70
+ export {};
@@ -7,8 +7,10 @@ export type CommittedCompositionEntry = {
7
7
  readonly type: 'folder';
8
8
  readonly value: TFolder;
9
9
  };
10
- export declare const CompositionRegistryFallbackContext: import("react").Context<{
10
+ type CompositionRegistryFallback = {
11
11
  readonly entries: Map<object, CommittedCompositionEntry>;
12
12
  readonly notifyCommit: () => void;
13
- } | null>;
13
+ };
14
+ export declare const CompositionRegistryFallbackContext: import("react").Context<CompositionRegistryFallback | null>;
14
15
  export declare const useCommittedCompositionEntry: (entry: CommittedCompositionEntry | null) => void;
16
+ export {};
@@ -4,6 +4,15 @@ exports.useCommittedCompositionEntry = exports.CompositionRegistryFallbackContex
4
4
  const react_1 = require("react");
5
5
  exports.CompositionRegistryFallbackContext = (0, react_1.createContext)(null);
6
6
  const useIsomorphicLayoutEffect = typeof window === 'undefined' ? react_1.useEffect : react_1.useLayoutEffect;
7
+ const createEntryCleanup = (registry, identity) => {
8
+ if (registry === null) {
9
+ return;
10
+ }
11
+ return () => {
12
+ registry.entries.delete(identity);
13
+ registry.notifyCommit();
14
+ };
15
+ };
7
16
  // The fallback stages descriptors during layout effects and publishes one
8
17
  // complete snapshot after the commit, including mount and unmount changes.
9
18
  const useCommittedCompositionEntry = (entry) => {
@@ -21,15 +30,8 @@ const useCommittedCompositionEntry = (entry) => {
21
30
  }
22
31
  registry.notifyCommit();
23
32
  }, [entry, registry]);
24
- useIsomorphicLayoutEffect(() => {
25
- if (registry === null) {
26
- return;
27
- }
28
- const identity = key.current;
29
- return () => {
30
- registry.entries.delete(identity);
31
- registry.notifyCommit();
32
- };
33
- }, [registry]);
33
+ // The cleanup outlives entry changes. Binding a separate factory prevents it
34
+ // from sharing a closure with the original entry, even after minification.
35
+ useIsomorphicLayoutEffect(createEntryCleanup.bind(null, registry, key.current), [registry]);
34
36
  };
35
37
  exports.useCommittedCompositionEntry = useCommittedCompositionEntry;
@@ -7,6 +7,7 @@ const internalStackProp = enable_sequence_stack_traces_js_1.REMOTION_INTERNAL_ST
7
7
  const createElementSourceProxy = (api, sourceArgumentIndex, getSourceFileName) => {
8
8
  return new Proxy(api, {
9
9
  apply(target, thisArg, argArray) {
10
+ var _a;
10
11
  const component = argArray[0];
11
12
  if (componentsToAddStacksTo.includes(component)) {
12
13
  const [first, props, ...rest] = argArray;
@@ -18,19 +19,58 @@ const createElementSourceProxy = (api, sourceArgumentIndex, getSourceFileName) =
18
19
  (props === null || props === void 0 ? void 0 : props.controls)
19
20
  ? (0, enable_sequence_stack_traces_js_1.getStackForControls)(props.controls)
20
21
  : null;
21
- const stack = existingStack ||
22
- (controlsStack !== null && controlsStack !== void 0 ? controlsStack : (source &&
22
+ let stack = existingStack || controlsStack;
23
+ if (!stack) {
24
+ if (source &&
23
25
  typeof source.fileName === 'string' &&
24
26
  typeof source.lineNumber === 'number' &&
25
- typeof source.columnNumber === 'number'
26
- ? (0, enable_sequence_stack_traces_js_1.makeOriginalSourceStack)({
27
+ typeof source.columnNumber === 'number') {
28
+ stack = (0, enable_sequence_stack_traces_js_1.makeOriginalSourceStack)({
27
29
  fileName: getSourceFileName(source.fileName),
28
30
  lineNumber: source.lineNumber,
29
31
  // JSX development locations are one-based, like stack traces.
30
32
  // Resolved source locations and AST lookups use zero-based columns.
31
33
  columnNumber: source.columnNumber - 1,
32
- })
33
- : new Error().stack));
34
+ });
35
+ }
36
+ else {
37
+ // Avoid collecting the full Studio error stack just to discard it.
38
+ // Restore the limit before formatting, which can invoke user code.
39
+ const { stackTraceLimit } = Error;
40
+ const canLimitStack = typeof stackTraceLimit === 'number' &&
41
+ stackTraceLimit > 2 &&
42
+ ((_a = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit')) === null || _a === void 0 ? void 0 : _a.writable);
43
+ let capturedError;
44
+ try {
45
+ if (canLimitStack) {
46
+ Error.stackTraceLimit = 2;
47
+ }
48
+ capturedError = new Error();
49
+ }
50
+ finally {
51
+ if (canLimitStack) {
52
+ Error.stackTraceLimit = stackTraceLimit;
53
+ }
54
+ }
55
+ const capturedStack = capturedError.stack;
56
+ // Keep the proxy and JSX call site, including its generated URL for
57
+ // Fast Refresh. Later React scheduler frames vary between renders.
58
+ // V8 adds an Error header; Firefox and Safari start with a frame.
59
+ if (capturedStack) {
60
+ const firstFrameEnd = capturedStack.indexOf('\n', capturedStack.startsWith('Error\n') ? 6 : 0);
61
+ const callerEnd = firstFrameEnd === -1
62
+ ? -1
63
+ : capturedStack.indexOf('\n', firstFrameEnd + 1);
64
+ stack =
65
+ callerEnd === -1
66
+ ? capturedStack
67
+ : capturedStack.slice(0, callerEnd);
68
+ }
69
+ else {
70
+ stack = capturedStack;
71
+ }
72
+ }
73
+ }
34
74
  const newProps = existingStack
35
75
  ? { ...props }
36
76
  : {
@@ -1,3 +1,3 @@
1
- export declare const injectCSS: (css: string) => () => void;
1
+ export declare const injectCSS: (css: string) => (() => void);
2
2
  export declare const OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain";
3
3
  export declare const makeDefaultPreviewCSS: (scope: string | null, backgroundColor: string) => string;
@@ -14,6 +14,7 @@ export type DelayRenderScope = {
14
14
  remotion_attempt: number;
15
15
  remotion_delayRenderHandles: number[];
16
16
  remotion_cancelledError?: string;
17
+ remotion_cancelledErrorObject?: Error;
17
18
  };
18
19
  export type DelayRenderOptions = {
19
20
  timeoutInMilliseconds?: number;
@@ -31,7 +32,7 @@ type DelayRenderInternalOptions = {
31
32
  options: DelayRenderOptions;
32
33
  };
33
34
  export declare const delayRenderInternal: ({ scope, environment, label, options, }: DelayRenderInternalOptions) => number;
34
- export declare const delayRender: (label?: string | undefined, options?: DelayRenderOptions | undefined) => number;
35
+ export declare const delayRender: (label?: string, options?: DelayRenderOptions) => number;
35
36
  /**
36
37
  * Internal function that accepts environment as parameter.
37
38
  * @private
@@ -6,7 +6,7 @@ const delay_render_constants_js_1 = require("./delay-render-constants.js");
6
6
  const get_remotion_environment_js_1 = require("./get-remotion-environment.js");
7
7
  const log_js_1 = require("./log.js");
8
8
  const truthy_js_1 = require("./truthy.js");
9
- const delay_render_constants_js_2 = require("./delay-render-constants.js");
9
+ var delay_render_constants_js_2 = require("./delay-render-constants.js");
10
10
  Object.defineProperty(exports, "DELAY_RENDER_CALLSTACK_TOKEN", { enumerable: true, get: function () { return delay_render_constants_js_2.DELAY_RENDER_CALLSTACK_TOKEN; } });
11
11
  Object.defineProperty(exports, "DELAY_RENDER_CLEAR_TOKEN", { enumerable: true, get: function () { return delay_render_constants_js_2.DELAY_RENDER_CLEAR_TOKEN; } });
12
12
  Object.defineProperty(exports, "DELAY_RENDER_RETRIES_LEFT", { enumerable: true, get: function () { return delay_render_constants_js_2.DELAY_RENDER_RETRIES_LEFT; } });
@@ -49,7 +49,9 @@ const delayRenderInternal = ({ scope, environment, label, options, }) => {
49
49
  .join(' ');
50
50
  // in client-side rendering, don't throw (would be uncaught from setTimeout)
51
51
  if (environment.isClientSideRendering) {
52
- scope.remotion_cancelledError = (0, cancel_render_js_1.getErrorStackWithMessage)(Error(message));
52
+ const error = Error(message);
53
+ scope.remotion_cancelledErrorObject = error;
54
+ scope.remotion_cancelledError = (0, cancel_render_js_1.getErrorStackWithMessage)(error);
53
55
  }
54
56
  else {
55
57
  (0, cancel_render_js_1.cancelRenderInternal)(scope, Error(message));
@@ -9,6 +9,7 @@ const index_js_1 = require("./spring/index.js");
9
9
  // there so we return endpoints instead of NaN or unintended extrapolation.
10
10
  const clampUnit = (t) => Math.min(1, Math.max(0, t));
11
11
  const springEasingDurationInFrames = 30;
12
+ let easeBezier = null;
12
13
  /**
13
14
  * @description The Easing module implements common easing functions. You can use it with the interpolate() API.
14
15
  * @see [Documentation](https://www.remotion.dev/docs/easing)
@@ -24,7 +25,8 @@ class Easing {
24
25
  return t;
25
26
  }
26
27
  static ease(t) {
27
- return Easing.bezier(0.42, 0, 1, 1)(t);
28
+ easeBezier !== null && easeBezier !== void 0 ? easeBezier : (easeBezier = Easing.bezier(0.42, 0, 1, 1));
29
+ return easeBezier(t);
28
30
  }
29
31
  static quad(t) {
30
32
  return t * t;
@@ -16,52 +16,52 @@ type OptionalProps = {
16
16
  export type SolidProps = MandatoryProps & Partial<OptionalProps> & InteractiveCropProps;
17
17
  export declare const solidSchema: {
18
18
  readonly 'style.transformOrigin': {
19
- readonly type: "transform-origin";
19
+ readonly type: 'transform-origin';
20
20
  readonly step: 1;
21
- readonly default: "50% 50%";
22
- readonly description: "Transform origin";
21
+ readonly default: '50% 50%';
22
+ readonly description: 'Transform origin';
23
23
  };
24
24
  readonly 'style.translate': {
25
- readonly type: "translate";
25
+ readonly type: 'translate';
26
26
  readonly step: 1;
27
- readonly default: "0px 0px";
28
- readonly description: "Offset";
27
+ readonly default: '0px 0px';
28
+ readonly description: 'Offset';
29
29
  };
30
30
  readonly 'style.scale': {
31
- readonly type: "scale";
31
+ readonly type: 'scale';
32
32
  readonly max: 100;
33
33
  readonly step: 0.01;
34
34
  readonly default: 1;
35
- readonly description: "Scale";
36
- readonly defaultKeyframeOutput: "perceptual-scale";
35
+ readonly description: 'Scale';
36
+ readonly defaultKeyframeOutput: 'perceptual-scale';
37
37
  };
38
38
  readonly 'style.rotate': {
39
- readonly type: "rotation-css";
39
+ readonly type: 'rotation-css';
40
40
  readonly step: 1;
41
- readonly default: "0deg";
42
- readonly description: "Rotation";
41
+ readonly default: '0deg';
42
+ readonly description: 'Rotation';
43
43
  };
44
44
  readonly 'style.opacity': {
45
- readonly type: "number";
45
+ readonly type: 'number';
46
46
  readonly min: 0;
47
47
  readonly max: 1;
48
48
  readonly step: 0.01;
49
49
  readonly default: 1;
50
- readonly description: "Opacity";
50
+ readonly description: 'Opacity';
51
51
  readonly hiddenFromList: false;
52
52
  };
53
53
  readonly 'style.borderWidth': {
54
- readonly type: "number";
54
+ readonly type: 'number';
55
55
  readonly default: undefined;
56
56
  readonly min: 0;
57
57
  readonly step: 1;
58
- readonly description: "Border width";
58
+ readonly description: 'Border width';
59
59
  readonly hiddenFromList: false;
60
60
  };
61
61
  readonly 'style.borderStyle': {
62
- readonly type: "enum";
63
- readonly default: "none";
64
- readonly description: "Border style";
62
+ readonly type: 'enum';
63
+ readonly default: 'none';
64
+ readonly description: 'Border style';
65
65
  readonly variants: {
66
66
  readonly none: {};
67
67
  readonly hidden: {};
@@ -76,67 +76,67 @@ export declare const solidSchema: {
76
76
  };
77
77
  };
78
78
  readonly 'style.borderColor': {
79
- readonly type: "color";
79
+ readonly type: 'color';
80
80
  readonly default: undefined;
81
- readonly description: "Border color";
81
+ readonly description: 'Border color';
82
82
  };
83
83
  readonly 'style.borderRadius': {
84
- readonly type: "number";
84
+ readonly type: 'number';
85
85
  readonly default: 0;
86
86
  readonly min: 0;
87
87
  readonly step: 1;
88
- readonly description: "Border radius";
88
+ readonly description: 'Border radius';
89
89
  readonly hiddenFromList: false;
90
90
  readonly keyframable: true;
91
91
  };
92
92
  readonly 'style.borderTopLeftRadius': {
93
- readonly type: "number";
93
+ readonly type: 'number';
94
94
  readonly default: 0;
95
95
  readonly min: 0;
96
96
  readonly step: 1;
97
- readonly description: "Top left radius";
97
+ readonly description: 'Top left radius';
98
98
  readonly hiddenFromList: false;
99
99
  };
100
100
  readonly 'style.borderTopRightRadius': {
101
- readonly type: "number";
101
+ readonly type: 'number';
102
102
  readonly default: 0;
103
103
  readonly min: 0;
104
104
  readonly step: 1;
105
- readonly description: "Top right radius";
105
+ readonly description: 'Top right radius';
106
106
  readonly hiddenFromList: false;
107
107
  };
108
108
  readonly 'style.borderBottomRightRadius': {
109
- readonly type: "number";
109
+ readonly type: 'number';
110
110
  readonly default: 0;
111
111
  readonly min: 0;
112
112
  readonly step: 1;
113
- readonly description: "Bottom right radius";
113
+ readonly description: 'Bottom right radius';
114
114
  readonly hiddenFromList: false;
115
115
  };
116
116
  readonly 'style.borderBottomLeftRadius': {
117
- readonly type: "number";
117
+ readonly type: 'number';
118
118
  readonly default: 0;
119
119
  readonly min: 0;
120
120
  readonly step: 1;
121
- readonly description: "Bottom left radius";
121
+ readonly description: 'Bottom left radius';
122
122
  readonly hiddenFromList: false;
123
123
  };
124
124
  readonly 'style.backgroundColor': {
125
- readonly type: "color";
126
- readonly default: "transparent";
127
- readonly description: "Color";
125
+ readonly type: 'color';
126
+ readonly default: 'transparent';
127
+ readonly description: 'Color';
128
128
  };
129
129
  readonly premountFor: {
130
- readonly type: "number";
130
+ readonly type: 'number';
131
131
  readonly default: undefined;
132
- readonly description: "Premount For";
132
+ readonly description: 'Premount For';
133
133
  readonly min: 0;
134
134
  readonly step: 1;
135
135
  readonly hiddenFromList: false;
136
136
  readonly keyframable: false;
137
137
  };
138
138
  readonly postmountFor: {
139
- readonly type: "number";
139
+ readonly type: 'number';
140
140
  readonly default: 0;
141
141
  readonly min: 0;
142
142
  readonly step: 1;
@@ -144,9 +144,9 @@ export declare const solidSchema: {
144
144
  readonly keyframable: false;
145
145
  };
146
146
  readonly cropLeft: {
147
- readonly type: "number";
147
+ readonly type: 'number';
148
148
  readonly default: 0;
149
- readonly description: "Crop left";
149
+ readonly description: 'Crop left';
150
150
  readonly min: 0;
151
151
  readonly max: 1;
152
152
  readonly step: 0.01;
@@ -154,9 +154,9 @@ export declare const solidSchema: {
154
154
  readonly keyframable: true;
155
155
  };
156
156
  readonly cropRight: {
157
- readonly type: "number";
157
+ readonly type: 'number';
158
158
  readonly default: 0;
159
- readonly description: "Crop right";
159
+ readonly description: 'Crop right';
160
160
  readonly min: 0;
161
161
  readonly max: 1;
162
162
  readonly step: 0.01;
@@ -164,9 +164,9 @@ export declare const solidSchema: {
164
164
  readonly keyframable: true;
165
165
  };
166
166
  readonly cropTop: {
167
- readonly type: "number";
167
+ readonly type: 'number';
168
168
  readonly default: 0;
169
- readonly description: "Crop top";
169
+ readonly description: 'Crop top';
170
170
  readonly min: 0;
171
171
  readonly max: 1;
172
172
  readonly step: 0.01;
@@ -174,9 +174,9 @@ export declare const solidSchema: {
174
174
  readonly keyframable: true;
175
175
  };
176
176
  readonly cropBottom: {
177
- readonly type: "number";
177
+ readonly type: 'number';
178
178
  readonly default: 0;
179
- readonly description: "Crop bottom";
179
+ readonly description: 'Crop bottom';
180
180
  readonly min: 0;
181
181
  readonly max: 1;
182
182
  readonly step: 0.01;
@@ -184,36 +184,36 @@ export declare const solidSchema: {
184
184
  readonly keyframable: true;
185
185
  };
186
186
  readonly durationInFrames: {
187
- readonly type: "number";
187
+ readonly type: 'number';
188
188
  readonly default: undefined;
189
189
  readonly min: 1;
190
190
  readonly step: 1;
191
191
  readonly hiddenFromList: true;
192
192
  };
193
193
  readonly from: {
194
- readonly type: "number";
194
+ readonly type: 'number';
195
195
  readonly default: 0;
196
196
  readonly step: 1;
197
197
  readonly hiddenFromList: true;
198
198
  };
199
199
  readonly trimBefore: {
200
- readonly type: "number";
200
+ readonly type: 'number';
201
201
  readonly default: 0;
202
202
  readonly min: 0;
203
203
  readonly step: 1;
204
204
  readonly hiddenFromList: true;
205
205
  };
206
206
  readonly playbackRate: {
207
- readonly type: "number";
207
+ readonly type: 'number';
208
208
  readonly default: 1;
209
209
  readonly min: 0.01;
210
210
  readonly step: 0.1;
211
- readonly description: "Playback rate";
211
+ readonly description: 'Playback rate';
212
212
  readonly hiddenFromList: false;
213
213
  readonly keyframable: false;
214
214
  };
215
215
  readonly freeze: {
216
- readonly type: "number";
216
+ readonly type: 'number';
217
217
  readonly default: null;
218
218
  readonly step: 1;
219
219
  readonly hiddenFromList: true;
@@ -222,33 +222,33 @@ export declare const solidSchema: {
222
222
  readonly name: import("../interactivity-schema.js").HiddenFieldSchema;
223
223
  readonly showInTimeline: import("../interactivity-schema.js").HiddenFieldSchema;
224
224
  readonly color: {
225
- readonly type: "color";
226
- readonly default: "transparent";
227
- readonly description: "Color";
225
+ readonly type: 'color';
226
+ readonly default: 'transparent';
227
+ readonly description: 'Color';
228
228
  };
229
229
  readonly width: {
230
- readonly type: "number";
230
+ readonly type: 'number';
231
231
  readonly min: 1;
232
232
  readonly step: 1;
233
233
  readonly default: 1920;
234
- readonly description: "Width";
234
+ readonly description: 'Width';
235
235
  readonly hiddenFromList: false;
236
236
  };
237
237
  readonly height: {
238
- readonly type: "number";
238
+ readonly type: 'number';
239
239
  readonly min: 1;
240
240
  readonly step: 1;
241
241
  readonly default: 1080;
242
- readonly description: "Height";
242
+ readonly description: 'Height';
243
243
  readonly hiddenFromList: false;
244
244
  };
245
245
  readonly pixelDensity: {
246
- readonly type: "number";
246
+ readonly type: 'number';
247
247
  readonly min: 1;
248
248
  readonly max: 3;
249
249
  readonly step: 0.1;
250
250
  readonly default: 1;
251
- readonly description: "Pixel density";
251
+ readonly description: 'Pixel density';
252
252
  readonly hiddenFromList: false;
253
253
  };
254
254
  };
@@ -156,7 +156,7 @@ const SolidInner = ({ color, width, height, effects = [], effectsOutputSize = nu
156
156
  ...(style !== null && style !== void 0 ? style : {}),
157
157
  };
158
158
  }, [height, style, width]);
159
- return (jsx_runtime_1.jsx("canvas", { ref: canvasRef, width: canvasWidth, height: canvasHeight, className: className, style: canvasStyle }));
159
+ return ((0, jsx_runtime_1.jsx)("canvas", { ref: canvasRef, width: canvasWidth, height: canvasHeight, className: className, style: canvasStyle }));
160
160
  };
161
161
  const SolidOuter = (0, react_1.forwardRef)(({ effects = [], effectsOutputSize = null, controls, color, height, width, className, durationInFrames, style, name, from, premountFor, postmountFor, styleWhilePremounted, styleWhilePostmounted, trimBefore, playbackRate, loop, freeze, hidden, showInTimeline, pixelDensity, cropLeft, cropRight, cropTop, cropBottom, ...props }, ref) => {
162
162
  var _a, _b;
@@ -188,7 +188,7 @@ const SolidOuter = (0, react_1.forwardRef)(({ effects = [], effectsOutputSize =
188
188
  style: premountingStyle,
189
189
  componentName: '<Solid />',
190
190
  });
191
- return (jsx_runtime_1.jsx(freeze_js_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, _remotionInternalIsPremounting: premountingActive, children: jsx_runtime_1.jsx(Sequence_js_1.Sequence, { layout: "none", from: from, trimBefore: trimBefore, playbackRate: playbackRate, loop: loop, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline, controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, durationInFrames: durationInFrames, name: name !== null && name !== void 0 ? name : '<Solid>', _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/solid", ...props, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: jsx_runtime_1.jsx(sequence_activity_context_js_1.SequenceContent, { children: jsx_runtime_1.jsx(SolidInner, { reference: actualRef, videoConfigValues: (_a = controls === null || controls === void 0 ? void 0 : controls.videoConfigValues) !== null && _a !== void 0 ? _a : null, overrideId: (_b = controls === null || controls === void 0 ? void 0 : controls.overrideId) !== null && _b !== void 0 ? _b : null, color: color, height: height, width: width, className: className, style: croppedStyle !== null && croppedStyle !== void 0 ? croppedStyle : undefined, effects: effects, effectsOutputSize: effectsOutputSize, pixelDensity: pixelDensity }) }) }) }));
191
+ return ((0, jsx_runtime_1.jsx)(freeze_js_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, _remotionInternalIsPremounting: premountingActive, children: (0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence, { layout: "none", from: from, trimBefore: trimBefore, playbackRate: playbackRate, loop: loop, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline, controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, durationInFrames: durationInFrames, name: name !== null && name !== void 0 ? name : '<Solid>', _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/solid", ...props, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: (0, jsx_runtime_1.jsx)(sequence_activity_context_js_1.SequenceContent, { children: (0, jsx_runtime_1.jsx)(SolidInner, { reference: actualRef, videoConfigValues: (_a = controls === null || controls === void 0 ? void 0 : controls.videoConfigValues) !== null && _a !== void 0 ? _a : null, overrideId: (_b = controls === null || controls === void 0 ? void 0 : controls.overrideId) !== null && _b !== void 0 ? _b : null, color: color, height: height, width: width, className: className, style: croppedStyle !== null && croppedStyle !== void 0 ? croppedStyle : undefined, effects: effects, effectsOutputSize: effectsOutputSize, pixelDensity: pixelDensity }) }) }) }));
192
192
  });
193
193
  exports.Solid = (0, with_interactivity_schema_js_1.withInteractivitySchema)({
194
194
  Component: SolidOuter,