@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 +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useRef, useMemo, useCallback
|
|
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;
|