@d4gger/design-system 4.2.3 → 4.2.4
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 +22 -2
- package/dist/docs/component-index.json +1 -1
- package/dist/tokens.dtcg.json +1 -1
- package/package.json +38 -7
package/README.md
CHANGED
|
@@ -178,18 +178,38 @@ them in automatically).
|
|
|
178
178
|
| `./phone-input` | `pnpm add react-phone-number-input libphonenumber-js`, plus `flags.css` (which needs `country-flag-icons`) |
|
|
179
179
|
| `./qr-code` | `pnpm add qrcode.react` |
|
|
180
180
|
| `./resizable` | `pnpm add react-resizable-panels` |
|
|
181
|
-
| `./rich-text-editor`, `./article-extensions` |
|
|
181
|
+
| `./rich-text-editor`, `./article-extensions` | Use the editor install command below. |
|
|
182
182
|
| `./search-bar` | `pnpm add cmdk` (lazily loads `Command`) |
|
|
183
183
|
| `./sonner` | `pnpm add sonner` |
|
|
184
184
|
| `./sortable-list` | `pnpm add @dnd-kit/core @dnd-kit/sortable @dnd-kit/utilities` |
|
|
185
185
|
| `./article-nodes` | — (read-side renderers; never load Tiptap) |
|
|
186
|
-
| `./blocks`, `./
|
|
186
|
+
| `./blocks/confirm-action`, `./foundations`, `./components`, `./motion`, `./telegram`, `./tokens` | — |
|
|
187
|
+
| `./blocks` | The barrel reaches the editor adapters. Use a focused block entry when you only need that block. |
|
|
188
|
+
|
|
189
|
+
### Editor install
|
|
190
|
+
|
|
191
|
+
Start with the base install above. Add these peers for
|
|
192
|
+
`./rich-text-editor` and `./article-extensions`:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
pnpm add @tiptap/core@^3 @tiptap/react@^3 @tiptap/starter-kit@^3 @tiptap/pm@^3 @tiptap/extension-image@^3 @tiptap/extension-table@^3 @tiptap/extension-code-block-lowlight@^3 @tiptap/extension-color@^3 @tiptap/extension-highlight@^3 @tiptap/extension-task-item@^3 @tiptap/extension-task-list@^3 @tiptap/extension-text-align@^3 @tiptap/extension-text-style@^3 lowlight@^3
|
|
196
|
+
```
|
|
187
197
|
|
|
188
198
|
Read-side article nodes do not load Tiptap. Optional-peer surfaces are isolated
|
|
189
199
|
so ordinary root imports do not require every adapter. `framer-motion`,
|
|
190
200
|
`vaul`, `react-day-picker`, `react-colorful`, and `react-hook-form` are
|
|
191
201
|
bundled dependencies — never install them separately to satisfy this package.
|
|
192
202
|
|
|
203
|
+
### ConfirmAction
|
|
204
|
+
|
|
205
|
+
```tsx
|
|
206
|
+
import { ConfirmAction } from '@d4gger/design-system/blocks/confirm-action'
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The focused entry uses the same component and props as the blocks barrel.
|
|
210
|
+
`children` renders inside the dialog above the action buttons. To supply
|
|
211
|
+
an opener, use `trigger` or control `open` from the caller.
|
|
212
|
+
|
|
193
213
|
## Page frames
|
|
194
214
|
|
|
195
215
|
Import `ConsoleFrame` from `@d4gger/design-system/blocks/console`. Supply
|
package/dist/tokens.dtcg.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d4gger/design-system",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "Publishable design-system package for D4gger foundations, icons, primitives, and components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"d4gger",
|
|
@@ -134,6 +134,16 @@
|
|
|
134
134
|
"default": "./dist/blocks/d4gger/frames/ConsoleFrame.cjs"
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
|
+
"./blocks/confirm-action": {
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./dist/blocks/kits/confirmAction/ConfirmAction.d.mts",
|
|
140
|
+
"default": "./dist/blocks/kits/confirmAction/ConfirmAction.js"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./dist/blocks/kits/confirmAction/ConfirmAction.d.cts",
|
|
144
|
+
"default": "./dist/blocks/kits/confirmAction/ConfirmAction.cjs"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
137
147
|
"./blocks/list": {
|
|
138
148
|
"import": {
|
|
139
149
|
"types": "./dist/blocks/kits/listPage/ListPage.d.mts",
|
|
@@ -385,6 +395,7 @@
|
|
|
385
395
|
"pack:local": "pnpm run build && pnpm pack",
|
|
386
396
|
"qa:publint": "node scripts/qa/qa-publint.mjs",
|
|
387
397
|
"qa:exports": "node scripts/qa/qa-exports-resolve.mjs",
|
|
398
|
+
"qa:editor-peers": "node scripts/qa/qa-editor-peers.mjs",
|
|
388
399
|
"qa:parity": "node scripts/qa/qa-css-tsx-parity.mjs",
|
|
389
400
|
"qa:raw": "node scripts/qa/qa-css-raw-effects.mjs",
|
|
390
401
|
"qa:hardcoded": "node scripts/qa/audit-hardcoded-values.mjs",
|
|
@@ -400,7 +411,7 @@
|
|
|
400
411
|
"qa:variant-matrix": "node scripts/qa/qa-variant-matrix.mjs",
|
|
401
412
|
"qa:tokens": "node scripts/qa/validate-tokens.mjs --fixtures && node --test scripts/export/export-penpot-tokens.test.mjs",
|
|
402
413
|
"qa:tokens-typed": "node scripts/qa/qa-tokens-typed.mjs",
|
|
403
|
-
"qa:package": "pnpm run qa:tokens && pnpm run qa:tokens-typed && pnpm run qa:inventory && pnpm run qa:exports && pnpm run qa:parity && pnpm run qa:coverage && pnpm run qa:raw && pnpm run qa:hardcoded && pnpm run qa:selectors && pnpm run qa:breakpoints && pnpm run qa:telegram-vars && pnpm run qa:contracts && pnpm run qa:fingerprint && pnpm run qa:dod && pnpm run qa:contrast && pnpm run qa:apca && pnpm run qa:variant-matrix",
|
|
414
|
+
"qa:package": "pnpm run qa:tokens && pnpm run qa:tokens-typed && pnpm run qa:inventory && pnpm run qa:exports && pnpm run qa:editor-peers && pnpm run qa:parity && pnpm run qa:coverage && pnpm run qa:raw && pnpm run qa:hardcoded && pnpm run qa:selectors && pnpm run qa:breakpoints && pnpm run qa:telegram-vars && pnpm run qa:contracts && pnpm run qa:fingerprint && pnpm run qa:dod && pnpm run qa:contrast && pnpm run qa:apca && pnpm run qa:variant-matrix",
|
|
404
415
|
"qa:release": "pnpm run build && pnpm run test && pnpm run qa:package && pnpm run qa:types && pnpm run qa:publint && pnpm run qa:pack && pnpm run qa:render",
|
|
405
416
|
"audit:radix": "node scripts/qa/audit-radix-foundations.mjs",
|
|
406
417
|
"qa:render": "node scripts/qa/qa-render.mjs",
|
|
@@ -441,11 +452,6 @@
|
|
|
441
452
|
"@radix-ui/react-toolbar": "^1.1.20",
|
|
442
453
|
"@radix-ui/react-tooltip": "^1.3.0",
|
|
443
454
|
"@radix-ui/react-visually-hidden": "^1.2.12",
|
|
444
|
-
"@tiptap/extension-color": "^3.33.1",
|
|
445
|
-
"@tiptap/extension-task-item": "^3.33.1",
|
|
446
|
-
"@tiptap/extension-task-list": "^3.33.1",
|
|
447
|
-
"@tiptap/extension-text-style": "^3.33.1",
|
|
448
|
-
"@tiptap/suggestion": "^3.33.1",
|
|
449
455
|
"classnames": "^2.5.1",
|
|
450
456
|
"framer-motion": "^14.0.0",
|
|
451
457
|
"react-colorful": "^5.8.1",
|
|
@@ -504,12 +510,30 @@
|
|
|
504
510
|
"@tiptap/extension-code-block-lowlight": {
|
|
505
511
|
"optional": true
|
|
506
512
|
},
|
|
513
|
+
"@tiptap/extension-color": {
|
|
514
|
+
"optional": true
|
|
515
|
+
},
|
|
516
|
+
"@tiptap/extension-highlight": {
|
|
517
|
+
"optional": true
|
|
518
|
+
},
|
|
507
519
|
"@tiptap/extension-image": {
|
|
508
520
|
"optional": true
|
|
509
521
|
},
|
|
510
522
|
"@tiptap/extension-table": {
|
|
511
523
|
"optional": true
|
|
512
524
|
},
|
|
525
|
+
"@tiptap/extension-task-item": {
|
|
526
|
+
"optional": true
|
|
527
|
+
},
|
|
528
|
+
"@tiptap/extension-task-list": {
|
|
529
|
+
"optional": true
|
|
530
|
+
},
|
|
531
|
+
"@tiptap/extension-text-align": {
|
|
532
|
+
"optional": true
|
|
533
|
+
},
|
|
534
|
+
"@tiptap/extension-text-style": {
|
|
535
|
+
"optional": true
|
|
536
|
+
},
|
|
513
537
|
"@tiptap/pm": {
|
|
514
538
|
"optional": true
|
|
515
539
|
},
|
|
@@ -522,6 +546,9 @@
|
|
|
522
546
|
"@tiptap/starter-kit": {
|
|
523
547
|
"optional": true
|
|
524
548
|
},
|
|
549
|
+
"@tiptap/suggestion": {
|
|
550
|
+
"optional": true
|
|
551
|
+
},
|
|
525
552
|
"cmdk": {
|
|
526
553
|
"optional": true
|
|
527
554
|
},
|
|
@@ -566,10 +593,14 @@
|
|
|
566
593
|
"@testing-library/user-event": "^14.6.1",
|
|
567
594
|
"@tiptap/core": "3.31.4",
|
|
568
595
|
"@tiptap/extension-code-block-lowlight": "^3.31.4",
|
|
596
|
+
"@tiptap/extension-color": "^3.33.1",
|
|
569
597
|
"@tiptap/extension-highlight": "^3.33.1",
|
|
570
598
|
"@tiptap/extension-image": "^3.31.4",
|
|
571
599
|
"@tiptap/extension-table": "^3.31.4",
|
|
600
|
+
"@tiptap/extension-task-item": "^3.33.1",
|
|
601
|
+
"@tiptap/extension-task-list": "^3.33.1",
|
|
572
602
|
"@tiptap/extension-text-align": "^3.33.1",
|
|
603
|
+
"@tiptap/extension-text-style": "^3.33.1",
|
|
573
604
|
"@tiptap/pm": "3.31.4",
|
|
574
605
|
"@tiptap/react": "^3.31.4",
|
|
575
606
|
"@tiptap/starter-kit": "^3.31.4",
|