@remotion/studio-shared 4.0.456 → 4.0.458

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
  import type { AudioCodec, ChromeMode, Codec, ColorSpace, LogLevel, PixelFormat, StillImageFormat, VideoImageFormat, X264Preset } from '@remotion/renderer';
2
2
  import type { HardwareAccelerationOption } from '@remotion/renderer/client';
3
- import type { _InternalTypes } from 'remotion';
3
+ import type { _InternalTypes, SequenceSchema } from 'remotion';
4
4
  import type { CanUpdateSequencePropStatus } from 'remotion';
5
5
  import type { RecastCodemod, VisualControlChange } from './codemods';
6
6
  import type { PackageManager } from './package-manager';
@@ -169,7 +169,7 @@ export type SubscribeToSequencePropsRequest = {
169
169
  fileName: string;
170
170
  line: number;
171
171
  column: number;
172
- keys: string[];
172
+ schema: SequenceSchema;
173
173
  clientId: string;
174
174
  };
175
175
  export type SubscribeToSequencePropsResponse = CanUpdateSequencePropsResponse;
@@ -194,7 +194,7 @@ export type SaveSequencePropsRequest = {
194
194
  key: string;
195
195
  value: string;
196
196
  defaultValue: string | null;
197
- observedKeys: string[];
197
+ schema: SequenceSchema;
198
198
  };
199
199
  export type SaveSequencePropsResponse = {
200
200
  success: true;
package/dist/index.d.ts CHANGED
@@ -16,6 +16,8 @@ export { ProjectInfo } from './project-info';
16
16
  export type { RenderDefaults } from './render-defaults';
17
17
  export { AggregateRenderProgress, ArtifactProgress, BrowserDownloadState, BrowserProgressLog, BundlingState, CopyingState, DownloadProgress, JobProgressCallback, RenderJob, RenderJobWithCleanup, RenderingProgressInput, RequiredChromiumOptions, StitchingProgressInput, UiOpenGlOptions, } from './render-job';
18
18
  export type { CompletedClientRender } from './render-job';
19
+ export { SCHEMA_FIELD_ROW_HEIGHT, UNSUPPORTED_FIELD_ROW_HEIGHT, getFieldsToShow, } from './schema-field-info';
20
+ export type { CodeValues, DragOverrides, SchemaFieldInfo, SequenceControls, } from './schema-field-info';
19
21
  export { SOURCE_MAP_ENDPOINT } from './source-map-endpoint';
20
22
  export { ScriptLine, SomeStackFrame, StackFrame, SymbolicatedStackFrame, } from './stack-types';
21
23
  export { EnumPath, stringifyDefaultProps } from './stringify-default-props';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stringifyDefaultProps = exports.SOURCE_MAP_ENDPOINT = exports.packages = exports.installableMap = exports.extraPackages = exports.descriptions = exports.apiDocs = exports.DEFAULT_TIMELINE_TRACKS = exports.hotMiddlewareOptions = exports.getProjectName = exports.getLocationFromBuildError = exports.getDefaultOutLocation = exports.formatBytes = exports.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = exports.stripAnsi = exports.splitAnsi = void 0;
3
+ exports.stringifyDefaultProps = exports.SOURCE_MAP_ENDPOINT = exports.getFieldsToShow = exports.UNSUPPORTED_FIELD_ROW_HEIGHT = exports.SCHEMA_FIELD_ROW_HEIGHT = exports.packages = exports.installableMap = exports.extraPackages = exports.descriptions = exports.apiDocs = exports.DEFAULT_TIMELINE_TRACKS = exports.hotMiddlewareOptions = exports.getProjectName = exports.getLocationFromBuildError = exports.getDefaultOutLocation = exports.formatBytes = exports.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = exports.stripAnsi = exports.splitAnsi = void 0;
4
4
  const ansi_1 = require("./ansi");
5
5
  Object.defineProperty(exports, "splitAnsi", { enumerable: true, get: function () { return ansi_1.splitAnsi; } });
6
6
  Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return ansi_1.stripAnsi; } });
@@ -24,6 +24,10 @@ Object.defineProperty(exports, "descriptions", { enumerable: true, get: function
24
24
  Object.defineProperty(exports, "extraPackages", { enumerable: true, get: function () { return package_info_1.extraPackages; } });
25
25
  Object.defineProperty(exports, "installableMap", { enumerable: true, get: function () { return package_info_1.installableMap; } });
26
26
  Object.defineProperty(exports, "packages", { enumerable: true, get: function () { return package_info_1.packages; } });
27
+ const schema_field_info_1 = require("./schema-field-info");
28
+ Object.defineProperty(exports, "SCHEMA_FIELD_ROW_HEIGHT", { enumerable: true, get: function () { return schema_field_info_1.SCHEMA_FIELD_ROW_HEIGHT; } });
29
+ Object.defineProperty(exports, "UNSUPPORTED_FIELD_ROW_HEIGHT", { enumerable: true, get: function () { return schema_field_info_1.UNSUPPORTED_FIELD_ROW_HEIGHT; } });
30
+ Object.defineProperty(exports, "getFieldsToShow", { enumerable: true, get: function () { return schema_field_info_1.getFieldsToShow; } });
27
31
  const source_map_endpoint_1 = require("./source-map-endpoint");
28
32
  Object.defineProperty(exports, "SOURCE_MAP_ENDPOINT", { enumerable: true, get: function () { return source_map_endpoint_1.SOURCE_MAP_ENDPOINT; } });
29
33
  const stringify_default_props_1 = require("./stringify-default-props");
@@ -0,0 +1,20 @@
1
+ import type { CodeValues, DragOverrides, SequenceControls, SequenceFieldSchema, SequenceSchema } from 'remotion';
2
+ export type { CodeValues, DragOverrides, SequenceControls };
3
+ export type SchemaFieldInfo = {
4
+ key: string;
5
+ description: string | undefined;
6
+ typeName: string;
7
+ supported: boolean;
8
+ rowHeight: number;
9
+ currentRuntimeValue: unknown;
10
+ fieldSchema: SequenceFieldSchema;
11
+ };
12
+ export declare const SCHEMA_FIELD_ROW_HEIGHT = 22;
13
+ export declare const UNSUPPORTED_FIELD_ROW_HEIGHT = 22;
14
+ export declare const getFieldsToShow: ({ dragOverrides, codeValues, overrideId, schema, currentRuntimeValueDotNotation, }: {
15
+ schema: SequenceSchema;
16
+ currentRuntimeValueDotNotation: Record<string, unknown>;
17
+ dragOverrides: DragOverrides;
18
+ codeValues: CodeValues;
19
+ overrideId: string;
20
+ }) => SchemaFieldInfo[] | null;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFieldsToShow = exports.UNSUPPORTED_FIELD_ROW_HEIGHT = exports.SCHEMA_FIELD_ROW_HEIGHT = void 0;
4
+ const remotion_1 = require("remotion");
5
+ exports.SCHEMA_FIELD_ROW_HEIGHT = 22;
6
+ exports.UNSUPPORTED_FIELD_ROW_HEIGHT = 22;
7
+ const SUPPORTED_SCHEMA_TYPES = new Set([
8
+ 'number',
9
+ 'boolean',
10
+ 'rotation',
11
+ 'translate',
12
+ 'enum',
13
+ ]);
14
+ const getFieldsToShow = ({ dragOverrides, codeValues, overrideId, schema, currentRuntimeValueDotNotation, }) => {
15
+ var _a;
16
+ const valuesDotNotation = remotion_1.Internals.computeEffectiveSchemaValuesDotNotation({
17
+ schema,
18
+ currentValue: currentRuntimeValueDotNotation,
19
+ overrideValues: (_a = dragOverrides[overrideId]) !== null && _a !== void 0 ? _a : {},
20
+ propStatus: codeValues[overrideId],
21
+ });
22
+ const activeSchema = remotion_1.Internals.flattenActiveSchema(schema, (key) => valuesDotNotation[key]);
23
+ return Object.entries(activeSchema).map(([key, fieldSchema]) => {
24
+ const typeName = fieldSchema.type;
25
+ const supported = SUPPORTED_SCHEMA_TYPES.has(typeName);
26
+ return {
27
+ key,
28
+ description: fieldSchema.description,
29
+ typeName,
30
+ supported,
31
+ rowHeight: supported
32
+ ? exports.SCHEMA_FIELD_ROW_HEIGHT
33
+ : exports.UNSUPPORTED_FIELD_ROW_HEIGHT,
34
+ currentRuntimeValue: currentRuntimeValueDotNotation[key],
35
+ fieldSchema,
36
+ };
37
+ });
38
+ };
39
+ exports.getFieldsToShow = getFieldsToShow;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio-shared"
4
4
  },
5
5
  "name": "@remotion/studio-shared",
6
- "version": "4.0.456",
6
+ "version": "4.0.458",
7
7
  "description": "Internal package for shared objects between the Studio backend and frontend",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -20,11 +20,11 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "remotion": "4.0.456"
23
+ "remotion": "4.0.458"
24
24
  },
25
25
  "devDependencies": {
26
- "@remotion/renderer": "4.0.456",
27
- "@remotion/eslint-config-internal": "4.0.456",
26
+ "@remotion/renderer": "4.0.458",
27
+ "@remotion/eslint-config-internal": "4.0.458",
28
28
  "eslint": "9.19.0",
29
29
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
30
30
  },