reddokia 1.0.0-alpha.2 → 1.0.0

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,10 +1,14 @@
1
1
  # <img alt="" src="./public/favicon.svg" height="36" align="top">&nbsp;<picture><source media="(prefers-color-scheme: dark)" srcset="./public/logo-dark.svg"><source media="(prefers-color-scheme: light)" srcset="./public/logo-light.svg"><img alt="RedDokia" src="./public/logo-dark.svg" height="36" align="top"></picture>
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/reddokia?color=F97316&label=npm)](https://www.npmjs.com/package/reddokia)
4
+ [![license](https://img.shields.io/badge/license-MIT-10B981)](./LICENSE)
5
+
3
6
  **The Docking Engine for Modern Web Apps.**
4
7
 
5
8
  Build desktop-class dockable workspaces with a few lines of declarative layout code for **React 18/19**, **Vue 3**, **Svelte 5**, and **Vanilla TS/JS**.
6
9
  Split, float, or pop out any panel to an external monitor without ever losing canvas or editor state.
7
10
 
11
+ - **npm Package**: https://www.npmjs.com/package/reddokia
8
12
  - **Official Home & Live Demo**: https://redcamel.github.io/RedDokia/
9
13
  - **Interactive Tutorials (20 Steps + 2 Showcases)**: https://redcamel.github.io/RedDokia/examples/
10
14
  - **Documentation & API (EN)**: https://redcamel.github.io/RedDokia/docs/en/
@@ -24,10 +28,26 @@ Split, float, or pop out any panel to an external monitor without ever losing ca
24
28
 
25
29
  ## Installation
26
30
 
31
+ Install `reddokia` from [npm](https://www.npmjs.com/package/reddokia):
32
+
27
33
  ```bash
28
34
  npm install reddokia
29
35
  ```
30
36
 
37
+ Or import the pure ESM bundle directly in the browser without any build step (via CDN or GitHub Pages):
38
+
39
+ ```html
40
+ <script type="module">
41
+ // via jsDelivr CDN (npm)
42
+ import { RedDokia, RedDokiaIcons } from 'https://cdn.jsdelivr.net/npm/reddokia/dist/reddokia.js';
43
+
44
+ // or directly from GitHub Pages
45
+ // import { RedDokia, RedDokiaIcons } from 'https://redcamel.github.io/RedDokia/dist/reddokia.js';
46
+ </script>
47
+ ```
48
+
49
+ > **Note**: Scoped `.rd-*` styles are automatically injected when you import `reddokia`. No extra CSS import is required unless your environment enforces a strict CSP (`import 'reddokia/style.css'`).
50
+
31
51
  ### Package Exports
32
52
 
33
53
  | Entry Point | Target | Notes |
package/dist/llms.txt ADDED
@@ -0,0 +1,63 @@
1
+ # RedDokia (reddokia)
2
+
3
+ > Zero-dependency, 100% Zero-Unmount docking workbench layout engine for React 18/19, Vue 3, Svelte 5, and Vanilla TypeScript/JavaScript.
4
+
5
+ - Official Home & Live Demo: https://redcamel.github.io/RedDokia/
6
+ - Interactive Playground (20 Tutorials + 2 Showcases): https://redcamel.github.io/RedDokia/examples/
7
+ - Documentation (English): https://redcamel.github.io/RedDokia/docs/en/
8
+ - Documentation (Korean): https://redcamel.github.io/RedDokia/docs/ko/
9
+ - API Reference (English): https://redcamel.github.io/RedDokia/docs/en/api/
10
+ - API Reference (Korean): https://redcamel.github.io/RedDokia/docs/ko/api/
11
+ - npm Package: https://www.npmjs.com/package/reddokia
12
+ - GitHub Repository: https://github.com/redcamel/RedDokia
13
+
14
+ ## Key Capabilities
15
+
16
+ 1. **100% Zero-Unmount DOM Reparenting**: Single flattened view host layer preserves WebGPU, WebGL, Three.js canvases, Monaco editors, video players, and component state across grid splits, slide-over EdgeBar drawers, in-app floating windows, and native OS multi-monitor pop-out windows (`window.open` + `document.adoptNode`).
17
+ 2. **All-in-One IDE Workbench Shell**: Built-in 6-Slot EdgeBar (`leftTopEdgeBar`, `leftBottomEdgeBar`, `rightTopEdgeBar`, `rightBottomEdgeBar`, `bottomLeftEdgeBar`, `bottomRightEdgeBar`), `TopBar`, `StatusBar`, and protected root `contents` stage.
18
+ 3. **2-Tier Declarative Schema**: Separate `layoutSchema` (`RedDokiaLayoutSchema`) and `viewsSchema` (`RedDokiaViewSchema[]`) with concise array shorthand (`contents: ['viewport', 'shader']`).
19
+ 4. **First-Class Multi-Framework Adapters**:
20
+ - `reddokia` (Vanilla TS/JS core, 0 dependencies, ~48.5 kB gzip, auto-injected scoped `.rd-*` CSS)
21
+ - `reddokia/react` (React 18/19 Portal adapter)
22
+ - `reddokia/vue` (Vue 3 Teleport & Scoped Slot adapter)
23
+ - `reddokia/svelte` (Svelte 5 Runes & `use:redDokia` action adapter)
24
+ - `reddokia/style.css` (Optional static stylesheet for Strict CSP)
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ npm install reddokia
30
+ ```
31
+
32
+ Browser Direct ESM (No build step):
33
+ ```html
34
+ <script type="module">
35
+ import { RedDokia, RedDokiaIcons } from 'https://cdn.jsdelivr.net/npm/reddokia/dist/reddokia.js';
36
+ </script>
37
+ ```
38
+
39
+ ## Minimal Example (Shared Schema)
40
+
41
+ ```ts
42
+ // layoutSchema.ts
43
+ import type { RedDokiaLayoutSchema } from 'reddokia';
44
+
45
+ export const layoutSchema: RedDokiaLayoutSchema = {
46
+ leftTopEdgeBar: { size: 240, children: ['explorer'] },
47
+ contents: ['viewport', 'shader'],
48
+ rightTopEdgeBar: { size: 280, children: ['inspector'] },
49
+ statusBar: true,
50
+ };
51
+ ```
52
+
53
+ ## Documentation Links
54
+
55
+ - [3-Minute Quick Start](https://redcamel.github.io/RedDokia/docs/en/guide/quick-start.html)
56
+ - [Framework Guides (React, Vue 3, Svelte 5, Vanilla TS)](https://redcamel.github.io/RedDokia/docs/en/guide/frameworks.html)
57
+ - [Layout & Size Constraints](https://redcamel.github.io/RedDokia/docs/en/guide/layout-and-constraints.html)
58
+ - [Panels, Keep-Alive & Resize](https://redcamel.github.io/RedDokia/docs/en/guide/panels-and-keepalive.html)
59
+ - [Workbench Shell & Context Menus](https://redcamel.github.io/RedDokia/docs/en/guide/shell-and-customization.html)
60
+ - [Theming, Design Tokens & i18n](https://redcamel.github.io/RedDokia/docs/en/guide/theming-and-i18n.html)
61
+ - [Tabs, Close Guard & External DnD](https://redcamel.github.io/RedDokia/docs/en/guide/interactions-and-dnd.html)
62
+ - [Floating Windows, OS Pop-outs & Persistence](https://redcamel.github.io/RedDokia/docs/en/guide/windows-and-persistence.html)
63
+ - [Strict CSP & Production Guide](https://redcamel.github.io/RedDokia/docs/en/guide/security-and-csp.html)
Binary file
@@ -0,0 +1,4 @@
1
+ User-agent: *
2
+ Allow: /
3
+
4
+ Sitemap: https://redcamel.github.io/RedDokia/sitemap.xml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reddokia",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0",
4
4
  "description": "Zero-dependency docking workbench engine for Vanilla, React, Vue 3 & Svelte 5.",
5
5
  "author": "RedCamel (https://github.com/redcamel)",
6
6
  "license": "MIT",