@remotion/cli 3.0.0 → 3.0.1

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 (161) hide show
  1. package/.prettierrc.js +14 -0
  2. package/dist/compositions.js +2 -2
  3. package/dist/compositions.js.map +1 -1
  4. package/dist/editor/components/AudioWaveform.d.ts.map +1 -1
  5. package/dist/editor/components/AudioWaveform.js +19 -1
  6. package/dist/editor/components/AudioWaveform.js.map +1 -1
  7. package/dist/editor/components/CompositionSelector.d.ts +1 -0
  8. package/dist/editor/components/CompositionSelector.d.ts.map +1 -1
  9. package/dist/editor/components/CompositionSelector.js +45 -4
  10. package/dist/editor/components/CompositionSelector.js.map +1 -1
  11. package/dist/editor/components/CompositionSelectorItem.d.ts +15 -1
  12. package/dist/editor/components/CompositionSelectorItem.d.ts.map +1 -1
  13. package/dist/editor/components/CompositionSelectorItem.js +30 -9
  14. package/dist/editor/components/CompositionSelectorItem.js.map +1 -1
  15. package/dist/editor/components/MenuToolbar.js.map +1 -1
  16. package/dist/editor/components/MuteToggle.js +1 -1
  17. package/dist/editor/components/MuteToggle.js.map +1 -1
  18. package/dist/editor/components/NewComposition/MenuContent.d.ts.map +1 -1
  19. package/dist/editor/components/NewComposition/MenuContent.js.map +1 -1
  20. package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +1 -1
  21. package/dist/editor/components/NewComposition/NewCompDuration.js.map +1 -1
  22. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +1 -1
  23. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +2 -3
  24. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +1 -1
  25. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +1 -1
  26. package/dist/editor/components/Timeline/TimelineInOutPointer.js +1 -1
  27. package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +1 -1
  28. package/dist/editor/components/TimelineInOutToggle.d.ts.map +1 -1
  29. package/dist/editor/components/TimelineInOutToggle.js +2 -2
  30. package/dist/editor/components/TimelineInOutToggle.js.map +1 -1
  31. package/dist/editor/helpers/create-folder-tree.d.ts +9 -0
  32. package/dist/editor/helpers/create-folder-tree.d.ts.map +1 -0
  33. package/dist/editor/helpers/create-folder-tree.js +102 -0
  34. package/dist/editor/helpers/create-folder-tree.js.map +1 -0
  35. package/dist/editor/helpers/persist-open-folders.d.ts +5 -0
  36. package/dist/editor/helpers/persist-open-folders.d.ts.map +1 -0
  37. package/dist/editor/helpers/persist-open-folders.js +21 -0
  38. package/dist/editor/helpers/persist-open-folders.js.map +1 -0
  39. package/dist/editor/helpers/use-keybinding.js +1 -4
  40. package/dist/editor/helpers/use-keybinding.js.map +1 -1
  41. package/dist/editor/icons/folder.d.ts +4 -0
  42. package/dist/editor/icons/folder.d.ts.map +1 -0
  43. package/dist/editor/icons/folder.js +13 -0
  44. package/dist/editor/icons/folder.js.map +1 -0
  45. package/dist/get-cli-options.d.ts.map +1 -1
  46. package/dist/index.js +2 -2
  47. package/dist/index.js.map +1 -1
  48. package/dist/load-config.js +1 -1
  49. package/dist/previewEntry.d.ts.map +1 -1
  50. package/dist/previewEntry.js.map +1 -1
  51. package/dist/resolve-from.js +1 -1
  52. package/dist/resolve-from.js.map +1 -1
  53. package/package.json +9 -9
  54. package/remotion-cli.js +1 -2
  55. package/.turbo/turbo-build.log +0 -5
  56. package/.turbo/turbo-lint.log +0 -15
  57. package/.turbo/turbo-test.log +0 -15
  58. package/dist/cycle-browser-tabs.d.ts +0 -7
  59. package/dist/cycle-browser-tabs.d.ts.map +0 -1
  60. package/dist/cycle-browser-tabs.js +0 -24
  61. package/dist/cycle-browser-tabs.js.map +0 -1
  62. package/dist/delete-directory.d.ts +0 -2
  63. package/dist/delete-directory.d.ts.map +0 -1
  64. package/dist/delete-directory.js +0 -15
  65. package/dist/delete-directory.js.map +0 -1
  66. package/dist/editor/components/ErrorOverlay.d.ts +0 -9
  67. package/dist/editor/components/ErrorOverlay.d.ts.map +0 -1
  68. package/dist/editor/components/ErrorOverlay.js +0 -22
  69. package/dist/editor/components/ErrorOverlay.js.map +0 -1
  70. package/dist/editor/components/Errors/ErrorDisplay.d.ts +0 -12
  71. package/dist/editor/components/Errors/ErrorDisplay.d.ts.map +0 -1
  72. package/dist/editor/components/Errors/ErrorDisplay.js +0 -43
  73. package/dist/editor/components/Errors/ErrorDisplay.js.map +0 -1
  74. package/dist/editor/components/Errors/ErrorOverlay.d.ts +0 -9
  75. package/dist/editor/components/Errors/ErrorOverlay.d.ts.map +0 -1
  76. package/dist/editor/components/Errors/ErrorOverlay.js +0 -22
  77. package/dist/editor/components/Errors/ErrorOverlay.js.map +0 -1
  78. package/dist/editor/components/Errors/stack-frame.d.ts +0 -46
  79. package/dist/editor/components/Errors/stack-frame.d.ts.map +0 -1
  80. package/dist/editor/components/Errors/stack-frame.js +0 -82
  81. package/dist/editor/components/Errors/stack-frame.js.map +0 -1
  82. package/dist/editor/components/FramePersister.d.ts +0 -4
  83. package/dist/editor/components/FramePersister.d.ts.map +0 -1
  84. package/dist/editor/components/FramePersister.js +0 -28
  85. package/dist/editor/components/FramePersister.js.map +0 -1
  86. package/dist/editor/components/MediaVolumeSlider.d.ts +0 -3
  87. package/dist/editor/components/MediaVolumeSlider.d.ts.map +0 -1
  88. package/dist/editor/components/MediaVolumeSlider.js +0 -113
  89. package/dist/editor/components/MediaVolumeSlider.js.map +0 -1
  90. package/dist/editor/components/Menu/Checkmark.d.ts +0 -2
  91. package/dist/editor/components/Menu/Checkmark.d.ts.map +0 -1
  92. package/dist/editor/components/Menu/Checkmark.js +0 -11
  93. package/dist/editor/components/Menu/Checkmark.js.map +0 -1
  94. package/dist/editor/components/Menu/is-menu-click.d.ts +0 -1
  95. package/dist/editor/components/Menu/is-menu-click.d.ts.map +0 -1
  96. package/dist/editor/components/Menu/is-menu-click.js +0 -2
  97. package/dist/editor/components/Menu/is-menu-click.js.map +0 -1
  98. package/dist/editor/components/NewComposition/CompositionType.d.ts +0 -7
  99. package/dist/editor/components/NewComposition/CompositionType.d.ts.map +0 -1
  100. package/dist/editor/components/NewComposition/CompositionType.js +0 -57
  101. package/dist/editor/components/NewComposition/CompositionType.js.map +0 -1
  102. package/dist/editor/components/NewComposition/LazyLoadNewComposition.d.ts +0 -6
  103. package/dist/editor/components/NewComposition/LazyLoadNewComposition.d.ts.map +0 -1
  104. package/dist/editor/components/NewComposition/LazyLoadNewComposition.js +0 -32
  105. package/dist/editor/components/NewComposition/LazyLoadNewComposition.js.map +0 -1
  106. package/dist/editor/components/NewComposition/NewCompHeader.d.ts +0 -3
  107. package/dist/editor/components/NewComposition/NewCompHeader.d.ts.map +0 -1
  108. package/dist/editor/components/NewComposition/NewCompHeader.js +0 -29
  109. package/dist/editor/components/NewComposition/NewCompHeader.js.map +0 -1
  110. package/dist/editor/components/NewComposition.d.ts +0 -3
  111. package/dist/editor/components/NewComposition.d.ts.map +0 -1
  112. package/dist/editor/components/NewComposition.js +0 -47
  113. package/dist/editor/components/NewComposition.js.map +0 -1
  114. package/dist/editor/components/NewSequence.d.ts +0 -3
  115. package/dist/editor/components/NewSequence.d.ts.map +0 -1
  116. package/dist/editor/components/NewSequence.js +0 -47
  117. package/dist/editor/components/NewSequence.js.map +0 -1
  118. package/dist/editor/components/Spacing.d.ts +0 -7
  119. package/dist/editor/components/Spacing.d.ts.map +0 -1
  120. package/dist/editor/components/Spacing.js +0 -18
  121. package/dist/editor/components/Spacing.js.map +0 -1
  122. package/dist/editor/components/Timeline/LoopIndicator.d.ts +0 -5
  123. package/dist/editor/components/Timeline/LoopIndicator.d.ts.map +0 -1
  124. package/dist/editor/components/Timeline/LoopIndicator.js +0 -37
  125. package/dist/editor/components/Timeline/LoopIndicator.js.map +0 -1
  126. package/dist/editor/helpers/font.d.ts +0 -2
  127. package/dist/editor/helpers/font.d.ts.map +0 -1
  128. package/dist/editor/helpers/font.js +0 -5
  129. package/dist/editor/helpers/font.js.map +0 -1
  130. package/dist/editor/helpers/isCompositionStill.d.ts +0 -1
  131. package/dist/editor/helpers/isCompositionStill.d.ts.map +0 -1
  132. package/dist/editor/helpers/isCompositionStill.js +0 -2
  133. package/dist/editor/helpers/isCompositionStill.js.map +0 -1
  134. package/dist/editor/helpers/validate-composition-name.d.ts +0 -3
  135. package/dist/editor/helpers/validate-composition-name.d.ts.map +0 -1
  136. package/dist/editor/helpers/validate-composition-name.js +0 -15
  137. package/dist/editor/helpers/validate-composition-name.js.map +0 -1
  138. package/dist/editor/hooks/get-el-size.d.ts +0 -8
  139. package/dist/editor/hooks/get-el-size.d.ts.map +0 -1
  140. package/dist/editor/hooks/get-el-size.js +0 -43
  141. package/dist/editor/hooks/get-el-size.js.map +0 -1
  142. package/dist/editor/icons/fast-back.d.ts +0 -3
  143. package/dist/editor/icons/fast-back.d.ts.map +0 -1
  144. package/dist/editor/icons/fast-back.js +0 -9
  145. package/dist/editor/icons/fast-back.js.map +0 -1
  146. package/dist/editor/icons/fast-forward.d.ts +0 -3
  147. package/dist/editor/icons/fast-forward.d.ts.map +0 -1
  148. package/dist/editor/icons/fast-forward.js +0 -9
  149. package/dist/editor/icons/fast-forward.js.map +0 -1
  150. package/dist/editor/state/global-menu-id.d.ts +0 -4
  151. package/dist/editor/state/global-menu-id.d.ts.map +0 -1
  152. package/dist/editor/state/global-menu-id.js +0 -11
  153. package/dist/editor/state/global-menu-id.js.map +0 -1
  154. package/dist/editor/state/menu-selection.d.ts +0 -8
  155. package/dist/editor/state/menu-selection.d.ts.map +0 -1
  156. package/dist/editor/state/menu-selection.js +0 -14
  157. package/dist/editor/state/menu-selection.js.map +0 -1
  158. package/dist/listCompositions.d.ts +0 -2
  159. package/dist/listCompositions.d.ts.map +0 -1
  160. package/dist/listCompositions.js +0 -46
  161. package/dist/listCompositions.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ import { TComposition, TFolder } from 'remotion';
2
+ import { CompositionSelectorItemType } from '../components/CompositionSelectorItem';
3
+ export declare const splitParentIntoNameAndParent: (name: string | null) => {
4
+ name: string | null;
5
+ parent: string | null;
6
+ };
7
+ export declare const findItemListToPush: (items: CompositionSelectorItemType[], folderName: string | null, parentName: string | null) => CompositionSelectorItemType[];
8
+ export declare const createFolderTree: (comps: TComposition<unknown>[], folders: TFolder[], foldersExpanded: Record<string, boolean>) => CompositionSelectorItemType[];
9
+ //# sourceMappingURL=create-folder-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-folder-tree.d.ts","sourceRoot":"","sources":["../../../src/editor/helpers/create-folder-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,OAAO,EAAC,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAGlF,eAAO,MAAM,4BAA4B,SAClC,MAAM,GAAG,IAAI;UACV,MAAM,GAAG,IAAI;YAAU,MAAM,GAAG,IAAI;CAkB7C,CAAC;AAuBF,eAAO,MAAM,kBAAkB,UACvB,2BAA2B,EAAE,cACxB,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,KACvB,2BAA2B,EAY7B,CAAC;AA8CF,eAAO,MAAM,gBAAgB,UACrB,aAAa,OAAO,CAAC,EAAE,WACrB,OAAO,EAAE,mBACD,OAAO,MAAM,EAAE,OAAO,CAAC,KACtC,2BAA2B,EAsC7B,CAAC"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFolderTree = exports.findItemListToPush = exports.splitParentIntoNameAndParent = void 0;
4
+ const persist_open_folders_1 = require("./persist-open-folders");
5
+ const splitParentIntoNameAndParent = (name) => {
6
+ if (name === null) {
7
+ return {
8
+ name: null,
9
+ parent: null,
10
+ };
11
+ }
12
+ const splitted = name.split('/');
13
+ const lastName = splitted[splitted.length - 1];
14
+ const parentParentArray = splitted.slice(0, splitted.length - 1);
15
+ const parentParent = parentParentArray.length === 0 ? null : parentParentArray.join('/');
16
+ return {
17
+ name: lastName,
18
+ parent: parentParent,
19
+ };
20
+ };
21
+ exports.splitParentIntoNameAndParent = splitParentIntoNameAndParent;
22
+ const doesFolderExist = (items, folderName, parentName) => {
23
+ for (const item of items) {
24
+ if (item.type === 'folder') {
25
+ if (item.folderName === folderName && item.parentName === parentName) {
26
+ return item.items;
27
+ }
28
+ const found = doesFolderExist(item.items, folderName, parentName);
29
+ if (found !== false) {
30
+ return found;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ };
36
+ const findItemListToPush = (items, folderName, parentName) => {
37
+ if (folderName === null) {
38
+ return items;
39
+ }
40
+ const folder = doesFolderExist(items, folderName, parentName);
41
+ if (!folder) {
42
+ console.log({ items, folderName, parentName });
43
+ throw new Error('did not find folder ' + folderName);
44
+ }
45
+ return folder;
46
+ };
47
+ exports.findItemListToPush = findItemListToPush;
48
+ const createFolderIfDoesNotExist = (items, availableFolders, folderItem, foldersExpanded) => {
49
+ var _a;
50
+ if (doesFolderExist(items, folderItem.name, folderItem.parent)) {
51
+ return;
52
+ }
53
+ const splitted = (0, exports.splitParentIntoNameAndParent)(folderItem.parent);
54
+ if (folderItem.parent) {
55
+ const parent = availableFolders.find((f) => f.name === splitted.name && f.parent === splitted.parent);
56
+ if (!parent) {
57
+ throw new Error('unexpectedly did not have parent');
58
+ }
59
+ createFolderIfDoesNotExist(items, availableFolders, parent, foldersExpanded);
60
+ }
61
+ const itemList = (0, exports.findItemListToPush)(items, splitted.name, splitted.parent);
62
+ if (!itemList) {
63
+ throw new Error('why did folder not exist? ' + folderItem.name);
64
+ }
65
+ itemList.push({
66
+ type: 'folder',
67
+ folderName: folderItem.name,
68
+ items: [],
69
+ key: folderItem.name,
70
+ expanded: (_a = foldersExpanded[(0, persist_open_folders_1.openFolderKey)(folderItem.name, folderItem.parent)]) !== null && _a !== void 0 ? _a : false,
71
+ parentName: folderItem.parent,
72
+ });
73
+ };
74
+ const createFolderTree = (comps, folders, foldersExpanded) => {
75
+ const items = [];
76
+ const uniqueFolderKeys = [];
77
+ for (const folder of folders) {
78
+ const folderKey = (0, persist_open_folders_1.openFolderKey)(folder.name, folder.parent);
79
+ if (uniqueFolderKeys.includes(folderKey)) {
80
+ if (folder.parent) {
81
+ throw new Error(`Multiple folders with the name ${folder.name} inside the folder ${folder.parent} exist. Folder names must be unique.`);
82
+ }
83
+ throw new Error('Multiple folders with the name ' +
84
+ folder.name +
85
+ ' exist. Folder names must be unique.');
86
+ }
87
+ uniqueFolderKeys.push(folderKey);
88
+ createFolderIfDoesNotExist(items, folders, folder, foldersExpanded);
89
+ }
90
+ for (const item of comps) {
91
+ const toPush = {
92
+ type: 'composition',
93
+ composition: item,
94
+ key: item.id,
95
+ };
96
+ const list = (0, exports.findItemListToPush)(items, item.folderName, item.parentFolderName);
97
+ list.push(toPush);
98
+ }
99
+ return items;
100
+ };
101
+ exports.createFolderTree = createFolderTree;
102
+ //# sourceMappingURL=create-folder-tree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-folder-tree.js","sourceRoot":"","sources":["../../../src/editor/helpers/create-folder-tree.ts"],"names":[],"mappings":";;;AAEA,iEAAqD;AAE9C,MAAM,4BAA4B,GAAG,CAC3C,IAAmB,EAC4B,EAAE;IACjD,IAAI,IAAI,KAAK,IAAI,EAAE;QAClB,OAAO;YACN,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACZ,CAAC;KACF;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/C,MAAM,iBAAiB,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjE,MAAM,YAAY,GACjB,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,GA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AAM,gBAAgB,GAAa,EAAE,CAAC;IACtC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC7B,MAAM,SAAS,GAAG,IAAA,oCAAa,EAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,gBAAgB,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YACzC,IAAI,MAAM,CAAC,MAAM,EAAE;gBAClB,MAAM,IAAI,KAAK,CACd,kCAAkC,MAAM,CAAC,IAAI,sBAAsB,MAAM,CAAC,MAAM,sCAAsC,CACtH,CAAC;aACF;YAED,MAAM,IAAI,KAAK,CACd,iCAAiC;gBAChC,MAAM,CAAC,IAAI;gBACX,sCAAsC,CACvC,CAAC;SACF;QAED,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,0BAA0B,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;KACpE;IAED,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACzB,MAAM,MAAM,GAAgC;YAC3C,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,IAAI;YACjB,GAAG,EAAE,IAAI,CAAC,EAAE;SACZ,CAAC;QACF,MAAM,IAAI,GAAG,IAAA,0BAAkB,EAC9B,KAAK,EACL,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,gBAAgB,CACrB,CAAC;QACF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAClB;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AA1CW,QAAA,gBAAgB,oBA0C3B"}
@@ -0,0 +1,5 @@
1
+ export declare const openFolderKey: (folderName: string, parentName: string | null) => string;
2
+ export declare type ExpandedFoldersState = Record<string, boolean>;
3
+ export declare const persistExpandedFolders: (state: ExpandedFoldersState) => void;
4
+ export declare const loadExpandedFolders: () => ExpandedFoldersState;
5
+ //# sourceMappingURL=persist-open-folders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persist-open-folders.d.ts","sourceRoot":"","sources":["../../../src/editor/helpers/persist-open-folders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,eACb,MAAM,cACN,MAAM,GAAG,IAAI,WAGzB,CAAC;AAEF,oBAAY,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAI3D,eAAO,MAAM,sBAAsB,UAAW,oBAAoB,SAEjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,oBAOtC,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadExpandedFolders = exports.persistExpandedFolders = exports.openFolderKey = void 0;
4
+ const openFolderKey = (folderName, parentName) => {
5
+ return [parentName !== null && parentName !== void 0 ? parentName : 'no-parent', folderName].join('/');
6
+ };
7
+ exports.openFolderKey = openFolderKey;
8
+ const localStorageKey = 'remotion.expandedFolders';
9
+ const persistExpandedFolders = (state) => {
10
+ window.localStorage.setItem(localStorageKey, JSON.stringify(state));
11
+ };
12
+ exports.persistExpandedFolders = persistExpandedFolders;
13
+ const loadExpandedFolders = () => {
14
+ const item = window.localStorage.getItem(localStorageKey);
15
+ if (item === null) {
16
+ return {};
17
+ }
18
+ return JSON.parse(item);
19
+ };
20
+ exports.loadExpandedFolders = loadExpandedFolders;
21
+ //# sourceMappingURL=persist-open-folders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persist-open-folders.js","sourceRoot":"","sources":["../../../src/editor/helpers/persist-open-folders.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAC5B,UAAkB,EAClB,UAAyB,EACxB,EAAE;IACH,OAAO,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,WAAW,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB;AAIF,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAE5C,MAAM,sBAAsB,GAAG,CAAC,KAA2B,EAAE,EAAE;IACrE,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACrE,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEK,MAAM,mBAAmB,GAAG,GAAyB,EAAE;IAC7D,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1D,IAAI,IAAI,KAAK,IAAI,EAAE;QAClB,OAAO,EAAE,CAAC;KACV;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC,CAAC;AAPW,QAAA,mBAAmB,uBAO9B"}
@@ -36,10 +36,7 @@ const useKeybinding = () => {
36
36
  context.unregisterPane(paneId);
37
37
  };
38
38
  }, [context, paneId]);
39
- return (0, react_1.useMemo)(() => ({ registerKeybinding, isHighestContext }), [
40
- registerKeybinding,
41
- isHighestContext,
42
- ]);
39
+ return (0, react_1.useMemo)(() => ({ registerKeybinding, isHighestContext }), [registerKeybinding, isHighestContext]);
43
40
  };
44
41
  exports.useKeybinding = useKeybinding;
45
42
  //# sourceMappingURL=use-keybinding.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-keybinding.js","sourceRoot":"","sources":["../../../src/editor/helpers/use-keybinding.ts"],"names":[],"mappings":";;;AAAA,iCAA4E;AAC5E,sDAI8B;AAC9B,8CAA2C;AAEpC,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,+BAAiB,CAAC,CAAC;IAC9C,MAAM,EAAC,gBAAgB,EAAC,GAAG,IAAA,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AAE;YACX,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAChC,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAEtB,OAAO,IAAA,eAAO,EACb,GAAG,EAAE,CAAC,CAAC,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,CAAC,EAC9C,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CACtC,CAAC;AACH,CAAC,CAAC;AAjDW,QAAA,aAAa,iBAiDxB"}
@@ -0,0 +1,4 @@
1
+ import React, { SVGProps } from 'react';
2
+ export declare const CollapsedFolderIcon: React.FC<SVGProps<SVGSVGElement>>;
3
+ export declare const ExpandedFolderIcon: React.FC<SVGProps<SVGSVGElement>>;
4
+ //# sourceMappingURL=folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/folder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAWjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAWhE,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExpandedFolderIcon = exports.CollapsedFolderIcon = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const CollapsedFolderIcon = (props) => {
6
+ return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z" }, void 0) }, void 0));
7
+ };
8
+ exports.CollapsedFolderIcon = CollapsedFolderIcon;
9
+ const ExpandedFolderIcon = (props) => {
10
+ return ((0, jsx_runtime_1.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z" }, void 0) }, void 0));
11
+ };
12
+ exports.ExpandedFolderIcon = ExpandedFolderIcon;
13
+ //# sourceMappingURL=folder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder.js","sourceRoot":"","sources":["../../../src/editor/icons/folder.tsx"],"names":[],"mappings":";;;;AAEO,MAAM,mBAAmB,GAAsC,CACrE,KAAK,EACJ,EAAE;IACH,OAAO,CACN,gCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,KAAK,KAAK,YACtE,iCACC,IAAI,EAAC,OAAO,EACZ,CAAC,EAAC,iIAAiI,WAClI,WACG,CACN,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,mBAAmB,uBAW9B;AAEK,MAAM,kBAAkB,GAAsC,CACpE,KAAK,EACJ,EAAE;IACH,OAAO,CACN,mCAAS,KAAK,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,YACvE,iCACC,IAAI,EAAC,OAAO,EACZ,CAAC,EAAC,oUAAoU,WACrU,WACG,CACN,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-cli-options.d.ts","sourceRoot":"","sources":["../src/get-cli-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAGpE,OAAO,EACN,iBAAiB,EAEjB,UAAU,EAGV,MAAM,UAAU,CAAC;AAiLlB,eAAO,MAAM,aAAa,YAAmB;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;EAkEA,CAAC"}
1
+ {"version":3,"file":"get-cli-options.d.ts","sourceRoot":"","sources":["../src/get-cli-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAkB,MAAM,oBAAoB,CAAC;AAGpE,OAAO,EACN,iBAAiB,EAEjB,UAAU,EAGV,MAAM,UAAU,CAAC;AAiLlB,eAAO,MAAM,aAAa,YAAmB;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;EAkEA,CAAC"}
package/dist/index.js CHANGED
@@ -16,15 +16,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CliInternals = exports.cli = void 0;
17
17
  const chalk_1 = __importDefault(require("chalk"));
18
18
  const check_version_1 = require("./check-version");
19
- const handle_common_errors_1 = require("./handle-common-errors");
19
+ const compositions_1 = require("./compositions");
20
20
  const get_cli_options_1 = require("./get-cli-options");
21
21
  const get_config_file_name_1 = require("./get-config-file-name");
22
+ const handle_common_errors_1 = require("./handle-common-errors");
22
23
  const initialize_render_cli_1 = require("./initialize-render-cli");
23
24
  const lambda_command_1 = require("./lambda-command");
24
25
  const load_config_1 = require("./load-config");
25
26
  const log_1 = require("./log");
26
27
  const parse_command_line_1 = require("./parse-command-line");
27
- const compositions_1 = require("./compositions");
28
28
  const preview_1 = require("./preview");
29
29
  const print_help_1 = require("./print-help");
30
30
  const progress_bar_1 = require("./progress-bar");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":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C;YAC3C,IAAA,sBAAS,GAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAChB;KACD;IAAC,OAAO,GAAG,EAAE;QACb,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,MAAM,IAAA,wCAAiB,EAAC,GAAY,CAAC,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAChB;AACF,CAAC,CAAC;AA3CW,QAAA,GAAG,OA2Cd;AAEF,2CAAyB;AAEZ,QAAA,YAAY,GAAG;IAC3B,4BAA4B,EAA5B,2CAA4B;IAC5B,KAAK,EAAL,eAAK;IACL,eAAe,EAAf,8BAAe;IACf,GAAG,EAAH,SAAG;IACH,cAAc,EAAd,4BAAc;IACd,aAAa,EAAb,+BAAa;IACb,gBAAgB,EAAhB,qCAAgB;IAChB,UAAU,EAAV,iCAAU;IACV,mBAAmB,EAAnB,2CAAmB;IACnB,YAAY,EAAZ,iCAAY;IACZ,iBAAiB,EAAjB,sCAAiB;IACjB,SAAS,EAAT,8BAAS;IACT,iBAAiB,EAAjB,wCAAiB;CACjB,CAAC"}
@@ -19,7 +19,7 @@ const loadConfigFile = async (configFileName, isJavascript) => {
19
19
  const out = path_1.default.join(await fs_1.default.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'remotion-')), 'bundle.js');
20
20
  const result = await bundler_1.BundlerInternals.esbuild.build({
21
21
  platform: 'node',
22
- target: 'node12',
22
+ target: 'node14',
23
23
  bundle: true,
24
24
  entryPoints: [resolved],
25
25
  tsconfig: isJavascript ? undefined : tsconfigJson,
@@ -1 +1 @@
1
- {"version":3,"file":"previewEntry.d.ts","sourceRoot":"","sources":["../src/previewEntry.tsx"],"names":[],"mappings":"AAIA,OAAO,sBAAsB,CAAC"}
1
+ {"version":3,"file":"previewEntry.d.ts","sourceRoot":"","sources":["../src/previewEntry.tsx"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"previewEntry.js","sourceRoot":"","sources":["../src/previewEntry.tsx"],"names":[],"mappings":";;;;;;AAAA,8DAAwC;AAGxC,uCAAmC;AACnC,gCAA8B;AAC9B,uDAAkD;AAElD,oBAAS,CAAC,QAAQ,CAAC,SAAS,CAC3B,oBAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,CAClD,CAAC;AAEF,MAAM,OAAO,GAAG,CACf,uBAAC,oBAAS,CAAC,YAAY,cACtB,uBAAC,eAAM,aAAG,WACc,CACzB,CAAC;AAEF,IAAI,gBAAQ,CAAC,UAAU,EAAE;IACxB,gBAAQ,CAAC,UAAU,CAAC,oBAAS,CAAC,oBAAoB,EAAiB,CAAC,CAAC,MAAM,CAC1E,OAAO,CACP,CAAC;CACF;KAAM;IACL,gBAA+C,CAAC,MAAM,CACtD,uBAAC,oBAAS,CAAC,YAAY,cACtB,uBAAC,eAAM,aAAG,WACc,EACzB,oBAAS,CAAC,oBAAoB,EAAE,CAChC,CAAC;CACF"}
1
+ {"version":3,"file":"previewEntry.js","sourceRoot":"","sources":["../src/previewEntry.tsx"],"names":[],"mappings":";;;;;;AACA,8DAAwC;AACxC,uCAAmC;AACnC,gCAA8B;AAC9B,uDAAkD;AAElD,oBAAS,CAAC,QAAQ,CAAC,SAAS,CAC3B,oBAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,CAClD,CAAC;AAEF,MAAM,OAAO,GAAG,CACf,uBAAC,oBAAS,CAAC,YAAY,cACtB,uBAAC,eAAM,aAAG,WACc,CACzB,CAAC;AAEF,IAAI,gBAAQ,CAAC,UAAU,EAAE;IACxB,gBAAQ,CAAC,UAAU,CAAC,oBAAS,CAAC,oBAAoB,EAAiB,CAAC,CAAC,MAAM,CAC1E,OAAO,CACP,CAAC;CACF;KAAM;IACL,gBAA+C,CAAC,MAAM,CACtD,uBAAC,oBAAS,CAAC,YAAY,cACtB,uBAAC,eAAM,aAAG,WACc,EACzB,oBAAS,CAAC,oBAAoB,EAAE,CAChC,CAAC;CACF"}
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.resolveFrom = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
7
8
  const path_1 = __importDefault(require("path"));
8
9
  const Module = require("module");
9
- const fs_1 = __importDefault(require("fs"));
10
10
  const resolveFrom = (fromDirectory, moduleId) => {
11
11
  try {
12
12
  fromDirectory = fs_1.default.realpathSync(fromDirectory);
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-from.js","sourceRoot":"","sources":["../src/resolve-from.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,iCAAkC;AAClC,4CAAoB;AAEb,MAAM,WAAW,GAAG,CAC1B,aAAqB,EACrB,QAAgB,EACP,EAAE;IACX,IAAI;QACH,aAAa,GAAG,YAAE,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;KAC/C;IAAC,OAAO,KAAK,EAAE;QACf,IAAK,KAAwB,CAAC,IAAI,KAAK,QAAQ,EAAE;YAChD,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC5C;aAAM;YACN,MAAM,KAAK,CAAC;SACZ;KACD;IAED,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAErD,MAAM,eAAe,GAAG,GAAG,EAAE;IAC5B,mBAAmB;IACnB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE;QACjC,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,QAAQ;QAClB,mBAAmB;QACnB,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC;KAC7C,CAAC,CAAC;IAEJ,OAAO,eAAe,EAAE,CAAC;AAC1B,CAAC,CAAC;AA1BW,QAAA,WAAW,eA0BtB"}
1
+ {"version":3,"file":"resolve-from.js","sourceRoot":"","sources":["../src/resolve-from.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,iCAAkC;AAE3B,MAAM,WAAW,GAAG,CAC1B,aAAqB,EACrB,QAAgB,EACP,EAAE;IACX,IAAI;QACH,aAAa,GAAG,YAAE,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;KAC/C;IAAC,OAAO,KAAK,EAAE;QACf,IAAK,KAAwB,CAAC,IAAI,KAAK,QAAQ,EAAE;YAChD,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC5C;aAAM;YACN,MAAM,KAAK,CAAC;SACZ;KACD;IAED,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAErD,MAAM,eAAe,GAAG,GAAG,EAAE;IAC5B,mBAAmB;IACnB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE;QACjC,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,QAAQ;QAClB,mBAAmB;QACnB,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC;KAC7C,CAAC,CAAC;IAEJ,OAAO,eAAe,EAAE,CAAC;AAC1B,CAAC,CAAC;AA1BW,QAAA,WAAW,eA0BtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -23,18 +23,18 @@
23
23
  "author": "Jonny Burger <jonny@remotion.dev>",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
- "@remotion/bundler": "3.0.0",
27
- "@remotion/media-utils": "3.0.0",
28
- "@remotion/player": "3.0.0",
29
- "@remotion/renderer": "3.0.0",
26
+ "@remotion/bundler": "3.0.1",
27
+ "@remotion/media-utils": "3.0.1",
28
+ "@remotion/player": "3.0.1",
29
+ "@remotion/renderer": "3.0.1",
30
30
  "better-opn": "2.1.1",
31
31
  "chalk": "4.1.2",
32
32
  "dotenv": "9.0.2",
33
33
  "execa": "5.1.1",
34
34
  "minimist": "1.2.6",
35
- "remotion": "3.0.0",
35
+ "remotion": "3.0.1",
36
36
  "semver": "7.3.5",
37
- "webpack": "5.60.0"
37
+ "webpack": "5.72.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=16.8.0",
@@ -55,7 +55,7 @@
55
55
  "eslint-plugin-react-hooks": "4.4.0",
56
56
  "jest": "^27.2.4",
57
57
  "prettier": "^2.0.5",
58
- "prettier-plugin-organize-imports": "^1.1.1",
58
+ "prettier-plugin-organize-imports": "^2.3.4",
59
59
  "react": "^18.0.0",
60
60
  "react-dom": "^18.0.0",
61
61
  "ts-jest": "^27.0.5",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "f2185ad4b5d6e41a7cd4c87866599ca73307cc37"
75
+ "gitHead": "3d2cbaddccc5f81bd71dad203450e3dc05447ed6"
76
76
  }
package/remotion-cli.js CHANGED
@@ -1,9 +1,8 @@
1
- #! /usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  const dotenv = require('dotenv');
3
3
  dotenv.config();
4
4
  const {cli} = require('./dist/index');
5
5
 
6
-
7
6
  cli()
8
7
  .then(() => process.exit(0))
9
8
  .catch((err) => {
@@ -1,5 +0,0 @@
1
- @remotion/cli:build: cache hit, replaying output 38c5a5924f23dc16
2
- @remotion/cli:build: 
3
- @remotion/cli:build: > @remotion/cli@2.6.16 build /Users/jonathanburger/remotion/packages/cli
4
- @remotion/cli:build: > tsc -d
5
- @remotion/cli:build: 
@@ -1,15 +0,0 @@
1
- @remotion/cli:lint: cache hit, replaying output dab7100943d4b084
2
- @remotion/cli:lint: 
3
- @remotion/cli:lint: > @remotion/cli@2.6.15 lint /Users/jonathanburger/remotion/packages/cli
4
- @remotion/cli:lint: > eslint src --ext ts,tsx
5
- @remotion/cli:lint: 
6
- @remotion/cli:lint: 
7
- @remotion/cli:lint: /Users/jonathanburger/remotion/packages/cli/src/editor/components/MenuToolbar.tsx
8
- @remotion/cli:lint:  486:4 warning Empty components are self-closing react/self-closing-comp
9
- @remotion/cli:lint: 
10
- @remotion/cli:lint: /Users/jonathanburger/remotion/packages/cli/src/editor/components/Timeline/is-collapsed.ts
11
- @remotion/cli:lint:  22:3 warning Unexpected 'todo' comment: 'TODO: Tighten up, when toggling rich...' no-warning-comments
12
- @remotion/cli:lint: 
13
- @remotion/cli:lint: ✖ 2 problems (0 errors, 2 warnings)
14
- @remotion/cli:lint:  0 errors and 1 warning potentially fixable with the `--fix` option.
15
- @remotion/cli:lint: 
@@ -1,15 +0,0 @@
1
- @remotion/cli:test: cache hit, replaying output 3009984626421fa9
2
- @remotion/cli:test: 
3
- @remotion/cli:test: > @remotion/cli@2.6.15 test /Users/jonathanburger/remotion/packages/cli
4
- @remotion/cli:test: > jest
5
- @remotion/cli:test: 
6
- @remotion/cli:test: PASS src/test/timeline-sequence-layout.test.ts (7.756 s)
7
- @remotion/cli:test: PASS src/test/sequenced-timeline.test.ts (7.955 s)
8
- @remotion/cli:test: PASS src/test/timeline.test.ts (7.833 s)
9
- @remotion/cli:test: PASS src/test/big-timeline.test.ts (8.2 s)
10
- @remotion/cli:test: 
11
- @remotion/cli:test: Test Suites: 4 passed, 4 total
12
- @remotion/cli:test: Tests: 7 passed, 7 total
13
- @remotion/cli:test: Snapshots: 0 total
14
- @remotion/cli:test: Time: 9.355 s
15
- @remotion/cli:test: Ran all test suites.
@@ -1,7 +0,0 @@
1
- import { RenderInternals } from '@remotion/renderer';
2
- declare type Await<T> = T extends PromiseLike<infer U> ? U : T;
3
- export declare const cycleBrowserTabs: (openedBrowser: Await<ReturnType<typeof RenderInternals.openBrowser>>) => {
4
- stopCycling: () => void;
5
- };
6
- export {};
7
- //# sourceMappingURL=cycle-browser-tabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cycle-browser-tabs.d.ts","sourceRoot":"","sources":["../src/cycle-browser-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAGnD,aAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvD,eAAO,MAAM,gBAAgB,kBACb,MAAM,WAAW,OAAO,gBAAgB,WAAW,CAAC,CAAC;;CAmBpE,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cycleBrowserTabs = void 0;
4
- const log_1 = require("./log");
5
- const cycleBrowserTabs = (openedBrowser) => {
6
- let i = 0;
7
- const interval = setInterval(() => {
8
- openedBrowser
9
- .pages()
10
- .then((pages) => {
11
- const currentPage = pages[i % pages.length];
12
- i++;
13
- if (!currentPage.isClosed()) {
14
- currentPage.bringToFront();
15
- }
16
- })
17
- .catch((err) => log_1.Log.error(err));
18
- }, 100);
19
- return {
20
- stopCycling: () => clearInterval(interval),
21
- };
22
- };
23
- exports.cycleBrowserTabs = cycleBrowserTabs;
24
- //# sourceMappingURL=cycle-browser-tabs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cycle-browser-tabs.js","sourceRoot":"","sources":["../src/cycle-browser-tabs.ts"],"names":[],"mappings":";;;AACA,+BAA0B;AAInB,MAAM,gBAAgB,GAAG,CAC/B,aAAoE,EACnE,EAAE;IACH,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QACjC,aAAa;aACX,KAAK,EAAE;aACP,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;YACf,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YAC5C,CAAC,EAAE,CAAC;YACJ,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE;gBAC5B,WAAW,CAAC,YAAY,EAAE,CAAC;aAC3B;QACF,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC,EAAE,GAAG,CAAC,CAAC;IAER,OAAO;QACN,WAAW,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC;KAC1C,CAAC;AACH,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
@@ -1,2 +0,0 @@
1
- export declare const deleteDirectory: (directory: string) => Promise<void>;
2
- //# sourceMappingURL=delete-directory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-directory.d.ts","sourceRoot":"","sources":["../src/delete-directory.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,cAAqB,MAAM,kBAKtD,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.deleteDirectory = void 0;
7
- const execa_1 = __importDefault(require("execa"));
8
- const deleteDirectory = async (directory) => {
9
- // We use del before to remove all files inside the directories otherwise
10
- // rmdir will throw an error.
11
- await (0, execa_1.default)('cmd', ['/c', 'del', '/f', '/s', '/q', directory]);
12
- await (0, execa_1.default)('cmd', ['/c', 'rmdir', '/s', '/q', directory]);
13
- };
14
- exports.deleteDirectory = deleteDirectory;
15
- //# sourceMappingURL=delete-directory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-directory.js","sourceRoot":"","sources":["../src/delete-directory.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAEnB,MAAM,eAAe,GAAG,KAAK,EAAE,SAAiB,EAAE,EAAE;IAC1D,yEAAyE;IACzE,6BAA6B;IAC7B,MAAM,IAAA,eAAK,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/D,MAAM,IAAA,eAAK,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;AAC5D,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
3
- declare type SetErrors = {
4
- setErrors: (errs: ErrorRecord[]) => void;
5
- };
6
- export declare const setErrorsRef: React.RefObject<SetErrors>;
7
- export declare const Overlay: React.FC;
8
- export {};
9
- //# sourceMappingURL=ErrorOverlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorOverlay.d.ts","sourceRoot":"","sources":["../../../src/editor/components/ErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAC,WAAW,EAAC,MAAM,2CAA2C,CAAC;AAGtE,aAAK,SAAS,GAAG;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,4BAAyB,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAwB3B,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Overlay = exports.setErrorsRef = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const remotion_1 = require("remotion");
7
- const ErrorDisplay_1 = require("./ErrorDisplay");
8
- exports.setErrorsRef = (0, react_1.createRef)();
9
- const Overlay = () => {
10
- const [errors, setErrors] = (0, react_1.useState)([]);
11
- (0, react_1.useImperativeHandle)(exports.setErrorsRef, () => {
12
- return { setErrors };
13
- }, []);
14
- if (errors.length === 0) {
15
- return null;
16
- }
17
- return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, Object.assign({ style: { backgroundColor: '#1f2428', overflow: 'auto', color: 'white' } }, { children: errors.map((err) => {
18
- return (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: err }, err.error.stack);
19
- }) }), void 0));
20
- };
21
- exports.Overlay = Overlay;
22
- //# sourceMappingURL=ErrorOverlay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorOverlay.js","sourceRoot":"","sources":["../../../src/editor/components/ErrorOverlay.tsx"],"names":[],"mappings":";;;;AAAA,iCAAsE;AACtE,uCAAsC;AAEtC,iDAA4C;AAM/B,QAAA,YAAY,GAAG,IAAA,iBAAS,GAAa,CAAC;AAE5C,MAAM,OAAO,GAAa,GAAG,EAAE;IACrC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAgB,EAAE,CAAC,CAAC;IAExD,IAAA,2BAAmB,EAClB,oBAAY,EACZ,GAAG,EAAE;QACJ,OAAO,EAAC,SAAS,EAAC,CAAC;IACpB,CAAC,EACD,EAAE,CACF,CAAC;IAEF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,CACN,uBAAC,uBAAY,kBACZ,KAAK,EAAE,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAC,gBAEpE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,OAAO,uBAAC,2BAAY,IAAuB,OAAO,EAAE,GAAG,IAA7B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAkB,CAAC;QAC7D,CAAC,CAAC,YACY,CACf,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,OAAO,WAwBlB"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export declare type ErrorRecord = {
3
- error: Error;
4
- unhandledRejection: boolean;
5
- contextSize: number;
6
- stackFrames: StackFrame[];
7
- };
8
- import { StackFrame } from './stack-frame';
9
- export declare const ErrorDisplay: React.FC<{
10
- display: ErrorRecord;
11
- }>;
12
- //# sourceMappingURL=ErrorDisplay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorDisplay.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC1B,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AA4BzC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,WAAW,CAAC;CACrB,CAuCA,CAAC"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorDisplay = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const container = {
6
- width: '100%',
7
- maxWidth: 1000,
8
- marginLeft: 'auto',
9
- marginRight: 'auto',
10
- fontFamily: 'sans-serif',
11
- paddingTop: '5vh',
12
- };
13
- const title = {
14
- fontSize: '1.5em',
15
- fontWeight: 'bold',
16
- };
17
- const stack = {
18
- backgroundColor: 'black',
19
- marginTop: 17,
20
- };
21
- const stackLine = {
22
- paddingTop: 8,
23
- paddingBottom: 8,
24
- paddingLeft: 14,
25
- paddingRight: 14,
26
- };
27
- const ErrorDisplay = ({ display }) => {
28
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: container }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: title }, { children: [display.error.name, ": ", display.error.message] }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ style: stack }, { children: display.stackFrames.map((s, i) => {
29
- var _a;
30
- return (
31
- // eslint-disable-next-line react/no-array-index-key
32
- (0, jsx_runtime_1.jsxs)("div", Object.assign({ style: stackLine }, { children: [(0, jsx_runtime_1.jsx)("div", { children: s.functionName }, void 0), (0, jsx_runtime_1.jsxs)("div", { children: [s._originalFileName, ":", s.columnNumber] }, void 0), (0, jsx_runtime_1.jsx)("div", { children: (_a = s._originalScriptCode) === null || _a === void 0 ? void 0 : _a.map((s, j) => {
33
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: {
34
- fontFamily: 'monospace',
35
- whiteSpace: 'pre',
36
- tabSize: 2,
37
- color: s.highlight ? 'red' : 'inherit',
38
- } }, { children: s.content }), j));
39
- }) }, void 0)] }), i));
40
- }) }), void 0)] }), void 0));
41
- };
42
- exports.ErrorDisplay = ErrorDisplay;
43
- //# sourceMappingURL=ErrorDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorDisplay.js","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorDisplay.tsx"],"names":[],"mappings":";;;;AAWA,MAAM,SAAS,GAAwB;IACtC,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,KAAK,GAAwB;IAClC,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,MAAM;CAClB,CAAC;AAEF,MAAM,KAAK,GAAwB;IAClC,eAAe,EAAE,OAAO;IACxB,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,SAAS,GAAwB;IACtC,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,CAAC;IAChB,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,YAAY,GAEpB,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE;IAClB,OAAO,CACN,+CAAK,KAAK,EAAE,SAAS,iBACpB,+CAAK,KAAK,EAAE,KAAK,iBACf,OAAO,CAAC,KAAK,CAAC,IAAI,QAAI,OAAO,CAAC,KAAK,CAAC,OAAO,aACvC,EACN,8CAAK,KAAK,EAAE,KAAK,gBACf,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;oBACjC,OAAO;oBACN,oDAAoD;oBACpD,+CAAa,KAAK,EAAE,SAAS,iBAC5B,0CAAM,CAAC,CAAC,YAAY,WAAO,EAC3B,4CACE,CAAC,CAAC,iBAAiB,OAAG,CAAC,CAAC,YAAY,YAChC,EACN,0CACE,MAAA,CAAC,CAAC,mBAAmB,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;oCACpC,OAAO,CACN,8CAGC,KAAK,EAAE;4CACN,UAAU,EAAE,WAAW;4CACvB,UAAU,EAAE,KAAK;4CACjB,OAAO,EAAE,CAAC;4CACV,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;yCACtC,gBAEA,CAAC,CAAC,OAAO,KARL,CAAC,CASD,CACN,CAAC;gCACH,CAAC,CAAC,WACG,MAtBG,CAAC,CAuBL,CACN,CAAC;gBACH,CAAC,CAAC,YACG,aACD,CACN,CAAC;AACH,CAAC,CAAC;AAzCW,QAAA,YAAY,gBAyCvB"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ErrorRecord } from './ErrorDisplay';
3
- declare type SetErrors = {
4
- setErrors: (errs: ErrorRecord[]) => void;
5
- };
6
- export declare const setErrorsRef: React.RefObject<SetErrors>;
7
- export declare const Overlay: React.FC;
8
- export {};
9
- //# sourceMappingURL=ErrorOverlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorOverlay.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAe,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEzD,aAAK,SAAS,GAAG;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,4BAAyB,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAwB3B,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Overlay = exports.setErrorsRef = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const remotion_1 = require("remotion");
7
- const ErrorDisplay_1 = require("./ErrorDisplay");
8
- exports.setErrorsRef = (0, react_1.createRef)();
9
- const Overlay = () => {
10
- const [errors, setErrors] = (0, react_1.useState)([]);
11
- (0, react_1.useImperativeHandle)(exports.setErrorsRef, () => {
12
- return { setErrors };
13
- }, []);
14
- if (errors.length === 0) {
15
- return null;
16
- }
17
- return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, Object.assign({ style: { backgroundColor: '#1f2428', overflow: 'auto', color: 'white' } }, { children: errors.map((err) => {
18
- return (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: err }, err.error.stack);
19
- }) }), void 0));
20
- };
21
- exports.Overlay = Overlay;
22
- //# sourceMappingURL=ErrorOverlay.js.map