@vishu1301/script-writing 0.4.9 → 0.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 CHANGED
@@ -331,6 +331,16 @@ function ScreenplayEditorView({
331
331
  handleSceneNumberChange
332
332
  }) {
333
333
  const [isRulesOpen, setIsRulesOpen] = react.useState(false);
334
+ react.useEffect(() => {
335
+ const fontId = "google-font-courier-prime";
336
+ if (!document.getElementById(fontId)) {
337
+ const link = document.createElement("link");
338
+ link.id = fontId;
339
+ link.rel = "stylesheet";
340
+ link.href = "https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap";
341
+ document.head.appendChild(link);
342
+ }
343
+ }, []);
334
344
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
335
345
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-6 z-50 bg-white backdrop-blur-xl border border-white/10 rounded-full shadow-2xl flex gap-1 max-w-fit p-1.5 mb-12 select-none overflow-x-auto custom-scrollbar", children: blockTypes.map((type) => {
336
346
  var _a;
@@ -375,7 +385,7 @@ function ScreenplayEditorView({
375
385
  {
376
386
  className: "relative bg-[#fdfdfc] shadow-2xl shadow-zinc-300/60 border border-zinc-100 rounded-sm md:rounded-md pl-[1.5in] py-[1in] pr-[1in] flex flex-col w-[210mm] min-h-[297mm] shrink-0",
377
387
  style: {
378
- fontFamily: "var(--font-courier-prime, 'Courier Prime', 'Courier New', Courier, monospace)",
388
+ fontFamily: "'Courier Prime', 'Courier New', Courier, monospace",
379
389
  paddingLeft: "1.5in",
380
390
  paddingRight: "1in",
381
391
  paddingTop: "1in",