@remotion/studio-shared 4.0.462 → 4.0.463

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.
@@ -30,6 +30,11 @@ const getFieldsToShow = ({ getDragOverrides, codeValues, nodePath, schema, curre
30
30
  if (typeName === 'hidden') {
31
31
  return null;
32
32
  }
33
+ // `hidden` is represented as the eye/speaker icon on the timeline track,
34
+ // so we don't render it as a regular field in the expanded section.
35
+ if (key === 'hidden') {
36
+ return null;
37
+ }
33
38
  return {
34
39
  kind: 'sequence-field',
35
40
  key,
@@ -43,16 +48,17 @@ const getFieldsToShow = ({ getDragOverrides, codeValues, nodePath, schema, curre
43
48
  };
44
49
  exports.getFieldsToShow = getFieldsToShow;
45
50
  const getEffectFieldsToShow = (effect, effectIndex) => {
46
- const effectSchema = effect.schema;
47
- if (!effectSchema) {
48
- return [];
49
- }
50
- return Object.entries(effectSchema)
51
+ return Object.entries(effect.schema)
51
52
  .map(([key, fieldSchema]) => {
52
53
  const typeName = fieldSchema.type;
53
54
  if (typeName === 'hidden') {
54
55
  return null;
55
56
  }
57
+ // `disabled` is represented as the eye icon on the effect timeline row,
58
+ // so we don't render it as a regular field in the expanded section.
59
+ if (key === 'disabled') {
60
+ return null;
61
+ }
56
62
  if (SUPPORTED_SCHEMA_TYPES.indexOf(typeName) === -1) {
57
63
  throw new Error(`Unsupported field type: ${typeName}`);
58
64
  }
@@ -63,7 +69,7 @@ const getEffectFieldsToShow = (effect, effectIndex) => {
63
69
  typeName,
64
70
  rowHeight: exports.SCHEMA_FIELD_ROW_HEIGHT,
65
71
  fieldSchema,
66
- effectSchema,
72
+ effectSchema: effect.schema,
67
73
  effectIndex,
68
74
  };
69
75
  })
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.462",
6
+ "version": "4.0.463",
7
7
  "description": "Internal package for shared objects between the Studio backend and frontend",
8
8
  "main": "dist",
9
9
  "scripts": {
@@ -20,11 +20,11 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "remotion": "4.0.462"
23
+ "remotion": "4.0.463"
24
24
  },
25
25
  "devDependencies": {
26
- "@remotion/renderer": "4.0.462",
27
- "@remotion/eslint-config-internal": "4.0.462",
26
+ "@remotion/renderer": "4.0.463",
27
+ "@remotion/eslint-config-internal": "4.0.463",
28
28
  "eslint": "9.19.0",
29
29
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
30
30
  },
@@ -1,6 +0,0 @@
1
- import type { SequenceSchema } from 'remotion';
2
- export declare const findPropsToDelete: ({ schema, key, value, }: {
3
- schema: SequenceSchema;
4
- key: string;
5
- value: unknown;
6
- }) => string[];
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findPropsToDelete = void 0;
4
- const findPropsToDelete = ({ schema, key, value, }) => {
5
- const fieldSchema = schema[key];
6
- if (!fieldSchema) {
7
- // could be a non-top-level key, we don't support it for now
8
- return [];
9
- }
10
- if (typeof value !== 'string') {
11
- throw new Error('Value must be a string, but is ' + JSON.stringify(value));
12
- }
13
- if (fieldSchema.type !== 'enum') {
14
- throw new Error('Key ' + JSON.stringify(key) + ' is not an enum');
15
- }
16
- const currentVariant = fieldSchema.variants[value];
17
- if (!currentVariant) {
18
- throw new Error('Value for ' +
19
- JSON.stringify(key) +
20
- ' must be one of ' +
21
- Object.keys(fieldSchema.variants)
22
- .map((v) => JSON.stringify(v))
23
- .join(', ') +
24
- ', got ' +
25
- JSON.stringify(value));
26
- }
27
- const otherVariants = Object.keys(fieldSchema.variants).filter((v) => v !== value);
28
- const otherKeys = new Set();
29
- for (const variant of otherVariants) {
30
- const otherVariant = fieldSchema.variants[variant];
31
- const keys = Object.keys(otherVariant);
32
- for (const k of keys) {
33
- otherKeys.add(k);
34
- }
35
- }
36
- return [...otherKeys];
37
- };
38
- exports.findPropsToDelete = findPropsToDelete;
@@ -1 +0,0 @@
1
- export declare const SOURCE_MAP_ENDPOINT = "/source-map-helper.wasm";
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SOURCE_MAP_ENDPOINT = void 0;
4
- exports.SOURCE_MAP_ENDPOINT = '/source-map-helper.wasm';