remotion 4.0.143 → 4.0.144

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.
package/LICENSE.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Remotion License
2
2
 
3
+ In Remotion 5.0, the license will slightly change. [View the changes here](https://github.com/remotion-dev/remotion/pull/3750).
4
+
5
+ ---
6
+
3
7
  Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
4
8
 
5
9
  - [Free license](#free-license)
@@ -1,39 +1,40 @@
1
1
  import React from 'react';
2
2
  import type { LoopDisplay } from './CompositionManager.js';
3
- export type LayoutAndStyle = {
3
+ export type AbsoluteFillLayout = {
4
4
  layout?: 'absolute-fill';
5
5
  premountFor?: number;
6
6
  style?: React.CSSProperties;
7
7
  className?: string;
8
- } | {
8
+ };
9
+ export type LayoutAndStyle = AbsoluteFillLayout | {
9
10
  layout: 'none';
10
11
  };
11
12
  export type SequencePropsWithoutDuration = {
12
- children: React.ReactNode;
13
- width?: number;
14
- height?: number;
15
- from?: number;
16
- name?: string;
17
- showInTimeline?: boolean;
13
+ readonly children: React.ReactNode;
14
+ readonly width?: number;
15
+ readonly height?: number;
16
+ readonly from?: number;
17
+ readonly name?: string;
18
+ readonly showInTimeline?: boolean;
18
19
  /**
19
20
  * @deprecated For internal use only.
20
21
  */
21
- _remotionInternalLoopDisplay?: LoopDisplay;
22
+ readonly _remotionInternalLoopDisplay?: LoopDisplay;
22
23
  /**
23
24
  * @deprecated For internal use only.
24
25
  */
25
- _remotionInternalPremountDisplay?: number | null;
26
+ readonly _remotionInternalPremountDisplay?: number | null;
26
27
  /**
27
28
  * @deprecated For internal use only.
28
29
  */
29
- _remotionInternalStack?: string;
30
+ readonly _remotionInternalStack?: string;
30
31
  /**
31
32
  * @deprecated For internal use only.
32
33
  */
33
- _remotionInternalIsPremounting?: boolean;
34
+ readonly _remotionInternalIsPremounting?: boolean;
34
35
  } & LayoutAndStyle;
35
36
  export type SequenceProps = {
36
- durationInFrames?: number;
37
+ readonly durationInFrames?: number;
37
38
  } & SequencePropsWithoutDuration;
38
39
  /**
39
40
  * @description A component that time-shifts its children and wraps them in an absolutely positioned <div>.
@@ -1,3 +1,3 @@
1
1
  export declare const injectCSS: (css: string) => void;
2
2
  export declare const OFFTHREAD_VIDEO_CLASS_NAME = "__remotion_offthreadvideo";
3
- export declare const makeDefaultCSS: (scope: string | null, backgroundColor: string) => string;
3
+ export declare const makeDefaultPreviewCSS: (scope: string | null, backgroundColor: string) => string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeDefaultCSS = exports.OFFTHREAD_VIDEO_CLASS_NAME = exports.injectCSS = void 0;
3
+ exports.makeDefaultPreviewCSS = exports.OFFTHREAD_VIDEO_CLASS_NAME = exports.injectCSS = void 0;
4
4
  const injected = {};
5
5
  const injectCSS = (css) => {
6
6
  // Skip in node
@@ -18,7 +18,7 @@ const injectCSS = (css) => {
18
18
  };
19
19
  exports.injectCSS = injectCSS;
20
20
  exports.OFFTHREAD_VIDEO_CLASS_NAME = '__remotion_offthreadvideo';
21
- const makeDefaultCSS = (scope, backgroundColor) => {
21
+ const makeDefaultPreviewCSS = (scope, backgroundColor) => {
22
22
  if (!scope) {
23
23
  return `
24
24
  * {
@@ -46,4 +46,4 @@ const makeDefaultCSS = (scope, backgroundColor) => {
46
46
  }
47
47
  `;
48
48
  };
49
- exports.makeDefaultCSS = makeDefaultCSS;
49
+ exports.makeDefaultPreviewCSS = makeDefaultPreviewCSS;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getStaticFiles = void 0;
4
+ const v5_flag_1 = require("./v5-flag");
4
5
  let warnedServer = false;
5
6
  let warnedPlayer = false;
6
7
  const warnServerOnce = () => {
@@ -24,6 +25,9 @@ const warnPlayerOnce = () => {
24
25
  * @see [Documentation](https://www.remotion.dev/docs/getstaticfiles)
25
26
  */
26
27
  const getStaticFiles = () => {
28
+ if (v5_flag_1.ENABLE_V5_BREAKING_CHANGES) {
29
+ throw new Error('getStaticFiles() has moved into the `@remotion/studio` package. Update your imports.');
30
+ }
27
31
  if (typeof document === 'undefined') {
28
32
  warnServerOnce();
29
33
  return [];
@@ -90,7 +90,7 @@ export { ClipRegion } from './NativeLayers.js';
90
90
  export { EasingFunction, ExtrapolateType, interpolate, InterpolateOptions, random, RandomSeed, } from './no-react';
91
91
  export { prefetch, PrefetchOnProgress } from './prefetch.js';
92
92
  export { registerRoot } from './register-root.js';
93
- export { LayoutAndStyle, Sequence, SequenceProps, SequencePropsWithoutDuration, } from './Sequence.js';
93
+ export { AbsoluteFillLayout, LayoutAndStyle, Sequence, SequenceProps, SequencePropsWithoutDuration, } from './Sequence.js';
94
94
  export { Series } from './series/index.js';
95
95
  export * from './spring/index.js';
96
96
  export { staticFile } from './static-file.js';
@@ -1,6 +1,6 @@
1
1
  export type ExtrapolateType = 'extend' | 'identity' | 'clamp' | 'wrap';
2
2
  /**
3
- * @description This function allows you to map a range of values to another with a conside syntax
3
+ * @description This function allows you to map a range of values to another with a concise syntax
4
4
  * @see [Documentation](https://www.remotion.dev/docs/interpolate)
5
5
  */
6
6
  export type EasingFunction = (input: number) => number;
@@ -7,10 +7,12 @@ const Sequence_js_1 = require("../Sequence.js");
7
7
  const enable_sequence_stack_traces_js_1 = require("../enable-sequence-stack-traces.js");
8
8
  const validate_duration_in_frames_js_1 = require("../validation/validate-duration-in-frames.js");
9
9
  const flatten_children_js_1 = require("./flatten-children.js");
10
+ const is_inside_series_js_1 = require("./is-inside-series.js");
10
11
  const SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
12
+ (0, is_inside_series_js_1.useRequireToBeInsideSeries)();
11
13
  // Discard ref
12
14
  // eslint-disable-next-line react/jsx-no-useless-fragment
13
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
15
+ return (0, jsx_runtime_1.jsx)(is_inside_series_js_1.IsNotInsideSeriesProvider, { children: children });
14
16
  };
15
17
  const SeriesSequence = (0, react_1.forwardRef)(SeriesSequenceRefForwardingFunction);
16
18
  /**
@@ -62,8 +64,7 @@ const Series = ({ children }) => {
62
64
  return ((0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence, { name: name || '<Series.Sequence>', from: currentStartFrame, durationInFrames: durationInFramesProp, ...passedProps, ref: castedChild.ref, children: child }));
63
65
  });
64
66
  }, [children]);
65
- /* eslint-disable react/jsx-no-useless-fragment */
66
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: childrenValue });
67
+ return (0, jsx_runtime_1.jsx)(is_inside_series_js_1.IsInsideSeriesContainer, { children: childrenValue });
67
68
  };
68
69
  exports.Series = Series;
69
70
  Series.Sequence = SeriesSequence;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare const IsInsideSeriesContext: React.Context<boolean>;
3
+ export declare const IsInsideSeriesContainer: React.FC<{
4
+ readonly children: React.ReactNode;
5
+ }>;
6
+ export declare const IsNotInsideSeriesProvider: React.FC<{
7
+ readonly children: React.ReactNode;
8
+ }>;
9
+ export declare const useRequireToBeInsideSeries: () => void;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.useRequireToBeInsideSeries = exports.IsNotInsideSeriesProvider = exports.IsInsideSeriesContainer = exports.IsInsideSeriesContext = void 0;
27
+ const jsx_runtime_1 = require("react/jsx-runtime");
28
+ const react_1 = __importStar(require("react"));
29
+ exports.IsInsideSeriesContext = (0, react_1.createContext)(false);
30
+ const IsInsideSeriesContainer = ({ children }) => {
31
+ return ((0, jsx_runtime_1.jsx)(exports.IsInsideSeriesContext.Provider, { value: true, children: children }));
32
+ };
33
+ exports.IsInsideSeriesContainer = IsInsideSeriesContainer;
34
+ const IsNotInsideSeriesProvider = ({ children }) => {
35
+ return ((0, jsx_runtime_1.jsx)(exports.IsInsideSeriesContext.Provider, { value: false, children: children }));
36
+ };
37
+ exports.IsNotInsideSeriesProvider = IsNotInsideSeriesProvider;
38
+ const useRequireToBeInsideSeries = () => {
39
+ const isInsideSeries = react_1.default.useContext(exports.IsInsideSeriesContext);
40
+ if (!isInsideSeries) {
41
+ throw new Error('This component must be inside a <Series /> component.');
42
+ }
43
+ };
44
+ exports.useRequireToBeInsideSeries = useRequireToBeInsideSeries;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.measureSpring = exports.spring = void 0;
4
+ const interpolate_js_1 = require("../interpolate.js");
4
5
  const validate_frame_js_1 = require("../validate-frame.js");
5
6
  const validate_fps_js_1 = require("../validation/validate-fps.js");
6
7
  const validation_spring_duration_js_1 = require("../validation/validation-spring-duration.js");
@@ -64,16 +65,14 @@ function spring({ frame: passedFrame, fps, config = {}, from = 0, to = 1, durati
64
65
  fps,
65
66
  frame: durationProcessed,
66
67
  config,
67
- from,
68
- to,
69
68
  });
70
- if (!config.overshootClamping) {
71
- return spr.current;
72
- }
73
- if (to >= from) {
74
- return Math.min(spr.current, to);
75
- }
76
- return Math.max(spr.current, to);
69
+ const inner = config.overshootClamping
70
+ ? to >= from
71
+ ? Math.min(spr.current, to)
72
+ : Math.max(spr.current, to)
73
+ : spr.current;
74
+ const interpolated = from === 0 && to === 1 ? inner : (0, interpolate_js_1.interpolate)(inner, [0, 1], [from, to]);
75
+ return interpolated;
77
76
  }
78
77
  exports.spring = spring;
79
78
  var measure_spring_js_2 = require("./measure-spring.js");
@@ -49,8 +49,6 @@ function measureSpring({ fps, config = {}, threshold = 0.005, from = 0, to = 1,
49
49
  fps,
50
50
  frame,
51
51
  config,
52
- from,
53
- to,
54
52
  });
55
53
  };
56
54
  let animation = calc();
@@ -11,9 +11,7 @@ export type SpringConfig = {
11
11
  stiffness: number;
12
12
  overshootClamping: boolean;
13
13
  };
14
- export declare function springCalculation({ from, to, frame, fps, config, }: {
15
- from?: number;
16
- to?: number;
14
+ export declare function springCalculation({ frame, fps, config, }: {
17
15
  frame: number;
18
16
  fps: number;
19
17
  config?: Partial<SpringConfig>;
@@ -60,10 +60,10 @@ function advance({ animation, now, config, }) {
60
60
  return animationNode;
61
61
  }
62
62
  const calculationCache = {};
63
- function springCalculation({ from = 0, to = 1, frame, fps, config = {}, }) {
63
+ function springCalculation({ frame, fps, config = {}, }) {
64
+ const from = 0;
65
+ const to = 1;
64
66
  const cacheKey = [
65
- from,
66
- to,
67
67
  frame,
68
68
  fps,
69
69
  config.damping,
@@ -1,8 +1,7 @@
1
1
  import type { VideoConfig } from './video-config.js';
2
2
  /**
3
- * /**
4
3
  * @description Get some info about the context of the video that you are making.
5
4
  * @see [Documentation](https://www.remotion.dev/docs/use-video-config)
6
- * @returns Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
5
+ * @returns Returns an object containing `fps`, `width`, `height`, `durationInFrames`, `id` and `defaultProps`.
7
6
  */
8
7
  export declare const useVideoConfig: () => VideoConfig;
@@ -6,10 +6,9 @@ const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
6
6
  const is_player_js_1 = require("./is-player.js");
7
7
  const use_unsafe_video_config_js_1 = require("./use-unsafe-video-config.js");
8
8
  /**
9
- * /**
10
9
  * @description Get some info about the context of the video that you are making.
11
10
  * @see [Documentation](https://www.remotion.dev/docs/use-video-config)
12
- * @returns Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
11
+ * @returns Returns an object containing `fps`, `width`, `height`, `durationInFrames`, `id` and `defaultProps`.
13
12
  */
14
13
  const useVideoConfig = () => {
15
14
  const videoConfig = (0, use_unsafe_video_config_js_1.useUnsafeVideoConfig)();
@@ -1 +1,6 @@
1
- export declare const VERSION = "4.0.143";
1
+ /**
2
+ * @description Provides the current version number of the Remotion library.
3
+ * @see [Documentation](https://remotion.dev/docs/version)
4
+ * @returns {string} The current version of the remotion package
5
+ */
6
+ export declare const VERSION = "4.0.144";
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
+ // Automatically generated on publish
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.VERSION = void 0;
4
- // Automatically generated on publish
5
- exports.VERSION = '4.0.143';
5
+ /**
6
+ * @description Provides the current version number of the Remotion library.
7
+ * @see [Documentation](https://remotion.dev/docs/version)
8
+ * @returns {string} The current version of the remotion package
9
+ */
10
+ exports.VERSION = '4.0.144';
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.watchStaticFile = exports.WATCH_REMOTION_STATIC_FILES = void 0;
4
4
  const get_remotion_environment_1 = require("./get-remotion-environment");
5
+ const v5_flag_1 = require("./v5-flag");
5
6
  exports.WATCH_REMOTION_STATIC_FILES = 'remotion_staticFilesChanged';
6
7
  /**
7
8
  * @description Watch for changes in a specific static file.
@@ -11,6 +12,9 @@ exports.WATCH_REMOTION_STATIC_FILES = 'remotion_staticFilesChanged';
11
12
  * @see [Documentation](https://www.remotion.dev/docs/watchstaticfile)
12
13
  */
13
14
  const watchStaticFile = (fileName, callback) => {
15
+ if (v5_flag_1.ENABLE_V5_BREAKING_CHANGES) {
16
+ throw new Error('watchStaticFile() has moved into the `@remotion/studio` package. Update your imports.');
17
+ }
14
18
  // Check if function is called in Remotion Studio
15
19
  if (!(0, get_remotion_environment_1.getRemotionEnvironment)().isStudio) {
16
20
  // eslint-disable-next-line no-console
@@ -1,5 +1,5 @@
1
1
  import React, { createContext, useState, useMemo, useLayoutEffect, useContext, useEffect, forwardRef, useCallback, useRef, createRef, useImperativeHandle, useReducer, Suspense, Children } from 'react';
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { createPortal } from 'react-dom';
4
4
 
5
5
  const NativeLayersContext = createContext({
@@ -105,7 +105,12 @@ function truthy(value) {
105
105
  }
106
106
 
107
107
  // Automatically generated on publish
108
- const VERSION = '4.0.143';
108
+ /**
109
+ * @description Provides the current version number of the Remotion library.
110
+ * @see [Documentation](https://remotion.dev/docs/version)
111
+ * @returns {string} The current version of the remotion package
112
+ */
113
+ const VERSION = '4.0.144';
109
114
 
110
115
  const checkMultipleRemotionVersions = () => {
111
116
  if (typeof globalThis === 'undefined') {
@@ -926,10 +931,9 @@ const useUnsafeVideoConfig = () => {
926
931
  };
927
932
 
928
933
  /**
929
- * /**
930
934
  * @description Get some info about the context of the video that you are making.
931
935
  * @see [Documentation](https://www.remotion.dev/docs/use-video-config)
932
- * @returns Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
936
+ * @returns Returns an object containing `fps`, `width`, `height`, `durationInFrames`, `id` and `defaultProps`.
933
937
  */
934
938
  const useVideoConfig = () => {
935
939
  const videoConfig = useUnsafeVideoConfig();
@@ -3666,7 +3670,7 @@ const injectCSS = (css) => {
3666
3670
  injected[css] = true;
3667
3671
  };
3668
3672
  const OFFTHREAD_VIDEO_CLASS_NAME = '__remotion_offthreadvideo';
3669
- const makeDefaultCSS = (scope, backgroundColor) => {
3673
+ const makeDefaultPreviewCSS = (scope, backgroundColor) => {
3670
3674
  if (!scope) {
3671
3675
  return `
3672
3676
  * {
@@ -3699,7 +3703,7 @@ var CSSUtils = /*#__PURE__*/Object.freeze({
3699
3703
  __proto__: null,
3700
3704
  injectCSS: injectCSS,
3701
3705
  OFFTHREAD_VIDEO_CLASS_NAME: OFFTHREAD_VIDEO_CLASS_NAME,
3702
- makeDefaultCSS: makeDefaultCSS
3706
+ makeDefaultPreviewCSS: makeDefaultPreviewCSS
3703
3707
  });
3704
3708
 
3705
3709
  const REMOTION_STUDIO_CONTAINER_ELEMENT = '__remotion-studio-container';
@@ -4467,10 +4471,25 @@ const flattenChildren = (children) => {
4467
4471
  }, []);
4468
4472
  };
4469
4473
 
4474
+ const IsInsideSeriesContext = createContext(false);
4475
+ const IsInsideSeriesContainer = ({ children }) => {
4476
+ return (jsx(IsInsideSeriesContext.Provider, { value: true, children: children }));
4477
+ };
4478
+ const IsNotInsideSeriesProvider = ({ children }) => {
4479
+ return (jsx(IsInsideSeriesContext.Provider, { value: false, children: children }));
4480
+ };
4481
+ const useRequireToBeInsideSeries = () => {
4482
+ const isInsideSeries = React.useContext(IsInsideSeriesContext);
4483
+ if (!isInsideSeries) {
4484
+ throw new Error('This component must be inside a <Series /> component.');
4485
+ }
4486
+ };
4487
+
4470
4488
  const SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
4489
+ useRequireToBeInsideSeries();
4471
4490
  // Discard ref
4472
4491
  // eslint-disable-next-line react/jsx-no-useless-fragment
4473
- return jsx(Fragment, { children: children });
4492
+ return jsx(IsNotInsideSeriesProvider, { children: children });
4474
4493
  };
4475
4494
  const SeriesSequence = forwardRef(SeriesSequenceRefForwardingFunction);
4476
4495
  /**
@@ -4522,8 +4541,7 @@ const Series = ({ children }) => {
4522
4541
  return (jsx(Sequence, { name: name || '<Series.Sequence>', from: currentStartFrame, durationInFrames: durationInFramesProp, ...passedProps, ref: castedChild.ref, children: child }));
4523
4542
  });
4524
4543
  }, [children]);
4525
- /* eslint-disable react/jsx-no-useless-fragment */
4526
- return jsx(Fragment, { children: childrenValue });
4544
+ return jsx(IsInsideSeriesContainer, { children: childrenValue });
4527
4545
  };
4528
4546
  Series.Sequence = SeriesSequence;
4529
4547
  addSequenceStackTraces(SeriesSequence);
@@ -4605,10 +4623,10 @@ function advance({ animation, now, config, }) {
4605
4623
  return animationNode;
4606
4624
  }
4607
4625
  const calculationCache = {};
4608
- function springCalculation({ from = 0, to = 1, frame, fps, config = {}, }) {
4626
+ function springCalculation({ frame, fps, config = {}, }) {
4627
+ const from = 0;
4628
+ const to = 1;
4609
4629
  const cacheKey = [
4610
- from,
4611
- to,
4612
4630
  frame,
4613
4631
  fps,
4614
4632
  config.damping,
@@ -4692,8 +4710,6 @@ function measureSpring({ fps, config = {}, threshold = 0.005, from = 0, to = 1,
4692
4710
  fps,
4693
4711
  frame,
4694
4712
  config,
4695
- from,
4696
- to,
4697
4713
  });
4698
4714
  };
4699
4715
  let animation = calc();
@@ -4782,16 +4798,14 @@ function spring({ frame: passedFrame, fps, config = {}, from = 0, to = 1, durati
4782
4798
  fps,
4783
4799
  frame: durationProcessed,
4784
4800
  config,
4785
- from,
4786
- to,
4787
4801
  });
4788
- if (!config.overshootClamping) {
4789
- return spr.current;
4790
- }
4791
- if (to >= from) {
4792
- return Math.min(spr.current, to);
4793
- }
4794
- return Math.max(spr.current, to);
4802
+ const inner = config.overshootClamping
4803
+ ? to >= from
4804
+ ? Math.min(spr.current, to)
4805
+ : Math.max(spr.current, to)
4806
+ : spr.current;
4807
+ const interpolated = from === 0 && to === 1 ? inner : interpolate(inner, [0, 1], [from, to]);
4808
+ return interpolated;
4795
4809
  }
4796
4810
 
4797
4811
  /**
@@ -1,4 +1,9 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.143';
2
+ /**
3
+ * @description Provides the current version number of the Remotion library.
4
+ * @see [Documentation](https://remotion.dev/docs/version)
5
+ * @returns {string} The current version of the remotion package
6
+ */
7
+ const VERSION = '4.0.144';
3
8
 
4
9
  export { VERSION };
@@ -7,6 +7,12 @@ const {version} = packageJson;
7
7
  const src =
8
8
  `
9
9
  // Automatically generated on publish
10
+
11
+ /**
12
+ * @description Provides the current version number of the Remotion library.
13
+ * @see [Documentation](https://remotion.dev/docs/version)
14
+ * @returns {string} The current version of the remotion package
15
+ */
10
16
  export const VERSION = '${version}';
11
17
  `.trim() + '\n';
12
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.143",
3
+ "version": "4.0.144",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",