remotion 3.3.80 → 3.3.81

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.
@@ -103,5 +103,6 @@ export declare const Internals: {
103
103
  durationInFrames: number;
104
104
  allowFloats: boolean;
105
105
  }) => void;
106
+ usePreload: (src: string) => string;
106
107
  };
107
108
  export type { TComposition, Timeline, TCompMetadata, TSequence, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
@@ -35,6 +35,7 @@ const get_preview_dom_element_js_1 = require("./get-preview-dom-element.js");
35
35
  const is_player_js_1 = require("./is-player.js");
36
36
  const portal_node_js_1 = require("./portal-node.js");
37
37
  const prefetch_state_js_1 = require("./prefetch-state.js");
38
+ const prefetch_js_1 = require("./prefetch.js");
38
39
  const register_root_js_1 = require("./register-root.js");
39
40
  const RemotionRoot_js_1 = require("./RemotionRoot.js");
40
41
  const SequenceContext_js_1 = require("./SequenceContext.js");
@@ -98,4 +99,5 @@ exports.Internals = {
98
99
  useIsPlayer: is_player_js_1.useIsPlayer,
99
100
  useRemotionEnvironment: get_environment_js_1.useRemotionEnvironment,
100
101
  validateFrame: validate_frame_js_1.validateFrame,
102
+ usePreload: prefetch_js_1.usePreload,
101
103
  };
@@ -24,6 +24,20 @@ const staticFile = (path) => {
24
24
  if (path.startsWith('..') || path.startsWith('./')) {
25
25
  throw new TypeError(`staticFile() does not support relative paths - got "${path}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
26
26
  }
27
+ if (path.startsWith('/Users') ||
28
+ path.startsWith('/home') ||
29
+ path.startsWith('/tmp') ||
30
+ path.startsWith('/etc') ||
31
+ path.startsWith('/opt') ||
32
+ path.startsWith('/var') ||
33
+ path.startsWith('C:') ||
34
+ path.startsWith('D:') ||
35
+ path.startsWith('E:')) {
36
+ throw new TypeError(`staticFile() does not support absolute paths - got "${path}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
37
+ }
38
+ if (path.startsWith('public/')) {
39
+ throw new TypeError(`Do not include the public/ prefix when using staticFile() - got "${path}". See: https://remotion.dev/docs/staticfile-relative-paths`);
40
+ }
27
41
  const preparsed = inner(path);
28
42
  if (!preparsed.startsWith('/')) {
29
43
  return `/${preparsed}`;
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.80";
1
+ export declare const VERSION = "3.3.81";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '3.3.80';
5
+ exports.VERSION = '3.3.81';
@@ -58,7 +58,7 @@ function truthy(value) {
58
58
  }
59
59
 
60
60
  // Automatically generated on publish
61
- const VERSION = '3.3.80';
61
+ const VERSION = '3.3.81';
62
62
 
63
63
  const checkMultipleRemotionVersions = () => {
64
64
  if (typeof globalThis === 'undefined') {
@@ -2387,6 +2387,7 @@ const Internals = {
2387
2387
  useIsPlayer,
2388
2388
  useRemotionEnvironment,
2389
2389
  validateFrame,
2390
+ usePreload,
2390
2391
  };
2391
2392
 
2392
2393
  const rotate = {
@@ -3560,6 +3561,20 @@ const staticFile = (path) => {
3560
3561
  if (path.startsWith('..') || path.startsWith('./')) {
3561
3562
  throw new TypeError(`staticFile() does not support relative paths - got "${path}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
3562
3563
  }
3564
+ if (path.startsWith('/Users') ||
3565
+ path.startsWith('/home') ||
3566
+ path.startsWith('/tmp') ||
3567
+ path.startsWith('/etc') ||
3568
+ path.startsWith('/opt') ||
3569
+ path.startsWith('/var') ||
3570
+ path.startsWith('C:') ||
3571
+ path.startsWith('D:') ||
3572
+ path.startsWith('E:')) {
3573
+ throw new TypeError(`staticFile() does not support absolute paths - got "${path}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
3574
+ }
3575
+ if (path.startsWith('public/')) {
3576
+ throw new TypeError(`Do not include the public/ prefix when using staticFile() - got "${path}". See: https://remotion.dev/docs/staticfile-relative-paths`);
3577
+ }
3563
3578
  const preparsed = inner(path);
3564
3579
  if (!preparsed.startsWith('/')) {
3565
3580
  return `/${preparsed}`;
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '3.3.80';
2
+ const VERSION = '3.3.81';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.3.80",
3
+ "version": "3.3.81",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",