@remotion/studio 4.0.455 → 4.0.456

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.
@@ -209,7 +209,7 @@ var renderContent = (Root) => {
209
209
  renderToDOM(/* @__PURE__ */ jsx("div", {
210
210
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
211
211
  }));
212
- import("./chunk-t00j0160.js").then(({ StudioInternals }) => {
212
+ import("./chunk-0y1jhm8s.js").then(({ StudioInternals }) => {
213
213
  window.remotion_isStudio = true;
214
214
  window.remotion_isReadOnlyStudio = true;
215
215
  window.remotion_inputProps = "{}";
@@ -14,4 +14,9 @@ export declare const splitParentIntoNameAndParent: (name: string | null) => {
14
14
  name: string | null;
15
15
  parent: string | null;
16
16
  };
17
+ /**
18
+ * Returns storage keys for the composition folder and each ancestor, so the
19
+ * tree can be expanded when navigating to a nested composition.
20
+ */
21
+ export declare const getKeysToExpand: (initialFolderName: string, parentFolderName: string | null, initial?: string[]) => string[];
17
22
  export declare const createFolderTree: (comps: import("remotion").AnyComposition[], folders: TFolder[], foldersExpanded: Record<string, boolean>) => CompositionSelectorItemType[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFolderTree = exports.splitParentIntoNameAndParent = exports.buildAssetFolderStructure = void 0;
3
+ exports.createFolderTree = exports.getKeysToExpand = exports.splitParentIntoNameAndParent = exports.buildAssetFolderStructure = void 0;
4
4
  const persist_open_folders_1 = require("./persist-open-folders");
5
5
  const buildAssetFolderStructure = (files, parentFolderName, foldersExpanded) => {
6
6
  const notInFolder = files.filter((f) => !f.name.includes('/'));
@@ -52,6 +52,22 @@ const splitParentIntoNameAndParent = (name) => {
52
52
  };
53
53
  };
54
54
  exports.splitParentIntoNameAndParent = splitParentIntoNameAndParent;
55
+ /**
56
+ * Returns storage keys for the composition folder and each ancestor, so the
57
+ * tree can be expanded when navigating to a nested composition.
58
+ */
59
+ const getKeysToExpand = (initialFolderName, parentFolderName, initial = []) => {
60
+ initial.push((0, persist_open_folders_1.openFolderKey)({
61
+ folderName: initialFolderName,
62
+ parentName: parentFolderName,
63
+ }));
64
+ const { name, parent } = (0, exports.splitParentIntoNameAndParent)(parentFolderName);
65
+ if (!name) {
66
+ return initial;
67
+ }
68
+ return (0, exports.getKeysToExpand)(name, parent, initial);
69
+ };
70
+ exports.getKeysToExpand = getKeysToExpand;
55
71
  const doesFolderExist = (items, folderName, parentName) => {
56
72
  for (const item of items) {
57
73
  if (item.type === 'folder') {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.455",
6
+ "version": "4.0.456",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "semver": "7.5.3",
29
- "remotion": "4.0.455",
30
- "@remotion/player": "4.0.455",
31
- "@remotion/media-utils": "4.0.455",
32
- "@remotion/renderer": "4.0.455",
33
- "@remotion/web-renderer": "4.0.455",
34
- "@remotion/studio-shared": "4.0.455",
35
- "@remotion/zod-types": "4.0.455",
29
+ "remotion": "4.0.456",
30
+ "@remotion/player": "4.0.456",
31
+ "@remotion/media-utils": "4.0.456",
32
+ "@remotion/renderer": "4.0.456",
33
+ "@remotion/web-renderer": "4.0.456",
34
+ "@remotion/studio-shared": "4.0.456",
35
+ "@remotion/zod-types": "4.0.456",
36
36
  "mediabunny": "1.42.0",
37
37
  "memfs": "3.4.3",
38
38
  "source-map": "0.7.3",
@@ -43,7 +43,7 @@
43
43
  "react": "19.2.3",
44
44
  "react-dom": "19.2.3",
45
45
  "@types/semver": "^7.3.4",
46
- "@remotion/eslint-config-internal": "4.0.455",
46
+ "@remotion/eslint-config-internal": "4.0.456",
47
47
  "eslint": "9.19.0",
48
48
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
49
49
  },