@vishu1301/script-writing 1.5.8 → 1.6.0

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.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?: (content?: Blob) => void;
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;
@@ -119,6 +124,12 @@ interface Tag {
119
124
  quantity?: number;
120
125
  look?: string;
121
126
  age?: string;
127
+ age_range?: {
128
+ name: string;
129
+ }[];
130
+ crowd_type?: {
131
+ name: string;
132
+ }[];
122
133
  created_at?: string;
123
134
  updated_at?: string;
124
135
  }
@@ -258,7 +269,7 @@ declare function ShotBreakdownView({ blocks, isLoading, shots, selectionMenu, ha
258
269
  clearSelection: () => void;
259
270
  menuRef: React__default.RefObject<HTMLDivElement | null>;
260
271
  cameras: Camera[];
261
- initializeProduction: (count: number, type: string) => any;
272
+ initializeProduction: (count: number, type: string, dance_choreographer_required?: boolean, action_sequence_required?: boolean) => any;
262
273
  handleAISummarize: () => void;
263
274
  isSummarizing: boolean;
264
275
  aiSummarized?: boolean;
@@ -272,7 +283,7 @@ interface UseShotBreakdownOptions {
272
283
  onShotsBulkAdded?: (shots: Shot[], scene_type: string) => Promise<void>;
273
284
  onShotRemoved?: (shotId: string) => any;
274
285
  onShotUpdated?: (shotId: string, detail: Shot) => any;
275
- onProductionInitialized?: (cameras: Camera[], type: string) => any;
286
+ onProductionInitialized?: (cameras: Camera[], type: string, dance_choreographer_required?: boolean, action_sequence_required?: boolean) => any;
276
287
  preloadedShots?: Shot[];
277
288
  preloadedCameras?: Camera[];
278
289
  preloadedSceneType?: string;
@@ -290,7 +301,7 @@ declare function useShotBreakdownScene(options: UseShotBreakdownOptions): {
290
301
  } | null;
291
302
  handleMouseUp: () => void;
292
303
  cameras: Camera[];
293
- initializeProduction: (count: number, type: string) => Promise<any>;
304
+ initializeProduction: (count: number, type: string, dance_choreographer_required?: boolean, action_sequence_required?: boolean) => Promise<any>;
294
305
  addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => any;
295
306
  updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => Promise<any>;
296
307
  clearSelection: () => void;
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?: (content?: Blob) => void;
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;
@@ -119,6 +124,12 @@ interface Tag {
119
124
  quantity?: number;
120
125
  look?: string;
121
126
  age?: string;
127
+ age_range?: {
128
+ name: string;
129
+ }[];
130
+ crowd_type?: {
131
+ name: string;
132
+ }[];
122
133
  created_at?: string;
123
134
  updated_at?: string;
124
135
  }
@@ -258,7 +269,7 @@ declare function ShotBreakdownView({ blocks, isLoading, shots, selectionMenu, ha
258
269
  clearSelection: () => void;
259
270
  menuRef: React__default.RefObject<HTMLDivElement | null>;
260
271
  cameras: Camera[];
261
- initializeProduction: (count: number, type: string) => any;
272
+ initializeProduction: (count: number, type: string, dance_choreographer_required?: boolean, action_sequence_required?: boolean) => any;
262
273
  handleAISummarize: () => void;
263
274
  isSummarizing: boolean;
264
275
  aiSummarized?: boolean;
@@ -272,7 +283,7 @@ interface UseShotBreakdownOptions {
272
283
  onShotsBulkAdded?: (shots: Shot[], scene_type: string) => Promise<void>;
273
284
  onShotRemoved?: (shotId: string) => any;
274
285
  onShotUpdated?: (shotId: string, detail: Shot) => any;
275
- onProductionInitialized?: (cameras: Camera[], type: string) => any;
286
+ onProductionInitialized?: (cameras: Camera[], type: string, dance_choreographer_required?: boolean, action_sequence_required?: boolean) => any;
276
287
  preloadedShots?: Shot[];
277
288
  preloadedCameras?: Camera[];
278
289
  preloadedSceneType?: string;
@@ -290,7 +301,7 @@ declare function useShotBreakdownScene(options: UseShotBreakdownOptions): {
290
301
  } | null;
291
302
  handleMouseUp: () => void;
292
303
  cameras: Camera[];
293
- initializeProduction: (count: number, type: string) => Promise<any>;
304
+ initializeProduction: (count: number, type: string, dance_choreographer_required?: boolean, action_sequence_required?: boolean) => Promise<any>;
294
305
  addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => any;
295
306
  updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => Promise<any>;
296
307
  clearSelection: () => void;