@vishu1301/script-writing 1.3.6 → 1.3.7

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.d.cts CHANGED
@@ -163,4 +163,131 @@ declare function useScriptBreakdownScene(options: UseScriptBreakdownSceneOptions
163
163
  isSummarizing: boolean;
164
164
  };
165
165
 
166
- export { type Block, type BlockType, CATEGORIES, type ElementCategory, ScreenplayEditorView, type ScriptBreakdown, ScriptBreakdownSceneView, type Tag, type TimeOfDay, blockStyles, blockTypes, convertBlocksToSbx, handleSaveAsPdf, handleSyncWithCloud, icons, timeOfDayOptions, useScreenplayEditor, useScriptBreakdownScene, uuid };
166
+ interface Camera {
167
+ name: string;
168
+ }
169
+ interface ShotPart {
170
+ block_id: string;
171
+ start_index: number;
172
+ end_index: number;
173
+ text: string;
174
+ type?: string;
175
+ }
176
+ interface Shot {
177
+ id?: number | string;
178
+ shot_number: number;
179
+ priority: string;
180
+ shot_type: string;
181
+ framing: string;
182
+ camera_angle: string;
183
+ camera_movement: string;
184
+ camera_support: string;
185
+ lens_mm: string;
186
+ lens_feel: string;
187
+ aperture: string;
188
+ depth_of_field: string;
189
+ fps?: string;
190
+ subject: string;
191
+ action_blocking: string;
192
+ emotional_purpose: string;
193
+ lighting: string;
194
+ sound: string;
195
+ duration_seconds: number;
196
+ edit_purpose: string;
197
+ reason: string;
198
+ vfx: string;
199
+ camera_name: string;
200
+ parts: ShotPart[];
201
+ }
202
+ interface ShotBreakdown {
203
+ scene_id?: number;
204
+ scene_type: string;
205
+ no_of_camera: number;
206
+ cameras: Camera[];
207
+ shots: Shot[];
208
+ }
209
+
210
+ declare function ShotBreakdownView({ blocks, isLoading, shots, selectionMenu, handleMouseUp, addShot, updateShot, clearSelection, menuRef, cameras, sceneType, initializeProduction, }: {
211
+ blocks: Block[];
212
+ isLoading: boolean;
213
+ shots: Shot[];
214
+ sceneType: string;
215
+ selectionMenu: {
216
+ top: number;
217
+ left: number;
218
+ parts: ShotPart[];
219
+ } | null;
220
+ handleMouseUp: () => void;
221
+ addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
222
+ updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
223
+ clearSelection: () => void;
224
+ menuRef: React__default.RefObject<HTMLDivElement | null>;
225
+ cameras: Camera[];
226
+ initializeProduction: (count: number, type: string) => void;
227
+ }): react_jsx_runtime.JSX.Element;
228
+
229
+ interface UseShotBreakdownOptions {
230
+ scene_url: string;
231
+ fetchOptions?: RequestInit;
232
+ onAISummarize?: (scene: any) => void;
233
+ onShotAdded?: (shot: Shot) => void;
234
+ onShotsBulkAdded?: (shots: Shot[], summary?: string) => Promise<void>;
235
+ onShotRemoved?: (shotId: string) => void;
236
+ onShotUpdated?: (shotId: string, detail: Shot) => void;
237
+ onProductionInitialized?: (cameras: Camera[], type: string) => void;
238
+ preLoadedShots?: Shot[];
239
+ preloadedCameras?: Camera[];
240
+ preloadedSceneType?: string;
241
+ }
242
+ declare function useShotBreakdownScene(options: UseShotBreakdownOptions): {
243
+ blocks: Block[];
244
+ isLoading: boolean;
245
+ error: boolean;
246
+ shots: Shot[];
247
+ sceneType: string;
248
+ selectionMenu: {
249
+ top: number;
250
+ left: number;
251
+ parts: ShotPart[];
252
+ } | null;
253
+ handleMouseUp: () => void;
254
+ cameras: Camera[];
255
+ initializeProduction: (count: number, type: string) => void;
256
+ addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
257
+ updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
258
+ clearSelection: () => void;
259
+ menuRef: React$1.RefObject<HTMLDivElement | null>;
260
+ };
261
+
262
+ declare const shot_types: {
263
+ name: string;
264
+ }[];
265
+ declare const camera_angles: {
266
+ name: string;
267
+ }[];
268
+ declare const camera_movements: {
269
+ name: string;
270
+ }[];
271
+ declare const camera_supports: {
272
+ name: string;
273
+ }[];
274
+ declare const lens_options: {
275
+ name: string;
276
+ type: string;
277
+ }[];
278
+ declare const aperture_options: {
279
+ value: number;
280
+ label: string;
281
+ }[];
282
+ declare const vfx_types: {
283
+ name: string;
284
+ }[];
285
+ declare const fps_options: {
286
+ value: string;
287
+ label: string;
288
+ }[];
289
+ declare const scene_types: {
290
+ name: string;
291
+ }[];
292
+
293
+ export { type Block, type BlockType, CATEGORIES, type Camera, type ElementCategory, ScreenplayEditorView, type ScriptBreakdown, ScriptBreakdownSceneView, type Shot, type ShotBreakdown, ShotBreakdownView, type ShotPart, type Tag, type TimeOfDay, aperture_options, blockStyles, blockTypes, camera_angles, camera_movements, camera_supports, convertBlocksToSbx, fps_options, handleSaveAsPdf, handleSyncWithCloud, icons, lens_options, scene_types, shot_types, timeOfDayOptions, useScreenplayEditor, useScriptBreakdownScene, useShotBreakdownScene, uuid, vfx_types };
package/dist/index.d.ts CHANGED
@@ -163,4 +163,131 @@ declare function useScriptBreakdownScene(options: UseScriptBreakdownSceneOptions
163
163
  isSummarizing: boolean;
164
164
  };
165
165
 
166
- export { type Block, type BlockType, CATEGORIES, type ElementCategory, ScreenplayEditorView, type ScriptBreakdown, ScriptBreakdownSceneView, type Tag, type TimeOfDay, blockStyles, blockTypes, convertBlocksToSbx, handleSaveAsPdf, handleSyncWithCloud, icons, timeOfDayOptions, useScreenplayEditor, useScriptBreakdownScene, uuid };
166
+ interface Camera {
167
+ name: string;
168
+ }
169
+ interface ShotPart {
170
+ block_id: string;
171
+ start_index: number;
172
+ end_index: number;
173
+ text: string;
174
+ type?: string;
175
+ }
176
+ interface Shot {
177
+ id?: number | string;
178
+ shot_number: number;
179
+ priority: string;
180
+ shot_type: string;
181
+ framing: string;
182
+ camera_angle: string;
183
+ camera_movement: string;
184
+ camera_support: string;
185
+ lens_mm: string;
186
+ lens_feel: string;
187
+ aperture: string;
188
+ depth_of_field: string;
189
+ fps?: string;
190
+ subject: string;
191
+ action_blocking: string;
192
+ emotional_purpose: string;
193
+ lighting: string;
194
+ sound: string;
195
+ duration_seconds: number;
196
+ edit_purpose: string;
197
+ reason: string;
198
+ vfx: string;
199
+ camera_name: string;
200
+ parts: ShotPart[];
201
+ }
202
+ interface ShotBreakdown {
203
+ scene_id?: number;
204
+ scene_type: string;
205
+ no_of_camera: number;
206
+ cameras: Camera[];
207
+ shots: Shot[];
208
+ }
209
+
210
+ declare function ShotBreakdownView({ blocks, isLoading, shots, selectionMenu, handleMouseUp, addShot, updateShot, clearSelection, menuRef, cameras, sceneType, initializeProduction, }: {
211
+ blocks: Block[];
212
+ isLoading: boolean;
213
+ shots: Shot[];
214
+ sceneType: string;
215
+ selectionMenu: {
216
+ top: number;
217
+ left: number;
218
+ parts: ShotPart[];
219
+ } | null;
220
+ handleMouseUp: () => void;
221
+ addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
222
+ updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
223
+ clearSelection: () => void;
224
+ menuRef: React__default.RefObject<HTMLDivElement | null>;
225
+ cameras: Camera[];
226
+ initializeProduction: (count: number, type: string) => void;
227
+ }): react_jsx_runtime.JSX.Element;
228
+
229
+ interface UseShotBreakdownOptions {
230
+ scene_url: string;
231
+ fetchOptions?: RequestInit;
232
+ onAISummarize?: (scene: any) => void;
233
+ onShotAdded?: (shot: Shot) => void;
234
+ onShotsBulkAdded?: (shots: Shot[], summary?: string) => Promise<void>;
235
+ onShotRemoved?: (shotId: string) => void;
236
+ onShotUpdated?: (shotId: string, detail: Shot) => void;
237
+ onProductionInitialized?: (cameras: Camera[], type: string) => void;
238
+ preLoadedShots?: Shot[];
239
+ preloadedCameras?: Camera[];
240
+ preloadedSceneType?: string;
241
+ }
242
+ declare function useShotBreakdownScene(options: UseShotBreakdownOptions): {
243
+ blocks: Block[];
244
+ isLoading: boolean;
245
+ error: boolean;
246
+ shots: Shot[];
247
+ sceneType: string;
248
+ selectionMenu: {
249
+ top: number;
250
+ left: number;
251
+ parts: ShotPart[];
252
+ } | null;
253
+ handleMouseUp: () => void;
254
+ cameras: Camera[];
255
+ initializeProduction: (count: number, type: string) => void;
256
+ addShot: (shotDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
257
+ updateShot: (shotId: string | number, updatedDetails: Omit<Shot, "id" | "shot_number" | "parts">) => void;
258
+ clearSelection: () => void;
259
+ menuRef: React$1.RefObject<HTMLDivElement | null>;
260
+ };
261
+
262
+ declare const shot_types: {
263
+ name: string;
264
+ }[];
265
+ declare const camera_angles: {
266
+ name: string;
267
+ }[];
268
+ declare const camera_movements: {
269
+ name: string;
270
+ }[];
271
+ declare const camera_supports: {
272
+ name: string;
273
+ }[];
274
+ declare const lens_options: {
275
+ name: string;
276
+ type: string;
277
+ }[];
278
+ declare const aperture_options: {
279
+ value: number;
280
+ label: string;
281
+ }[];
282
+ declare const vfx_types: {
283
+ name: string;
284
+ }[];
285
+ declare const fps_options: {
286
+ value: string;
287
+ label: string;
288
+ }[];
289
+ declare const scene_types: {
290
+ name: string;
291
+ }[];
292
+
293
+ export { type Block, type BlockType, CATEGORIES, type Camera, type ElementCategory, ScreenplayEditorView, type ScriptBreakdown, ScriptBreakdownSceneView, type Shot, type ShotBreakdown, ShotBreakdownView, type ShotPart, type Tag, type TimeOfDay, aperture_options, blockStyles, blockTypes, camera_angles, camera_movements, camera_supports, convertBlocksToSbx, fps_options, handleSaveAsPdf, handleSyncWithCloud, icons, lens_options, scene_types, shot_types, timeOfDayOptions, useScreenplayEditor, useScriptBreakdownScene, useShotBreakdownScene, uuid, vfx_types };