@vishu1301/script-writing 1.4.2 → 1.4.3
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 +9 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4321,7 +4321,7 @@ function ShotBreakdownView({
|
|
|
4321
4321
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-slate-50 border border-slate-100 mb-3", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { className: "h-4 w-4 text-slate-300" }) }),
|
|
4322
4322
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold text-slate-700", children: "No shots created" }),
|
|
4323
4323
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-slate-500 mt-1 max-w-[160px] leading-relaxed", children: "Highlight text in the screenplay to add your first shot." })
|
|
4324
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2.5 overflow-y-auto overflow-x-hidden pb-4 pr-2 custom-scrollbar", children: shots.map((shot) => {
|
|
4324
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full max-h-[calc(100vh-200px)] flex-col gap-2.5 overflow-y-auto overflow-x-hidden pb-4 pr-2 custom-scrollbar", children: shots.map((shot) => {
|
|
4325
4325
|
const isActive = toggledShotId === shot.id;
|
|
4326
4326
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4327
4327
|
"div",
|
|
@@ -4330,13 +4330,13 @@ function ShotBreakdownView({
|
|
|
4330
4330
|
var _a2;
|
|
4331
4331
|
return setToggledShotId(isActive ? null : (_a2 = shot.id) != null ? _a2 : null);
|
|
4332
4332
|
},
|
|
4333
|
-
className: `group relative cursor-pointer rounded-xl border transition-all duration-300 overflow-hidden ${isActive ? "border-slate-900 bg-slate-50 shadow-[0_6px_20px_rgba(0,0,0,0.06)]" : "border-slate-200 bg-white hover:border-slate-300 hover:shadow-[0_4px_14px_rgba(0,0,0,0.05)]"}`,
|
|
4333
|
+
className: `group relative flex-shrink-0 cursor-pointer rounded-xl border transition-all duration-300 overflow-hidden ${isActive ? "border-slate-900 bg-slate-50 shadow-[0_6px_20px_rgba(0,0,0,0.06)]" : "border-slate-200 bg-white hover:border-slate-300 hover:shadow-[0_4px_14px_rgba(0,0,0,0.05)]"}`,
|
|
4334
4334
|
children: [
|
|
4335
4335
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4336
4336
|
"div",
|
|
4337
4337
|
{
|
|
4338
4338
|
className: `absolute left-0 top-0 h-full w-[3px] transition-all duration-300
|
|
4339
|
-
|
|
4339
|
+
${isActive ? "bg-slate-900" : "bg-transparent group-hover:bg-slate-300"}`
|
|
4340
4340
|
}
|
|
4341
4341
|
),
|
|
4342
4342
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 px-4 py-3.5", children: [
|
|
@@ -4346,7 +4346,7 @@ function ShotBreakdownView({
|
|
|
4346
4346
|
"span",
|
|
4347
4347
|
{
|
|
4348
4348
|
className: `text-[11px] font-semibold tracking-wide uppercase
|
|
4349
|
-
|
|
4349
|
+
${isActive ? "text-slate-900" : "text-slate-500"}`,
|
|
4350
4350
|
children: [
|
|
4351
4351
|
"Shot ",
|
|
4352
4352
|
shot.shot_number
|
|
@@ -4358,7 +4358,7 @@ function ShotBreakdownView({
|
|
|
4358
4358
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4359
4359
|
"span",
|
|
4360
4360
|
{
|
|
4361
|
-
className: `rounded-md px-2 py-0.5 text-[
|
|
4361
|
+
className: `rounded-md px-2 py-0.5 text-[8px] font-bold uppercase tracking-wider ${isActive ? "bg-slate-900 text-white" : "bg-slate-100 text-slate-500 group-hover:bg-slate-200"}`,
|
|
4362
4362
|
children: shot.shot_type
|
|
4363
4363
|
}
|
|
4364
4364
|
)
|
|
@@ -4370,8 +4370,8 @@ function ShotBreakdownView({
|
|
|
4370
4370
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4371
4371
|
"div",
|
|
4372
4372
|
{
|
|
4373
|
-
className: `grid transition-all duration-300 ease-in-out ${isActive ? "grid-rows-[
|
|
4374
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "py-3 pb-
|
|
4373
|
+
className: `grid transition-all duration-300 ease-in-out ${isActive ? "grid-rows-[1fr] opacity-100 mt-2" : "grid-rows-[0fr] opacity-0"}`,
|
|
4374
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "py-3 pb-1 border-t border-slate-200/70 flex gap-2", children: [
|
|
4375
4375
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4376
4376
|
"button",
|
|
4377
4377
|
{
|
|
@@ -4730,9 +4730,8 @@ function useShotBreakdownScene(options) {
|
|
|
4730
4730
|
if (res && res.ok) {
|
|
4731
4731
|
const data = await res.json();
|
|
4732
4732
|
setIsSummarizing(false);
|
|
4733
|
-
console.log(data);
|
|
4734
4733
|
const newShots = [];
|
|
4735
|
-
data.data.forEach((aiShot) => {
|
|
4734
|
+
data.data[0].forEach((aiShot) => {
|
|
4736
4735
|
var _a2;
|
|
4737
4736
|
const newShot = {
|
|
4738
4737
|
id: aiShot.id || uuid(),
|
|
@@ -4770,7 +4769,7 @@ function useShotBreakdownScene(options) {
|
|
|
4770
4769
|
if (newShots.length > 0) {
|
|
4771
4770
|
setShots((prev) => [...prev, ...newShots]);
|
|
4772
4771
|
if (options.onShotsBulkAdded) {
|
|
4773
|
-
await options.onShotsBulkAdded(newShots);
|
|
4772
|
+
await options.onShotsBulkAdded(newShots, data.data[1]);
|
|
4774
4773
|
}
|
|
4775
4774
|
}
|
|
4776
4775
|
} else {
|