@vishu1301/script-writing 1.0.7 → 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 CHANGED
@@ -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
- options.onSave(sbxData);
1407
+ const blob = new Blob([sbxData], { type: "text/plain" });
1408
+ options.onSave(blob);
1409
1409
  }
1410
1410
  setTimeout(() => {
1411
1411
  var _a;