@vishu1301/script-writing 1.1.2 → 1.1.4
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 +285 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -9
- package/dist/index.d.ts +18 -9
- package/dist/index.js +286 -183
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -54,13 +54,15 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
54
54
|
showPdfImport?: boolean;
|
|
55
55
|
showSaveButton?: boolean;
|
|
56
56
|
showSyncButton?: boolean;
|
|
57
|
+
isLocked?: boolean;
|
|
58
|
+
onToggleLock?: () => void;
|
|
57
59
|
onSave?: () => void;
|
|
58
60
|
onSaveAsPdf?: () => void;
|
|
59
61
|
onSaveAsSbx?: () => void;
|
|
60
62
|
onSyncWithCloud?: () => void;
|
|
61
63
|
handleSceneNumberChange: (blockId: string, value: string) => void;
|
|
62
64
|
};
|
|
63
|
-
declare function ScreenplayEditorView({ blocks, refs, focusedBlockId, showSuggestions, showExtensionSuggestions, characterExtensions, locations, characters, showPdfImport, showSaveButton, showSyncButton, handleBlockTextChange, handleSceneTypeChange, handleTimeOfDayChange, handleBlockTypeChange, handleSelectCharacterExtension, handleKeyDown, handleFocus, handleBlur, handleScriptImport, onSave, onSaveAsPdf, onSaveAsSbx, onSyncWithCloud, handleSceneNumberChange, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
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, onSaveAsSbx, onSyncWithCloud, handleSceneNumberChange, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
64
66
|
|
|
65
67
|
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => void;
|
|
66
68
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
|
@@ -70,14 +72,17 @@ interface ScriptBreakdown {
|
|
|
70
72
|
scene_number: string;
|
|
71
73
|
content: string;
|
|
72
74
|
}
|
|
73
|
-
type ElementCategory = "CAST" | "PROP" | "COSTUME" | "VEHICLE" | "SET_PROP" | "EXTRA" | "LOCATION";
|
|
75
|
+
type ElementCategory = "CAST" | "PROP" | "COSTUME" | "VEHICLE" | "SET_PROP" | "EXTRA" | "LOCATION" | "OTHER";
|
|
74
76
|
interface Tag {
|
|
75
|
-
id
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
id?: string;
|
|
78
|
+
scene_id?: string | number;
|
|
79
|
+
block_id: string;
|
|
80
|
+
category_id: ElementCategory;
|
|
81
|
+
name: string;
|
|
82
|
+
start_index: number;
|
|
83
|
+
end_index: number;
|
|
84
|
+
created_at?: string;
|
|
85
|
+
updated_at?: string;
|
|
81
86
|
}
|
|
82
87
|
declare const CATEGORIES: {
|
|
83
88
|
id: ElementCategory;
|
|
@@ -86,7 +91,7 @@ declare const CATEGORIES: {
|
|
|
86
91
|
hex: string;
|
|
87
92
|
}[];
|
|
88
93
|
|
|
89
|
-
declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, removeTag, clearSelection, menuPlacement, menuRef, subLocations, addSubLocation, removeSubLocation, sceneBrief, setSceneBrief, }: {
|
|
94
|
+
declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, removeTag, clearSelection, menuPlacement, menuRef, subLocations, addSubLocation, removeSubLocation, sceneBrief, setSceneBrief, onSummarize, isSummarizing, }: {
|
|
90
95
|
blocks: Block[];
|
|
91
96
|
characters: string[];
|
|
92
97
|
isLoading: boolean;
|
|
@@ -111,6 +116,8 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
|
|
|
111
116
|
removeSubLocation: (loc: string) => void;
|
|
112
117
|
sceneBrief: string;
|
|
113
118
|
setSceneBrief: (brief: string) => void;
|
|
119
|
+
onSummarize?: () => void;
|
|
120
|
+
isSummarizing?: boolean;
|
|
114
121
|
}): react_jsx_runtime.JSX.Element;
|
|
115
122
|
|
|
116
123
|
declare function useScriptBreakdownScene(sceneNumber: string): {
|
|
@@ -139,6 +146,8 @@ declare function useScriptBreakdownScene(sceneNumber: string): {
|
|
|
139
146
|
removeSubLocation: (subLocation: string) => void;
|
|
140
147
|
sceneBrief: string;
|
|
141
148
|
setSceneBrief: React$1.Dispatch<React$1.SetStateAction<string>>;
|
|
149
|
+
handleAISummarize: () => Promise<any>;
|
|
150
|
+
isSummarizing: boolean;
|
|
142
151
|
};
|
|
143
152
|
|
|
144
153
|
export { type Block, type BlockType, CATEGORIES, type ElementCategory, ScreenplayEditorView, type ScriptBreakdown, ScriptBreakdownSceneView, type Tag, type TimeOfDay, blockStyles, blockTypes, convertBlocksToSbx, handleSaveAsPdf, handleSyncWithCloud, icons, timeOfDayOptions, useScreenplayEditor, useScriptBreakdownScene, uuid };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,13 +54,15 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
54
54
|
showPdfImport?: boolean;
|
|
55
55
|
showSaveButton?: boolean;
|
|
56
56
|
showSyncButton?: boolean;
|
|
57
|
+
isLocked?: boolean;
|
|
58
|
+
onToggleLock?: () => void;
|
|
57
59
|
onSave?: () => void;
|
|
58
60
|
onSaveAsPdf?: () => void;
|
|
59
61
|
onSaveAsSbx?: () => void;
|
|
60
62
|
onSyncWithCloud?: () => void;
|
|
61
63
|
handleSceneNumberChange: (blockId: string, value: string) => void;
|
|
62
64
|
};
|
|
63
|
-
declare function ScreenplayEditorView({ blocks, refs, focusedBlockId, showSuggestions, showExtensionSuggestions, characterExtensions, locations, characters, showPdfImport, showSaveButton, showSyncButton, handleBlockTextChange, handleSceneTypeChange, handleTimeOfDayChange, handleBlockTypeChange, handleSelectCharacterExtension, handleKeyDown, handleFocus, handleBlur, handleScriptImport, onSave, onSaveAsPdf, onSaveAsSbx, onSyncWithCloud, handleSceneNumberChange, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
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, onSaveAsSbx, onSyncWithCloud, handleSceneNumberChange, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
64
66
|
|
|
65
67
|
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => void;
|
|
66
68
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
|
@@ -70,14 +72,17 @@ interface ScriptBreakdown {
|
|
|
70
72
|
scene_number: string;
|
|
71
73
|
content: string;
|
|
72
74
|
}
|
|
73
|
-
type ElementCategory = "CAST" | "PROP" | "COSTUME" | "VEHICLE" | "SET_PROP" | "EXTRA" | "LOCATION";
|
|
75
|
+
type ElementCategory = "CAST" | "PROP" | "COSTUME" | "VEHICLE" | "SET_PROP" | "EXTRA" | "LOCATION" | "OTHER";
|
|
74
76
|
interface Tag {
|
|
75
|
-
id
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
id?: string;
|
|
78
|
+
scene_id?: string | number;
|
|
79
|
+
block_id: string;
|
|
80
|
+
category_id: ElementCategory;
|
|
81
|
+
name: string;
|
|
82
|
+
start_index: number;
|
|
83
|
+
end_index: number;
|
|
84
|
+
created_at?: string;
|
|
85
|
+
updated_at?: string;
|
|
81
86
|
}
|
|
82
87
|
declare const CATEGORIES: {
|
|
83
88
|
id: ElementCategory;
|
|
@@ -86,7 +91,7 @@ declare const CATEGORIES: {
|
|
|
86
91
|
hex: string;
|
|
87
92
|
}[];
|
|
88
93
|
|
|
89
|
-
declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, removeTag, clearSelection, menuPlacement, menuRef, subLocations, addSubLocation, removeSubLocation, sceneBrief, setSceneBrief, }: {
|
|
94
|
+
declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, removeTag, clearSelection, menuPlacement, menuRef, subLocations, addSubLocation, removeSubLocation, sceneBrief, setSceneBrief, onSummarize, isSummarizing, }: {
|
|
90
95
|
blocks: Block[];
|
|
91
96
|
characters: string[];
|
|
92
97
|
isLoading: boolean;
|
|
@@ -111,6 +116,8 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
|
|
|
111
116
|
removeSubLocation: (loc: string) => void;
|
|
112
117
|
sceneBrief: string;
|
|
113
118
|
setSceneBrief: (brief: string) => void;
|
|
119
|
+
onSummarize?: () => void;
|
|
120
|
+
isSummarizing?: boolean;
|
|
114
121
|
}): react_jsx_runtime.JSX.Element;
|
|
115
122
|
|
|
116
123
|
declare function useScriptBreakdownScene(sceneNumber: string): {
|
|
@@ -139,6 +146,8 @@ declare function useScriptBreakdownScene(sceneNumber: string): {
|
|
|
139
146
|
removeSubLocation: (subLocation: string) => void;
|
|
140
147
|
sceneBrief: string;
|
|
141
148
|
setSceneBrief: React$1.Dispatch<React$1.SetStateAction<string>>;
|
|
149
|
+
handleAISummarize: () => Promise<any>;
|
|
150
|
+
isSummarizing: boolean;
|
|
142
151
|
};
|
|
143
152
|
|
|
144
153
|
export { type Block, type BlockType, CATEGORIES, type ElementCategory, ScreenplayEditorView, type ScriptBreakdown, ScriptBreakdownSceneView, type Tag, type TimeOfDay, blockStyles, blockTypes, convertBlocksToSbx, handleSaveAsPdf, handleSyncWithCloud, icons, timeOfDayOptions, useScreenplayEditor, useScriptBreakdownScene, uuid };
|