@vishu1301/script-writing 0.5.0 → 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;