remotion 4.0.476 → 4.0.478

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.sequenceSchema = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.sequenceVisualStyleSchema = void 0;
3
+ exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.sequenceSchema = exports.freezeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.sequenceVisualStyleSchema = void 0;
4
4
  exports.sequenceVisualStyleSchema = {
5
5
  'style.transformOrigin': {
6
6
  type: 'transform-origin',
@@ -95,10 +95,17 @@ exports.fromField = {
95
95
  step: 1,
96
96
  hiddenFromList: true,
97
97
  };
98
+ exports.freezeField = {
99
+ type: 'number',
100
+ default: null,
101
+ step: 1,
102
+ hiddenFromList: true,
103
+ };
98
104
  exports.sequenceSchema = (0, exports.extendSchemaWithSequenceName)({
99
105
  hidden: exports.hiddenField,
100
106
  showInTimeline: showInTimelineField,
101
107
  from: exports.fromField,
108
+ freeze: exports.freezeField,
102
109
  durationInFrames: exports.durationInFramesField,
103
110
  layout: {
104
111
  type: 'enum',
@@ -113,6 +120,7 @@ exports.sequenceSchema = (0, exports.extendSchemaWithSequenceName)({
113
120
  exports.sequenceSchemaWithoutFrom = (0, exports.extendSchemaWithSequenceName)({
114
121
  hidden: exports.hiddenField,
115
122
  showInTimeline: showInTimelineField,
123
+ freeze: exports.freezeField,
116
124
  durationInFrames: exports.durationInFramesField,
117
125
  layout: exports.sequenceSchema.layout,
118
126
  });
@@ -4,7 +4,7 @@ type SeriesSequenceProps = PropsWithChildren<{
4
4
  readonly durationInFrames: number;
5
5
  readonly offset?: number;
6
6
  readonly className?: string;
7
- } & Pick<SequenceProps, 'layout' | 'name' | 'hidden' | 'showInTimeline'> & LayoutAndStyle>;
7
+ } & Pick<SequenceProps, 'layout' | 'name' | 'hidden' | 'showInTimeline' | 'freeze'> & LayoutAndStyle>;
8
8
  declare const SeriesSequence: React.ForwardRefExoticComponent<SeriesSequenceProps & React.RefAttributes<HTMLDivElement>>;
9
9
  type SeriesProps = SequenceProps;
10
10
  /**
@@ -67,6 +67,7 @@ const SeriesInner = (props) => {
67
67
  */
68
68
  const Series = Object.assign((0, wrap_in_schema_js_1.wrapInSchema)({
69
69
  Component: SeriesInner,
70
+ componentIdentity: 'dev.remotion.remotion.Series',
70
71
  schema: sequence_field_schema_js_1.sequenceSchemaDefaultLayoutNone,
71
72
  supportsEffects: false,
72
73
  }), {
@@ -142,6 +142,8 @@ const useMediaInTimeline = ({ volume, mediaVolume, src, mediaType, playbackRate,
142
142
  effects: [],
143
143
  refForOutline,
144
144
  isInsideSeries: false,
145
+ frozenFrame: null,
146
+ frozenMediaFrame: null,
145
147
  });
146
148
  return () => {
147
149
  unregisterSequence(id);
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.476";
6
+ export declare const VERSION = "4.0.478";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.476';
10
+ exports.VERSION = '4.0.478';
@@ -10,10 +10,11 @@ export declare const mergeValues: ({ props, valuesDotNotation, schemaKeys, props
10
10
  schemaKeys: string[];
11
11
  propsToDelete: Set<string>;
12
12
  }) => Record<string, unknown>;
13
- export declare const wrapInSchema: <S extends SequenceSchema, Props extends object>({ Component, schema, supportsEffects, }: {
13
+ export declare const wrapInSchema: <S extends SequenceSchema, Props extends object>({ Component, componentIdentity, schema, supportsEffects, }: {
14
14
  Component: React.ComponentType<Props & {
15
15
  readonly _experimentalControls: SequenceControls | undefined;
16
16
  }>;
17
+ componentIdentity: string | null;
17
18
  schema: S;
18
19
  supportsEffects: boolean;
19
20
  }) => React.ComponentType<Props>;
@@ -98,7 +98,7 @@ const mergeValues = ({ props, valuesDotNotation, schemaKeys, propsToDelete, }) =
98
98
  };
99
99
  exports.mergeValues = mergeValues;
100
100
  const stackToOverrideMap = {};
101
- const wrapInSchema = ({ Component, schema, supportsEffects, }) => {
101
+ const wrapInSchema = ({ Component, componentIdentity, schema, supportsEffects, }) => {
102
102
  // Schema is static for a component, so we move this outside
103
103
  const schemaWithSequenceName = (0, sequence_field_schema_js_1.extendSchemaWithSequenceName)(schema);
104
104
  const flatSchema = (0, flatten_schema_js_1.getFlatSchemaWithAllKeys)(schemaWithSequenceName);
@@ -160,6 +160,7 @@ const wrapInSchema = ({ Component, schema, supportsEffects, }) => {
160
160
  currentRuntimeValueDotNotation,
161
161
  overrideId,
162
162
  supportsEffects,
163
+ componentIdentity,
163
164
  };
164
165
  }, [currentRuntimeValueDotNotation, overrideId]);
165
166
  // 3. Apply drag/code overrides on top of the runtime values.