@vishu1301/script-writing 1.1.6 → 1.1.7

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
@@ -120,7 +120,7 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
120
120
  isSummarizing?: boolean;
121
121
  }): react_jsx_runtime.JSX.Element;
122
122
 
123
- declare function useScriptBreakdownScene(scene_url: string, fetchOptions?: RequestInit, onAISummarize?: (scene: any) => void, onTagAdded?: (tag: Tag) => void, onTagRemoved?: (tagId: string) => void): {
123
+ declare function useScriptBreakdownScene(scene_url: string, fetchOptions?: RequestInit, onAISummarize?: (scene: any) => void, onTagAdded?: (tag: Tag) => void, onTagRemoved?: (tagId: string) => void, preLoadedTags?: Tag[]): {
124
124
  scene: any;
125
125
  blocks: Block[];
126
126
  characters: string[];
package/dist/index.d.ts CHANGED
@@ -120,7 +120,7 @@ declare function ScriptBreakdownSceneView({ blocks, characters, isLoading, scene
120
120
  isSummarizing?: boolean;
121
121
  }): react_jsx_runtime.JSX.Element;
122
122
 
123
- declare function useScriptBreakdownScene(scene_url: string, fetchOptions?: RequestInit, onAISummarize?: (scene: any) => void, onTagAdded?: (tag: Tag) => void, onTagRemoved?: (tagId: string) => void): {
123
+ declare function useScriptBreakdownScene(scene_url: string, fetchOptions?: RequestInit, onAISummarize?: (scene: any) => void, onTagAdded?: (tag: Tag) => void, onTagRemoved?: (tagId: string) => void, preLoadedTags?: Tag[]): {
124
124
  scene: any;
125
125
  blocks: Block[];
126
126
  characters: string[];
package/dist/index.js CHANGED
@@ -2263,8 +2263,8 @@ function ScriptBreakdownSceneView({
2263
2263
  ] })
2264
2264
  ] }) });
2265
2265
  }
2266
- function useScriptBreakdownScene(scene_url, fetchOptions, onAISummarize, onTagAdded, onTagRemoved) {
2267
- const [tags, setTags] = useState([]);
2266
+ function useScriptBreakdownScene(scene_url, fetchOptions, onAISummarize, onTagAdded, onTagRemoved, preLoadedTags) {
2267
+ const [tags, setTags] = useState(preLoadedTags || []);
2268
2268
  const [selectionMenu, setSelectionMenu] = useState(null);
2269
2269
  const autoTaggedSceneRef = useRef(null);
2270
2270
  const [scene, setScene] = useState(null);