@molecule/app-bonds-default-react 1.0.1 → 1.0.2
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 +26 -82
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -1
- package/dist/optional/charts-chartjs.d.ts +15 -0
- package/dist/optional/charts-chartjs.d.ts.map +1 -0
- package/dist/optional/charts-chartjs.js +20 -0
- package/dist/optional/code-editor-monaco.d.ts +12 -0
- package/dist/optional/code-editor-monaco.d.ts.map +1 -0
- package/dist/optional/code-editor-monaco.js +17 -0
- package/dist/optional/command-palette-cmdk.d.ts +12 -0
- package/dist/optional/command-palette-cmdk.d.ts.map +1 -0
- package/dist/optional/command-palette-cmdk.js +17 -0
- package/dist/optional/drag-drop-dndkit.d.ts +12 -0
- package/dist/optional/drag-drop-dndkit.d.ts.map +1 -0
- package/dist/optional/drag-drop-dndkit.js +17 -0
- package/dist/optional/keyboard-shortcuts-hotkeys.d.ts +12 -0
- package/dist/optional/keyboard-shortcuts-hotkeys.d.ts.map +1 -0
- package/dist/optional/keyboard-shortcuts-hotkeys.js +17 -0
- package/dist/optional/maps-leaflet.d.ts +19 -0
- package/dist/optional/maps-leaflet.d.ts.map +1 -0
- package/dist/optional/maps-leaflet.js +24 -0
- package/dist/optional/realtime-socketio.d.ts +24 -0
- package/dist/optional/realtime-socketio.d.ts.map +1 -0
- package/dist/optional/realtime-socketio.js +29 -0
- package/dist/optional/video-hls.d.ts +12 -0
- package/dist/optional/video-hls.d.ts.map +1 -0
- package/dist/optional/video-hls.js +17 -0
- package/dist/optional/virtual-scroll-tanstack.d.ts +12 -0
- package/dist/optional/virtual-scroll-tanstack.d.ts.map +1 -0
- package/dist/optional/virtual-scroll-tanstack.js +17 -0
- package/dist/setup.d.ts +0 -26
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +0 -80
- package/package.json +20 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-08-
|
|
6
|
+
Generated: 2026-08-06T06:01:29.248Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-bonds-default-react
|
|
@@ -26,6 +26,11 @@ React fleet stack, replacing the byte-identical per-app files:
|
|
|
26
26
|
icons-molecule. Each also exists as an individual `setupApp*()` for apps
|
|
27
27
|
that wire a la carte (per-app `app/src/bonds/<name>.ts` files stay 1-line
|
|
28
28
|
re-exports of these).
|
|
29
|
+
- **Optional provider wirings live behind subpaths**, one module per pair:
|
|
30
|
+
`@molecule/app-bonds-default-react/optional/<pair>.js` — `realtime-socketio`,
|
|
31
|
+
`keyboard-shortcuts-hotkeys`, `command-palette-cmdk`, `code-editor-monaco`,
|
|
32
|
+
`virtual-scroll-tanstack`, `drag-drop-dndkit`, `charts-chartjs`,
|
|
33
|
+
`maps-leaflet`, `video-hls`. Import ONLY the ones the app installs.
|
|
29
34
|
- Auth/http factories — `createDefaultAuthClient(authConfig)` returns
|
|
30
35
|
`{ authClient, setupAuthDefault }`; the `...WithHttpSync` /
|
|
31
36
|
`...WithFetchClient` variants also keep the bonded http client's bearer
|
|
@@ -39,8 +44,9 @@ import {
|
|
|
39
44
|
bootstrapApp,
|
|
40
45
|
createDefaultAuthClientWithHttpSync,
|
|
41
46
|
setupAllDefaultBonds,
|
|
42
|
-
setupAppCodeEditorMonaco,
|
|
43
47
|
} from '@molecule/app-bonds-default-react'
|
|
48
|
+
// Optional providers come from their own subpath — see @remarks.
|
|
49
|
+
import { setupAppCodeEditorMonaco } from '@molecule/app-bonds-default-react/optional/code-editor-monaco.js'
|
|
44
50
|
|
|
45
51
|
import { App } from './App.js'
|
|
46
52
|
import { authConfig } from './config.js'
|
|
@@ -66,7 +72,7 @@ bootstrapApp({
|
|
|
66
72
|
## Installation
|
|
67
73
|
|
|
68
74
|
```bash
|
|
69
|
-
npm install @molecule/app-bonds-default-react @molecule/app-auth @molecule/app-charts-chartjs @molecule/app-code-editor @molecule/app-code-editor-monaco @molecule/app-command-palette @molecule/app-command-palette-cmdk @molecule/app-drag-drop @molecule/app-drag-drop-dndkit @molecule/app-fonts @molecule/app-fonts-arimo @molecule/app-http @molecule/app-icons @molecule/app-icons-molecule @molecule/app-keyboard-shortcuts @molecule/app-keyboard-shortcuts-hotkeys @molecule/app-maps-leaflet @molecule/app-realtime @molecule/app-realtime-socketio @molecule/app-routing @molecule/app-routing-react-router @molecule/app-storage @molecule/app-storage-localstorage @molecule/app-styling-tailwind @molecule/app-theme @molecule/app-theme-css-variables @molecule/app-ui @molecule/app-ui-tailwind @molecule/app-video-hls @molecule/app-virtual-scroll @molecule/app-virtual-scroll-tanstack react react-dom
|
|
75
|
+
npm install @molecule/app-bonds-default-react @molecule/app-auth @molecule/app-charts @molecule/app-charts-chartjs @molecule/app-code-editor @molecule/app-code-editor-monaco @molecule/app-command-palette @molecule/app-command-palette-cmdk @molecule/app-drag-drop @molecule/app-drag-drop-dndkit @molecule/app-fonts @molecule/app-fonts-arimo @molecule/app-http @molecule/app-icons @molecule/app-icons-molecule @molecule/app-keyboard-shortcuts @molecule/app-keyboard-shortcuts-hotkeys @molecule/app-maps @molecule/app-maps-leaflet @molecule/app-realtime @molecule/app-realtime-socketio @molecule/app-routing @molecule/app-routing-react-router @molecule/app-storage @molecule/app-storage-localstorage @molecule/app-styling-tailwind @molecule/app-theme @molecule/app-theme-css-variables @molecule/app-ui @molecule/app-ui-tailwind @molecule/app-video @molecule/app-video-hls @molecule/app-virtual-scroll @molecule/app-virtual-scroll-tanstack react react-dom
|
|
70
76
|
npm install -D @types/react @types/react-dom
|
|
71
77
|
```
|
|
72
78
|
|
|
@@ -196,39 +202,6 @@ Replaces 9 individual setupX() calls in per-app `bonds/index.ts`.
|
|
|
196
202
|
function setupAllDefaultBonds(): void
|
|
197
203
|
```
|
|
198
204
|
|
|
199
|
-
#### `setupAppChartsChartjs()`
|
|
200
|
-
|
|
201
|
-
Wires `@molecule/app-charts-chartjs` (Chart.js) to `@molecule/app-charts` — real
|
|
202
|
-
line/bar/pie/etc. charts instead of the core's placeholder panel.
|
|
203
|
-
|
|
204
|
-
```typescript
|
|
205
|
-
function setupAppChartsChartjs(): Promise<void>
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
#### `setupAppCodeEditorMonaco()`
|
|
209
|
-
|
|
210
|
-
Wires `@molecule/app-code-editor-monaco` to `@molecule/app-code-editor`.
|
|
211
|
-
|
|
212
|
-
```typescript
|
|
213
|
-
function setupAppCodeEditorMonaco(): Promise<void>
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
#### `setupAppCommandPaletteCmdk()`
|
|
217
|
-
|
|
218
|
-
Wires `@molecule/app-command-palette-cmdk` to `@molecule/app-command-palette`.
|
|
219
|
-
|
|
220
|
-
```typescript
|
|
221
|
-
function setupAppCommandPaletteCmdk(): Promise<void>
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
#### `setupAppDragDropDndkit()`
|
|
225
|
-
|
|
226
|
-
Wires `@molecule/app-drag-drop-dndkit` to `@molecule/app-drag-drop`.
|
|
227
|
-
|
|
228
|
-
```typescript
|
|
229
|
-
function setupAppDragDropDndkit(): Promise<void>
|
|
230
|
-
```
|
|
231
|
-
|
|
232
205
|
#### `setupAppFontsArimo()`
|
|
233
206
|
|
|
234
207
|
Wires `@molecule/app-fonts-arimo` to `@molecule/app-fonts`.
|
|
@@ -245,33 +218,6 @@ Wires `@molecule/app-icons-molecule` to `@molecule/app-icons`.
|
|
|
245
218
|
function setupAppIconsMolecule(): void
|
|
246
219
|
```
|
|
247
220
|
|
|
248
|
-
#### `setupAppKeyboardShortcutsHotkeys()`
|
|
249
|
-
|
|
250
|
-
Wires `@molecule/app-keyboard-shortcuts-hotkeys` to `@molecule/app-keyboard-shortcuts`.
|
|
251
|
-
|
|
252
|
-
```typescript
|
|
253
|
-
function setupAppKeyboardShortcutsHotkeys(): Promise<void>
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
#### `setupAppMapsLeaflet()`
|
|
257
|
-
|
|
258
|
-
Wires `@molecule/app-maps-leaflet` (Leaflet + OpenStreetMap, no API key) to
|
|
259
|
-
`@molecule/app-maps` — a real slippy map instead of the core's grey placeholder.
|
|
260
|
-
REQUIRES `import 'leaflet/dist/leaflet.css'` once in the app entry (the scaffolded
|
|
261
|
-
`bonds/app-maps-leaflet.ts` does this); without it tiles + markers mis-position.
|
|
262
|
-
|
|
263
|
-
```typescript
|
|
264
|
-
function setupAppMapsLeaflet(): Promise<void>
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
#### `setupAppRealtimeSocketio()`
|
|
268
|
-
|
|
269
|
-
Wires `@molecule/app-realtime-socketio` to `@molecule/app-realtime`.
|
|
270
|
-
|
|
271
|
-
```typescript
|
|
272
|
-
function setupAppRealtimeSocketio(): Promise<void>
|
|
273
|
-
```
|
|
274
|
-
|
|
275
221
|
#### `setupAppRoutingReactRouter()`
|
|
276
222
|
|
|
277
223
|
Wires `@molecule/app-routing-react-router` to `@molecule/app-routing`.
|
|
@@ -316,22 +262,6 @@ Wires `@molecule/app-ui-tailwind` `classMap` to `@molecule/app-ui`.
|
|
|
316
262
|
function setupAppUiTailwind(): void
|
|
317
263
|
```
|
|
318
264
|
|
|
319
|
-
#### `setupAppVideoHls()`
|
|
320
|
-
|
|
321
|
-
Wires `@molecule/app-video-hls` (hls.js — HLS streaming everywhere) to `@molecule/app-video`.
|
|
322
|
-
|
|
323
|
-
```typescript
|
|
324
|
-
function setupAppVideoHls(): Promise<void>
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
#### `setupAppVirtualScrollTanstack()`
|
|
328
|
-
|
|
329
|
-
Wires `@molecule/app-virtual-scroll-tanstack` to `@molecule/app-virtual-scroll`.
|
|
330
|
-
|
|
331
|
-
```typescript
|
|
332
|
-
function setupAppVirtualScrollTanstack(): Promise<void>
|
|
333
|
-
```
|
|
334
|
-
|
|
335
265
|
## Injection Notes
|
|
336
266
|
|
|
337
267
|
### Requirements
|
|
@@ -339,7 +269,8 @@ function setupAppVirtualScrollTanstack(): Promise<void>
|
|
|
339
269
|
Peer dependencies:
|
|
340
270
|
|
|
341
271
|
- `@molecule/app-auth` ^1.0.1
|
|
342
|
-
- `@molecule/app-charts
|
|
272
|
+
- `@molecule/app-charts` ^1.0.1
|
|
273
|
+
- `@molecule/app-charts-chartjs` ^1.0.1
|
|
343
274
|
- `@molecule/app-code-editor` ^1.0.1
|
|
344
275
|
- `@molecule/app-code-editor-monaco` ^1.0.1
|
|
345
276
|
- `@molecule/app-command-palette` ^1.0.1
|
|
@@ -353,7 +284,8 @@ Peer dependencies:
|
|
|
353
284
|
- `@molecule/app-icons-molecule` ^1.0.1
|
|
354
285
|
- `@molecule/app-keyboard-shortcuts` ^1.0.1
|
|
355
286
|
- `@molecule/app-keyboard-shortcuts-hotkeys` ^1.0.1
|
|
356
|
-
- `@molecule/app-maps
|
|
287
|
+
- `@molecule/app-maps` ^1.0.1
|
|
288
|
+
- `@molecule/app-maps-leaflet` ^1.0.1
|
|
357
289
|
- `@molecule/app-realtime` ^1.0.1
|
|
358
290
|
- `@molecule/app-realtime-socketio` ^1.0.1
|
|
359
291
|
- `@molecule/app-routing` ^1.0.1
|
|
@@ -365,7 +297,8 @@ Peer dependencies:
|
|
|
365
297
|
- `@molecule/app-theme-css-variables` ^1.0.1
|
|
366
298
|
- `@molecule/app-ui` ^1.0.1
|
|
367
299
|
- `@molecule/app-ui-tailwind` ^1.0.1
|
|
368
|
-
- `@molecule/app-video
|
|
300
|
+
- `@molecule/app-video` ^1.0.1
|
|
301
|
+
- `@molecule/app-video-hls` ^1.0.1
|
|
369
302
|
- `@molecule/app-virtual-scroll` ^1.0.1
|
|
370
303
|
- `@molecule/app-virtual-scroll-tanstack` ^1.0.1
|
|
371
304
|
- `react` ^18.0.0 || ^19.0.0
|
|
@@ -374,6 +307,7 @@ Peer dependencies:
|
|
|
374
307
|
### Runtime Dependencies
|
|
375
308
|
|
|
376
309
|
- `@molecule/app-auth`
|
|
310
|
+
- `@molecule/app-charts`
|
|
377
311
|
- `@molecule/app-charts-chartjs`
|
|
378
312
|
- `@molecule/app-code-editor`
|
|
379
313
|
- `@molecule/app-code-editor-monaco`
|
|
@@ -388,6 +322,7 @@ Peer dependencies:
|
|
|
388
322
|
- `@molecule/app-icons-molecule`
|
|
389
323
|
- `@molecule/app-keyboard-shortcuts`
|
|
390
324
|
- `@molecule/app-keyboard-shortcuts-hotkeys`
|
|
325
|
+
- `@molecule/app-maps`
|
|
391
326
|
- `@molecule/app-maps-leaflet`
|
|
392
327
|
- `@molecule/app-realtime`
|
|
393
328
|
- `@molecule/app-realtime-socketio`
|
|
@@ -400,12 +335,21 @@ Peer dependencies:
|
|
|
400
335
|
- `@molecule/app-theme-css-variables`
|
|
401
336
|
- `@molecule/app-ui`
|
|
402
337
|
- `@molecule/app-ui-tailwind`
|
|
338
|
+
- `@molecule/app-video`
|
|
403
339
|
- `@molecule/app-video-hls`
|
|
404
340
|
- `@molecule/app-virtual-scroll`
|
|
405
341
|
- `@molecule/app-virtual-scroll-tanstack`
|
|
406
342
|
- `react`
|
|
407
343
|
- `react-dom`
|
|
408
344
|
|
|
345
|
+
- **Optional setups are NOT exported from the package root.** Import each from
|
|
346
|
+
its own subpath — `@molecule/app-bonds-default-react/optional/maps-leaflet.js`,
|
|
347
|
+
not `from '@molecule/app-bonds-default-react'`. A bundler must RESOLVE every
|
|
348
|
+
`import()` in a module it pulls into the graph, before tree-shaking can drop
|
|
349
|
+
anything, so while these lived in the barrel every app inherited all 18
|
|
350
|
+
optional providers and any app that had not installed all of them failed to
|
|
351
|
+
build with `Rolldown failed to resolve import "@molecule/app-maps"`. Only
|
|
352
|
+
import a subpath whose provider pair the app actually installs.
|
|
409
353
|
- `setupAllDefaultBonds()` does NOT wire the optional bonds. Those ship as
|
|
410
354
|
separate ASYNC setups — `setupAppRealtimeSocketio`,
|
|
411
355
|
`setupAppKeyboardShortcutsHotkeys`, `setupAppCommandPaletteCmdk`,
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
* icons-molecule. Each also exists as an individual `setupApp*()` for apps
|
|
14
14
|
* that wire a la carte (per-app `app/src/bonds/<name>.ts` files stay 1-line
|
|
15
15
|
* re-exports of these).
|
|
16
|
+
* - **Optional provider wirings live behind subpaths**, one module per pair:
|
|
17
|
+
* `@molecule/app-bonds-default-react/optional/<pair>.js` — `realtime-socketio`,
|
|
18
|
+
* `keyboard-shortcuts-hotkeys`, `command-palette-cmdk`, `code-editor-monaco`,
|
|
19
|
+
* `virtual-scroll-tanstack`, `drag-drop-dndkit`, `charts-chartjs`,
|
|
20
|
+
* `maps-leaflet`, `video-hls`. Import ONLY the ones the app installs.
|
|
16
21
|
* - Auth/http factories — `createDefaultAuthClient(authConfig)` returns
|
|
17
22
|
* `{ authClient, setupAuthDefault }`; the `...WithHttpSync` /
|
|
18
23
|
* `...WithFetchClient` variants also keep the bonded http client's bearer
|
|
@@ -25,8 +30,9 @@
|
|
|
25
30
|
* bootstrapApp,
|
|
26
31
|
* createDefaultAuthClientWithHttpSync,
|
|
27
32
|
* setupAllDefaultBonds,
|
|
28
|
-
* setupAppCodeEditorMonaco,
|
|
29
33
|
* } from '@molecule/app-bonds-default-react'
|
|
34
|
+
* // Optional providers come from their own subpath — see @remarks.
|
|
35
|
+
* import { setupAppCodeEditorMonaco } from '@molecule/app-bonds-default-react/optional/code-editor-monaco.js'
|
|
30
36
|
*
|
|
31
37
|
* import { App } from './App.js'
|
|
32
38
|
* import { authConfig } from './config.js'
|
|
@@ -47,6 +53,14 @@
|
|
|
47
53
|
* ```
|
|
48
54
|
*
|
|
49
55
|
* @remarks
|
|
56
|
+
* - **Optional setups are NOT exported from the package root.** Import each from
|
|
57
|
+
* its own subpath — `@molecule/app-bonds-default-react/optional/maps-leaflet.js`,
|
|
58
|
+
* not `from '@molecule/app-bonds-default-react'`. A bundler must RESOLVE every
|
|
59
|
+
* `import()` in a module it pulls into the graph, before tree-shaking can drop
|
|
60
|
+
* anything, so while these lived in the barrel every app inherited all 18
|
|
61
|
+
* optional providers and any app that had not installed all of them failed to
|
|
62
|
+
* build with `Rolldown failed to resolve import "@molecule/app-maps"`. Only
|
|
63
|
+
* import a subpath whose provider pair the app actually installs.
|
|
50
64
|
* - `setupAllDefaultBonds()` does NOT wire the optional bonds. Those ship as
|
|
51
65
|
* separate ASYNC setups — `setupAppRealtimeSocketio`,
|
|
52
66
|
* `setupAppKeyboardShortcutsHotkeys`, `setupAppCommandPaletteCmdk`,
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAEH,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
* icons-molecule. Each also exists as an individual `setupApp*()` for apps
|
|
14
14
|
* that wire a la carte (per-app `app/src/bonds/<name>.ts` files stay 1-line
|
|
15
15
|
* re-exports of these).
|
|
16
|
+
* - **Optional provider wirings live behind subpaths**, one module per pair:
|
|
17
|
+
* `@molecule/app-bonds-default-react/optional/<pair>.js` — `realtime-socketio`,
|
|
18
|
+
* `keyboard-shortcuts-hotkeys`, `command-palette-cmdk`, `code-editor-monaco`,
|
|
19
|
+
* `virtual-scroll-tanstack`, `drag-drop-dndkit`, `charts-chartjs`,
|
|
20
|
+
* `maps-leaflet`, `video-hls`. Import ONLY the ones the app installs.
|
|
16
21
|
* - Auth/http factories — `createDefaultAuthClient(authConfig)` returns
|
|
17
22
|
* `{ authClient, setupAuthDefault }`; the `...WithHttpSync` /
|
|
18
23
|
* `...WithFetchClient` variants also keep the bonded http client's bearer
|
|
@@ -25,8 +30,9 @@
|
|
|
25
30
|
* bootstrapApp,
|
|
26
31
|
* createDefaultAuthClientWithHttpSync,
|
|
27
32
|
* setupAllDefaultBonds,
|
|
28
|
-
* setupAppCodeEditorMonaco,
|
|
29
33
|
* } from '@molecule/app-bonds-default-react'
|
|
34
|
+
* // Optional providers come from their own subpath — see @remarks.
|
|
35
|
+
* import { setupAppCodeEditorMonaco } from '@molecule/app-bonds-default-react/optional/code-editor-monaco.js'
|
|
30
36
|
*
|
|
31
37
|
* import { App } from './App.js'
|
|
32
38
|
* import { authConfig } from './config.js'
|
|
@@ -47,6 +53,14 @@
|
|
|
47
53
|
* ```
|
|
48
54
|
*
|
|
49
55
|
* @remarks
|
|
56
|
+
* - **Optional setups are NOT exported from the package root.** Import each from
|
|
57
|
+
* its own subpath — `@molecule/app-bonds-default-react/optional/maps-leaflet.js`,
|
|
58
|
+
* not `from '@molecule/app-bonds-default-react'`. A bundler must RESOLVE every
|
|
59
|
+
* `import()` in a module it pulls into the graph, before tree-shaking can drop
|
|
60
|
+
* anything, so while these lived in the barrel every app inherited all 18
|
|
61
|
+
* optional providers and any app that had not installed all of them failed to
|
|
62
|
+
* build with `Rolldown failed to resolve import "@molecule/app-maps"`. Only
|
|
63
|
+
* import a subpath whose provider pair the app actually installs.
|
|
50
64
|
* - `setupAllDefaultBonds()` does NOT wire the optional bonds. Those ship as
|
|
51
65
|
* separate ASYNC setups — `setupAppRealtimeSocketio`,
|
|
52
66
|
* `setupAppKeyboardShortcutsHotkeys`, `setupAppCommandPaletteCmdk`,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-charts` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Wires `@molecule/app-charts-chartjs` (Chart.js) to `@molecule/app-charts` — real
|
|
12
|
+
* line/bar/pie/etc. charts instead of the core's placeholder panel.
|
|
13
|
+
*/
|
|
14
|
+
export declare function setupAppChartsChartjs(): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=charts-chartjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charts-chartjs.d.ts","sourceRoot":"","sources":["../../src/optional/charts-chartjs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAM3D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-charts` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Wires `@molecule/app-charts-chartjs` (Chart.js) to `@molecule/app-charts` — real
|
|
12
|
+
* line/bar/pie/etc. charts instead of the core's placeholder panel.
|
|
13
|
+
*/
|
|
14
|
+
export async function setupAppChartsChartjs() {
|
|
15
|
+
const [{ setProvider: setCharts }, { provider }] = await Promise.all([
|
|
16
|
+
import('@molecule/app-charts'),
|
|
17
|
+
import('@molecule/app-charts-chartjs'),
|
|
18
|
+
]);
|
|
19
|
+
setCharts(provider);
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-code-editor` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-code-editor-monaco` to `@molecule/app-code-editor`. */
|
|
11
|
+
export declare function setupAppCodeEditorMonaco(): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=code-editor-monaco.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-editor-monaco.d.ts","sourceRoot":"","sources":["../../src/optional/code-editor-monaco.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,+EAA+E;AAC/E,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAM9D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-code-editor` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-code-editor-monaco` to `@molecule/app-code-editor`. */
|
|
11
|
+
export async function setupAppCodeEditorMonaco() {
|
|
12
|
+
const [{ setProvider: setEditor }, { provider }] = await Promise.all([
|
|
13
|
+
import('@molecule/app-code-editor'),
|
|
14
|
+
import('@molecule/app-code-editor-monaco'),
|
|
15
|
+
]);
|
|
16
|
+
setEditor(provider);
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-command-palette` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-command-palette-cmdk` to `@molecule/app-command-palette`. */
|
|
11
|
+
export declare function setupAppCommandPaletteCmdk(): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=command-palette-cmdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-palette-cmdk.d.ts","sourceRoot":"","sources":["../../src/optional/command-palette-cmdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,qFAAqF;AACrF,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,CAMhE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-command-palette` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-command-palette-cmdk` to `@molecule/app-command-palette`. */
|
|
11
|
+
export async function setupAppCommandPaletteCmdk() {
|
|
12
|
+
const [{ setProvider: setPalette }, { provider }] = await Promise.all([
|
|
13
|
+
import('@molecule/app-command-palette'),
|
|
14
|
+
import('@molecule/app-command-palette-cmdk'),
|
|
15
|
+
]);
|
|
16
|
+
setPalette(provider);
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-drag-drop` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-drag-drop-dndkit` to `@molecule/app-drag-drop`. */
|
|
11
|
+
export declare function setupAppDragDropDndkit(): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=drag-drop-dndkit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-drop-dndkit.d.ts","sourceRoot":"","sources":["../../src/optional/drag-drop-dndkit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,2EAA2E;AAC3E,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC,CAM5D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-drag-drop` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-drag-drop-dndkit` to `@molecule/app-drag-drop`. */
|
|
11
|
+
export async function setupAppDragDropDndkit() {
|
|
12
|
+
const [{ setProvider: setDnd }, { provider }] = await Promise.all([
|
|
13
|
+
import('@molecule/app-drag-drop'),
|
|
14
|
+
import('@molecule/app-drag-drop-dndkit'),
|
|
15
|
+
]);
|
|
16
|
+
setDnd(provider);
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-keyboard-shortcuts` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-keyboard-shortcuts-hotkeys` to `@molecule/app-keyboard-shortcuts`. */
|
|
11
|
+
export declare function setupAppKeyboardShortcutsHotkeys(): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=keyboard-shortcuts-hotkeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard-shortcuts-hotkeys.d.ts","sourceRoot":"","sources":["../../src/optional/keyboard-shortcuts-hotkeys.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,8FAA8F;AAC9F,wBAAsB,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC,CAMtE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-keyboard-shortcuts` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-keyboard-shortcuts-hotkeys` to `@molecule/app-keyboard-shortcuts`. */
|
|
11
|
+
export async function setupAppKeyboardShortcutsHotkeys() {
|
|
12
|
+
const [{ setProvider: setKbd }, { provider }] = await Promise.all([
|
|
13
|
+
import('@molecule/app-keyboard-shortcuts'),
|
|
14
|
+
import('@molecule/app-keyboard-shortcuts-hotkeys'),
|
|
15
|
+
]);
|
|
16
|
+
setKbd(provider);
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-maps` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale. `@molecule/app-maps` is the import that first exposed the problem:
|
|
7
|
+
* it is the alphabetically-first unresolvable provider, so it is the one Rolldown
|
|
8
|
+
* named while the other 14 were equally broken.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Wires `@molecule/app-maps-leaflet` (Leaflet + OpenStreetMap, no API key) to
|
|
14
|
+
* `@molecule/app-maps` — a real slippy map instead of the core's grey placeholder.
|
|
15
|
+
* REQUIRES `import 'leaflet/dist/leaflet.css'` once in the app entry (the scaffolded
|
|
16
|
+
* `bonds/app-maps-leaflet.ts` does this); without it tiles + markers mis-position.
|
|
17
|
+
*/
|
|
18
|
+
export declare function setupAppMapsLeaflet(): Promise<void>;
|
|
19
|
+
//# sourceMappingURL=maps-leaflet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps-leaflet.d.ts","sourceRoot":"","sources":["../../src/optional/maps-leaflet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAMzD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-maps` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale. `@molecule/app-maps` is the import that first exposed the problem:
|
|
7
|
+
* it is the alphabetically-first unresolvable provider, so it is the one Rolldown
|
|
8
|
+
* named while the other 14 were equally broken.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Wires `@molecule/app-maps-leaflet` (Leaflet + OpenStreetMap, no API key) to
|
|
14
|
+
* `@molecule/app-maps` — a real slippy map instead of the core's grey placeholder.
|
|
15
|
+
* REQUIRES `import 'leaflet/dist/leaflet.css'` once in the app entry (the scaffolded
|
|
16
|
+
* `bonds/app-maps-leaflet.ts` does this); without it tiles + markers mis-position.
|
|
17
|
+
*/
|
|
18
|
+
export async function setupAppMapsLeaflet() {
|
|
19
|
+
const [{ setProvider: setMaps }, { provider }] = await Promise.all([
|
|
20
|
+
import('@molecule/app-maps'),
|
|
21
|
+
import('@molecule/app-maps-leaflet'),
|
|
22
|
+
]);
|
|
23
|
+
setMaps(provider);
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-realtime` bond.
|
|
3
|
+
*
|
|
4
|
+
* Lives in its own module, reachable only via the
|
|
5
|
+
* `@molecule/app-bonds-default-react/optional/realtime-socketio.js` subpath, because
|
|
6
|
+
* a bundler must RESOLVE every `import()` in a module it pulls into the graph —
|
|
7
|
+
* before tree-shaking can drop anything. While these wirings sat in `setup.ts`
|
|
8
|
+
* (re-exported from the barrel), importing `bootstrapApp` dragged all 18 optional
|
|
9
|
+
* providers into the graph, and any app that had not installed all of them failed
|
|
10
|
+
* to build:
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* [vite]: Rolldown failed to resolve import "@molecule/app-maps"
|
|
14
|
+
* from ".../app-bonds-default-react/dist/setup.js"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* One module per provider pair means an app pays for exactly the providers it
|
|
18
|
+
* imports — which is what made them optional in the first place.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
/** Wires `@molecule/app-realtime-socketio` to `@molecule/app-realtime`. */
|
|
23
|
+
export declare function setupAppRealtimeSocketio(): Promise<void>;
|
|
24
|
+
//# sourceMappingURL=realtime-socketio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-socketio.d.ts","sourceRoot":"","sources":["../../src/optional/realtime-socketio.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,2EAA2E;AAC3E,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAM9D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-realtime` bond.
|
|
3
|
+
*
|
|
4
|
+
* Lives in its own module, reachable only via the
|
|
5
|
+
* `@molecule/app-bonds-default-react/optional/realtime-socketio.js` subpath, because
|
|
6
|
+
* a bundler must RESOLVE every `import()` in a module it pulls into the graph —
|
|
7
|
+
* before tree-shaking can drop anything. While these wirings sat in `setup.ts`
|
|
8
|
+
* (re-exported from the barrel), importing `bootstrapApp` dragged all 18 optional
|
|
9
|
+
* providers into the graph, and any app that had not installed all of them failed
|
|
10
|
+
* to build:
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* [vite]: Rolldown failed to resolve import "@molecule/app-maps"
|
|
14
|
+
* from ".../app-bonds-default-react/dist/setup.js"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* One module per provider pair means an app pays for exactly the providers it
|
|
18
|
+
* imports — which is what made them optional in the first place.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
/** Wires `@molecule/app-realtime-socketio` to `@molecule/app-realtime`. */
|
|
23
|
+
export async function setupAppRealtimeSocketio() {
|
|
24
|
+
const [{ setProvider: setRealtime }, { provider }] = await Promise.all([
|
|
25
|
+
import('@molecule/app-realtime'),
|
|
26
|
+
import('@molecule/app-realtime-socketio'),
|
|
27
|
+
]);
|
|
28
|
+
setRealtime(provider);
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-video` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-video-hls` (hls.js — HLS streaming everywhere) to `@molecule/app-video`. */
|
|
11
|
+
export declare function setupAppVideoHls(): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=video-hls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-hls.d.ts","sourceRoot":"","sources":["../../src/optional/video-hls.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oGAAoG;AACpG,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAMtD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-video` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-video-hls` (hls.js — HLS streaming everywhere) to `@molecule/app-video`. */
|
|
11
|
+
export async function setupAppVideoHls() {
|
|
12
|
+
const [{ setProvider: setVideo }, { provider }] = await Promise.all([
|
|
13
|
+
import('@molecule/app-video'),
|
|
14
|
+
import('@molecule/app-video-hls'),
|
|
15
|
+
]);
|
|
16
|
+
setVideo(provider);
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-virtual-scroll` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-virtual-scroll-tanstack` to `@molecule/app-virtual-scroll`. */
|
|
11
|
+
export declare function setupAppVirtualScrollTanstack(): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=virtual-scroll-tanstack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtual-scroll-tanstack.d.ts","sourceRoot":"","sources":["../../src/optional/virtual-scroll-tanstack.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,uFAAuF;AACvF,wBAAsB,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CAMnE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the optional `@molecule/app-virtual-scroll` bond.
|
|
3
|
+
*
|
|
4
|
+
* Its own module + subpath export so a bundler only resolves these providers when
|
|
5
|
+
* an app actually imports them — see `./realtime-socketio.js` for the full
|
|
6
|
+
* rationale.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Wires `@molecule/app-virtual-scroll-tanstack` to `@molecule/app-virtual-scroll`. */
|
|
11
|
+
export async function setupAppVirtualScrollTanstack() {
|
|
12
|
+
const [{ setProvider: setScroll }, { provider }] = await Promise.all([
|
|
13
|
+
import('@molecule/app-virtual-scroll'),
|
|
14
|
+
import('@molecule/app-virtual-scroll-tanstack'),
|
|
15
|
+
]);
|
|
16
|
+
setScroll(provider);
|
|
17
|
+
}
|
package/dist/setup.d.ts
CHANGED
|
@@ -35,32 +35,6 @@ export declare function setupAppStylingTailwind(): void;
|
|
|
35
35
|
export declare function setupAppThemeCssVariables(): void;
|
|
36
36
|
/** Wires `@molecule/app-ui-tailwind` `classMap` to `@molecule/app-ui`. */
|
|
37
37
|
export declare function setupAppUiTailwind(): void;
|
|
38
|
-
/** Wires `@molecule/app-realtime-socketio` to `@molecule/app-realtime`. */
|
|
39
|
-
export declare function setupAppRealtimeSocketio(): Promise<void>;
|
|
40
|
-
/** Wires `@molecule/app-keyboard-shortcuts-hotkeys` to `@molecule/app-keyboard-shortcuts`. */
|
|
41
|
-
export declare function setupAppKeyboardShortcutsHotkeys(): Promise<void>;
|
|
42
|
-
/** Wires `@molecule/app-command-palette-cmdk` to `@molecule/app-command-palette`. */
|
|
43
|
-
export declare function setupAppCommandPaletteCmdk(): Promise<void>;
|
|
44
|
-
/** Wires `@molecule/app-code-editor-monaco` to `@molecule/app-code-editor`. */
|
|
45
|
-
export declare function setupAppCodeEditorMonaco(): Promise<void>;
|
|
46
|
-
/** Wires `@molecule/app-virtual-scroll-tanstack` to `@molecule/app-virtual-scroll`. */
|
|
47
|
-
export declare function setupAppVirtualScrollTanstack(): Promise<void>;
|
|
48
|
-
/** Wires `@molecule/app-drag-drop-dndkit` to `@molecule/app-drag-drop`. */
|
|
49
|
-
export declare function setupAppDragDropDndkit(): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Wires `@molecule/app-charts-chartjs` (Chart.js) to `@molecule/app-charts` — real
|
|
52
|
-
* line/bar/pie/etc. charts instead of the core's placeholder panel.
|
|
53
|
-
*/
|
|
54
|
-
export declare function setupAppChartsChartjs(): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Wires `@molecule/app-maps-leaflet` (Leaflet + OpenStreetMap, no API key) to
|
|
57
|
-
* `@molecule/app-maps` — a real slippy map instead of the core's grey placeholder.
|
|
58
|
-
* REQUIRES `import 'leaflet/dist/leaflet.css'` once in the app entry (the scaffolded
|
|
59
|
-
* `bonds/app-maps-leaflet.ts` does this); without it tiles + markers mis-position.
|
|
60
|
-
*/
|
|
61
|
-
export declare function setupAppMapsLeaflet(): Promise<void>;
|
|
62
|
-
/** Wires `@molecule/app-video-hls` (hls.js — HLS streaming everywhere) to `@molecule/app-video`. */
|
|
63
|
-
export declare function setupAppVideoHls(): Promise<void>;
|
|
64
38
|
/**
|
|
65
39
|
* Wires all 7 universal app-side bonds in one call — fonts, routing,
|
|
66
40
|
* storage, styling, theme, UI ClassMap, icons (in that order). Auth
|
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAYH,OAAO,EACL,+BAA+B,EAGhC,MAAM,mCAAmC,CAAA;AAe1C,uFAAuF;AACvF,wBAAgB,uBAAuB,IAAI,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAS5F;AAED,kEAAkE;AAClE,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,qEAAqE;AACrE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,6EAA6E;AAC7E,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED,6EAA6E;AAC7E,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,4FAA4F;AAC5F,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAYH,OAAO,EACL,+BAA+B,EAGhC,MAAM,mCAAmC,CAAA;AAe1C,uFAAuF;AACvF,wBAAgB,uBAAuB,IAAI,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAS5F;AAED,kEAAkE;AAClE,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,qEAAqE;AACrE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,6EAA6E;AAC7E,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED,6EAA6E;AAC7E,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,4FAA4F;AAC5F,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAQ3C"}
|
package/dist/setup.js
CHANGED
|
@@ -81,86 +81,6 @@ export function setupAppThemeCssVariables() {
|
|
|
81
81
|
export function setupAppUiTailwind() {
|
|
82
82
|
setClassMap(classMap);
|
|
83
83
|
}
|
|
84
|
-
/** Wires `@molecule/app-realtime-socketio` to `@molecule/app-realtime`. */
|
|
85
|
-
export async function setupAppRealtimeSocketio() {
|
|
86
|
-
const [{ setProvider: setRealtime }, { provider }] = await Promise.all([
|
|
87
|
-
import('@molecule/app-realtime'),
|
|
88
|
-
import('@molecule/app-realtime-socketio'),
|
|
89
|
-
]);
|
|
90
|
-
setRealtime(provider);
|
|
91
|
-
}
|
|
92
|
-
/** Wires `@molecule/app-keyboard-shortcuts-hotkeys` to `@molecule/app-keyboard-shortcuts`. */
|
|
93
|
-
export async function setupAppKeyboardShortcutsHotkeys() {
|
|
94
|
-
const [{ setProvider: setKbd }, { provider }] = await Promise.all([
|
|
95
|
-
import('@molecule/app-keyboard-shortcuts'),
|
|
96
|
-
import('@molecule/app-keyboard-shortcuts-hotkeys'),
|
|
97
|
-
]);
|
|
98
|
-
setKbd(provider);
|
|
99
|
-
}
|
|
100
|
-
/** Wires `@molecule/app-command-palette-cmdk` to `@molecule/app-command-palette`. */
|
|
101
|
-
export async function setupAppCommandPaletteCmdk() {
|
|
102
|
-
const [{ setProvider: setPalette }, { provider }] = await Promise.all([
|
|
103
|
-
import('@molecule/app-command-palette'),
|
|
104
|
-
import('@molecule/app-command-palette-cmdk'),
|
|
105
|
-
]);
|
|
106
|
-
setPalette(provider);
|
|
107
|
-
}
|
|
108
|
-
/** Wires `@molecule/app-code-editor-monaco` to `@molecule/app-code-editor`. */
|
|
109
|
-
export async function setupAppCodeEditorMonaco() {
|
|
110
|
-
const [{ setProvider: setEditor }, { provider }] = await Promise.all([
|
|
111
|
-
import('@molecule/app-code-editor'),
|
|
112
|
-
import('@molecule/app-code-editor-monaco'),
|
|
113
|
-
]);
|
|
114
|
-
setEditor(provider);
|
|
115
|
-
}
|
|
116
|
-
/** Wires `@molecule/app-virtual-scroll-tanstack` to `@molecule/app-virtual-scroll`. */
|
|
117
|
-
export async function setupAppVirtualScrollTanstack() {
|
|
118
|
-
const [{ setProvider: setScroll }, { provider }] = await Promise.all([
|
|
119
|
-
import('@molecule/app-virtual-scroll'),
|
|
120
|
-
import('@molecule/app-virtual-scroll-tanstack'),
|
|
121
|
-
]);
|
|
122
|
-
setScroll(provider);
|
|
123
|
-
}
|
|
124
|
-
/** Wires `@molecule/app-drag-drop-dndkit` to `@molecule/app-drag-drop`. */
|
|
125
|
-
export async function setupAppDragDropDndkit() {
|
|
126
|
-
const [{ setProvider: setDnd }, { provider }] = await Promise.all([
|
|
127
|
-
import('@molecule/app-drag-drop'),
|
|
128
|
-
import('@molecule/app-drag-drop-dndkit'),
|
|
129
|
-
]);
|
|
130
|
-
setDnd(provider);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Wires `@molecule/app-charts-chartjs` (Chart.js) to `@molecule/app-charts` — real
|
|
134
|
-
* line/bar/pie/etc. charts instead of the core's placeholder panel.
|
|
135
|
-
*/
|
|
136
|
-
export async function setupAppChartsChartjs() {
|
|
137
|
-
const [{ setProvider: setCharts }, { provider }] = await Promise.all([
|
|
138
|
-
import('@molecule/app-charts'),
|
|
139
|
-
import('@molecule/app-charts-chartjs'),
|
|
140
|
-
]);
|
|
141
|
-
setCharts(provider);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Wires `@molecule/app-maps-leaflet` (Leaflet + OpenStreetMap, no API key) to
|
|
145
|
-
* `@molecule/app-maps` — a real slippy map instead of the core's grey placeholder.
|
|
146
|
-
* REQUIRES `import 'leaflet/dist/leaflet.css'` once in the app entry (the scaffolded
|
|
147
|
-
* `bonds/app-maps-leaflet.ts` does this); without it tiles + markers mis-position.
|
|
148
|
-
*/
|
|
149
|
-
export async function setupAppMapsLeaflet() {
|
|
150
|
-
const [{ setProvider: setMaps }, { provider }] = await Promise.all([
|
|
151
|
-
import('@molecule/app-maps'),
|
|
152
|
-
import('@molecule/app-maps-leaflet'),
|
|
153
|
-
]);
|
|
154
|
-
setMaps(provider);
|
|
155
|
-
}
|
|
156
|
-
/** Wires `@molecule/app-video-hls` (hls.js — HLS streaming everywhere) to `@molecule/app-video`. */
|
|
157
|
-
export async function setupAppVideoHls() {
|
|
158
|
-
const [{ setProvider: setVideo }, { provider }] = await Promise.all([
|
|
159
|
-
import('@molecule/app-video'),
|
|
160
|
-
import('@molecule/app-video-hls'),
|
|
161
|
-
]);
|
|
162
|
-
setVideo(provider);
|
|
163
|
-
}
|
|
164
84
|
/**
|
|
165
85
|
* Wires all 7 universal app-side bonds in one call — fonts, routing,
|
|
166
86
|
* storage, styling, theme, UI ClassMap, icons (in that order). Auth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-bonds-default-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Default app-side bond wirings for React+Tailwind+react-router+localStorage+Arimo font+molecule icons. 5 setup functions consolidating 665 byte-identical per-app bond wiring files across the fleet.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
".": {
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"import": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./optional/*.js": {
|
|
19
|
+
"types": "./dist/optional/*.d.ts",
|
|
20
|
+
"import": "./dist/optional/*.js"
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
23
|
"files": [
|
|
@@ -73,7 +77,8 @@
|
|
|
73
77
|
},
|
|
74
78
|
"peerDependencies": {
|
|
75
79
|
"@molecule/app-auth": "^1.0.1",
|
|
76
|
-
"@molecule/app-charts
|
|
80
|
+
"@molecule/app-charts": "^1.0.1",
|
|
81
|
+
"@molecule/app-charts-chartjs": "^1.0.1",
|
|
77
82
|
"@molecule/app-code-editor": "^1.0.1",
|
|
78
83
|
"@molecule/app-code-editor-monaco": "^1.0.1",
|
|
79
84
|
"@molecule/app-command-palette": "^1.0.1",
|
|
@@ -87,7 +92,8 @@
|
|
|
87
92
|
"@molecule/app-icons-molecule": "^1.0.1",
|
|
88
93
|
"@molecule/app-keyboard-shortcuts": "^1.0.1",
|
|
89
94
|
"@molecule/app-keyboard-shortcuts-hotkeys": "^1.0.1",
|
|
90
|
-
"@molecule/app-maps
|
|
95
|
+
"@molecule/app-maps": "^1.0.1",
|
|
96
|
+
"@molecule/app-maps-leaflet": "^1.0.1",
|
|
91
97
|
"@molecule/app-realtime": "^1.0.1",
|
|
92
98
|
"@molecule/app-realtime-socketio": "^1.0.1",
|
|
93
99
|
"@molecule/app-routing": "^1.0.1",
|
|
@@ -99,13 +105,17 @@
|
|
|
99
105
|
"@molecule/app-theme-css-variables": "^1.0.1",
|
|
100
106
|
"@molecule/app-ui": "^1.0.1",
|
|
101
107
|
"@molecule/app-ui-tailwind": "^1.0.1",
|
|
102
|
-
"@molecule/app-video
|
|
108
|
+
"@molecule/app-video": "^1.0.1",
|
|
109
|
+
"@molecule/app-video-hls": "^1.0.1",
|
|
103
110
|
"@molecule/app-virtual-scroll": "^1.0.1",
|
|
104
111
|
"@molecule/app-virtual-scroll-tanstack": "^1.0.1",
|
|
105
112
|
"react": "^18.0.0 || ^19.0.0",
|
|
106
113
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
107
114
|
},
|
|
108
115
|
"peerDependenciesMeta": {
|
|
116
|
+
"@molecule/app-charts": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
109
119
|
"@molecule/app-charts-chartjs": {
|
|
110
120
|
"optional": true
|
|
111
121
|
},
|
|
@@ -133,6 +143,9 @@
|
|
|
133
143
|
"@molecule/app-keyboard-shortcuts-hotkeys": {
|
|
134
144
|
"optional": true
|
|
135
145
|
},
|
|
146
|
+
"@molecule/app-maps": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
136
149
|
"@molecule/app-maps-leaflet": {
|
|
137
150
|
"optional": true
|
|
138
151
|
},
|
|
@@ -142,6 +155,9 @@
|
|
|
142
155
|
"@molecule/app-realtime-socketio": {
|
|
143
156
|
"optional": true
|
|
144
157
|
},
|
|
158
|
+
"@molecule/app-video": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
145
161
|
"@molecule/app-video-hls": {
|
|
146
162
|
"optional": true
|
|
147
163
|
},
|