reddokia 0.0.0-stage → 1.0.0-alpha.1

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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +193 -2
  3. package/dist/core/RedDokiaEngine.d.ts +20 -0
  4. package/dist/core/RedDokiaEngine.d.ts.map +1 -0
  5. package/dist/core/RedDokiaStore.d.ts +115 -0
  6. package/dist/core/RedDokiaStore.d.ts.map +1 -0
  7. package/dist/core/dom/DockOverlaysDom.d.ts +13 -0
  8. package/dist/core/dom/DockOverlaysDom.d.ts.map +1 -0
  9. package/dist/core/dom/EdgeBarDom.d.ts +12 -0
  10. package/dist/core/dom/EdgeBarDom.d.ts.map +1 -0
  11. package/dist/core/dom/FloatingLayerDom.d.ts +14 -0
  12. package/dist/core/dom/FloatingLayerDom.d.ts.map +1 -0
  13. package/dist/core/dom/GridGroupDom.d.ts +25 -0
  14. package/dist/core/dom/GridGroupDom.d.ts.map +1 -0
  15. package/dist/core/dom/PopoutWindowDom.d.ts +16 -0
  16. package/dist/core/dom/PopoutWindowDom.d.ts.map +1 -0
  17. package/dist/core/dom/SashLayerDom.d.ts +11 -0
  18. package/dist/core/dom/SashLayerDom.d.ts.map +1 -0
  19. package/dist/core/dom/StatusBarDom.d.ts +12 -0
  20. package/dist/core/dom/StatusBarDom.d.ts.map +1 -0
  21. package/dist/core/dom/TabContextMenuDom.d.ts +47 -0
  22. package/dist/core/dom/TabContextMenuDom.d.ts.map +1 -0
  23. package/dist/core/dom/TopBarDom.d.ts +16 -0
  24. package/dist/core/dom/TopBarDom.d.ts.map +1 -0
  25. package/dist/core/dom/domUtils.d.ts +69 -0
  26. package/dist/core/dom/domUtils.d.ts.map +1 -0
  27. package/dist/core/geometrySolver.d.ts +25 -0
  28. package/dist/core/geometrySolver.d.ts.map +1 -0
  29. package/dist/core/hitTester.d.ts +26 -0
  30. package/dist/core/hitTester.d.ts.map +1 -0
  31. package/dist/core/icons/svgRegistry.d.ts +83 -0
  32. package/dist/core/icons/svgRegistry.d.ts.map +1 -0
  33. package/dist/core/interactions/DockDragManager.d.ts +43 -0
  34. package/dist/core/interactions/DockDragManager.d.ts.map +1 -0
  35. package/dist/core/interactions/FloatingWindowManager.d.ts +14 -0
  36. package/dist/core/interactions/FloatingWindowManager.d.ts.map +1 -0
  37. package/dist/core/interactions/SashResizeManager.d.ts +14 -0
  38. package/dist/core/interactions/SashResizeManager.d.ts.map +1 -0
  39. package/dist/core/interactions/floatingUtils.d.ts +28 -0
  40. package/dist/core/interactions/floatingUtils.d.ts.map +1 -0
  41. package/dist/core/locales/index.d.ts +11 -0
  42. package/dist/core/locales/index.d.ts.map +1 -0
  43. package/dist/core/publicApi.d.ts +8 -0
  44. package/dist/core/publicApi.d.ts.map +1 -0
  45. package/dist/core/sashResizeSolver.d.ts +47 -0
  46. package/dist/core/sashResizeSolver.d.ts.map +1 -0
  47. package/dist/core/snapshotSerializer.d.ts +60 -0
  48. package/dist/core/snapshotSerializer.d.ts.map +1 -0
  49. package/dist/core/styles/ensureRedDokiaStyles.d.ts +25 -0
  50. package/dist/core/styles/ensureRedDokiaStyles.d.ts.map +1 -0
  51. package/dist/core/tabScrollErgonomics.d.ts +18 -0
  52. package/dist/core/tabScrollErgonomics.d.ts.map +1 -0
  53. package/dist/core/themes/index.d.ts +6 -0
  54. package/dist/core/themes/index.d.ts.map +1 -0
  55. package/dist/core/treeOps.d.ts +259 -0
  56. package/dist/core/treeOps.d.ts.map +1 -0
  57. package/dist/core/types/index.d.ts +1379 -0
  58. package/dist/core/types/index.d.ts.map +1 -0
  59. package/dist/favicon.svg +18 -0
  60. package/dist/index.d.ts +9 -0
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/logo-dark.svg +13 -0
  63. package/dist/logo-light.svg +13 -0
  64. package/dist/react/RedDokiaReact.d.ts +11 -0
  65. package/dist/react/RedDokiaReact.d.ts.map +1 -0
  66. package/dist/react/ViewIcon.d.ts +13 -0
  67. package/dist/react/ViewIcon.d.ts.map +1 -0
  68. package/dist/react/index.d.ts +10 -0
  69. package/dist/react/index.d.ts.map +1 -0
  70. package/dist/react.js +1 -0
  71. package/dist/reddokia.js +1 -0
  72. package/dist/style.css +2 -0
  73. package/dist/svelte/RedDokiaSvelte.d.ts +33 -0
  74. package/dist/svelte/RedDokiaSvelte.d.ts.map +1 -0
  75. package/dist/svelte/index.d.ts +9 -0
  76. package/dist/svelte/index.d.ts.map +1 -0
  77. package/dist/svelte.js +1 -0
  78. package/dist/vue/RedDokiaVue.d.ts +25 -0
  79. package/dist/vue/RedDokiaVue.d.ts.map +1 -0
  80. package/dist/vue/index.d.ts +9 -0
  81. package/dist/vue/index.d.ts.map +1 -0
  82. package/dist/vue.js +1 -0
  83. package/package.json +101 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026-present RedCamel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,194 @@
1
- # Temporary Holding Version
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
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **The Docking Engine for Modern Web Apps.**
4
+
5
+ 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
+ Split, float, or pop out any panel to an external monitor without ever losing canvas or editor state.
7
+
8
+ - **Official Home & Live Demo**: https://redcamel.github.io/RedDokia/
9
+ - **Interactive Tutorials (20 Steps + 2 Showcases)**: https://redcamel.github.io/RedDokia/examples/
10
+ - **Documentation & API (EN)**: https://redcamel.github.io/RedDokia/docs/en/
11
+ - **Documentation & API (KO)**: https://redcamel.github.io/RedDokia/docs/ko/
12
+
13
+ ---
14
+
15
+ ## Why RedDokia?
16
+
17
+ - **Declarative Layouts, Native Components**: Declare your layout structure in a few lines and plug in your existing React (`.tsx`), Vue 3 (`.vue`), Svelte 5 (`.svelte`), or Vanilla TS components as they are—no complex factory boilerplate required.
18
+ - **Zero-Unmount State Preservation**: Panels never unmount when split, moved, floated, or popped out to another monitor—keeping WebGPU/Three.js canvases, video playback, scroll positions, and form inputs alive.
19
+ - **6-Slot EdgeBar & IDE Workbench Shell**: Configure 6 collapsible sidebar slots (`leftTopEdgeBar` to `bottomRightEdgeBar`) around your main `contents` area, complete with built-in **TopBar** menus, **StatusBar**, group header actions, and tab context menus.
20
+ - **Zero-Config OS Pop-Outs**: Detach any panel into a native OS browser window with no extra HTML file needed—styles, themes, and favicons sync automatically, and closing the window safely re-docks the panel.
21
+ - **Persistence, Live Resize & Themes Built In**: Zero runtime dependencies (`~50 kB` gzip) with automatic scoped `.rd-*` style injection (plus Strict CSP support), `localStorage` auto-save (`storageKey`), JSON layout backup/restore, live panel resize detection (`onViewResize`), custom dark/light themes, and localization (`en` / `ko` / `ja`).
22
+
23
+ ---
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ npm install reddokia
29
+ ```
30
+
31
+ ### Package Exports
32
+
33
+ | Entry Point | Target | Notes |
34
+ | :--- | :--- | :--- |
35
+ | `reddokia` | Vanilla TS / JS | Zero-dependency core engine (`~50 kB` gzip) |
36
+ | `reddokia/react` | React 18 / 19 | Zero-Unmount `createPortal` adapter |
37
+ | `reddokia/vue` | Vue 3 | Full `DefineComponent` Volar IDE types + `<Teleport>` |
38
+ | `reddokia/svelte` | Svelte 5 | Native `mount` / `unmount` + `SvelteMap` Runes reactivity |
39
+ | `reddokia/style.css` | Stylesheet | Optional static CSS bundle (auto-injected by default) |
40
+
41
+ ---
42
+
43
+ ## Quick Start
44
+
45
+ ### 1. Declare Your Layout (`layoutSchema.ts`)
46
+
47
+ ```ts
48
+ import type { RedDokiaLayoutSchema } from 'reddokia';
49
+
50
+ export const layoutSchema: RedDokiaLayoutSchema = {
51
+ topBar: {
52
+ logoText: 'RD',
53
+ title: 'RedDokia Studio',
54
+ },
55
+ leftTopEdgeBar: { size: 240, children: ['explorer'] },
56
+ contents: {
57
+ children: [
58
+ ['viewport'],
59
+ ['editor', 'preview'],
60
+ ],
61
+ },
62
+ rightTopEdgeBar: { size: 280, children: ['inspector'] },
63
+ statusBar: true,
64
+ };
65
+ ```
66
+
67
+ ### 2. Plug In Your Components & Mount
68
+
69
+ #### React 18 / 19 (`reddokia/react`)
70
+
71
+ ```tsx
72
+ import { RedDokia, type RedDokiaViewSchema } from 'reddokia/react';
73
+ import { layoutSchema } from './layoutSchema';
74
+ import ExplorerPanel from './ExplorerPanel';
75
+ import ViewportPanel from './ViewportPanel';
76
+ import EditorPanel from './EditorPanel';
77
+ import PreviewPanel from './PreviewPanel';
78
+ import InspectorPanel from './InspectorPanel';
79
+
80
+ const views: RedDokiaViewSchema[] = [
81
+ { id: 'explorer', component: ExplorerPanel },
82
+ { id: 'viewport', title: '3D Viewport', component: ViewportPanel },
83
+ { id: 'editor', title: 'App.tsx', component: EditorPanel },
84
+ { id: 'preview', component: PreviewPanel },
85
+ { id: 'inspector', component: InspectorPanel },
86
+ ];
87
+
88
+ export function App() {
89
+ return (
90
+ <div style={{ width: '100vw', height: '100vh' }}>
91
+ <RedDokia views={views} layout={layoutSchema} />
92
+ </div>
93
+ );
94
+ }
95
+ ```
96
+
97
+ #### Vue 3 (`reddokia/vue`)
98
+
99
+ ```vue
100
+ <script setup lang="ts">
101
+ import { RedDokia, type RedDokiaViewSchema } from 'reddokia/vue';
102
+ import { layoutSchema } from './layoutSchema';
103
+ import ExplorerPanel from './ExplorerPanel.vue';
104
+ import ViewportPanel from './ViewportPanel.vue';
105
+ import EditorPanel from './EditorPanel.vue';
106
+ import PreviewPanel from './PreviewPanel.vue';
107
+ import InspectorPanel from './InspectorPanel.vue';
108
+
109
+ const views: RedDokiaViewSchema[] = [
110
+ { id: 'explorer', component: ExplorerPanel },
111
+ { id: 'viewport', title: '3D Viewport', component: ViewportPanel },
112
+ { id: 'editor', title: 'App.vue', component: EditorPanel },
113
+ { id: 'preview', component: PreviewPanel },
114
+ { id: 'inspector', component: InspectorPanel },
115
+ ];
116
+ </script>
117
+
118
+ <template>
119
+ <div style="width: 100vw; height: 100vh">
120
+ <RedDokia :views="views" :layout="layoutSchema" />
121
+ </div>
122
+ </template>
123
+ ```
124
+
125
+ #### Svelte 5 (`reddokia/svelte`)
126
+
127
+ ```svelte
128
+ <script lang="ts">
129
+ import { RedDokia, type RedDokiaViewSchema } from 'reddokia/svelte';
130
+ import { layoutSchema } from './layoutSchema';
131
+ import ExplorerPanel from './ExplorerPanel.svelte';
132
+ import ViewportPanel from './ViewportPanel.svelte';
133
+ import EditorPanel from './EditorPanel.svelte';
134
+ import PreviewPanel from './PreviewPanel.svelte';
135
+ import InspectorPanel from './InspectorPanel.svelte';
136
+
137
+ const views: RedDokiaViewSchema[] = [
138
+ { id: 'explorer', component: ExplorerPanel },
139
+ { id: 'viewport', title: '3D Viewport', component: ViewportPanel },
140
+ { id: 'editor', title: 'App.svelte', component: EditorPanel },
141
+ { id: 'preview', component: PreviewPanel },
142
+ { id: 'inspector', component: InspectorPanel },
143
+ ];
144
+ </script>
145
+
146
+ <div style="width: 100vw; height: 100vh">
147
+ <RedDokia {views} layout={layoutSchema} />
148
+ </div>
149
+ ```
150
+
151
+ #### Vanilla TS / JS (`reddokia`)
152
+
153
+ ```ts
154
+ import { RedDokia, type RedDokiaViewSchema } from 'reddokia';
155
+ import { layoutSchema } from './layoutSchema';
156
+ import ExplorerPanel from './ExplorerPanel';
157
+ import ViewportPanel from './ViewportPanel';
158
+ import EditorPanel from './EditorPanel';
159
+ import PreviewPanel from './PreviewPanel';
160
+ import InspectorPanel from './InspectorPanel';
161
+
162
+ const views: RedDokiaViewSchema[] = [
163
+ { id: 'explorer', component: ExplorerPanel },
164
+ { id: 'viewport', title: '3D Viewport', component: ViewportPanel },
165
+ { id: 'editor', title: 'main.ts', component: EditorPanel },
166
+ { id: 'preview', component: PreviewPanel },
167
+ { id: 'inspector', component: InspectorPanel },
168
+ ];
169
+
170
+ const dock = new RedDokia(document.getElementById('app')!, {
171
+ views,
172
+ layout: layoutSchema,
173
+ });
174
+ ```
175
+
176
+ ---
177
+
178
+ ## Local Development
179
+
180
+ ```bash
181
+ npm install
182
+ npm run dev # Unified dev server (/: landing, /examples/: 22 live examples, /docs/: VitePress docs)
183
+ npm test # Run Vitest unit test suite
184
+ npm run build:lib # Build library bundles & type declarations (dist/)
185
+ npm run build:docs # Generate EN/KO TypeDoc API & build VitePress site
186
+ npm run build # Full production & GitHub Pages build (dist-pages/)
187
+ npm run preview:pages # Preview GitHub Pages build locally under /RedDokia/
188
+ ```
189
+
190
+ ---
191
+
192
+ ## License
193
+
194
+ [MIT](./LICENSE) © 2026-present [RedCamel](https://github.com/redcamel)
@@ -0,0 +1,20 @@
1
+ import type { RedDokiaController, RedDokiaInstance, RedDokiaProps } from './types';
2
+ /**
3
+ * Declaration merging so `RedDokia` directly exposes all {@link RedDokiaController} methods at the top level.
4
+ */
5
+ export interface RedDokia extends RedDokiaController {
6
+ }
7
+ /**
8
+ * Complete Zero-Dependency Vanilla TypeScript DOM Engine for RedDokia.
9
+ * Manages the workbench shell, persistent view host DOM nodes, 120fps interactions, and lifecycle callbacks.
10
+ */
11
+ export declare class RedDokia implements RedDokiaInstance {
12
+ #private;
13
+ constructor(container: HTMLElement, options: RedDokiaProps);
14
+ get controller(): RedDokiaController;
15
+ get rootElement(): HTMLDivElement;
16
+ getViewHostElement(viewId: string): HTMLElement | null;
17
+ setOptions(nextOptions: Partial<RedDokiaProps>): void;
18
+ destroy(): void;
19
+ }
20
+ //# sourceMappingURL=RedDokiaEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedDokiaEngine.d.ts","sourceRoot":"","sources":["../../src/core/RedDokiaEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAEhB,aAAa,EAQd,MAAM,SAAS,CAAC;AAoEjB;;;;GAIG;AACH,MAAM,WAAW,QAAS,SAAQ,kBAAkB;CAAG;AAEvD;;;;;GAKG;AACH,qBAAa,QAAS,YAAW,gBAAgB;;gBAwCnC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa;IAgN1D,IAAW,UAAU,IAAI,kBAAkB,CAE1C;IAED,IAAW,WAAW,IAAI,cAAc,CAEvC;IAyCM,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAsEtD,UAAU,CAAC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI;IA4OrD,OAAO,IAAI,IAAI;CAiCvB"}
@@ -0,0 +1,115 @@
1
+ import type { EdgeGroupsScanResult, RedDokiaEdgeSlot, RedDokiaGroupNode, RedDokiaLayoutNode, RedDokiaRect, RedDokiaController, RedDokiaExternalDragOptions, RedDokiaLayoutSchema, RedDokiaLayoutState, RedDokiaLocale, RedDokiaLocaleStrings, RedDokiaPopoutWindow, RedDokiaProps, RedDokiaStatusBarSchema, RedDokiaTheme, RedDokiaTopBarSchema, RedDokiaViewSchema, RedDokiaSolvedGeometry, RedDokiaSplitNode } from './types';
2
+ /**
3
+ * Converts a view ID (e.g. `'scene-explorer'`, `'sceneExplorer'`, `'file_tree'`) into a human-readable title (`'Scene Explorer'`, `'File Tree'`).
4
+ */
5
+ export declare function humanizeViewId(id: string): string;
6
+ /** Builds a default single-stage workbench layout when `layout` is omitted. */
7
+ export declare function createDefaultWorkbenchTree(views: RedDokiaViewSchema[]): RedDokiaSplitNode;
8
+ /**
9
+ * Normalizes the `views` array into a `RedDokiaViewSchema[]` array with resolved fallback titles.
10
+ */
11
+ export declare function normalizeViewsInput(views: RedDokiaViewSchema[] | undefined): RedDokiaViewSchema[];
12
+ export declare function findGroupByIdInTree(node: RedDokiaLayoutNode, groupId: string): RedDokiaGroupNode | null;
13
+ export declare function activateViewInGroupInTree(root: RedDokiaSplitNode, viewId: string, groupId?: string): RedDokiaSplitNode;
14
+ export declare function setGroupCollapsedInTree(root: RedDokiaSplitNode, groupId: string, collapsed: boolean): RedDokiaSplitNode;
15
+ /** Listener callback signature invoked whenever `RedDokiaStore` state changes. */
16
+ type RedDokiaStoreListener = () => void;
17
+ /**
18
+ * Pure TypeScript headless state store and `RedDokiaController` state machine.
19
+ * Contains zero framework dependencies and drives `reddokia` and all framework adapters (React, Vue, Svelte).
20
+ */
21
+ export declare class RedDokiaStore {
22
+ #private;
23
+ constructor(options: RedDokiaProps);
24
+ get options(): RedDokiaProps;
25
+ get layoutState(): RedDokiaLayoutState;
26
+ set layoutState(next: RedDokiaLayoutState);
27
+ get popoutWindows(): RedDokiaPopoutWindow[];
28
+ get mruViewIds(): string[];
29
+ get everMountedViewIds(): ReadonlySet<string>;
30
+ get dynamicRegisteredSchemas(): ReadonlyMap<string, RedDokiaViewSchema>;
31
+ get containerSize(): {
32
+ width: number;
33
+ height: number;
34
+ };
35
+ set containerSize(next: {
36
+ width: number;
37
+ height: number;
38
+ });
39
+ get contextMenu(): {
40
+ x: number;
41
+ y: number;
42
+ viewId: string;
43
+ groupId: string;
44
+ source?: 'tab' | 'edgebar';
45
+ edgeSlot?: RedDokiaEdgeSlot;
46
+ } | null;
47
+ set contextMenu(next: {
48
+ x: number;
49
+ y: number;
50
+ viewId: string;
51
+ groupId: string;
52
+ source?: 'tab' | 'edgebar';
53
+ edgeSlot?: RedDokiaEdgeSlot;
54
+ } | null);
55
+ setExternalDragStarter(starter: ((event: {
56
+ clientX: number;
57
+ clientY: number;
58
+ button?: number;
59
+ altKey?: boolean;
60
+ }, options: RedDokiaExternalDragOptions) => void) | null): void;
61
+ prepareExternalViewPatch(options: RedDokiaExternalDragOptions): void;
62
+ get controller(): RedDokiaController;
63
+ getFallbackTreeFactory(): () => RedDokiaSplitNode;
64
+ getActiveTopBarSchema(opts?: RedDokiaProps): RedDokiaTopBarSchema | null;
65
+ getActiveStatusBarSchema(opts?: RedDokiaProps): RedDokiaStatusBarSchema | null;
66
+ isTopBarEnabled(opts?: RedDokiaProps): boolean;
67
+ getActiveEmptyContentsRenderer(opts?: RedDokiaProps): unknown;
68
+ subscribe(listener: RedDokiaStoreListener): () => void;
69
+ notify(): void;
70
+ updateOptions(nextOptions: Partial<RedDokiaProps>): void;
71
+ getActiveLocale(): RedDokiaLocale;
72
+ resolveGroupActions(activeViewId: string | null): unknown;
73
+ getLocaleStrings(): RedDokiaLocaleStrings;
74
+ getActiveTheme(): RedDokiaTheme;
75
+ getViewsMap(): Map<string, RedDokiaViewSchema>;
76
+ getViewsRecord(): Record<string, RedDokiaViewSchema>;
77
+ getAllGroups(): RedDokiaGroupNode[];
78
+ getEdgeGroups(): EdgeGroupsScanResult;
79
+ getActiveGroup(): RedDokiaGroupNode | undefined;
80
+ getActiveViewId(): string | null;
81
+ solveGeometry(): RedDokiaSolvedGeometry;
82
+ activateGroup(groupId: string): void;
83
+ setLayoutState(updater: RedDokiaLayoutState | ((prev: RedDokiaLayoutState) => RedDokiaLayoutState)): void;
84
+ setPopoutWindows(updater: RedDokiaPopoutWindow[] | ((prev: RedDokiaPopoutWindow[]) => RedDokiaPopoutWindow[])): void;
85
+ setContainerSize(width: number, height: number): void;
86
+ getPinnedViewIdsSet(): Set<string>;
87
+ requestCloseView(viewId: string): void;
88
+ toggleEdgeSlot(slot: RedDokiaEdgeSlot): void;
89
+ activateTabInEdgeSlot(slot: RedDokiaEdgeSlot, viewId: string): void;
90
+ toggleEdgeBar(edge: 'left' | 'right' | 'bottom'): void;
91
+ toggleMaximizeGroup(groupId?: string): void;
92
+ resetLayout(): void;
93
+ setLayout(schema: RedDokiaLayoutSchema): void;
94
+ splitGroupWithView(sourceGroupId: string, viewId: string, zone: 'left' | 'right' | 'top' | 'bottom'): void;
95
+ floatView(viewId: string, rect?: Partial<RedDokiaRect>): void;
96
+ floatGroup(groupId: string, rect?: Partial<RedDokiaRect>): void;
97
+ redockFloatingView(viewId: string, targetGroupId?: string): void;
98
+ redockFloatingGroup(floatingGroupId: string, targetGroupId?: string): void;
99
+ popoutView(viewId: string, size?: {
100
+ width?: number;
101
+ height?: number;
102
+ }): void;
103
+ popoutGroup(groupId: string, size?: {
104
+ width?: number;
105
+ height?: number;
106
+ }): void;
107
+ redockPopoutGroup(popoutIdOrViewId: string, targetGroupId?: string): void;
108
+ redockPopoutView(viewId: string, targetGroupId?: string): void;
109
+ activatePopoutTab(popoutId: string, nextViewId: string): void;
110
+ moveViewToEdgeSlot(viewId: string, targetSlot: RedDokiaEdgeSlot): void;
111
+ setEdgeBarLabelsVisible(visible: boolean): void;
112
+ destroy(): void;
113
+ }
114
+ export {};
115
+ //# sourceMappingURL=RedDokiaStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedDokiaStore.d.ts","sourceRoot":"","sources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MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GACzC,IAAI;IAqEA,iBAAiB,CACtB,gBAAgB,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACrB,IAAI;IAqEA,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IA2C9D,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAQ7D,kBAAkB,CACvB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gBAAgB,GAC3B,IAAI;IA2CA,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAkhB/C,OAAO,IAAI,IAAI;CAGvB"}
@@ -0,0 +1,13 @@
1
+ import type { RedDokiaSolvedGeometry } from '../types';
2
+ import type { RedDokiaStore } from '../RedDokiaStore';
3
+ import type { ActiveDragSessionState } from '../interactions/DockDragManager';
4
+ /**
5
+ * Vanilla DOM renderer for drag-and-dock visual overlays (drop preview, tab insert pin, and drag ghost HUD).
6
+ */
7
+ export declare class DockOverlaysDom {
8
+ #private;
9
+ constructor(store: RedDokiaStore, rootEl: HTMLElement, gridEl: HTMLElement);
10
+ sync(geometry: RedDokiaSolvedGeometry, dragSession: ActiveDragSessionState | null): void;
11
+ destroy(): void;
12
+ }
13
+ //# sourceMappingURL=DockOverlaysDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DockOverlaysDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/DockOverlaysDom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;GAIG;AACH,qBAAa,eAAe;;gBAYxB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,WAAW;IAOd,IAAI,CACT,QAAQ,EAAE,sBAAsB,EAChC,WAAW,EAAE,sBAAsB,GAAG,IAAI,GACzC,IAAI;IAkIA,OAAO,IAAI,IAAI;CAKvB"}
@@ -0,0 +1,12 @@
1
+ import type { EdgeGroupsScanResult } from '../types';
2
+ import type { RedDokiaStore } from '../RedDokiaStore';
3
+ import type { DockDragManager } from '../interactions/DockDragManager';
4
+ import { type CustomIconBridge } from './domUtils';
5
+ /** Vanilla DOM renderer for a left or right peripheral EdgeBar (`.rd-edgebar`). */
6
+ export declare class EdgeBarDom {
7
+ #private;
8
+ constructor(side: 'left' | 'right', store: RedDokiaStore, parentEl: HTMLElement, customIconBridge?: CustomIconBridge, dragManager?: DockDragManager);
9
+ sync(anchorBefore?: Node | null, precomputedEdgeGroups?: EdgeGroupsScanResult): void;
10
+ destroy(): void;
11
+ }
12
+ //# sourceMappingURL=EdgeBarDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeBarDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/EdgeBarDom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAuC,MAAM,UAAU,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,YAAY,CAAC;AAEtE;;;;GAIG;AACH,qBAAa,UAAU;;gBAWnB,IAAI,EAAE,MAAM,GAAG,OAAO,EACtB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,WAAW,EACrB,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,WAAW,CAAC,EAAE,eAAe;IASxB,IAAI,CACT,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,EAC1B,qBAAqB,CAAC,EAAE,oBAAoB,GAC3C,IAAI;IAqOA,OAAO,IAAI,IAAI;CAOvB"}
@@ -0,0 +1,14 @@
1
+ import type { RedDokiaStore } from '../RedDokiaStore';
2
+ import type { DockDragManager } from '../interactions/DockDragManager';
3
+ import type { FloatingWindowManager } from '../interactions/FloatingWindowManager';
4
+ import { type CustomIconBridge } from './domUtils';
5
+ /**
6
+ * Vanilla DOM renderer for Zero-Unmount Floating Windows (`.rd-floating-window`).
7
+ */
8
+ export declare class FloatingLayerDom {
9
+ #private;
10
+ constructor(store: RedDokiaStore, gridEl: HTMLElement, floatingManager: FloatingWindowManager, dragManager: DockDragManager, getOrCreateViewHost: (viewId: string) => HTMLElement, customIconBridge?: CustomIconBridge);
11
+ sync(): void;
12
+ destroy(): void;
13
+ }
14
+ //# sourceMappingURL=FloatingLayerDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatingLayerDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/FloatingLayerDom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,YAAY,CAAC;AAyBpB;;;;GAIG;AACH,qBAAa,gBAAgB;;gBAezB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,eAAe,EAAE,qBAAqB,EACtC,WAAW,EAAE,eAAe,EAC5B,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,WAAW,EACpD,gBAAgB,CAAC,EAAE,gBAAgB;IAU9B,IAAI,IAAI,IAAI;IA0YZ,OAAO,IAAI,IAAI;CAOvB"}
@@ -0,0 +1,25 @@
1
+ import type { RedDokiaGroupActionsRenderProps, RedDokiaSolvedGeometry } from '../types';
2
+ import { type RedDokiaStore } from '../RedDokiaStore';
3
+ import type { DockDragManager } from '../interactions/DockDragManager';
4
+ import { type CustomIconBridge } from './domUtils';
5
+ /**
6
+ * Vanilla DOM renderer for docked groups (`.rd-group`).
7
+ * Uses keyed DOM caching and `safeMoveElement` to reparent persistent view hosts without unmounting.
8
+ */
9
+ export declare class GridGroupDom {
10
+ #private;
11
+ get customEmptyContentsSlots(): ReadonlyMap<string, HTMLElement>;
12
+ get customGroupActionsSlots(): ReadonlyMap<string, {
13
+ hostEl: HTMLElement;
14
+ props: RedDokiaGroupActionsRenderProps;
15
+ renderer: unknown;
16
+ }>;
17
+ constructor(store: RedDokiaStore, gridEl: HTMLElement, dragManager: DockDragManager, getOrCreateViewHost: (viewId: string) => HTMLElement, customIconBridge?: CustomIconBridge, mountDynamicComponent?: (comp: unknown, container: HTMLElement, initialProps: any) => any);
18
+ closeOverflowDropdown(): void;
19
+ sync(geometry: RedDokiaSolvedGeometry, options: {
20
+ hasCustomEmptyContents: boolean;
21
+ hasCustomGroupActions?: (renderer?: unknown) => boolean;
22
+ }): void;
23
+ destroy(): void;
24
+ }
25
+ //# sourceMappingURL=GridGroupDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridGroupDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/GridGroupDom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EACL,KAAK,gBAAgB,EAQtB,MAAM,YAAY,CAAC;AAiBpB;;;;;GAKG;AACH,qBAAa,YAAY;;IAwBvB,IAAW,wBAAwB,IAAI,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAEtE;IAED,IAAW,uBAAuB,IAAI,WAAW,CAC/C,MAAM,EACN;QACE,MAAM,EAAE,WAAW,CAAC;QACpB,KAAK,EAAE,+BAA+B,CAAC;QACvC,QAAQ,EAAE,OAAO,CAAC;KACnB,CACF,CAEA;gBAGC,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,WAAW,EAAE,eAAe,EAC5B,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,WAAW,EACpD,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,qBAAqB,CAAC,EAAE,CACtB,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,WAAW,EACtB,YAAY,EAAE,GAAG,KACd,GAAG;IAUH,qBAAqB,IAAI,IAAI;IAO7B,IAAI,CACT,QAAQ,EAAE,sBAAsB,EAChC,OAAO,EAAE;QACP,sBAAsB,EAAE,OAAO,CAAC;QAChC,qBAAqB,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;KACzD,GACA,IAAI;IAuvBA,OAAO,IAAI,IAAI;CAQvB"}
@@ -0,0 +1,16 @@
1
+ import type { RedDokiaStore } from '../RedDokiaStore';
2
+ /**
3
+ * Built-in RedDokia SVG favicon used as fallback when neither `popoutFavicon` nor a host `<link rel*="icon">` is present.
4
+ */
5
+ export declare const DEFAULT_REDDOKIA_POPOUT_FAVICON: string;
6
+ /**
7
+ * Vanilla DOM manager for OS-level native browser pop-out windows (`window.open`).
8
+ * Synchronizes `<style>` and `<link>` stylesheets into the child document and moves the persistent view `hostEl` across documents cleanly.
9
+ */
10
+ export declare class PopoutWindowDom {
11
+ #private;
12
+ constructor(store: RedDokiaStore, getOrCreateViewHost: (viewId: string) => HTMLElement, parkingFrameEl: HTMLElement);
13
+ sync(): void;
14
+ destroy(): void;
15
+ }
16
+ //# sourceMappingURL=PopoutWindowDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopoutWindowDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/PopoutWindowDom.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,QACoC,CAAC;AAoDjF;;;;;GAKG;AACH,qBAAa,eAAe;;gBAQxB,KAAK,EAAE,aAAa,EACpB,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,WAAW,EACpD,cAAc,EAAE,WAAW;IAwBtB,IAAI,IAAI,IAAI;IAqYZ,OAAO,IAAI,IAAI;CAWvB"}
@@ -0,0 +1,11 @@
1
+ import type { RedDokiaSolvedGeometry } from '../types';
2
+ import type { RedDokiaStore } from '../RedDokiaStore';
3
+ import type { SashResizeManager } from '../interactions/SashResizeManager';
4
+ /** Vanilla DOM renderer for 1D Split Sashes (`.rd-sash`). */
5
+ export declare class SashLayerDom {
6
+ #private;
7
+ constructor(store: RedDokiaStore, gridEl: HTMLElement, sashManager: SashResizeManager);
8
+ sync(geometry: RedDokiaSolvedGeometry): void;
9
+ destroy(): void;
10
+ }
11
+ //# sourceMappingURL=SashLayerDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SashLayerDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/SashLayerDom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E;;;;GAIG;AACH,qBAAa,YAAY;;gBAWrB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,WAAW,EAAE,iBAAiB;IAyBzB,IAAI,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI;IAgF5C,OAAO,IAAI,IAAI;CAOvB"}
@@ -0,0 +1,12 @@
1
+ import type { RedDokiaStore } from '../RedDokiaStore';
2
+ import { type DynamicComponentMounter } from './domUtils';
3
+ /** Vanilla DOM renderer for the bottom workbench StatusBar (`.rd-statusbar`). */
4
+ export declare class StatusBarDom {
5
+ #private;
6
+ constructor(store: RedDokiaStore, rootEl: HTMLElement, mountDynamicComponent?: DynamicComponentMounter);
7
+ getCustomLeftSlotElement(): HTMLDivElement | null;
8
+ getCustomRightSlotElement(): HTMLDivElement | null;
9
+ sync(hasCustomRightSlot: boolean, hasCustomLeftSlot?: boolean): void;
10
+ destroy(): void;
11
+ }
12
+ //# sourceMappingURL=StatusBarDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusBarDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/StatusBarDom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,qBAAa,YAAY;;gBAerB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,qBAAqB,CAAC,EAAE,uBAAuB;IAO1C,wBAAwB,IAAI,cAAc,GAAG,IAAI;IAIjD,yBAAyB,IAAI,cAAc,GAAG,IAAI;IAIlD,IAAI,CACT,kBAAkB,EAAE,OAAO,EAC3B,iBAAiB,UAAQ,GACxB,IAAI;IAqFA,OAAO,IAAI,IAAI;CAQvB"}
@@ -0,0 +1,47 @@
1
+ import type { RedDokiaStore } from '../RedDokiaStore';
2
+ import type { RedDokiaEdgeSlot } from '../types';
3
+ import { type CustomIconBridge } from './domUtils';
4
+ /**
5
+ * Clamps context menu `(x, y)` coordinates so the popup remains within the browser viewport.
6
+ *
7
+ * @param x - Requested client X coordinate
8
+ * @param y - Requested client Y coordinate
9
+ * @param menuWidth - Estimated menu width in pixels
10
+ * @param menuHeight - Estimated menu height in pixels
11
+ * @returns Viewport-clamped `{ x, y }` coordinates
12
+ */
13
+ export declare function clampContextMenuPosition(x: number, y: number, menuWidth?: number, menuHeight?: number, viewportWidth?: number, viewportHeight?: number, margin?: number): {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ /** Resolved action item rendered inside a tab or EdgeBar context menu. */
18
+ export interface ContextMenuActionItem {
19
+ id: string;
20
+ label: string;
21
+ shortcut?: string;
22
+ icon?: unknown;
23
+ danger?: boolean;
24
+ disabled?: boolean;
25
+ checked?: boolean;
26
+ dividerBefore?: boolean;
27
+ children?: ContextMenuActionItem[];
28
+ onClick: () => void;
29
+ }
30
+ /**
31
+ * Builds the JetBrains-style right-click context menu items for a peripheral EdgeBar rail icon.
32
+ */
33
+ export declare function buildEdgeBarContextMenuItems(store: RedDokiaStore, viewId: string, groupId: string, edgeSlot?: RedDokiaEdgeSlot): ContextMenuActionItem[];
34
+ /**
35
+ * Builds the ordered list of context menu actions for a given `(viewId, groupId)` in `RedDokiaStore`.
36
+ */
37
+ export declare function buildTabContextMenuItems(store: RedDokiaStore, viewId: string, groupId: string): ContextMenuActionItem[];
38
+ /**
39
+ * Vanilla DOM renderer for the right-click Tab Context Menu (`.rd-context-menu`).
40
+ */
41
+ export declare class TabContextMenuDom {
42
+ #private;
43
+ constructor(store: RedDokiaStore, rootEl: HTMLElement, customIconBridge?: CustomIconBridge);
44
+ sync(): void;
45
+ destroy(): void;
46
+ }
47
+ //# sourceMappingURL=TabContextMenuDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabContextMenuDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/TabContextMenuDom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACV,gBAAgB,EAIjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,YAAY,CAAC;AAEtE;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,SAAS,SAAM,EACf,UAAU,SAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,SAAI,GACT;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAc1B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAyCD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,qBAAqB,EAAE,CAoFzB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,qBAAqB,EAAE,CA2XzB;AAED;;;;GAIG;AACH,qBAAa,iBAAiB;;gBAW1B,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,gBAAgB,CAAC,EAAE,gBAAgB;IAc9B,IAAI,IAAI,IAAI;IAoOZ,OAAO,IAAI,IAAI;CAWvB"}
@@ -0,0 +1,16 @@
1
+ import type { RedDokiaStore } from '../RedDokiaStore';
2
+ import { type CustomIconBridge, type DynamicComponentMounter } from './domUtils';
3
+ /**
4
+ * Vanilla DOM renderer for the top workbench bar (`.rd-topbar`).
5
+ * Renders `topBar.logoText`, `topBar.title`, declarative `topBar.menus` (with cascading submenus), `topBar.left`, and `topBar.right` slot content.
6
+ */
7
+ export declare class TopBarDom {
8
+ #private;
9
+ constructor(store: RedDokiaStore, rootEl: HTMLElement, mountDynamicComponent?: DynamicComponentMounter, customIconBridge?: CustomIconBridge);
10
+ getCustomLeftSlotElement(): HTMLDivElement | null;
11
+ getCustomRightSlotElement(): HTMLDivElement | null;
12
+ closeMenuDropdown(): void;
13
+ sync(hasCustomRightSlot: boolean, hasCustomLeftSlot?: boolean): void;
14
+ destroy(): void;
15
+ }
16
+ //# sourceMappingURL=TopBarDom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopBarDom.d.ts","sourceRoot":"","sources":["../../../src/core/dom/TopBarDom.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,uBAAuB,EAE7B,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,qBAAa,SAAS;;gBAmBlB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,WAAW,EACnB,qBAAqB,CAAC,EAAE,uBAAuB,EAC/C,gBAAgB,CAAC,EAAE,gBAAgB;IAQ9B,wBAAwB,IAAI,cAAc,GAAG,IAAI;IAIjD,yBAAyB,IAAI,cAAc,GAAG,IAAI;IAIlD,iBAAiB,IAAI,IAAI;IAOzB,IAAI,CACT,kBAAkB,EAAE,OAAO,EAC3B,iBAAiB,UAAQ,GACxB,IAAI;IAqQA,OAAO,IAAI,IAAI;CASvB"}