@vishu1301/script-writing 1.3.7 → 1.3.8
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 +15 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4006,14 +4006,7 @@ function ViewShotModal({ shot }) {
|
|
|
4006
4006
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full lg:w-[340px] xl:w-[380px] shrink-0 bg-[#fdfdfd] border-t lg:border-t-0 lg:border-l border-slate-200/60 p-6 sm:p-8 pb-12 lg:pb-8 h-full", children: [
|
|
4007
4007
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 mb-8", children: [
|
|
4008
4008
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-[11px] font-bold uppercase tracking-widest text-blumine-700 mb-4 ml-1", children: "Core Identity" }),
|
|
4009
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4010
|
-
PropertyRow,
|
|
4011
|
-
{
|
|
4012
|
-
icon: lucideReact.Clapperboard,
|
|
4013
|
-
label: "Shot Type",
|
|
4014
|
-
value: shot.shot_type
|
|
4015
|
-
}
|
|
4016
|
-
),
|
|
4009
|
+
/* @__PURE__ */ jsxRuntime.jsx(PropertyRow, { icon: lucideReact.Video, label: "Shot Type", value: shot.shot_type }),
|
|
4017
4010
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4018
4011
|
PropertyRow,
|
|
4019
4012
|
{
|
|
@@ -4036,8 +4029,7 @@ function ViewShotModal({ shot }) {
|
|
|
4036
4029
|
label: "Duration",
|
|
4037
4030
|
value: shot.duration_seconds ? `${shot.duration_seconds}` : null
|
|
4038
4031
|
}
|
|
4039
|
-
)
|
|
4040
|
-
/* @__PURE__ */ jsxRuntime.jsx(PropertyRow, { icon: lucideReact.Video, label: "Shot Type", value: shot.shot_type })
|
|
4032
|
+
)
|
|
4041
4033
|
] }),
|
|
4042
4034
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-px bg-slate-100 mb-8 mt-4" }),
|
|
4043
4035
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row lg:flex-col gap-10 lg:gap-8 w-full", children: [
|
|
@@ -4432,8 +4424,9 @@ function ShotBreakdownView({
|
|
|
4432
4424
|
production_setup_modal_default,
|
|
4433
4425
|
{
|
|
4434
4426
|
initializeProduction: (count, type) => {
|
|
4435
|
-
initializeProduction(count, type)
|
|
4436
|
-
|
|
4427
|
+
initializeProduction(count, type).then(() => {
|
|
4428
|
+
setIsInitModalOpen(false);
|
|
4429
|
+
});
|
|
4437
4430
|
},
|
|
4438
4431
|
initialValues: {
|
|
4439
4432
|
numCameras: cameras.length || 1,
|
|
@@ -4467,8 +4460,9 @@ function ShotBreakdownView({
|
|
|
4467
4460
|
handleCloseModal: () => setUpdatingShotId(null),
|
|
4468
4461
|
userShotValue: shots.find((s) => s.id === updatingShotId),
|
|
4469
4462
|
onSubmit: (values) => {
|
|
4470
|
-
updateShot(updatingShotId, values)
|
|
4471
|
-
|
|
4463
|
+
updateShot(updatingShotId, values).then(() => {
|
|
4464
|
+
setUpdatingShotId(null);
|
|
4465
|
+
});
|
|
4472
4466
|
}
|
|
4473
4467
|
}
|
|
4474
4468
|
)
|
|
@@ -4642,8 +4636,13 @@ function useShotBreakdownScene(options) {
|
|
|
4642
4636
|
parts: selectionMenu.parts
|
|
4643
4637
|
});
|
|
4644
4638
|
setShots((prev) => [...prev, newShot]);
|
|
4645
|
-
(
|
|
4646
|
-
|
|
4639
|
+
if (options.onShotAdded) {
|
|
4640
|
+
(_a = options.onShotAdded) == null ? void 0 : _a.call(options, newShot).then(() => {
|
|
4641
|
+
clearSelection();
|
|
4642
|
+
});
|
|
4643
|
+
} else {
|
|
4644
|
+
clearSelection();
|
|
4645
|
+
}
|
|
4647
4646
|
};
|
|
4648
4647
|
const updateShot = (shotId, updatedDetails) => {
|
|
4649
4648
|
setShots(
|