@molecule/app-bonds-default 0.0.1-stage → 1.2.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.
- package/README.md +66 -44
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/optional/video-hls.js +1 -1
- package/dist/setup.d.ts +13 -1
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +17 -1
- package/package.json +22 -17
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-11-
|
|
6
|
+
Generated: 2026-11-27T18:52:07.903Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-bonds-default
|
|
@@ -15,14 +15,17 @@ app-side bond wirings, shared unchanged by the per-framework packages
|
|
|
15
15
|
`setupAllDefaultBonds()` and `bootstrapApp()`. Switching framework means
|
|
16
16
|
changing the package name in the imports — every export below keeps its name.
|
|
17
17
|
|
|
18
|
-
- The
|
|
18
|
+
- The eight universal neutral setups — `setupAppStateSimple` (the vanilla
|
|
19
19
|
`simpleProvider`, so `createStore()` works from the first render — the
|
|
20
20
|
documented `createStore()` + `useStore()` pattern needs a provider bonded
|
|
21
21
|
and nothing else in a scaffold wires one), `setupAppFontsArimo`,
|
|
22
22
|
`setupAppStorageLocalstorage`, `setupAppStylingTailwind` (registers the
|
|
23
23
|
tailwind-merge class merger), `setupAppThemeCssVariables` (light + dark via
|
|
24
24
|
`getDefaultThemeProvider()`), `setupAppUiTailwind` ClassMap,
|
|
25
|
-
`setupAppIconsMolecule
|
|
25
|
+
`setupAppIconsMolecule`, `setupAppClipboardWeb` (the browser Clipboard API
|
|
26
|
+
with a selection-and-copy fallback, so `copyTextWithFallback()` and
|
|
27
|
+
`writeText()` from `@molecule/app-clipboard` work wherever a copy can).
|
|
28
|
+
Routing is framework-specific and lives in the
|
|
26
29
|
per-framework packages.
|
|
27
30
|
- **Optional provider wirings live behind subpaths**, one module per pair:
|
|
28
31
|
`@molecule/app-bonds-default/optional/<pair>.js` — `realtime-socketio`,
|
|
@@ -97,7 +100,7 @@ const { authClient, setupAuthDefault } = createDefaultAuthClient({
|
|
|
97
100
|
## Installation
|
|
98
101
|
|
|
99
102
|
```bash
|
|
100
|
-
npm install @molecule/app-bonds-default @molecule/app-auth @molecule/app-
|
|
103
|
+
npm install @molecule/app-bonds-default @molecule/app-auth @molecule/app-clipboard @molecule/app-clipboard-web @molecule/app-fonts @molecule/app-fonts-arimo @molecule/app-http @molecule/app-icons @molecule/app-icons-molecule @molecule/app-routing @molecule/app-state @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
|
|
101
104
|
```
|
|
102
105
|
|
|
103
106
|
## API
|
|
@@ -279,6 +282,21 @@ Returns (and lazily constructs) the shared default CSS-variables theme provider.
|
|
|
279
282
|
function getDefaultThemeProvider(): ReturnType<typeof createCSSVariablesThemeProvider>
|
|
280
283
|
```
|
|
281
284
|
|
|
285
|
+
#### `setupAppClipboardWeb()`
|
|
286
|
+
|
|
287
|
+
Wires `@molecule/app-clipboard-web` to `@molecule/app-clipboard`: the browser's
|
|
288
|
+
Clipboard API, falling back to a selection-and-copy where that API is missing
|
|
289
|
+
or refuses (a plain-HTTP page, an iframe without the clipboard-write
|
|
290
|
+
permission, a document that lost focus).
|
|
291
|
+
|
|
292
|
+
WITHOUT this, `writeText()` throws "No provider set" and
|
|
293
|
+
`copyTextWithFallback()` only tries the legacy copy command, so a copy button
|
|
294
|
+
built on them works in fewer places than a raw `navigator.clipboard` call.
|
|
295
|
+
|
|
296
|
+
```typescript
|
|
297
|
+
function setupAppClipboardWeb(): void
|
|
298
|
+
```
|
|
299
|
+
|
|
282
300
|
#### `setupAppFontsArimo()`
|
|
283
301
|
|
|
284
302
|
Wires `@molecule/app-fonts-arimo` to `@molecule/app-fonts`.
|
|
@@ -353,27 +371,29 @@ function setupAppUiTailwind(): void
|
|
|
353
371
|
Peer dependencies:
|
|
354
372
|
|
|
355
373
|
- `@molecule/app-auth` ^3.0.0
|
|
356
|
-
- `@molecule/app-charts` ^1.0.1
|
|
357
|
-
- `@molecule/app-charts-chartjs` ^1.0.1
|
|
358
|
-
- `@molecule/app-client-search` ^1.0.0
|
|
359
|
-
- `@molecule/app-client-search-minisearch` ^1.0.0
|
|
360
|
-
- `@molecule/app-
|
|
361
|
-
- `@molecule/app-
|
|
362
|
-
- `@molecule/app-
|
|
363
|
-
- `@molecule/app-
|
|
364
|
-
- `@molecule/app-
|
|
365
|
-
- `@molecule/app-
|
|
374
|
+
- `@molecule/app-charts` ^1.0.1 _(optional)_
|
|
375
|
+
- `@molecule/app-charts-chartjs` ^1.0.1 _(optional)_
|
|
376
|
+
- `@molecule/app-client-search` ^1.0.0 _(optional)_
|
|
377
|
+
- `@molecule/app-client-search-minisearch` ^1.0.0 _(optional)_
|
|
378
|
+
- `@molecule/app-clipboard` ^1.0.1
|
|
379
|
+
- `@molecule/app-clipboard-web` ^1.0.1
|
|
380
|
+
- `@molecule/app-code-editor` ^1.0.1 _(optional)_
|
|
381
|
+
- `@molecule/app-code-editor-monaco` ^1.0.1 _(optional)_
|
|
382
|
+
- `@molecule/app-command-palette` ^1.0.1 _(optional)_
|
|
383
|
+
- `@molecule/app-command-palette-cmdk` ^1.0.1 _(optional)_
|
|
384
|
+
- `@molecule/app-drag-drop` ^1.0.1 _(optional)_
|
|
385
|
+
- `@molecule/app-drag-drop-dndkit` ^1.0.1 || ^2.0.0 _(optional)_
|
|
366
386
|
- `@molecule/app-fonts` ^1.0.1
|
|
367
387
|
- `@molecule/app-fonts-arimo` ^1.0.1
|
|
368
388
|
- `@molecule/app-http` ^1.5.0
|
|
369
389
|
- `@molecule/app-icons` ^1.0.1
|
|
370
390
|
- `@molecule/app-icons-molecule` ^1.0.1
|
|
371
|
-
- `@molecule/app-keyboard-shortcuts` ^1.0.1
|
|
372
|
-
- `@molecule/app-keyboard-shortcuts-hotkeys` ^1.0.1
|
|
373
|
-
- `@molecule/app-maps` ^1.0.1
|
|
374
|
-
- `@molecule/app-maps-leaflet` ^1.0.1
|
|
375
|
-
- `@molecule/app-realtime` ^1.0.1
|
|
376
|
-
- `@molecule/app-realtime-socketio` ^1.0.1
|
|
391
|
+
- `@molecule/app-keyboard-shortcuts` ^1.0.1 _(optional)_
|
|
392
|
+
- `@molecule/app-keyboard-shortcuts-hotkeys` ^1.0.1 _(optional)_
|
|
393
|
+
- `@molecule/app-maps` ^1.0.1 _(optional)_
|
|
394
|
+
- `@molecule/app-maps-leaflet` ^1.0.1 _(optional)_
|
|
395
|
+
- `@molecule/app-realtime` ^1.0.1 _(optional)_
|
|
396
|
+
- `@molecule/app-realtime-socketio` ^1.0.1 _(optional)_
|
|
377
397
|
- `@molecule/app-routing` ^1.0.1
|
|
378
398
|
- `@molecule/app-state` ^1.0.1
|
|
379
399
|
- `@molecule/app-storage` ^1.0.1
|
|
@@ -383,35 +403,37 @@ Peer dependencies:
|
|
|
383
403
|
- `@molecule/app-theme-css-variables` ^1.0.1
|
|
384
404
|
- `@molecule/app-ui` ^1.0.1
|
|
385
405
|
- `@molecule/app-ui-tailwind` ^1.0.1
|
|
386
|
-
- `@molecule/app-video` ^
|
|
387
|
-
- `@molecule/app-video-hls` ^1.0.
|
|
388
|
-
- `@molecule/app-virtual-scroll` ^1.0.1
|
|
389
|
-
- `@molecule/app-virtual-scroll-tanstack` ^1.0.1
|
|
406
|
+
- `@molecule/app-video` ^2.0.0 _(optional)_
|
|
407
|
+
- `@molecule/app-video-hls` ^1.0.4 _(optional)_
|
|
408
|
+
- `@molecule/app-virtual-scroll` ^1.0.1 _(optional)_
|
|
409
|
+
- `@molecule/app-virtual-scroll-tanstack` ^1.0.1 _(optional)_
|
|
390
410
|
|
|
391
411
|
### Runtime Dependencies
|
|
392
412
|
|
|
393
413
|
- `@molecule/app-auth`
|
|
394
|
-
- `@molecule/app-charts`
|
|
395
|
-
- `@molecule/app-charts-chartjs`
|
|
396
|
-
- `@molecule/app-client-search`
|
|
397
|
-
- `@molecule/app-client-search-minisearch`
|
|
398
|
-
- `@molecule/app-
|
|
399
|
-
- `@molecule/app-
|
|
400
|
-
- `@molecule/app-
|
|
401
|
-
- `@molecule/app-
|
|
402
|
-
- `@molecule/app-
|
|
403
|
-
- `@molecule/app-
|
|
414
|
+
- `@molecule/app-charts` _(optional)_
|
|
415
|
+
- `@molecule/app-charts-chartjs` _(optional)_
|
|
416
|
+
- `@molecule/app-client-search` _(optional)_
|
|
417
|
+
- `@molecule/app-client-search-minisearch` _(optional)_
|
|
418
|
+
- `@molecule/app-clipboard`
|
|
419
|
+
- `@molecule/app-clipboard-web`
|
|
420
|
+
- `@molecule/app-code-editor` _(optional)_
|
|
421
|
+
- `@molecule/app-code-editor-monaco` _(optional)_
|
|
422
|
+
- `@molecule/app-command-palette` _(optional)_
|
|
423
|
+
- `@molecule/app-command-palette-cmdk` _(optional)_
|
|
424
|
+
- `@molecule/app-drag-drop` _(optional)_
|
|
425
|
+
- `@molecule/app-drag-drop-dndkit` _(optional)_
|
|
404
426
|
- `@molecule/app-fonts`
|
|
405
427
|
- `@molecule/app-fonts-arimo`
|
|
406
428
|
- `@molecule/app-http`
|
|
407
429
|
- `@molecule/app-icons`
|
|
408
430
|
- `@molecule/app-icons-molecule`
|
|
409
|
-
- `@molecule/app-keyboard-shortcuts`
|
|
410
|
-
- `@molecule/app-keyboard-shortcuts-hotkeys`
|
|
411
|
-
- `@molecule/app-maps`
|
|
412
|
-
- `@molecule/app-maps-leaflet`
|
|
413
|
-
- `@molecule/app-realtime`
|
|
414
|
-
- `@molecule/app-realtime-socketio`
|
|
431
|
+
- `@molecule/app-keyboard-shortcuts` _(optional)_
|
|
432
|
+
- `@molecule/app-keyboard-shortcuts-hotkeys` _(optional)_
|
|
433
|
+
- `@molecule/app-maps` _(optional)_
|
|
434
|
+
- `@molecule/app-maps-leaflet` _(optional)_
|
|
435
|
+
- `@molecule/app-realtime` _(optional)_
|
|
436
|
+
- `@molecule/app-realtime-socketio` _(optional)_
|
|
415
437
|
- `@molecule/app-routing`
|
|
416
438
|
- `@molecule/app-state`
|
|
417
439
|
- `@molecule/app-storage`
|
|
@@ -421,10 +443,10 @@ Peer dependencies:
|
|
|
421
443
|
- `@molecule/app-theme-css-variables`
|
|
422
444
|
- `@molecule/app-ui`
|
|
423
445
|
- `@molecule/app-ui-tailwind`
|
|
424
|
-
- `@molecule/app-video`
|
|
425
|
-
- `@molecule/app-video-hls`
|
|
426
|
-
- `@molecule/app-virtual-scroll`
|
|
427
|
-
- `@molecule/app-virtual-scroll-tanstack`
|
|
446
|
+
- `@molecule/app-video` _(optional)_
|
|
447
|
+
- `@molecule/app-video-hls` _(optional)_
|
|
448
|
+
- `@molecule/app-virtual-scroll` _(optional)_
|
|
449
|
+
- `@molecule/app-virtual-scroll-tanstack` _(optional)_
|
|
428
450
|
|
|
429
451
|
- **Optional setups are NOT exported from the package root.** Import each from
|
|
430
452
|
its own subpath — `@molecule/app-bonds-default/optional/maps-leaflet.js`,
|
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,17 @@
|
|
|
6
6
|
* `setupAllDefaultBonds()` and `bootstrapApp()`. Switching framework means
|
|
7
7
|
* changing the package name in the imports — every export below keeps its name.
|
|
8
8
|
*
|
|
9
|
-
* - The
|
|
9
|
+
* - The eight universal neutral setups — `setupAppStateSimple` (the vanilla
|
|
10
10
|
* `simpleProvider`, so `createStore()` works from the first render — the
|
|
11
11
|
* documented `createStore()` + `useStore()` pattern needs a provider bonded
|
|
12
12
|
* and nothing else in a scaffold wires one), `setupAppFontsArimo`,
|
|
13
13
|
* `setupAppStorageLocalstorage`, `setupAppStylingTailwind` (registers the
|
|
14
14
|
* tailwind-merge class merger), `setupAppThemeCssVariables` (light + dark via
|
|
15
15
|
* `getDefaultThemeProvider()`), `setupAppUiTailwind` ClassMap,
|
|
16
|
-
* `setupAppIconsMolecule
|
|
16
|
+
* `setupAppIconsMolecule`, `setupAppClipboardWeb` (the browser Clipboard API
|
|
17
|
+
* with a selection-and-copy fallback, so `copyTextWithFallback()` and
|
|
18
|
+
* `writeText()` from `@molecule/app-clipboard` work wherever a copy can).
|
|
19
|
+
* Routing is framework-specific and lives in the
|
|
17
20
|
* per-framework packages.
|
|
18
21
|
* - **Optional provider wirings live behind subpaths**, one module per pair:
|
|
19
22
|
* `@molecule/app-bonds-default/optional/<pair>.js` — `realtime-socketio`,
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AAEH,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6,14 +6,17 @@
|
|
|
6
6
|
* `setupAllDefaultBonds()` and `bootstrapApp()`. Switching framework means
|
|
7
7
|
* changing the package name in the imports — every export below keeps its name.
|
|
8
8
|
*
|
|
9
|
-
* - The
|
|
9
|
+
* - The eight universal neutral setups — `setupAppStateSimple` (the vanilla
|
|
10
10
|
* `simpleProvider`, so `createStore()` works from the first render — the
|
|
11
11
|
* documented `createStore()` + `useStore()` pattern needs a provider bonded
|
|
12
12
|
* and nothing else in a scaffold wires one), `setupAppFontsArimo`,
|
|
13
13
|
* `setupAppStorageLocalstorage`, `setupAppStylingTailwind` (registers the
|
|
14
14
|
* tailwind-merge class merger), `setupAppThemeCssVariables` (light + dark via
|
|
15
15
|
* `getDefaultThemeProvider()`), `setupAppUiTailwind` ClassMap,
|
|
16
|
-
* `setupAppIconsMolecule
|
|
16
|
+
* `setupAppIconsMolecule`, `setupAppClipboardWeb` (the browser Clipboard API
|
|
17
|
+
* with a selection-and-copy fallback, so `copyTextWithFallback()` and
|
|
18
|
+
* `writeText()` from `@molecule/app-clipboard` work wherever a copy can).
|
|
19
|
+
* Routing is framework-specific and lives in the
|
|
17
20
|
* per-framework packages.
|
|
18
21
|
* - **Optional provider wirings live behind subpaths**, one module per pair:
|
|
19
22
|
* `@molecule/app-bonds-default/optional/<pair>.js` — `realtime-socketio`,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/** Wires `@molecule/app-video-hls` (hls.js — HLS streaming everywhere) to `@molecule/app-video`. */
|
|
11
11
|
export async function setupAppVideoHls() {
|
|
12
12
|
const [{ setProvider: setVideo }, { provider }] = await Promise.all([
|
|
13
|
-
import('@molecule/app-video'),
|
|
13
|
+
import('@molecule/app-video/browser'),
|
|
14
14
|
import('@molecule/app-video-hls'),
|
|
15
15
|
]);
|
|
16
16
|
setVideo(provider);
|
package/dist/setup.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Framework-neutral default app-side bond wirings (state + Tailwind ClassMap +
|
|
3
|
-
* localStorage + Arimo font + Molecule icons + CSS-variables theme
|
|
3
|
+
* localStorage + Arimo font + Molecule icons + CSS-variables theme + web
|
|
4
|
+
* clipboard).
|
|
4
5
|
*
|
|
5
6
|
* Centralizes the byte-identical `app/src/bonds/<name>.ts` setup functions that
|
|
6
7
|
* every flagship app shipped. Per-app bond files become 1-line re-exports —
|
|
@@ -21,6 +22,17 @@
|
|
|
21
22
|
import { createCSSVariablesThemeProvider } from '@molecule/app-theme-css-variables';
|
|
22
23
|
/** Returns (and lazily constructs) the shared default CSS-variables theme provider. */
|
|
23
24
|
export declare function getDefaultThemeProvider(): ReturnType<typeof createCSSVariablesThemeProvider>;
|
|
25
|
+
/**
|
|
26
|
+
* Wires `@molecule/app-clipboard-web` to `@molecule/app-clipboard`: the browser's
|
|
27
|
+
* Clipboard API, falling back to a selection-and-copy where that API is missing
|
|
28
|
+
* or refuses (a plain-HTTP page, an iframe without the clipboard-write
|
|
29
|
+
* permission, a document that lost focus).
|
|
30
|
+
*
|
|
31
|
+
* WITHOUT this, `writeText()` throws "No provider set" and
|
|
32
|
+
* `copyTextWithFallback()` only tries the legacy copy command, so a copy button
|
|
33
|
+
* built on them works in fewer places than a raw `navigator.clipboard` call.
|
|
34
|
+
*/
|
|
35
|
+
export declare function setupAppClipboardWeb(): void;
|
|
24
36
|
/** Wires `@molecule/app-fonts-arimo` to `@molecule/app-fonts`. */
|
|
25
37
|
export declare function setupAppFontsArimo(): void;
|
|
26
38
|
/** Wires `@molecule/app-icons-molecule` to `@molecule/app-icons`. */
|
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAgBH,OAAO,EACL,+BAA+B,EAGhC,MAAM,mCAAmC,CAAA;AAe1C,uFAAuF;AACvF,wBAAgB,uBAAuB,IAAI,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAS5F;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED,kEAAkE;AAClE,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,qEAAqE;AACrE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;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"}
|
package/dist/setup.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Framework-neutral default app-side bond wirings (state + Tailwind ClassMap +
|
|
3
|
-
* localStorage + Arimo font + Molecule icons + CSS-variables theme
|
|
3
|
+
* localStorage + Arimo font + Molecule icons + CSS-variables theme + web
|
|
4
|
+
* clipboard).
|
|
4
5
|
*
|
|
5
6
|
* Centralizes the byte-identical `app/src/bonds/<name>.ts` setup functions that
|
|
6
7
|
* every flagship app shipped. Per-app bond files become 1-line re-exports —
|
|
@@ -18,6 +19,8 @@
|
|
|
18
19
|
*
|
|
19
20
|
* @module
|
|
20
21
|
*/
|
|
22
|
+
import { setProvider as setClipboard } from '@molecule/app-clipboard';
|
|
23
|
+
import { provider as webClipboardProvider } from '@molecule/app-clipboard-web';
|
|
21
24
|
import { setFont } from '@molecule/app-fonts';
|
|
22
25
|
import { font as arimoFont } from '@molecule/app-fonts-arimo';
|
|
23
26
|
import { setIconSet } from '@molecule/app-icons';
|
|
@@ -52,6 +55,19 @@ export function getDefaultThemeProvider() {
|
|
|
52
55
|
}
|
|
53
56
|
return _defaultThemeProvider;
|
|
54
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Wires `@molecule/app-clipboard-web` to `@molecule/app-clipboard`: the browser's
|
|
60
|
+
* Clipboard API, falling back to a selection-and-copy where that API is missing
|
|
61
|
+
* or refuses (a plain-HTTP page, an iframe without the clipboard-write
|
|
62
|
+
* permission, a document that lost focus).
|
|
63
|
+
*
|
|
64
|
+
* WITHOUT this, `writeText()` throws "No provider set" and
|
|
65
|
+
* `copyTextWithFallback()` only tries the legacy copy command, so a copy button
|
|
66
|
+
* built on them works in fewer places than a raw `navigator.clipboard` call.
|
|
67
|
+
*/
|
|
68
|
+
export function setupAppClipboardWeb() {
|
|
69
|
+
setClipboard(webClipboardProvider);
|
|
70
|
+
}
|
|
55
71
|
/** Wires `@molecule/app-fonts-arimo` to `@molecule/app-fonts`. */
|
|
56
72
|
export function setupAppFontsArimo() {
|
|
57
73
|
setFont(arimoFont);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-bonds-default",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Framework-neutral default app-side bond wirings (auth/http factories, state, fonts, storage, styling, theme, ClassMap, icons, optional providers) shared by the per-framework @molecule/app-bonds-default-* packages.",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "Framework-neutral default app-side bond wirings (auth/http factories, state, fonts, storage, styling, theme, ClassMap, icons, clipboard, optional providers) shared by the per-framework @molecule/app-bonds-default-* packages.",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-bonds-default",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -43,12 +43,14 @@
|
|
|
43
43
|
"@molecule/app-charts-chartjs": "^1.0.1",
|
|
44
44
|
"@molecule/app-client-search": "^1.0.0",
|
|
45
45
|
"@molecule/app-client-search-minisearch": "^1.0.0",
|
|
46
|
+
"@molecule/app-clipboard": "^1.0.1",
|
|
47
|
+
"@molecule/app-clipboard-web": "^1.0.1",
|
|
46
48
|
"@molecule/app-code-editor": "^1.0.1",
|
|
47
49
|
"@molecule/app-code-editor-monaco": "^1.0.1",
|
|
48
50
|
"@molecule/app-command-palette": "^1.0.1",
|
|
49
51
|
"@molecule/app-command-palette-cmdk": "^1.0.1",
|
|
50
52
|
"@molecule/app-drag-drop": "^1.0.1",
|
|
51
|
-
"@molecule/app-drag-drop-dndkit": "^1.0.1",
|
|
53
|
+
"@molecule/app-drag-drop-dndkit": "^1.0.1 || ^2.0.0",
|
|
52
54
|
"@molecule/app-fonts": "^1.0.1",
|
|
53
55
|
"@molecule/app-fonts-arimo": "^1.0.1",
|
|
54
56
|
"@molecule/app-http": "^1.5.0",
|
|
@@ -69,8 +71,8 @@
|
|
|
69
71
|
"@molecule/app-theme-css-variables": "^1.0.1",
|
|
70
72
|
"@molecule/app-ui": "^1.0.1",
|
|
71
73
|
"@molecule/app-ui-tailwind": "^1.0.1",
|
|
72
|
-
"@molecule/app-video": "^
|
|
73
|
-
"@molecule/app-video-hls": "^1.0.
|
|
74
|
+
"@molecule/app-video": "^2.0.0",
|
|
75
|
+
"@molecule/app-video-hls": "^1.0.4",
|
|
74
76
|
"@molecule/app-virtual-scroll": "^1.0.1",
|
|
75
77
|
"@molecule/app-virtual-scroll-tanstack": "^1.0.1"
|
|
76
78
|
},
|
|
@@ -137,19 +139,21 @@
|
|
|
137
139
|
}
|
|
138
140
|
},
|
|
139
141
|
"devDependencies": {
|
|
140
|
-
"@molecule/app-auth": "3.
|
|
142
|
+
"@molecule/app-auth": "3.6.1",
|
|
141
143
|
"@molecule/app-charts-chartjs": "1.0.3",
|
|
142
144
|
"@molecule/app-client-search": "1.0.4",
|
|
143
145
|
"@molecule/app-client-search-minisearch": "1.0.4",
|
|
146
|
+
"@molecule/app-clipboard": "1.0.5",
|
|
147
|
+
"@molecule/app-clipboard-web": "1.0.2",
|
|
144
148
|
"@molecule/app-code-editor": "1.0.3",
|
|
145
|
-
"@molecule/app-code-editor-monaco": "1.0.
|
|
149
|
+
"@molecule/app-code-editor-monaco": "1.0.9",
|
|
146
150
|
"@molecule/app-command-palette": "1.0.3",
|
|
147
151
|
"@molecule/app-command-palette-cmdk": "1.0.3",
|
|
148
|
-
"@molecule/app-drag-drop": "1.
|
|
149
|
-
"@molecule/app-drag-drop-dndkit": "
|
|
150
|
-
"@molecule/app-fonts": "1.
|
|
151
|
-
"@molecule/app-fonts-arimo": "1.0.
|
|
152
|
-
"@molecule/app-http": "1.
|
|
152
|
+
"@molecule/app-drag-drop": "1.2.1",
|
|
153
|
+
"@molecule/app-drag-drop-dndkit": "2.0.0",
|
|
154
|
+
"@molecule/app-fonts": "1.4.1",
|
|
155
|
+
"@molecule/app-fonts-arimo": "1.0.6",
|
|
156
|
+
"@molecule/app-http": "1.11.0",
|
|
153
157
|
"@molecule/app-icons": "1.0.4",
|
|
154
158
|
"@molecule/app-icons-molecule": "1.0.3",
|
|
155
159
|
"@molecule/app-keyboard-shortcuts": "1.0.3",
|
|
@@ -157,15 +161,16 @@
|
|
|
157
161
|
"@molecule/app-maps-leaflet": "1.0.4",
|
|
158
162
|
"@molecule/app-realtime": "1.0.4",
|
|
159
163
|
"@molecule/app-realtime-socketio": "1.1.3",
|
|
160
|
-
"@molecule/app-routing": "1.3
|
|
164
|
+
"@molecule/app-routing": "1.5.3",
|
|
161
165
|
"@molecule/app-state": "1.2.0",
|
|
162
166
|
"@molecule/app-storage": "1.1.1",
|
|
163
167
|
"@molecule/app-storage-localstorage": "1.1.2",
|
|
164
168
|
"@molecule/app-theme": "1.0.4",
|
|
165
|
-
"@molecule/app-theme-css-variables": "1.0.
|
|
166
|
-
"@molecule/app-ui": "1.
|
|
167
|
-
"@molecule/app-ui-tailwind": "1.
|
|
168
|
-
"@molecule/app-video
|
|
169
|
+
"@molecule/app-theme-css-variables": "1.0.7",
|
|
170
|
+
"@molecule/app-ui": "1.17.0",
|
|
171
|
+
"@molecule/app-ui-tailwind": "1.5.1",
|
|
172
|
+
"@molecule/app-video": "2.0.0",
|
|
173
|
+
"@molecule/app-video-hls": "1.0.4",
|
|
169
174
|
"@molecule/app-virtual-scroll": "1.0.4",
|
|
170
175
|
"@molecule/app-virtual-scroll-tanstack": "1.0.3",
|
|
171
176
|
"@types/node": "26.6.5",
|