@vishu1301/script-writing 1.0.3 → 1.0.4
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 +46 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +46 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -334,44 +334,53 @@ function ScreenplayEditorView({
|
|
|
334
334
|
}
|
|
335
335
|
}, [COURIER_STACK]);
|
|
336
336
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
337
|
-
/* @__PURE__ */ jsx(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
type: "button",
|
|
344
|
-
className: `flex items-center gap-2 px-4 py-2.5 rounded-full font-medium text-sm transition-all duration-300 ${selected ? "bg-zinc-900 text-white shadow-sm" : "text-zinc-400 hover:bg-zinc-800/10 hover:text-zinc-800"}`,
|
|
345
|
-
onClick: () => handleBlockTypeChange(type),
|
|
346
|
-
children: [
|
|
347
|
-
/* @__PURE__ */ jsx(
|
|
348
|
-
"input",
|
|
349
|
-
{
|
|
350
|
-
type: "radio",
|
|
351
|
-
name: "blockType",
|
|
352
|
-
id: `block-type-${type}`,
|
|
353
|
-
className: "sr-only",
|
|
354
|
-
"aria-label": blockStyles[type].label,
|
|
355
|
-
checked: selected,
|
|
356
|
-
readOnly: true
|
|
357
|
-
}
|
|
358
|
-
),
|
|
359
|
-
/* @__PURE__ */ jsxs(
|
|
360
|
-
"label",
|
|
361
|
-
{
|
|
362
|
-
htmlFor: `block-type-${type}`,
|
|
363
|
-
className: "flex items-center gap-2 cursor-pointer",
|
|
364
|
-
children: [
|
|
365
|
-
icons[type],
|
|
366
|
-
/* @__PURE__ */ jsx("span", { className: "whitespace-nowrap hidden sm:inline", children: blockStyles[type].label })
|
|
367
|
-
]
|
|
368
|
-
}
|
|
369
|
-
)
|
|
370
|
-
]
|
|
337
|
+
/* @__PURE__ */ jsx(
|
|
338
|
+
"div",
|
|
339
|
+
{
|
|
340
|
+
className: "sticky top-6 z-50 bg-white backdrop-blur-xl border border-white/10 rounded-full shadow-2xl flex gap-1 p-1.5 mb-12 select-none overflow-x-auto custom-scrollbar",
|
|
341
|
+
style: {
|
|
342
|
+
maxWidth: "1024px"
|
|
371
343
|
},
|
|
372
|
-
type
|
|
373
|
-
|
|
374
|
-
|
|
344
|
+
children: blockTypes.map((type) => {
|
|
345
|
+
var _a;
|
|
346
|
+
const selected = ((_a = blocks.find((b) => b.id === focusedBlockId)) == null ? void 0 : _a.type) === type;
|
|
347
|
+
return /* @__PURE__ */ jsxs(
|
|
348
|
+
"button",
|
|
349
|
+
{
|
|
350
|
+
type: "button",
|
|
351
|
+
className: `flex items-center gap-2 px-4 py-2.5 rounded-full font-medium text-sm transition-all duration-300 ${selected ? "bg-zinc-900 text-white shadow-sm" : "text-zinc-400 hover:bg-zinc-800/10 hover:text-zinc-800"}`,
|
|
352
|
+
onClick: () => handleBlockTypeChange(type),
|
|
353
|
+
children: [
|
|
354
|
+
/* @__PURE__ */ jsx(
|
|
355
|
+
"input",
|
|
356
|
+
{
|
|
357
|
+
type: "radio",
|
|
358
|
+
name: "blockType",
|
|
359
|
+
id: `block-type-${type}`,
|
|
360
|
+
className: "sr-only",
|
|
361
|
+
"aria-label": blockStyles[type].label,
|
|
362
|
+
checked: selected,
|
|
363
|
+
readOnly: true
|
|
364
|
+
}
|
|
365
|
+
),
|
|
366
|
+
/* @__PURE__ */ jsxs(
|
|
367
|
+
"label",
|
|
368
|
+
{
|
|
369
|
+
htmlFor: `block-type-${type}`,
|
|
370
|
+
className: "flex items-center gap-2 cursor-pointer",
|
|
371
|
+
children: [
|
|
372
|
+
icons[type],
|
|
373
|
+
/* @__PURE__ */ jsx("span", { className: "whitespace-nowrap hidden sm:inline", children: blockStyles[type].label })
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
)
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
type
|
|
380
|
+
);
|
|
381
|
+
})
|
|
382
|
+
}
|
|
383
|
+
),
|
|
375
384
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-12 w-full items-center pb-24", children: /* @__PURE__ */ jsx(
|
|
376
385
|
"div",
|
|
377
386
|
{
|