@vishu1301/script-writing 1.5.9 → 1.6.1
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/dist/index.cjs +936 -550
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +937 -551
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -30,11 +30,14 @@ declare const blockStyles: Record<BlockType, {
|
|
|
30
30
|
type LanguageType = "English" | "Hindi Phonetic" | "Gujarati Phonetic";
|
|
31
31
|
|
|
32
32
|
interface UseScreenplayEditorOptions {
|
|
33
|
+
blocks?: Block[];
|
|
33
34
|
initialUrl?: string;
|
|
34
35
|
fetchOptions?: RequestInit;
|
|
35
|
-
onSave?: (
|
|
36
|
+
onSave?: (blocks: Block[]) => void;
|
|
37
|
+
onSaveBlob?: (content?: Blob) => void;
|
|
36
38
|
onSyncWithCloud?: (blocks: Block[], sceneNumbers: Record<string, string>) => void;
|
|
37
39
|
enhanceContentUrl?: string | URL | Request;
|
|
40
|
+
isLocked?: boolean;
|
|
38
41
|
}
|
|
39
42
|
declare function useScreenplayEditor(options?: UseScreenplayEditorOptions): {
|
|
40
43
|
blocks: Block[];
|
|
@@ -72,6 +75,8 @@ declare function useScreenplayEditor(options?: UseScreenplayEditorOptions): {
|
|
|
72
75
|
setCurrentLanguage: React__default.Dispatch<React__default.SetStateAction<LanguageType>>;
|
|
73
76
|
phoneticSuggestions: string[];
|
|
74
77
|
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
78
|
+
isLocked: boolean;
|
|
79
|
+
autosaveStatus: "idle" | "typing" | "saving" | "saved" | "error";
|
|
75
80
|
};
|
|
76
81
|
|
|
77
82
|
type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
@@ -97,7 +102,7 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
97
102
|
phoneticSuggestions: string[];
|
|
98
103
|
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
99
104
|
};
|
|
100
|
-
declare function ScreenplayEditorView({ blocks, refs, focusedBlockId, showSuggestions, showExtensionSuggestions, characterExtensions, locations, characters, showPdfImport, showSaveButton, showSyncButton, isLocked, onToggleLock, handleBlockTextChange, handleSceneTypeChange, handleTimeOfDayChange, handleBlockTypeChange, handleSelectCharacterExtension, handleKeyDown, handleFocus, handleBlur, handleScriptImport, onSave, onSaveAsPdf, onSyncWithCloud, handleSceneNumberChange, handleEnhance, handleApproveEnhance, handleRejectEnhance, enhancingBlockId, enhancementSuggestion, isEnhancing, showUnsavedPopover, syncScreenplay, ignoreChanges, isLoading, savePopOverLeft, currentLanguage, setCurrentLanguage, phoneticSuggestions, handleSelectPhoneticSuggestion, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
105
|
+
declare function ScreenplayEditorView({ blocks, refs, focusedBlockId, showSuggestions, showExtensionSuggestions, characterExtensions, locations, characters, showPdfImport, showSaveButton, showSyncButton, isLocked, onToggleLock, handleBlockTextChange, handleSceneTypeChange, handleTimeOfDayChange, handleBlockTypeChange, handleSelectCharacterExtension, handleKeyDown, handleFocus, handleBlur, handleScriptImport, onSave, onSaveAsPdf, onSyncWithCloud, handleSceneNumberChange, handleEnhance, handleApproveEnhance, handleRejectEnhance, enhancingBlockId, enhancementSuggestion, isEnhancing, showUnsavedPopover, syncScreenplay, ignoreChanges, isLoading, savePopOverLeft, currentLanguage, setCurrentLanguage, phoneticSuggestions, handleSelectPhoneticSuggestion, autosaveStatus, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
101
106
|
|
|
102
107
|
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => Promise<void>;
|
|
103
108
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -30,11 +30,14 @@ declare const blockStyles: Record<BlockType, {
|
|
|
30
30
|
type LanguageType = "English" | "Hindi Phonetic" | "Gujarati Phonetic";
|
|
31
31
|
|
|
32
32
|
interface UseScreenplayEditorOptions {
|
|
33
|
+
blocks?: Block[];
|
|
33
34
|
initialUrl?: string;
|
|
34
35
|
fetchOptions?: RequestInit;
|
|
35
|
-
onSave?: (
|
|
36
|
+
onSave?: (blocks: Block[]) => void;
|
|
37
|
+
onSaveBlob?: (content?: Blob) => void;
|
|
36
38
|
onSyncWithCloud?: (blocks: Block[], sceneNumbers: Record<string, string>) => void;
|
|
37
39
|
enhanceContentUrl?: string | URL | Request;
|
|
40
|
+
isLocked?: boolean;
|
|
38
41
|
}
|
|
39
42
|
declare function useScreenplayEditor(options?: UseScreenplayEditorOptions): {
|
|
40
43
|
blocks: Block[];
|
|
@@ -72,6 +75,8 @@ declare function useScreenplayEditor(options?: UseScreenplayEditorOptions): {
|
|
|
72
75
|
setCurrentLanguage: React__default.Dispatch<React__default.SetStateAction<LanguageType>>;
|
|
73
76
|
phoneticSuggestions: string[];
|
|
74
77
|
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
78
|
+
isLocked: boolean;
|
|
79
|
+
autosaveStatus: "idle" | "typing" | "saving" | "saved" | "error";
|
|
75
80
|
};
|
|
76
81
|
|
|
77
82
|
type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
@@ -97,7 +102,7 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
97
102
|
phoneticSuggestions: string[];
|
|
98
103
|
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
99
104
|
};
|
|
100
|
-
declare function ScreenplayEditorView({ blocks, refs, focusedBlockId, showSuggestions, showExtensionSuggestions, characterExtensions, locations, characters, showPdfImport, showSaveButton, showSyncButton, isLocked, onToggleLock, handleBlockTextChange, handleSceneTypeChange, handleTimeOfDayChange, handleBlockTypeChange, handleSelectCharacterExtension, handleKeyDown, handleFocus, handleBlur, handleScriptImport, onSave, onSaveAsPdf, onSyncWithCloud, handleSceneNumberChange, handleEnhance, handleApproveEnhance, handleRejectEnhance, enhancingBlockId, enhancementSuggestion, isEnhancing, showUnsavedPopover, syncScreenplay, ignoreChanges, isLoading, savePopOverLeft, currentLanguage, setCurrentLanguage, phoneticSuggestions, handleSelectPhoneticSuggestion, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
105
|
+
declare function ScreenplayEditorView({ blocks, refs, focusedBlockId, showSuggestions, showExtensionSuggestions, characterExtensions, locations, characters, showPdfImport, showSaveButton, showSyncButton, isLocked, onToggleLock, handleBlockTextChange, handleSceneTypeChange, handleTimeOfDayChange, handleBlockTypeChange, handleSelectCharacterExtension, handleKeyDown, handleFocus, handleBlur, handleScriptImport, onSave, onSaveAsPdf, onSyncWithCloud, handleSceneNumberChange, handleEnhance, handleApproveEnhance, handleRejectEnhance, enhancingBlockId, enhancementSuggestion, isEnhancing, showUnsavedPopover, syncScreenplay, ignoreChanges, isLoading, savePopOverLeft, currentLanguage, setCurrentLanguage, phoneticSuggestions, handleSelectPhoneticSuggestion, autosaveStatus, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
101
106
|
|
|
102
107
|
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => Promise<void>;
|
|
103
108
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|