@vishu1301/script-writing 1.5.3 → 1.5.5
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 +1294 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +1294 -37
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -22,6 +22,13 @@ declare const blockStyles: Record<BlockType, {
|
|
|
22
22
|
inputStyle: React__default.CSSProperties;
|
|
23
23
|
}>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Multilingual Input Service
|
|
27
|
+
* Implements a Deterministic Finite State Machine (DFSM) for real-time
|
|
28
|
+
* keyboard layout mapping. Supports Indic (InScript), Arabic, French, and Spanish.
|
|
29
|
+
*/
|
|
30
|
+
type LanguageType = "English" | "Hindi Phonetic" | "Gujarati Phonetic";
|
|
31
|
+
|
|
25
32
|
interface UseScreenplayEditorOptions {
|
|
26
33
|
initialUrl?: string;
|
|
27
34
|
fetchOptions?: RequestInit;
|
|
@@ -61,6 +68,10 @@ declare function useScreenplayEditor(options?: UseScreenplayEditorOptions): {
|
|
|
61
68
|
syncScreenplay: () => void;
|
|
62
69
|
ignoreChanges: () => void;
|
|
63
70
|
loadFromUrl: (url: string, fetchOptions?: RequestInit, isInitialLoad?: boolean) => Promise<void>;
|
|
71
|
+
currentLanguage: LanguageType;
|
|
72
|
+
setCurrentLanguage: React__default.Dispatch<React__default.SetStateAction<LanguageType>>;
|
|
73
|
+
phoneticSuggestions: string[];
|
|
74
|
+
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
64
75
|
};
|
|
65
76
|
|
|
66
77
|
type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
@@ -81,10 +92,14 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
81
92
|
enhancementSuggestion: string | null;
|
|
82
93
|
isEnhancing: boolean;
|
|
83
94
|
savePopOverLeft?: string;
|
|
95
|
+
currentLanguage: LanguageType;
|
|
96
|
+
setCurrentLanguage: (lang: LanguageType) => void;
|
|
97
|
+
phoneticSuggestions: string[];
|
|
98
|
+
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
84
99
|
};
|
|
85
|
-
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, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
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;
|
|
86
101
|
|
|
87
|
-
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => void
|
|
102
|
+
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => Promise<void>;
|
|
88
103
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
|
89
104
|
declare const handleSyncWithCloud: (blocks: Block[], sceneNumbers: Record<string, string>, onSaveAsSbx?: (file: File) => void, project_name?: string) => void;
|
|
90
105
|
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ declare const blockStyles: Record<BlockType, {
|
|
|
22
22
|
inputStyle: React__default.CSSProperties;
|
|
23
23
|
}>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Multilingual Input Service
|
|
27
|
+
* Implements a Deterministic Finite State Machine (DFSM) for real-time
|
|
28
|
+
* keyboard layout mapping. Supports Indic (InScript), Arabic, French, and Spanish.
|
|
29
|
+
*/
|
|
30
|
+
type LanguageType = "English" | "Hindi Phonetic" | "Gujarati Phonetic";
|
|
31
|
+
|
|
25
32
|
interface UseScreenplayEditorOptions {
|
|
26
33
|
initialUrl?: string;
|
|
27
34
|
fetchOptions?: RequestInit;
|
|
@@ -61,6 +68,10 @@ declare function useScreenplayEditor(options?: UseScreenplayEditorOptions): {
|
|
|
61
68
|
syncScreenplay: () => void;
|
|
62
69
|
ignoreChanges: () => void;
|
|
63
70
|
loadFromUrl: (url: string, fetchOptions?: RequestInit, isInitialLoad?: boolean) => Promise<void>;
|
|
71
|
+
currentLanguage: LanguageType;
|
|
72
|
+
setCurrentLanguage: React__default.Dispatch<React__default.SetStateAction<LanguageType>>;
|
|
73
|
+
phoneticSuggestions: string[];
|
|
74
|
+
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
64
75
|
};
|
|
65
76
|
|
|
66
77
|
type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
@@ -81,10 +92,14 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
81
92
|
enhancementSuggestion: string | null;
|
|
82
93
|
isEnhancing: boolean;
|
|
83
94
|
savePopOverLeft?: string;
|
|
95
|
+
currentLanguage: LanguageType;
|
|
96
|
+
setCurrentLanguage: (lang: LanguageType) => void;
|
|
97
|
+
phoneticSuggestions: string[];
|
|
98
|
+
handleSelectPhoneticSuggestion: (suggestion: string) => void;
|
|
84
99
|
};
|
|
85
|
-
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, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
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;
|
|
86
101
|
|
|
87
|
-
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => void
|
|
102
|
+
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => Promise<void>;
|
|
88
103
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
|
89
104
|
declare const handleSyncWithCloud: (blocks: Block[], sceneNumbers: Record<string, string>, onSaveAsSbx?: (file: File) => void, project_name?: string) => void;
|
|
90
105
|
|