@vishu1301/script-writing 1.2.4 → 1.2.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 CHANGED
@@ -1949,7 +1949,8 @@ function ScriptBreakdownSceneView({
1949
1949
  sceneBrief,
1950
1950
  setSceneBrief,
1951
1951
  onSummarize,
1952
- isSummarizing
1952
+ isSummarizing,
1953
+ aiSummarized = false
1953
1954
  }) {
1954
1955
  const COURIER_STACK = "'Courier Prime', 'Courier', monospace";
1955
1956
  react.useEffect(() => {
@@ -2181,7 +2182,7 @@ function ScriptBreakdownSceneView({
2181
2182
  ] })
2182
2183
  ] }),
2183
2184
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full flex flex-col gap-6 sticky top-6", children: [
2184
- /* @__PURE__ */ jsxRuntime.jsx(
2185
+ !aiSummarized && /* @__PURE__ */ jsxRuntime.jsx(
2185
2186
  summarize_button_default,
2186
2187
  {
2187
2188
  isSummarizing,
@@ -2486,10 +2487,12 @@ function useScriptBreakdownScene(options) {
2486
2487
  const doBulkCreate = async () => {
2487
2488
  if (blocks.length > 0 && !autoTaggedSceneRef.current) {
2488
2489
  const hasPreloadedTags = options.preLoadedTags && options.preLoadedTags.length > 0;
2489
- if (!hasPreloadedTags) {
2490
+ if (hasPreloadedTags) {
2490
2491
  autoTaggedSceneRef.current = options.scene_url;
2491
- await bulkCreateTags();
2492
+ return;
2492
2493
  }
2494
+ autoTaggedSceneRef.current = options.scene_url;
2495
+ await bulkCreateTags();
2493
2496
  }
2494
2497
  };
2495
2498
  doBulkCreate();