@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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useState, useRef, useMemo, useCallback, useEffect } from 'react';
1
+ import { useState, useEffect, useRef, useMemo, useCallback } from 'react';
2
2
  import { ArrowRightLeft, MessageCircle, Brackets, UserRound, Sparkles, Clapperboard, ArrowRight, User, ChevronRight, Upload, Save, FileDown, RefreshCcw, Cog } from 'lucide-react';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import * as pdfjs from 'pdfjs-dist';
@@ -306,6 +306,16 @@ function ScreenplayEditorView({
306
306
  handleSceneNumberChange
307
307
  }) {
308
308
  const [isRulesOpen, setIsRulesOpen] = useState(false);
309
+ useEffect(() => {
310
+ const fontId = "google-font-courier-prime";
311
+ if (!document.getElementById(fontId)) {
312
+ const link = document.createElement("link");
313
+ link.id = fontId;
314
+ link.rel = "stylesheet";
315
+ link.href = "https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap";
316
+ document.head.appendChild(link);
317
+ }
318
+ }, []);
309
319
  return /* @__PURE__ */ jsxs(Fragment, { children: [
310
320
  /* @__PURE__ */ 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) => {
311
321
  var _a;
@@ -350,7 +360,7 @@ function ScreenplayEditorView({
350
360
  {
351
361
  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",
352
362
  style: {
353
- fontFamily: "var(--font-courier-prime, 'Courier Prime', 'Courier New', Courier, monospace)",
363
+ fontFamily: "'Courier Prime', 'Courier New', Courier, monospace",
354
364
  paddingLeft: "1.5in",
355
365
  paddingRight: "1in",
356
366
  paddingTop: "1in",