@vishu1301/script-writing 1.0.6 → 1.0.8
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -362,7 +362,7 @@ function ScreenplayEditorView({
|
|
|
362
362
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
363
363
|
"div",
|
|
364
364
|
{
|
|
365
|
-
className: "sticky top-6 z-50 mx-auto bg-white/70 backdrop-blur-2xl border border-white/60 shadow-[0_8px_30px_rgb(0,0,0,0.04)]
|
|
365
|
+
className: "sticky top-6 z-50 mx-auto bg-white/70 backdrop-blur-2xl border border-white/60 shadow-[0_8px_30px_rgb(0,0,0,0.04)] rounded-[2rem] flex items-center justify-between p-2 mb-12 select-none transition-all",
|
|
366
366
|
style: {
|
|
367
367
|
maxWidth: "1240px"
|
|
368
368
|
},
|
|
@@ -1381,7 +1381,6 @@ function useScreenplayEditor(options) {
|
|
|
1381
1381
|
});
|
|
1382
1382
|
setBlocks(finalizedBlocks);
|
|
1383
1383
|
if (options == null ? void 0 : options.onSave) {
|
|
1384
|
-
options.onSave(content);
|
|
1385
1384
|
const typeToDivClass = {
|
|
1386
1385
|
SCENE_HEADING: "divtype0",
|
|
1387
1386
|
ACTION: "divtype2",
|
|
@@ -1405,7 +1404,8 @@ function useScreenplayEditor(options) {
|
|
|
1405
1404
|
}
|
|
1406
1405
|
return `<div class="${divClass}" id="par${block.id}"${extraAttributes}>${text}</div>`;
|
|
1407
1406
|
}).join("");
|
|
1408
|
-
|
|
1407
|
+
const blob = new Blob([sbxData], { type: "text/plain" });
|
|
1408
|
+
options.onSave(blob);
|
|
1409
1409
|
}
|
|
1410
1410
|
setTimeout(() => {
|
|
1411
1411
|
var _a;
|