@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 +61 -24
- package/dist/index.cjs +1851 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +128 -1
- package/dist/index.d.ts +128 -1
- package/dist/index.js +1841 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
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
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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.
|