@remotion/bundler 4.0.0-imgloading.2 → 4.0.0-lambda.3

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 (200) hide show
  1. package/dist/bundle-mode.d.ts.map +1 -0
  2. package/dist/bundle-mode.js.map +1 -0
  3. package/dist/bundle.d.ts +7 -0
  4. package/dist/bundle.js +77 -0
  5. package/dist/bundler.d.ts.map +1 -0
  6. package/dist/bundler.js.map +1 -0
  7. package/dist/copy-dir.d.ts.map +1 -0
  8. package/dist/copy-dir.js.map +1 -0
  9. package/dist/dev-middleware/compatible-api.d.ts +1 -0
  10. package/dist/dev-middleware/compatible-api.d.ts.map +1 -0
  11. package/dist/dev-middleware/compatible-api.js.map +1 -0
  12. package/dist/dev-middleware/get-filename-from-url.d.ts.map +1 -0
  13. package/dist/dev-middleware/get-filename-from-url.js.map +1 -0
  14. package/dist/dev-middleware/get-paths.d.ts.map +1 -0
  15. package/dist/dev-middleware/get-paths.js.map +1 -0
  16. package/dist/dev-middleware/index.d.ts.map +1 -0
  17. package/dist/dev-middleware/index.js.map +1 -0
  18. package/dist/dev-middleware/is-color-supported.d.ts.map +1 -0
  19. package/dist/dev-middleware/is-color-supported.js +5 -1
  20. package/dist/dev-middleware/is-color-supported.js.map +1 -0
  21. package/dist/dev-middleware/middleware.d.ts.map +1 -0
  22. package/dist/dev-middleware/middleware.js.map +1 -0
  23. package/dist/dev-middleware/range-parser.d.ts.map +1 -0
  24. package/dist/dev-middleware/range-parser.js.map +1 -0
  25. package/dist/dev-middleware/ready.d.ts.map +1 -0
  26. package/dist/dev-middleware/ready.js.map +1 -0
  27. package/dist/dev-middleware/setup-hooks.d.ts.map +1 -0
  28. package/dist/dev-middleware/setup-hooks.js.map +1 -0
  29. package/dist/dev-middleware/setup-output-filesystem.d.ts.map +1 -0
  30. package/dist/dev-middleware/setup-output-filesystem.js.map +1 -0
  31. package/dist/dev-middleware/types.d.ts.map +1 -0
  32. package/dist/dev-middleware/types.js.map +1 -0
  33. package/dist/error-overlay/entry-basic.d.ts.map +1 -0
  34. package/dist/error-overlay/entry-basic.js.map +1 -0
  35. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +1 -0
  36. package/dist/error-overlay/react-overlay/effects/format-warning.js.map +1 -0
  37. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts.map +1 -0
  38. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js.map +1 -0
  39. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +1 -0
  40. package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +1 -0
  41. package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts.map +1 -0
  42. package/dist/error-overlay/react-overlay/effects/resolve-file-source.js.map +1 -0
  43. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +1 -0
  44. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +1 -0
  45. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +1 -0
  46. package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +1 -0
  47. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +1 -0
  48. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +1 -0
  49. package/dist/error-overlay/react-overlay/index.d.ts.map +1 -0
  50. package/dist/error-overlay/react-overlay/index.js.map +1 -0
  51. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +1 -0
  52. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +1 -0
  53. package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts.map +1 -0
  54. package/dist/error-overlay/react-overlay/utils/get-file-source.js.map +1 -0
  55. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +1 -0
  56. package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +1 -0
  57. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +1 -0
  58. package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +1 -0
  59. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +1 -0
  60. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +1 -0
  61. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +1 -0
  62. package/dist/error-overlay/react-overlay/utils/open-in-editor.js +5 -1
  63. package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +1 -0
  64. package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +1 -0
  65. package/dist/error-overlay/react-overlay/utils/parser.js.map +1 -0
  66. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +1 -0
  67. package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +1 -0
  68. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +1 -0
  69. package/dist/error-overlay/react-overlay/utils/unmapper.js.map +1 -0
  70. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +1 -0
  71. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +1 -1
  72. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +1 -0
  73. package/dist/error-overlay/remotion-overlay/Button.d.ts.map +1 -0
  74. package/dist/error-overlay/remotion-overlay/Button.js +1 -1
  75. package/dist/error-overlay/remotion-overlay/Button.js.map +1 -0
  76. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +1 -0
  77. package/dist/error-overlay/remotion-overlay/CodeFrame.js +2 -2
  78. package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +1 -0
  79. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +1 -0
  80. package/dist/error-overlay/remotion-overlay/DismissButton.js +1 -1
  81. package/dist/error-overlay/remotion-overlay/DismissButton.js.map +1 -0
  82. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +1 -0
  83. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +2 -2
  84. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +1 -0
  85. package/dist/error-overlay/remotion-overlay/ErrorLoader.d.ts.map +1 -0
  86. package/dist/error-overlay/remotion-overlay/ErrorLoader.js +4 -4
  87. package/dist/error-overlay/remotion-overlay/ErrorLoader.js.map +1 -0
  88. package/dist/error-overlay/remotion-overlay/ErrorTitle.d.ts.map +1 -0
  89. package/dist/error-overlay/remotion-overlay/ErrorTitle.js +1 -1
  90. package/dist/error-overlay/remotion-overlay/ErrorTitle.js.map +1 -0
  91. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +1 -0
  92. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +1 -1
  93. package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +1 -0
  94. package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +1 -0
  95. package/dist/error-overlay/remotion-overlay/Overlay.js +1 -1
  96. package/dist/error-overlay/remotion-overlay/Overlay.js.map +1 -0
  97. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +1 -0
  98. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -1
  99. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +1 -0
  100. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +1 -0
  101. package/dist/error-overlay/remotion-overlay/StackFrame.js +2 -2
  102. package/dist/error-overlay/remotion-overlay/StackFrame.js.map +1 -0
  103. package/dist/error-overlay/remotion-overlay/Symbolicating.d.ts.map +1 -0
  104. package/dist/error-overlay/remotion-overlay/Symbolicating.js +1 -1
  105. package/dist/error-overlay/remotion-overlay/Symbolicating.js.map +1 -0
  106. package/dist/error-overlay/remotion-overlay/carets.d.ts.map +1 -0
  107. package/dist/error-overlay/remotion-overlay/carets.js +2 -2
  108. package/dist/error-overlay/remotion-overlay/carets.js.map +1 -0
  109. package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +1 -0
  110. package/dist/error-overlay/remotion-overlay/format-location.js.map +1 -0
  111. package/dist/error-overlay/remotion-overlay/index.d.ts.map +1 -0
  112. package/dist/error-overlay/remotion-overlay/index.js +2 -2
  113. package/dist/error-overlay/remotion-overlay/index.js.map +1 -0
  114. package/dist/esbuild-loader/index.d.ts.map +1 -0
  115. package/dist/esbuild-loader/index.js.map +1 -0
  116. package/dist/esbuild-loader/interfaces.d.ts.map +1 -0
  117. package/dist/esbuild-loader/interfaces.js.map +1 -0
  118. package/dist/fast-refresh/helpers.d.ts.map +1 -0
  119. package/dist/fast-refresh/helpers.js.map +1 -0
  120. package/dist/fast-refresh/index.d.ts.map +1 -0
  121. package/dist/fast-refresh/index.js.map +1 -0
  122. package/dist/fast-refresh/loader.d.ts.map +1 -0
  123. package/dist/fast-refresh/loader.js.map +1 -0
  124. package/dist/fast-refresh/runtime.d.ts.map +1 -0
  125. package/dist/fast-refresh/runtime.js.map +1 -0
  126. package/dist/get-latest-remotion-version.d.ts.map +1 -0
  127. package/dist/get-latest-remotion-version.js.map +1 -0
  128. package/dist/get-package-manager.d.ts.map +1 -0
  129. package/dist/get-package-manager.js.map +1 -0
  130. package/dist/get-port.d.ts.map +1 -0
  131. package/dist/get-port.js +20 -23
  132. package/dist/get-port.js.map +1 -0
  133. package/dist/homepage/homepage.d.ts +0 -1
  134. package/dist/homepage/homepage.d.ts.map +1 -0
  135. package/dist/homepage/homepage.js +5 -6
  136. package/dist/homepage/homepage.js.map +1 -0
  137. package/dist/hot-middleware/client.d.ts.map +1 -0
  138. package/dist/hot-middleware/client.js.map +1 -0
  139. package/dist/hot-middleware/index.d.ts.map +1 -0
  140. package/dist/hot-middleware/index.js.map +1 -0
  141. package/dist/hot-middleware/process-update.d.ts.map +1 -0
  142. package/dist/hot-middleware/process-update.js +2 -2
  143. package/dist/hot-middleware/process-update.js.map +1 -0
  144. package/dist/hot-middleware/strip-ansi.d.ts.map +1 -0
  145. package/dist/hot-middleware/strip-ansi.js.map +1 -0
  146. package/dist/hot-middleware/types.d.ts.map +1 -0
  147. package/dist/hot-middleware/types.js.map +1 -0
  148. package/dist/index-html.d.ts +1 -0
  149. package/dist/index-html.js +40 -0
  150. package/dist/index.d.ts +18 -17
  151. package/dist/index.d.ts.map +1 -0
  152. package/dist/index.js +10 -11
  153. package/dist/index.js.map +1 -0
  154. package/dist/json-parser.d.ts +7 -0
  155. package/dist/json-parser.js +177 -0
  156. package/dist/p-limit.d.ts +1 -0
  157. package/dist/p-limit.js +57 -0
  158. package/dist/project-info.d.ts.map +1 -0
  159. package/dist/project-info.js.map +1 -0
  160. package/dist/read.d.ts +6 -0
  161. package/dist/read.js +183 -0
  162. package/dist/renderEntry.d.ts.map +1 -0
  163. package/dist/renderEntry.js +51 -38
  164. package/dist/renderEntry.js.map +1 -0
  165. package/dist/routes.d.ts +8 -0
  166. package/dist/routes.js +122 -0
  167. package/dist/serve-static.d.ts +26 -0
  168. package/dist/serve-static.js +72 -0
  169. package/dist/setup-environment.d.ts.map +1 -0
  170. package/dist/setup-environment.js.map +1 -0
  171. package/dist/start-server-pure.d.ts +8 -0
  172. package/dist/start-server-pure.js +68 -0
  173. package/dist/start-server.d.ts +6 -6
  174. package/dist/start-server.d.ts.map +1 -0
  175. package/dist/start-server.js +4 -4
  176. package/dist/start-server.js.map +1 -0
  177. package/dist/static-preview.d.ts.map +1 -0
  178. package/dist/static-preview.js.map +1 -0
  179. package/dist/static-server.d.ts +0 -0
  180. package/dist/static-server.js +1 -0
  181. package/dist/test/expect-to-throw.d.ts.map +1 -0
  182. package/dist/test/expect-to-throw.js.map +1 -0
  183. package/dist/test/latest-remotion-version.test.d.ts.map +1 -0
  184. package/dist/test/latest-remotion-version.test.js.map +1 -0
  185. package/dist/test/parse-error-stack.test.d.ts.map +1 -0
  186. package/dist/test/parse-error-stack.test.js.map +1 -0
  187. package/dist/test/parse-module-not-found.test.d.ts.map +1 -0
  188. package/dist/test/parse-module-not-found.test.js.map +1 -0
  189. package/dist/test/secure-source-read.test.d.ts.map +1 -0
  190. package/dist/test/secure-source-read.test.js.map +1 -0
  191. package/dist/update-available.d.ts.map +1 -0
  192. package/dist/update-available.js.map +1 -0
  193. package/dist/webpack-cache.d.ts.map +1 -0
  194. package/dist/webpack-cache.js.map +1 -0
  195. package/dist/webpack-config.d.ts +2 -1
  196. package/dist/webpack-config.d.ts.map +1 -0
  197. package/dist/webpack-config.js +11 -21
  198. package/dist/webpack-config.js.map +1 -0
  199. package/package.json +4 -18
  200. package/web/favicon.png +0 -0
@@ -15,23 +15,14 @@ const remotion_1 = require("remotion");
15
15
  const bundle_mode_1 = require("./bundle-mode");
16
16
  const homepage_1 = require("./homepage/homepage");
17
17
  remotion_1.Internals.CSSUtils.injectCSS(remotion_1.Internals.CSSUtils.makeDefaultCSS(null, '#fff'));
18
- const Root = remotion_1.Internals.getRoot();
19
- if (!Root) {
20
- throw new Error('Root has not been registered.');
21
- }
22
- const handle = (0, remotion_1.delayRender)('Loading root component');
23
- const Fallback = () => {
24
- (0, react_1.useEffect)(() => {
25
- const fallback = (0, remotion_1.delayRender)('Waiting for Root component to unsuspend');
26
- return () => (0, remotion_1.continueRender)(fallback);
27
- }, []);
28
- return null;
29
- };
30
18
  const GetVideo = ({ state }) => {
31
- var _a;
32
19
  const video = remotion_1.Internals.useVideo();
33
20
  const compositions = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
34
- const [Component, setComponent] = (0, react_1.useState)(null);
21
+ const portalContainer = (0, react_1.useRef)(null);
22
+ const [handle] = (0, react_1.useState)(() => (0, remotion_1.delayRender)('Wait for Composition' + JSON.stringify(state)));
23
+ (0, react_1.useEffect)(() => {
24
+ return () => (0, remotion_1.continueRender)(handle);
25
+ }, [handle]);
35
26
  (0, react_1.useEffect)(() => {
36
27
  var _a;
37
28
  if (state.type !== 'composition') {
@@ -45,35 +36,36 @@ const GetVideo = ({ state }) => {
45
36
  compositions.setCurrentComposition((_a = foundComposition === null || foundComposition === void 0 ? void 0 : foundComposition.id) !== null && _a !== void 0 ? _a : null);
46
37
  }
47
38
  }, [compositions, compositions.compositions, state, video]);
48
- const fetchComponent = (0, react_1.useCallback)(() => {
49
- if (!video) {
50
- throw new Error('Expected to have video');
51
- }
52
- const Comp = video.component;
53
- setComponent(Comp);
54
- }, [video]);
55
- (0, react_1.useEffect)(() => {
56
- if (video) {
57
- fetchComponent();
58
- }
59
- }, [fetchComponent, video]);
60
39
  (0, react_1.useEffect)(() => {
61
40
  if (state.type === 'evaluation') {
62
41
  (0, remotion_1.continueRender)(handle);
63
42
  }
64
- else if (Component) {
43
+ else if (video) {
65
44
  (0, remotion_1.continueRender)(handle);
66
45
  }
67
- }, [Component, state.type]);
46
+ }, [handle, state.type, video]);
47
+ (0, react_1.useEffect)(() => {
48
+ if (!video) {
49
+ return;
50
+ }
51
+ const { current } = portalContainer;
52
+ if (!current) {
53
+ throw new Error('portal did not render');
54
+ }
55
+ current.appendChild(remotion_1.Internals.portalNode());
56
+ return () => {
57
+ current.removeChild(remotion_1.Internals.portalNode());
58
+ };
59
+ }, [video]);
68
60
  if (!video) {
69
61
  return null;
70
62
  }
71
- return ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Fallback, {}, void 0), children: (0, jsx_runtime_1.jsx)("div", { id: "remotion-canvas", style: {
72
- width: video.width,
73
- height: video.height,
74
- display: 'flex',
75
- backgroundColor: 'transparent',
76
- }, children: Component ? ((0, jsx_runtime_1.jsx)(Component, { ...((_a = video === null || video === void 0 ? void 0 : video.defaultProps) !== null && _a !== void 0 ? _a : {}), ...(0, remotion_1.getInputProps)() }, void 0)) : null }, void 0) }, void 0));
63
+ return ((0, jsx_runtime_1.jsx)("div", { ref: portalContainer, id: "remotion-canvas", style: {
64
+ width: video.width,
65
+ height: video.height,
66
+ display: 'flex',
67
+ backgroundColor: 'transparent',
68
+ } }));
77
69
  };
78
70
  const videoContainer = document.getElementById('video-container');
79
71
  const explainerContainer = document.getElementById('explainer-container');
@@ -83,10 +75,28 @@ let cleanupVideoContainer = () => {
83
75
  let cleanupExplainerContainer = () => {
84
76
  explainerContainer.innerHTML = '';
85
77
  };
78
+ const waitForRootHandle = (0, remotion_1.delayRender)('Loading root component');
79
+ const WaitForRoot = () => {
80
+ const [Root, setRoot] = (0, react_1.useState)(() => remotion_1.Internals.getRoot());
81
+ (0, react_1.useEffect)(() => {
82
+ if (Root) {
83
+ (0, remotion_1.continueRender)(waitForRootHandle);
84
+ return;
85
+ }
86
+ const cleanup = remotion_1.Internals.waitForRoot((NewRoot) => {
87
+ setRoot(() => NewRoot);
88
+ });
89
+ return () => cleanup();
90
+ }, [Root]);
91
+ if (Root === null) {
92
+ return null;
93
+ }
94
+ return (0, jsx_runtime_1.jsx)(Root, {});
95
+ };
86
96
  const renderContent = () => {
87
97
  const bundleMode = (0, bundle_mode_1.getBundleMode)();
88
98
  if (bundleMode.type === 'composition' || bundleMode.type === 'evaluation') {
89
- const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { children: [(0, jsx_runtime_1.jsx)(Root, {}, void 0), (0, jsx_runtime_1.jsx)(GetVideo, { state: bundleMode }, void 0)] }, void 0));
99
+ const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { children: [(0, jsx_runtime_1.jsx)(WaitForRoot, {}), (0, jsx_runtime_1.jsx)(GetVideo, { state: bundleMode })] }));
90
100
  if (client_1.default.createRoot) {
91
101
  const root = client_1.default.createRoot(videoContainer);
92
102
  root.render(markup);
@@ -110,14 +120,14 @@ const renderContent = () => {
110
120
  if (bundleMode.type === 'index' || bundleMode.type === 'evaluation') {
111
121
  if (client_1.default.createRoot) {
112
122
  const root = client_1.default.createRoot(explainerContainer);
113
- root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}, void 0));
123
+ root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}));
114
124
  cleanupExplainerContainer = () => {
115
125
  root.unmount();
116
126
  };
117
127
  }
118
128
  else {
119
129
  const root = client_1.default;
120
- root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}, void 0), explainerContainer);
130
+ root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}), explainerContainer);
121
131
  cleanupExplainerContainer = () => {
122
132
  root.unmountComponentAtNode(explainerContainer);
123
133
  };
@@ -138,6 +148,9 @@ const setBundleModeAndUpdate = (state) => {
138
148
  exports.setBundleModeAndUpdate = setBundleModeAndUpdate;
139
149
  if (typeof window !== 'undefined') {
140
150
  window.getStaticCompositions = () => {
151
+ if (!remotion_1.Internals.getRoot()) {
152
+ throw new Error('registerRoot() was never called. 1. Make sure you specified the correct entrypoint for your bundle. 2. If your registerRoot() call is deferred, use the delayRender/continueRender pattern to tell Remotion to wait.');
153
+ }
141
154
  if (!remotion_1.Internals.compositionsRef.current) {
142
155
  throw new Error('Unexpectedly did not have a CompositionManager');
143
156
  }
@@ -154,6 +167,6 @@ if (typeof window !== 'undefined') {
154
167
  };
155
168
  });
156
169
  };
157
- window.siteVersion = '2';
170
+ window.siteVersion = '3';
158
171
  window.setBundleMode = exports.setBundleModeAndUpdate;
159
172
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderEntry.js","sourceRoot":"","sources":["../src/renderEntry.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAOe;AAEf,oEAAoE;AACpE,uDAAuD;AACvD,+FAA+F;AAC/F,kFAAkF;AAClF,8DAAwC;AACxC,uCAQkB;AAClB,+CAA2D;AAC3D,kDAA6C;AAE7C,oBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,oBAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9E,MAAM,IAAI,GAAG,oBAAS,CAAC,OAAO,EAAE,CAAC;AAEjC,IAAI,CAAC,IAAI,EAAE;IACV,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;CACjD;AAED,MAAM,MAAM,GAAG,IAAA,sBAAW,EAAC,wBAAwB,CAAC,CAAC;AAErD,MAAM,QAAQ,GAAa,GAAG,EAAE;IAC/B,IAAA,iBAAS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,EAAE,CAAC,CAAC,gBAAgB;gBACpC,GAAG,EAAE,CAAC,CAAC,GAAG;gBACV,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,EAAE,EAAE,CAAC,CAAC,EAAE;gBACR,KAAK,EAAE,CAAC,CAAC,KAAK;aACd,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC;IACzB,MAAM,CAAC,aAAa,GAAG,8BAAsB,CAAC;CAC9C"}
@@ -0,0 +1,8 @@
1
+ import { IncomingMessage, ServerResponse } from 'http';
2
+ export declare const handleUpdate: (_: IncomingMessage, response: ServerResponse) => Promise<void>;
3
+ export declare const handleFallback: (hash: string, _: IncomingMessage, response: ServerResponse) => Promise<void>;
4
+ export declare const handleProjectInfo: (_: IncomingMessage, response: ServerResponse) => Promise<void>;
5
+ export declare const handleFileSource: (search: string, _: IncomingMessage, response: ServerResponse) => Promise<void>;
6
+ export declare const handleOpenInEditor: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
7
+ export declare const handleFavicon: (_: IncomingMessage, response: ServerResponse) => void;
8
+ export declare const handleRoutes: (hash: string, request: IncomingMessage, response: ServerResponse) => void | Promise<void>;
package/dist/routes.js ADDED
@@ -0,0 +1,122 @@
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.handleRoutes = exports.handleFavicon = exports.handleOpenInEditor = exports.handleFileSource = exports.handleProjectInfo = exports.handleFallback = exports.handleUpdate = void 0;
7
+ const fs_1 = require("fs");
8
+ const path_1 = __importDefault(require("path"));
9
+ const url_1 = require("url");
10
+ const get_file_source_1 = require("./error-overlay/react-overlay/utils/get-file-source");
11
+ const open_in_editor_1 = require("./error-overlay/react-overlay/utils/open-in-editor");
12
+ const project_info_1 = require("./project-info");
13
+ const static_preview_1 = require("./static-preview");
14
+ const update_available_1 = require("./update-available");
15
+ const handleUpdate = async (_, response) => {
16
+ const data = await (0, update_available_1.isUpdateAvailableWithTimeout)();
17
+ response.setHeader('content-type', 'application/json');
18
+ response.writeHead(200);
19
+ response.end(JSON.stringify(data));
20
+ };
21
+ exports.handleUpdate = handleUpdate;
22
+ const editorGuess = (0, open_in_editor_1.guessEditor)();
23
+ const handleFallback = async (hash, _, response) => {
24
+ const edit = await editorGuess;
25
+ const displayName = (0, open_in_editor_1.getDisplayNameForEditor)(edit[0]);
26
+ response.setHeader('content-type', 'text/html');
27
+ response.writeHead(200);
28
+ response.end((0, static_preview_1.indexHtml)(hash, '/', displayName));
29
+ };
30
+ exports.handleFallback = handleFallback;
31
+ const handleProjectInfo = async (_, response) => {
32
+ const data = await (0, project_info_1.getProjectInfo)();
33
+ response.setHeader('content-type', 'application/json');
34
+ response.writeHead(200);
35
+ response.end(JSON.stringify(data));
36
+ };
37
+ exports.handleProjectInfo = handleProjectInfo;
38
+ const handleFileSource = async (search, _, response) => {
39
+ if (!search.startsWith('?')) {
40
+ throw new Error('query must start with ?');
41
+ }
42
+ const query = new url_1.URLSearchParams(search);
43
+ const f = query.get('f');
44
+ if (typeof f !== 'string') {
45
+ throw new Error('must pass `f` parameter');
46
+ }
47
+ const data = await (0, get_file_source_1.getFileSource)(decodeURIComponent(f));
48
+ response.writeHead(200);
49
+ response.write(data);
50
+ return response.end();
51
+ };
52
+ exports.handleFileSource = handleFileSource;
53
+ const handleOpenInEditor = async (req, res) => {
54
+ try {
55
+ const b = await new Promise((_resolve) => {
56
+ let data = '';
57
+ req.on('data', (chunk) => {
58
+ data += chunk;
59
+ });
60
+ req.on('end', () => {
61
+ _resolve(data.toString());
62
+ });
63
+ });
64
+ const body = JSON.parse(b);
65
+ if (!('stack' in body)) {
66
+ throw new TypeError('Need to pass stack');
67
+ }
68
+ const stack = body.stack;
69
+ const guess = await editorGuess;
70
+ const didOpen = await (0, open_in_editor_1.launchEditor)({
71
+ colNumber: stack.originalColumnNumber,
72
+ editor: guess[0],
73
+ fileName: path_1.default.resolve(process.cwd(), stack.originalFileName),
74
+ lineNumber: stack.originalLineNumber,
75
+ vsCodeNewWindow: false,
76
+ });
77
+ res.setHeader('content-type', 'application/json');
78
+ res.writeHead(200);
79
+ res.end(JSON.stringify({
80
+ success: didOpen,
81
+ }));
82
+ }
83
+ catch (err) {
84
+ res.setHeader('content-type', 'application/json');
85
+ res.writeHead(200);
86
+ res.end(JSON.stringify({
87
+ success: false,
88
+ }));
89
+ }
90
+ };
91
+ exports.handleOpenInEditor = handleOpenInEditor;
92
+ const handleFavicon = (_, response) => {
93
+ const filePath = path_1.default.join(__dirname, '..', 'web', 'favicon.png');
94
+ const stat = (0, fs_1.statSync)(filePath);
95
+ response.writeHead(200, {
96
+ 'Content-Type': 'image/png',
97
+ 'Content-Length': stat.size,
98
+ });
99
+ const readStream = (0, fs_1.createReadStream)(filePath);
100
+ readStream.pipe(response);
101
+ };
102
+ exports.handleFavicon = handleFavicon;
103
+ const handleRoutes = (hash, request, response) => {
104
+ const url = new URL(request.url, 'http://localhost');
105
+ if (url.pathname === '/api/update') {
106
+ return (0, exports.handleUpdate)(request, response);
107
+ }
108
+ if (url.pathname === '/api/project-info') {
109
+ return (0, exports.handleProjectInfo)(request, response);
110
+ }
111
+ if (url.pathname === '/api/file-source') {
112
+ return (0, exports.handleFileSource)(url.search, request, response);
113
+ }
114
+ if (url.pathname === '/api/open-in-editor') {
115
+ return (0, exports.handleOpenInEditor)(request, response);
116
+ }
117
+ if (url.pathname === '/remotion.png') {
118
+ return (0, exports.handleFavicon)(request, response);
119
+ }
120
+ return (0, exports.handleFallback)(hash, request, response);
121
+ };
122
+ exports.handleRoutes = handleRoutes;
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * serve-static
3
+ * Copyright(c) 2010 Sencha Inc.
4
+ * Copyright(c) 2011 TJ Holowaychuk
5
+ * Copyright(c) 2014-2016 Douglas Christopher Wilson
6
+ * MIT Licensed
7
+ */
8
+ import { IncomingMessage, ServerResponse } from 'http';
9
+ /**
10
+ * @param {string} root
11
+ * @param {object} [options]
12
+ * @return {function}
13
+ * @public
14
+ */
15
+ export declare const serveStatic: (root: string, options: {
16
+ cacheControl: true;
17
+ dotfiles: 'allow';
18
+ etag: true;
19
+ extensions: false;
20
+ fallthrough: false;
21
+ immutable: false;
22
+ index: false;
23
+ lastModified: true;
24
+ maxAge: 0;
25
+ redirect: true;
26
+ }) => (req: IncomingMessage, res: ServerResponse) => void;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /*!
3
+ * serve-static
4
+ * Copyright(c) 2010 Sencha Inc.
5
+ * Copyright(c) 2011 TJ Holowaychuk
6
+ * Copyright(c) 2014-2016 Douglas Christopher Wilson
7
+ * MIT Licensed
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.serveStatic = void 0;
11
+ const path_1 = require("path");
12
+ const send = require('send');
13
+ /**
14
+ * @param {string} root
15
+ * @param {object} [options]
16
+ * @return {function}
17
+ * @public
18
+ */
19
+ const serveStatic = (root, options) => {
20
+ if (!root) {
21
+ throw new TypeError('root path required');
22
+ }
23
+ if (typeof root !== 'string') {
24
+ throw new TypeError('root path must be a string');
25
+ }
26
+ // copy options object
27
+ const opts = Object.create(options || null);
28
+ // headers listener
29
+ const { setHeaders } = opts;
30
+ if (setHeaders && typeof setHeaders !== 'function') {
31
+ throw new TypeError('option setHeaders must be function');
32
+ }
33
+ // setup options for send
34
+ opts.maxage = opts.maxage || opts.maxAge || 0;
35
+ opts.root = (0, path_1.resolve)(root);
36
+ return function (req, res) {
37
+ if (req.method !== 'GET' && req.method !== 'HEAD') {
38
+ // method not allowed
39
+ res.statusCode = 405;
40
+ res.setHeader('Allow', 'GET, HEAD');
41
+ res.setHeader('Content-Length', '0');
42
+ res.end();
43
+ return;
44
+ }
45
+ let path = new URL(req.url, 'http://localhost').pathname;
46
+ // make sure redirect occurs at mount
47
+ if (path === '/' && path.substr(-1) !== '/') {
48
+ path = '';
49
+ }
50
+ // create send stream
51
+ const stream = send(req, path, opts);
52
+ // add directory handler
53
+ stream.on('directory', () => {
54
+ res.writeHead(500);
55
+ res.write('Is a directory');
56
+ res.end();
57
+ });
58
+ // add headers listener
59
+ if (setHeaders) {
60
+ stream.on('headers', setHeaders);
61
+ }
62
+ // forward errors
63
+ stream.on('error', (err) => {
64
+ res.writeHead(500);
65
+ res.write(err.toString());
66
+ res.end();
67
+ });
68
+ // pipe
69
+ stream.pipe(res);
70
+ };
71
+ };
72
+ exports.serveStatic = serveStatic;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-environment.d.ts","sourceRoot":"","sources":["../src/setup-environment.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-environment.js","sourceRoot":"","sources":["../src/setup-environment.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAEnC,oBAAS,CAAC,iBAAiB,EAAE,CAAC;AAC9B,oBAAS,CAAC,iBAAiB,EAAE,CAAC;AAC9B,oBAAS,CAAC,qBAAqB,EAAE,CAAC;AAElC,oBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;;;;;;;CAO5B,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { WebpackOverrideFn } from 'remotion';
2
+ export declare const startServerPure: (entry: string, userDefinedComponent: string, options?: {
3
+ webpackOverride?: WebpackOverrideFn;
4
+ inputProps?: object;
5
+ envVariables?: Record<string, string>;
6
+ port: number | null;
7
+ maxTimelineTracks?: number;
8
+ }) => Promise<number>;
@@ -0,0 +1,68 @@
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.startServerPure = void 0;
7
+ const crypto_1 = __importDefault(require("crypto"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const http_1 = __importDefault(require("http"));
10
+ const os_1 = __importDefault(require("os"));
11
+ const path_1 = __importDefault(require("path"));
12
+ const remotion_1 = require("remotion");
13
+ const webpack_1 = __importDefault(require("webpack"));
14
+ const dev_middleware_1 = require("./dev-middleware");
15
+ const get_port_1 = require("./get-port");
16
+ const hot_middleware_1 = require("./hot-middleware");
17
+ const routes_1 = require("./routes");
18
+ const webpack_config_1 = require("./webpack-config");
19
+ const startServerPure = async (entry, userDefinedComponent, options) => {
20
+ var _a, _b, _c, _d, _e;
21
+ const tmpDir = await fs_1.default.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'react-motion-graphics'));
22
+ const config = (0, webpack_config_1.webpackConfig)({
23
+ entry,
24
+ userDefinedComponent,
25
+ outDir: tmpDir,
26
+ environment: 'development',
27
+ webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : remotion_1.Internals.getWebpackOverrideFn(),
28
+ inputProps: (_b = options === null || options === void 0 ? void 0 : options.inputProps) !== null && _b !== void 0 ? _b : {},
29
+ envVariables: (_c = options === null || options === void 0 ? void 0 : options.envVariables) !== null && _c !== void 0 ? _c : {},
30
+ maxTimelineTracks: (_d = options === null || options === void 0 ? void 0 : options.maxTimelineTracks) !== null && _d !== void 0 ? _d : 15,
31
+ });
32
+ const compiler = (0, webpack_1.default)(config);
33
+ const hash = `/static-${crypto_1.default.randomBytes(6).toString('hex')}`;
34
+ /**
35
+ * TODO: Put static server
36
+ */
37
+ const wdmMiddleware = (0, dev_middleware_1.wdm)(compiler);
38
+ const whm = (0, hot_middleware_1.webpackHotMiddleware)(compiler);
39
+ const server = http_1.default.createServer((request, response) => {
40
+ new Promise((resolve) => {
41
+ wdmMiddleware(request, response, () => {
42
+ resolve();
43
+ });
44
+ })
45
+ .then(() => {
46
+ return new Promise((resolve) => {
47
+ whm(request, response, () => {
48
+ resolve();
49
+ });
50
+ });
51
+ })
52
+ .then(() => {
53
+ (0, routes_1.handleRoutes)(hash, request, response);
54
+ })
55
+ .catch((err) => {
56
+ response.setHeader('content-type', 'application/json');
57
+ response.writeHead(500);
58
+ response.end(JSON.stringify({
59
+ err: err.message,
60
+ }));
61
+ });
62
+ });
63
+ const desiredPort = (_e = options === null || options === void 0 ? void 0 : options.port) !== null && _e !== void 0 ? _e : undefined;
64
+ const port = await (0, get_port_1.getDesiredPort)(desiredPort, 3000, 3100);
65
+ server.listen(port);
66
+ return port;
67
+ };
68
+ exports.startServerPure = startServerPure;
@@ -1,8 +1,8 @@
1
1
  import { WebpackOverrideFn } from 'remotion';
2
2
  export declare const startServer: (entry: string, userDefinedComponent: string, options?: {
3
- webpackOverride?: WebpackOverrideFn | undefined;
4
- inputProps?: object | undefined;
5
- envVariables?: Record<string, string> | undefined;
6
- port?: number | undefined;
7
- maxTimelineTracks?: number | undefined;
8
- } | undefined) => Promise<number>;
3
+ webpackOverride?: WebpackOverrideFn;
4
+ inputProps?: object;
5
+ envVariables?: Record<string, string>;
6
+ port: number | null;
7
+ maxTimelineTracks?: number;
8
+ }) => Promise<number>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-server.d.ts","sourceRoot":"","sources":["../src/start-server.ts"],"names":[],"mappings":"AAKA,OAAO,EAAY,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAiBtD,eAAO,MAAM,WAAW,UAChB,MAAM,wBACS,MAAM;;;;;;kBAQ1B,QAAQ,MAAM,CA+HhB,CAAC"}
@@ -51,7 +51,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
51
51
  }));
52
52
  app.use((0, dev_middleware_1.wdm)(compiler));
53
53
  app.use((0, hot_middleware_1.webpackHotMiddleware)(compiler));
54
- app.get('/api/update', (req, res) => {
54
+ app.get('/api/update', (_req, res) => {
55
55
  (0, update_available_1.isUpdateAvailableWithTimeout)()
56
56
  .then((data) => {
57
57
  res.json(data);
@@ -62,7 +62,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
62
62
  });
63
63
  });
64
64
  });
65
- app.get('/api/project-info', (req, res) => {
65
+ app.get('/api/project-info', (_req, res) => {
66
66
  (0, project_info_1.getProjectInfo)()
67
67
  .then((data) => {
68
68
  res.json(data);
@@ -115,7 +115,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
115
115
  });
116
116
  }
117
117
  });
118
- app.use('favicon.png', (req, res) => {
118
+ app.use('favicon.png', (_req, res) => {
119
119
  res.sendFile(path_1.default.join(__dirname, '..', 'web', 'favicon.png'));
120
120
  });
121
121
  const edit = await editorGuess;
@@ -124,7 +124,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
124
124
  res.set('content-type', 'text/html');
125
125
  res.end((0, static_preview_1.indexHtml)(hash, '/', displayName));
126
126
  });
127
- const desiredPort = (_e = options === null || options === void 0 ? void 0 : options.port) !== null && _e !== void 0 ? _e : remotion_1.Internals.getServerPort();
127
+ const desiredPort = (_e = options === null || options === void 0 ? void 0 : options.port) !== null && _e !== void 0 ? _e : undefined;
128
128
  const port = await (0, get_port_1.getDesiredPort)(desiredPort, 3000, 3100);
129
129
  app.listen(port);
130
130
  return port;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-server.js","sourceRoot":"","sources":["../src/start-server.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,sDAA8B;AAC9B,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,uCAAsD;AACtD,sDAA8B;AAC9B,qDAAqC;AACrC,yFAAkF;AAClF,uFAI4D;AAE5D,yCAA0C;AAC1C,qDAAsD;AACtD,iDAA8C;AAC9C,qDAA2C;AAC3C,yDAAgE;AAChE,qDAA+C;AAExC,MAAM,WAAW,GAAG,KAAK,EAC/B,KAAa,EACb,oBAA4B,EAC5B,OAMC,EACiB,EAAE;;IACpB,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IACtB,MAAM,WAAW,GAAG,IAAA,4BAAW,GAAE,CAAC;IAClC,MAAM,MAAM,GAAG,MAAM,YAAE,CAAC,QAAQ,CAAC,OAAO,CACvC,cAAI,CAAC,IAAI,CAAC,YAAE,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AG,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACnC,GAAG,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAA,wCAAuB,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAErD,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QACvB,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QACrC,GAAG,CAAC,GAAG,CAAC,IAAA,0BAAS,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,oBAAS,CAAC,aAAa,EAAE,CAAC;IAE/D,MAAM,IAAI,GAAG,MAAM,IAAA,yBAAc,EAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAE3D,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjB,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAzIW,QAAA,WAAW,eAyItB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-preview.d.ts","sourceRoot":"","sources":["../src/static-preview.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,eACT,MAAM,WACT,MAAM,cACH,MAAM,GAAG,IAAI,WAqClB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-preview.js","sourceRoot":"","sources":["../src/static-preview.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAEjB,MAAM,SAAS,GAAG,CACxB,UAAkB,EAClB,OAAe,EACf,UAAyB,EACxB,EAAE,CACH;;;;;;;;;;;4CAW2C,UAAU;;;IAInD,UAAU;IACT,CAAC,CAAC,yCAAyC,UAAU,aAAa;IAClE,CAAC,CAAC,qDACJ;0CACwC,IAAI,CAAC,SAAS,CACrD,cAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAC5B;kCAC+B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;;;;;;;;;;iBAU9C,OAAO;;;CAGvB,CAAC,IAAI,EAAE,CAAC;AAxCI,QAAA,SAAS,aAwCb"}
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expect-to-throw.d.ts","sourceRoot":"","sources":["../../src/test/expect-to-throw.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAU,QAAQ,OAAO,MAAM,SAWxD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expect-to-throw.js","sourceRoot":"","sources":["../../src/test/expect-to-throw.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAAC,IAAc,EAAE,GAAW,EAAE,EAAE;IAC5D,wEAAwE;IACxE,qDAAqD;IACrD,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7B,mBAAmB;IACnB,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAElD,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAE1B,mBAAmB;IACnB,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;AAC7B,CAAC,CAAC;AAXW,QAAA,aAAa,iBAWxB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latest-remotion-version.test.d.ts","sourceRoot":"","sources":["../../src/test/latest-remotion-version.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latest-remotion-version.test.js","sourceRoot":"","sources":["../../src/test/latest-remotion-version.test.ts"],"names":[],"mappings":";;AAAA,gFAAwE;AAExE,IAAI,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,CAAC,MAAM,IAAA,sDAAwB,GAAE,CAAC,CAAC,OAAO,CAC/C,kCAAkC,CAClC,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-error-stack.test.d.ts","sourceRoot":"","sources":["../../src/test/parse-error-stack.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-error-stack.test.js","sourceRoot":"","sources":["../../src/test/parse-error-stack.test.ts"],"names":[],"mappings":";;AAAA,8GAA0G;AAE1G,MAAM,OAAO,GACZ,g0CAAg0C,CAAC;AACl0C,MAAM,KAAK,GACV,u0CAAu0C,CAAC;AAEz0C,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC9B,MAAM,CACL,IAAA,oDAAyB,EAAC;QACzB,KAAK;QACL,OAAO;QACP,IAAI,EAAE,OAAO;KACb,CAAC,CACF,CAAC,OAAO,CAAC;QACT,QAAQ,EAAE,+DAA+D;QACzE,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,EAAE;QAChB,OAAO,EACN,qKAAqK;KACtK,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-module-not-found.test.d.ts","sourceRoot":"","sources":["../../src/test/parse-module-not-found.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-module-not-found.test.js","sourceRoot":"","sources":["../../src/test/parse-module-not-found.test.ts"],"names":[],"mappings":";;AAAA,8GAA0G;AAE1G,MAAM,OAAO,GAAG,qCAAqC,CAAC;AACtD,MAAM,KAAK,GACV,yrBAAyrB,CAAC;AAE3rB,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC9B,MAAM,CACL,IAAA,oDAAyB,EAAC;QACzB,KAAK;QACL,OAAO;QACP,IAAI,EAAE,OAAO;KACb,CAAC,CACF,CAAC,OAAO,CAAC;QACT,QAAQ,EAAE,iBAAiB;QAC3B,UAAU,EAAE,CAAC;QACb,YAAY,EAAE,CAAC;QACf,OAAO,EAAE,4CAA4C;KACrD,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secure-source-read.test.d.ts","sourceRoot":"","sources":["../../src/test/secure-source-read.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secure-source-read.test.js","sourceRoot":"","sources":["../../src/test/secure-source-read.test.ts"],"names":[],"mappings":";;AAAA,0FAAmF;AACnF,uDAAgD;AAEhD,IAAI,CAAC,uDAAuD,EAAE,GAAG,EAAE;IAClE,IAAA,+BAAa,EAAC,GAAG,EAAE,CAAC,IAAA,+BAAa,EAAC,aAAa,CAAC,EAAE,qBAAqB,CAAC,CAAC;IACzE,IAAA,+BAAa,EAAC,GAAG,EAAE,CAAC,IAAA,+BAAa,EAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-available.d.ts","sourceRoot":"","sources":["../src/update-available.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAExE,aAAK,IAAI,GAAG;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;CAC3C,CAAC;AAaF,eAAO,MAAM,4BAA4B,qBAgBxC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-available.js","sourceRoot":"","sources":["../src/update-available.ts"],"names":[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
@@ -1,5 +1,5 @@
1
1
  import { WebpackConfiguration, WebpackOverrideFn } from 'remotion';
2
- export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgressUpdate, enableCaching, inputProps, envVariables, maxTimelineTracks, }: {
2
+ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgressUpdate, enableCaching, inputProps, envVariables, maxTimelineTracks, entryPoints, }: {
3
3
  entry: string;
4
4
  userDefinedComponent: string;
5
5
  outDir: string;
@@ -10,4 +10,5 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
10
10
  inputProps: object;
11
11
  envVariables: Record<string, string>;
12
12
  maxTimelineTracks: number;
13
+ entryPoints: string[];
13
14
  }) => WebpackConfiguration;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack-config.d.ts","sourceRoot":"","sources":["../src/webpack-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAgC5E,eAAO,MAAM,aAAa;WAYlB,MAAM;0BACS,MAAM;YACpB,MAAM;iBACD,aAAa,GAAG,YAAY;qBACxB,iBAAiB;4BACX,MAAM,KAAK,IAAI;;gBAE1B,MAAM;kBACJ,OAAO,MAAM,EAAE,MAAM,CAAC;uBACjB,MAAM;MACtB,oBA+IH,CAAC"}