init commit
This commit is contained in:
29
remotion/node_modules/@remotion/studio/dist/visual-controls/VisualControls.d.ts
generated
vendored
Normal file
29
remotion/node_modules/@remotion/studio/dist/visual-controls/VisualControls.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
import type { z, ZodTypeAny } from 'zod';
|
||||
export type VisualControlValueWithoutUnsaved = {
|
||||
valueInCode: unknown;
|
||||
schema: ZodTypeAny;
|
||||
stack: string;
|
||||
};
|
||||
export type VisualControlValue = VisualControlValueWithoutUnsaved & {
|
||||
unsavedValue: unknown;
|
||||
};
|
||||
export type Handles = Record<string, VisualControlValue>;
|
||||
export type VisualControlsContextType = {
|
||||
handles: Handles;
|
||||
};
|
||||
export declare const VisualControlsTabActivatedContext: React.Context<boolean>;
|
||||
export type SetVisualControlsContextType = {
|
||||
updateHandles: () => void;
|
||||
updateValue: (key: string, value: unknown) => void;
|
||||
visualControl: <T>(key: string, value: T, schema?: z.ZodTypeAny) => T;
|
||||
};
|
||||
export declare const VisualControlsContext: React.Context<VisualControlsContextType>;
|
||||
export type VisualControlRef = {
|
||||
globalVisualControl: <T>(key: string, value: T, schema?: z.ZodTypeAny) => T;
|
||||
};
|
||||
export declare const visualControlRef: React.RefObject<VisualControlRef | null>;
|
||||
export declare const SetVisualControlsContext: React.Context<SetVisualControlsContextType>;
|
||||
export declare const VisualControlsProvider: React.FC<{
|
||||
readonly children: React.ReactNode;
|
||||
}>;
|
||||
Reference in New Issue
Block a user