@vishu1301/script-writing 1.3.3 → 1.3.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.d.cts CHANGED
@@ -81,6 +81,9 @@ interface Tag {
81
81
  name: string;
82
82
  start_index: number;
83
83
  end_index: number;
84
+ quantity?: number;
85
+ look?: string;
86
+ age?: string;
84
87
  created_at?: string;
85
88
  updated_at?: string;
86
89
  }
@@ -92,7 +95,7 @@ declare const CATEGORIES: {
92
95
  icon: ElementType;
93
96
  }[];
94
97
 
95
- declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, updateTag, removeTag, clearSelection, menuPlacement, menuRef, sceneBrief, setSceneBrief, onSummarize, isSummarizing, aiSummarized, }: {
98
+ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, updateTag, removeTag, clearSelection, menuPlacement, menuRef, sceneBrief, setSceneBrief, onSummarize, isSummarizing, aiSummarized, onUpdateBrief, }: {
96
99
  blocks: Block[];
97
100
  characters: string[];
98
101
  isLoading: boolean;
@@ -108,7 +111,7 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
108
111
  } | null;
109
112
  handleMouseUp: () => void;
110
113
  addTag: (c: ElementCategory) => void;
111
- updateTag?: (id: string, categoryId: ElementCategory) => void;
114
+ updateTag?: (id: string, categoryId?: ElementCategory | null, details?: Partial<Tag>) => void;
112
115
  removeTag: (e: React__default.MouseEvent, id?: string) => void;
113
116
  clearSelection: () => void;
114
117
  menuPlacement: "top" | "bottom";
@@ -118,6 +121,7 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
118
121
  onSummarize?: () => void;
119
122
  isSummarizing?: boolean;
120
123
  aiSummarized?: boolean;
124
+ onUpdateBrief?: () => void;
121
125
  }): react_jsx_runtime.JSX.Element;
122
126
 
123
127
  interface UseScriptBreakdownSceneOptions {
@@ -127,7 +131,7 @@ interface UseScriptBreakdownSceneOptions {
127
131
  onTagAdded?: (tag: Tag) => void;
128
132
  onTagsBulkAdded?: (tags: Tag[], summary?: string) => Promise<void>;
129
133
  onTagRemoved?: (tagId: string) => void;
130
- onTagUpdated?: (tagId: string, categoryId: ElementCategory) => void;
134
+ onTagUpdated?: (tagId: string, categoryId: ElementCategory | null, details?: Partial<Tag>) => void;
131
135
  preLoadedTags?: Tag[];
132
136
  preLoadedTagsLoading?: boolean;
133
137
  }
@@ -148,7 +152,7 @@ declare function useScriptBreakdownScene(options: UseScriptBreakdownSceneOptions
148
152
  } | null;
149
153
  handleMouseUp: () => void;
150
154
  addTag: (categoryId: ElementCategory) => Promise<void>;
151
- updateTag: (id: string, categoryId: ElementCategory) => Promise<void>;
155
+ updateTag: (id: string, categoryId?: ElementCategory | null, details?: Partial<Tag>) => Promise<void>;
152
156
  removeTag: (e: React.MouseEvent, id: string) => Promise<void>;
153
157
  clearSelection: () => void;
154
158
  menuPlacement: "top" | "bottom";
package/dist/index.d.ts CHANGED
@@ -81,6 +81,9 @@ interface Tag {
81
81
  name: string;
82
82
  start_index: number;
83
83
  end_index: number;
84
+ quantity?: number;
85
+ look?: string;
86
+ age?: string;
84
87
  created_at?: string;
85
88
  updated_at?: string;
86
89
  }
@@ -92,7 +95,7 @@ declare const CATEGORIES: {
92
95
  icon: ElementType;
93
96
  }[];
94
97
 
95
- declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, updateTag, removeTag, clearSelection, menuPlacement, menuRef, sceneBrief, setSceneBrief, onSummarize, isSummarizing, aiSummarized, }: {
98
+ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, sceneNumber, tags, selectionMenu, handleMouseUp, addTag, updateTag, removeTag, clearSelection, menuPlacement, menuRef, sceneBrief, setSceneBrief, onSummarize, isSummarizing, aiSummarized, onUpdateBrief, }: {
96
99
  blocks: Block[];
97
100
  characters: string[];
98
101
  isLoading: boolean;
@@ -108,7 +111,7 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
108
111
  } | null;
109
112
  handleMouseUp: () => void;
110
113
  addTag: (c: ElementCategory) => void;
111
- updateTag?: (id: string, categoryId: ElementCategory) => void;
114
+ updateTag?: (id: string, categoryId?: ElementCategory | null, details?: Partial<Tag>) => void;
112
115
  removeTag: (e: React__default.MouseEvent, id?: string) => void;
113
116
  clearSelection: () => void;
114
117
  menuPlacement: "top" | "bottom";
@@ -118,6 +121,7 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
118
121
  onSummarize?: () => void;
119
122
  isSummarizing?: boolean;
120
123
  aiSummarized?: boolean;
124
+ onUpdateBrief?: () => void;
121
125
  }): react_jsx_runtime.JSX.Element;
122
126
 
123
127
  interface UseScriptBreakdownSceneOptions {
@@ -127,7 +131,7 @@ interface UseScriptBreakdownSceneOptions {
127
131
  onTagAdded?: (tag: Tag) => void;
128
132
  onTagsBulkAdded?: (tags: Tag[], summary?: string) => Promise<void>;
129
133
  onTagRemoved?: (tagId: string) => void;
130
- onTagUpdated?: (tagId: string, categoryId: ElementCategory) => void;
134
+ onTagUpdated?: (tagId: string, categoryId: ElementCategory | null, details?: Partial<Tag>) => void;
131
135
  preLoadedTags?: Tag[];
132
136
  preLoadedTagsLoading?: boolean;
133
137
  }
@@ -148,7 +152,7 @@ declare function useScriptBreakdownScene(options: UseScriptBreakdownSceneOptions
148
152
  } | null;
149
153
  handleMouseUp: () => void;
150
154
  addTag: (categoryId: ElementCategory) => Promise<void>;
151
- updateTag: (id: string, categoryId: ElementCategory) => Promise<void>;
155
+ updateTag: (id: string, categoryId?: ElementCategory | null, details?: Partial<Tag>) => Promise<void>;
152
156
  removeTag: (e: React.MouseEvent, id: string) => Promise<void>;
153
157
  clearSelection: () => void;
154
158
  menuPlacement: "top" | "bottom";