@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.d.cts
CHANGED
|
@@ -218,23 +218,23 @@ declare function ShotBreakdownView({ blocks, isLoading, shots, selectionMenu, ha
|
|
|
218
218
|
parts: ShotPart[];
|
|
219
219
|
} | null;
|
|
220
220
|
handleMouseUp: () => void;
|
|
221
|
-
addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) =>
|
|
222
|
-
updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) =>
|
|
221
|
+
addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => any;
|
|
222
|
+
updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => any;
|
|
223
223
|
clearSelection: () => void;
|
|
224
224
|
menuRef: React__default.RefObject<HTMLDivElement | null>;
|
|
225
225
|
cameras: Camera[];
|
|
226
|
-
initializeProduction: (count: number, type: string) =>
|
|
226
|
+
initializeProduction: (count: number, type: string) => any;
|
|
227
227
|
}): react_jsx_runtime.JSX.Element;
|
|
228
228
|
|
|
229
229
|
interface UseShotBreakdownOptions {
|
|
230
230
|
scene_url: string;
|
|
231
231
|
fetchOptions?: RequestInit;
|
|
232
232
|
onAISummarize?: (scene: any) => void;
|
|
233
|
-
onShotAdded?: (shot: Shot) =>
|
|
233
|
+
onShotAdded?: (shot: Shot) => any;
|
|
234
234
|
onShotsBulkAdded?: (shots: Shot[], summary?: string) => Promise<void>;
|
|
235
|
-
onShotRemoved?: (shotId: string) =>
|
|
236
|
-
onShotUpdated?: (shotId: string, detail: Shot) =>
|
|
237
|
-
onProductionInitialized?: (cameras: Camera[], type: string) =>
|
|
235
|
+
onShotRemoved?: (shotId: string) => any;
|
|
236
|
+
onShotUpdated?: (shotId: string, detail: Shot) => any;
|
|
237
|
+
onProductionInitialized?: (cameras: Camera[], type: string) => any;
|
|
238
238
|
preLoadedShots?: Shot[];
|
|
239
239
|
preloadedCameras?: Camera[];
|
|
240
240
|
preloadedSceneType?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -218,23 +218,23 @@ declare function ShotBreakdownView({ blocks, isLoading, shots, selectionMenu, ha
|
|
|
218
218
|
parts: ShotPart[];
|
|
219
219
|
} | null;
|
|
220
220
|
handleMouseUp: () => void;
|
|
221
|
-
addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) =>
|
|
222
|
-
updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) =>
|
|
221
|
+
addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => any;
|
|
222
|
+
updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => any;
|
|
223
223
|
clearSelection: () => void;
|
|
224
224
|
menuRef: React__default.RefObject<HTMLDivElement | null>;
|
|
225
225
|
cameras: Camera[];
|
|
226
|
-
initializeProduction: (count: number, type: string) =>
|
|
226
|
+
initializeProduction: (count: number, type: string) => any;
|
|
227
227
|
}): react_jsx_runtime.JSX.Element;
|
|
228
228
|
|
|
229
229
|
interface UseShotBreakdownOptions {
|
|
230
230
|
scene_url: string;
|
|
231
231
|
fetchOptions?: RequestInit;
|
|
232
232
|
onAISummarize?: (scene: any) => void;
|
|
233
|
-
onShotAdded?: (shot: Shot) =>
|
|
233
|
+
onShotAdded?: (shot: Shot) => any;
|
|
234
234
|
onShotsBulkAdded?: (shots: Shot[], summary?: string) => Promise<void>;
|
|
235
|
-
onShotRemoved?: (shotId: string) =>
|
|
236
|
-
onShotUpdated?: (shotId: string, detail: Shot) =>
|
|
237
|
-
onProductionInitialized?: (cameras: Camera[], type: string) =>
|
|
235
|
+
onShotRemoved?: (shotId: string) => any;
|
|
236
|
+
onShotUpdated?: (shotId: string, detail: Shot) => any;
|
|
237
|
+
onProductionInitialized?: (cameras: Camera[], type: string) => any;
|
|
238
238
|
preLoadedShots?: Shot[];
|
|
239
239
|
preloadedCameras?: Camera[];
|
|
240
240
|
preloadedSceneType?: string;
|
package/dist/index.js
CHANGED
|
@@ -3980,14 +3980,7 @@ function ViewShotModal({ shot }) {
|
|
|
3980
3980
|
/* @__PURE__ */ 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: [
|
|
3981
3981
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 mb-8", children: [
|
|
3982
3982
|
/* @__PURE__ */ jsx("h4", { className: "text-[11px] font-bold uppercase tracking-widest text-blumine-700 mb-4 ml-1", children: "Core Identity" }),
|
|
3983
|
-
/* @__PURE__ */ jsx(
|
|
3984
|
-
PropertyRow,
|
|
3985
|
-
{
|
|
3986
|
-
icon: Clapperboard,
|
|
3987
|
-
label: "Shot Type",
|
|
3988
|
-
value: shot.shot_type
|
|
3989
|
-
}
|
|
3990
|
-
),
|
|
3983
|
+
/* @__PURE__ */ jsx(PropertyRow, { icon: Video, label: "Shot Type", value: shot.shot_type }),
|
|
3991
3984
|
/* @__PURE__ */ jsx(
|
|
3992
3985
|
PropertyRow,
|
|
3993
3986
|
{
|
|
@@ -4010,8 +4003,7 @@ function ViewShotModal({ shot }) {
|
|
|
4010
4003
|
label: "Duration",
|
|
4011
4004
|
value: shot.duration_seconds ? `${shot.duration_seconds}` : null
|
|
4012
4005
|
}
|
|
4013
|
-
)
|
|
4014
|
-
/* @__PURE__ */ jsx(PropertyRow, { icon: Video, label: "Shot Type", value: shot.shot_type })
|
|
4006
|
+
)
|
|
4015
4007
|
] }),
|
|
4016
4008
|
/* @__PURE__ */ jsx("div", { className: "w-full h-px bg-slate-100 mb-8 mt-4" }),
|
|
4017
4009
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col sm:flex-row lg:flex-col gap-10 lg:gap-8 w-full", children: [
|
|
@@ -4406,8 +4398,9 @@ function ShotBreakdownView({
|
|
|
4406
4398
|
production_setup_modal_default,
|
|
4407
4399
|
{
|
|
4408
4400
|
initializeProduction: (count, type) => {
|
|
4409
|
-
initializeProduction(count, type)
|
|
4410
|
-
|
|
4401
|
+
initializeProduction(count, type).then(() => {
|
|
4402
|
+
setIsInitModalOpen(false);
|
|
4403
|
+
});
|
|
4411
4404
|
},
|
|
4412
4405
|
initialValues: {
|
|
4413
4406
|
numCameras: cameras.length || 1,
|
|
@@ -4441,8 +4434,9 @@ function ShotBreakdownView({
|
|
|
4441
4434
|
handleCloseModal: () => setUpdatingShotId(null),
|
|
4442
4435
|
userShotValue: shots.find((s) => s.id === updatingShotId),
|
|
4443
4436
|
onSubmit: (values) => {
|
|
4444
|
-
updateShot(updatingShotId, values)
|
|
4445
|
-
|
|
4437
|
+
updateShot(updatingShotId, values).then(() => {
|
|
4438
|
+
setUpdatingShotId(null);
|
|
4439
|
+
});
|
|
4446
4440
|
}
|
|
4447
4441
|
}
|
|
4448
4442
|
)
|
|
@@ -4616,8 +4610,13 @@ function useShotBreakdownScene(options) {
|
|
|
4616
4610
|
parts: selectionMenu.parts
|
|
4617
4611
|
});
|
|
4618
4612
|
setShots((prev) => [...prev, newShot]);
|
|
4619
|
-
(
|
|
4620
|
-
|
|
4613
|
+
if (options.onShotAdded) {
|
|
4614
|
+
(_a = options.onShotAdded) == null ? void 0 : _a.call(options, newShot).then(() => {
|
|
4615
|
+
clearSelection();
|
|
4616
|
+
});
|
|
4617
|
+
} else {
|
|
4618
|
+
clearSelection();
|
|
4619
|
+
}
|
|
4621
4620
|
};
|
|
4622
4621
|
const updateShot = (shotId, updatedDetails) => {
|
|
4623
4622
|
setShots(
|