@vishu1301/script-writing 1.4.9 → 1.5.1
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -80,8 +80,9 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
80
80
|
enhancingBlockId: string | null;
|
|
81
81
|
enhancementSuggestion: string | null;
|
|
82
82
|
isEnhancing: boolean;
|
|
83
|
+
savePopOverLeft?: string;
|
|
83
84
|
};
|
|
84
|
-
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, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
85
|
+
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, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
85
86
|
|
|
86
87
|
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => void;
|
|
87
88
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -80,8 +80,9 @@ type ScreenplayEditorViewProps = ReturnType<typeof useScreenplayEditor> & {
|
|
|
80
80
|
enhancingBlockId: string | null;
|
|
81
81
|
enhancementSuggestion: string | null;
|
|
82
82
|
isEnhancing: boolean;
|
|
83
|
+
savePopOverLeft?: string;
|
|
83
84
|
};
|
|
84
|
-
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, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
85
|
+
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, }: ScreenplayEditorViewProps): react_jsx_runtime.JSX.Element;
|
|
85
86
|
|
|
86
87
|
declare const handleSaveAsPdf: (blocks: Block[], sceneNumbers: Record<string, string>, project_name?: string) => void;
|
|
87
88
|
declare const convertBlocksToSbx: (blocks: Block[], sceneNumbers: Record<string, string>) => string;
|
package/dist/index.js
CHANGED
|
@@ -331,7 +331,8 @@ function ScreenplayEditorView({
|
|
|
331
331
|
showUnsavedPopover,
|
|
332
332
|
syncScreenplay,
|
|
333
333
|
ignoreChanges,
|
|
334
|
-
isLoading = false
|
|
334
|
+
isLoading = false,
|
|
335
|
+
savePopOverLeft = "53%"
|
|
335
336
|
}) {
|
|
336
337
|
const [isRulesOpen, setIsRulesOpen] = useState(false);
|
|
337
338
|
const rulesRef = useRef(null);
|
|
@@ -817,7 +818,7 @@ function ScreenplayEditorView({
|
|
|
817
818
|
/* @__PURE__ */ jsx(
|
|
818
819
|
"div",
|
|
819
820
|
{
|
|
820
|
-
className: `fixed bottom-10 left-[
|
|
821
|
+
className: `fixed bottom-10 left-[${savePopOverLeft}] -translate-x-1/2 z-[100] w-full max-w-[95%] sm:max-w-2xl transition-all duration-500 ease-in-out ${showUnsavedPopover ? "translate-y-0 opacity-100 scale-100" : "translate-y-12 opacity-0 scale-95 pointer-events-none"}`,
|
|
821
822
|
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto rounded-[2.5rem] bg-white/95 border border-white/60 shadow-[0_20px_50px_rgba(16,37,54,0.12),0_4px_12px_rgba(16,37,54,0.05)] backdrop-blur-2xl flex items-center justify-between px-2 py-1.5 sm:px-4 sm:py-2.5 select-none transition-all hover:shadow-[0_25px_60px_rgba(16,37,54,0.18)]", children: [
|
|
822
823
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
823
824
|
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 flex items-center justify-center rounded-[2.5rem] bg-blumine-50 text-blumine-500 border border-blumine-100 shadow-inner", children: /* @__PURE__ */ jsx(Save, { className: "w-5 h-5" }) }),
|