Comparing version 4.0.146 to 4.0.147
@@ -72,3 +72,3 @@ import type { ComponentType, LazyExoticComponent } from 'react'; | ||
export declare const compositionsRef: React.RefObject<{ | ||
getCompositions: () => TCompMetadataWithCalcFunction<AnyZodObject, Record<string, unknown>>[]; | ||
getCompositions: () => AnyComposition[]; | ||
}>; | ||
@@ -75,0 +75,0 @@ export declare const CompositionManagerProvider: React.FC<{ |
@@ -12,5 +12,8 @@ import React from 'react'; | ||
export declare const EditorPropsContext: React.Context<EditorPropsContextType>; | ||
export declare const editorPropsProviderRef: React.RefObject<{ | ||
getProps: () => Props; | ||
}>; | ||
export declare const EditorPropsProvider: React.FC<{ | ||
children: React.ReactNode; | ||
readonly children: React.ReactNode; | ||
}>; | ||
export {}; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EditorPropsProvider = exports.EditorPropsContext = void 0; | ||
exports.EditorPropsProvider = exports.editorPropsProviderRef = exports.EditorPropsContext = void 0; | ||
const jsx_runtime_1 = require("react/jsx-runtime"); | ||
@@ -36,2 +36,3 @@ const react_1 = __importStar(require("react")); | ||
}); | ||
exports.editorPropsProviderRef = react_1.default.createRef(); | ||
const EditorPropsProvider = ({ children }) => { | ||
@@ -50,2 +51,7 @@ const [props, setProps] = react_1.default.useState({}); | ||
}, []); | ||
(0, react_1.useImperativeHandle)(exports.editorPropsProviderRef, () => { | ||
return { | ||
getProps: () => props, | ||
}; | ||
}, [props]); | ||
const ctx = (0, react_1.useMemo)(() => { | ||
@@ -52,0 +58,0 @@ return { props, updateProps }; |
@@ -67,3 +67,3 @@ /// <reference types="react" /> | ||
readonly compositionsRef: import("react").RefObject<{ | ||
getCompositions: () => import("./CompositionManager.js").TCompMetadataWithCalcFunction<import("zod").AnyZodObject, Record<string, unknown>>[]; | ||
getCompositions: () => import("./CompositionManager.js").AnyComposition[]; | ||
}>; | ||
@@ -87,3 +87,3 @@ readonly portalNode: () => HTMLElement; | ||
readonly EditorPropsProvider: import("react").FC<{ | ||
children: import("react").ReactNode; | ||
readonly children: import("react").ReactNode; | ||
}>; | ||
@@ -160,3 +160,8 @@ readonly EditorPropsContext: import("react").Context<import("./EditorProps.js").EditorPropsContextType>; | ||
}) => number; | ||
readonly editorPropsProviderRef: import("react").RefObject<{ | ||
getProps: () => { | ||
[x: string]: Record<string, unknown>; | ||
}; | ||
}>; | ||
}; | ||
export type { CompositionManagerContext, CompProps, MediaVolumeContextValue, RemotionEnvironment, SerializedJSONWithCustomFields, SetMediaVolumeContextValue, SetTimelineContextValue, TRenderAsset as TAsset, TCompMetadata, TComposition, TimelinePosition as Timeline, TimelineContextValue, TSequence, WatchRemotionStaticFilesPayload, }; |
@@ -127,2 +127,3 @@ "use strict"; | ||
calculateScale: use_current_scale_js_1.calculateScale, | ||
editorPropsProviderRef: EditorProps_js_1.editorPropsProviderRef, | ||
}; |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const VERSION = "4.0.146"; | ||
export declare const VERSION = "4.0.147"; |
@@ -10,2 +10,2 @@ "use strict"; | ||
*/ | ||
exports.VERSION = '4.0.146'; | ||
exports.VERSION = '4.0.147'; |
{ | ||
"name": "remotion", | ||
"version": "4.0.146", | ||
"version": "4.0.147", | ||
"description": "Render videos in React", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
640750
14718