@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/README.md CHANGED
@@ -1,24 +1,61 @@
1
- # Script Writing & Breakdown Library
2
-
3
- An advanced, React and Next.js-based script writing and breakdown analysis library for the web.
4
-
5
- This package provides developers with an intuitive suite of tools to draft, edit, and format scripts according to industry standards, alongside powerful script breakdown utilities to highlight, tag, and analyze scene elements.
6
-
7
- ## Features
8
-
9
- - **Screenplay Editor Component:** Fully-featured WYSIWYG editor for screenplays.
10
- - **Industry-Standard Formatting:** Automatically formats text to screenplay guidelines including Scene Headings, Action, Character, Parenthetical, Dialogue, and Transitions.
11
- - **Smart Auto-Suggestions:** Intelligently suggests previously used Characters, Locations, and Character Extensions (like V.O., O.S.) as you type.
12
- - **PDF Import & Export:** Built-in tools to import and parse existing scripts from PDFs (`pdfjs-dist`) and export your drafts into perfectly formatted screenplay PDFs (`jsPDF`).
13
- - **Scene Management:** Easily toggle Scene Types (INT./EXT.) and Time of Day (DAY/NIGHT) alongside Scene Numbering features.
14
- - **Script Breakdown & Tagging:** Interactive scene viewer with auto-character tagging, text selection, and customizable element tagging (e.g., Cast, Props, Wardrobe).
15
- - **Keyboard Shortcuts:** Fluid writing experience using keyboard shortcuts (e.g., `Ctrl + ↑/↓` to change block types, `Enter` to create new blocks).
16
- - **Headless Architecture:** Core logic is exposed via hooks (`useScreenplayEditor` and `useScriptBreakdownScene`), allowing complete customizability over the UI.
17
-
18
-
19
- ## Installation
20
-
21
- Install the package via npm or yarn:
22
-
23
- ```bash
24
- npm install @vishu1301/script-writing
1
+ # Script Writing & Breakdown Library
2
+
3
+ An advanced, React and Next.js-based script writing and breakdown analysis library for the web.
4
+
5
+ This package provides developers with an intuitive suite of tools to draft, edit, and format scripts according to industry standards, alongside powerful script and shot breakdown utilities to highlight, tag, and analyze scene elements for pre-production.
6
+
7
+ ## Core Modules
8
+
9
+ The library is divided into three primary modules: **Screenplay Editor**, **Script Breakdown**, and **Shot Breakdown**. Each module exposes headless hooks for robust state management and pre-built React views for rapid UI integration.
10
+
11
+ ### 1. Screenplay Editor
12
+ Draft, edit, and format screenplays with an intuitive WYSIWYG editor.
13
+ - **Industry-Standard Formatting:** Automatically formats text to screenplay guidelines, dynamically handling Scene Headings, Action, Character, Parenthetical, Dialogue, and Transitions.
14
+ - **Smart Auto-Suggestions:** Intelligently suggests previously used Characters, Locations, and Character Extensions (like V.O., O.S.) as you type.
15
+ - **PDF Import & Export:** Built-in utilities to import existing scripts from PDFs (`pdfjs-dist`) and export drafts into beautifully formatted screenplay PDFs (`html2canvas-pro` & `jsPDF`).
16
+ - **Keyboard Shortcuts:** Fluid writing experience utilizing familiar keyboard shortcuts (e.g., `Ctrl + ↑/↓` to change block types, `Enter` for smart block transitions).
17
+ - **Core Exports:** `useScreenplayEditor` (Hook), `ScreenplayEditorView` (Component).
18
+
19
+ ### 2. Script Breakdown
20
+ Analyze and tag script elements to prepare for scheduling and production.
21
+ - **Interactive Scene Viewer:** View parsed scripts in breakdown mode where text is immutable but fully interactive.
22
+ - **Element Tagging:** Select blocks of text to tag them as Cast, Props, Wardrobe, VFX, Vehicles, Extras, etc.
23
+ - **Color-Coded Analysis:** Industry-standard color-coded highlighting applied automatically as elements are tagged.
24
+ - **Core Exports:** `useScriptBreakdownScene` (Hook), `ScriptBreakdownSceneView` (Component).
25
+
26
+ ### 3. Shot Breakdown
27
+ Visually plan camera work, cinematography, and storyboarding shot-by-shot linked directly to the screenplay text.
28
+ - **Multi-Camera Management:** Initialize your digital production with multiple cameras and easily swap between them when assigning shots.
29
+ - **Extensive Shot Configuration:** Detailed properties for each shot covering Core Identification, Optics & Mechanics (Lens, Movement, Support, Aperture), Visual Composition (Framing, Depth of Field), and Narrative Context (Lighting, Sound, VFX, Emotional Purpose).
30
+ - **Text-to-Shot Mapping:** Highlight specific script sections on the editor space to directly bind them to newly created shots, dynamically overlaying shot durations on the script.
31
+ - **Core Exports:** `useShotBreakdownScene` (Hook), `ShotBreakdownSceneView` (Component).
32
+
33
+ ## Installation
34
+
35
+ Install the package via npm, yarn, or pnpm:
36
+
37
+ ```bash
38
+ npm install @vishu1301/script-writing
39
+ ```
40
+
41
+ ## Quick Start
42
+ *Note: The UI views utilize standard Tailwind CSS utility classes and Lucide React icons.*
43
+
44
+ ### Screenplay Editor Example
45
+ ```tsx
46
+ import { ScreenplayEditorView, useScreenplayEditor } from "@vishu1301/script-writing";
47
+
48
+ export default function ScriptApp() {
49
+ const editorProps = useScreenplayEditor();
50
+
51
+ return (
52
+ <div className="w-full min-h-screen bg-zinc-50">
53
+ <ScreenplayEditorView {...editorProps} />
54
+ </div>
55
+ );
56
+ }
57
+ ```
58
+
59
+ ## Developer Notes
60
+
61
+ This package relies heavily on data attributes and high-specificity style injection to force screenplay fonts (Courier Prime). For customized font integration or headless implementation, utilize the provided hooks to map output block objects into your custom interface.