@dialpad/dialtone-cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +12 -3
- package/build/index.js +494 -309
- package/package.json +15 -13
package/build/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import * as tty from 'node:tty';
|
|
3
|
-
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { existsSync, readFileSync, realpathSync } from 'node:fs';
|
|
4
4
|
import { createRequire } from 'node:module';
|
|
5
|
-
import { join } from 'node:path';
|
|
5
|
+
import { join, dirname, parse, sep } from 'node:path';
|
|
6
6
|
import require$$0$1 from 'util';
|
|
7
7
|
import require$$0 from 'os';
|
|
8
8
|
|
|
@@ -1115,7 +1115,7 @@ async function runMain(cmd, opts = {}) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
1117
|
var name = "@dialpad/dialtone-cli";
|
|
1118
|
-
var version = "1.
|
|
1118
|
+
var version = "1.2.0";
|
|
1119
1119
|
var description = "CLI for searching and exploring the Dialtone Design System";
|
|
1120
1120
|
var main$1 = "build/index.js";
|
|
1121
1121
|
var type = "module";
|
|
@@ -1128,7 +1128,8 @@ var files = [
|
|
|
1128
1128
|
var scripts = {
|
|
1129
1129
|
build: "rollup -c",
|
|
1130
1130
|
start: "node build/index.js",
|
|
1131
|
-
dev: "tsx src/index.ts"
|
|
1131
|
+
dev: "tsx src/index.ts",
|
|
1132
|
+
test: "vitest run"
|
|
1132
1133
|
};
|
|
1133
1134
|
var dependencies = {
|
|
1134
1135
|
citty: "^0.1.6",
|
|
@@ -1146,7 +1147,8 @@ var devDependencies = {
|
|
|
1146
1147
|
"@types/node": "24.3.1",
|
|
1147
1148
|
rollup: "^4.0.0",
|
|
1148
1149
|
tsx: "^4.0.0",
|
|
1149
|
-
typescript: "^5.2"
|
|
1150
|
+
typescript: "^5.2",
|
|
1151
|
+
vitest: "^4.1.0"
|
|
1150
1152
|
};
|
|
1151
1153
|
var keywords = [
|
|
1152
1154
|
"dialtone",
|
|
@@ -1179,11 +1181,15 @@ var pkg = {
|
|
|
1179
1181
|
// The core was designed for the MCP server where stderr is invisible to
|
|
1180
1182
|
// the client. In a CLI, stderr goes to the terminal, so we silence it.
|
|
1181
1183
|
const originalError = console.error;
|
|
1182
|
-
// Matches the
|
|
1184
|
+
// Matches the complete debug tags used by dialtone-query-core:
|
|
1183
1185
|
// [CLASS SEARCH DEBUG], [TOKEN SEARCH DEBUG], [COMPONENT SEARCH DEBUG],
|
|
1184
|
-
// [ICON SEARCH DEBUG], [FILTER]
|
|
1185
|
-
|
|
1186
|
+
// [ICON SEARCH DEBUG], [FILTER]
|
|
1187
|
+
// Full tags only, so a future [... ERROR] or [... WARNING] line still prints.
|
|
1188
|
+
const CORE_DEBUG_PREFIX = /^\n?\[(CLASS SEARCH DEBUG|TOKEN SEARCH DEBUG|COMPONENT SEARCH DEBUG|ICON SEARCH DEBUG|FILTER)\]/;
|
|
1186
1189
|
function silenceDebug() {
|
|
1190
|
+
// DIALTONE_DEBUG=1 keeps the debug output, e.g. to see the parsed query and per-step match counts.
|
|
1191
|
+
if (process.env.DIALTONE_DEBUG === '1')
|
|
1192
|
+
return;
|
|
1187
1193
|
console.error = (...args) => {
|
|
1188
1194
|
const first = String(args[0] ?? '');
|
|
1189
1195
|
if (CORE_DEBUG_PREFIX.test(first))
|
|
@@ -464154,7 +464160,7 @@ var componentsData = [
|
|
|
464154
464160
|
}
|
|
464155
464161
|
],
|
|
464156
464162
|
sourceFiles: [
|
|
464157
|
-
"/
|
|
464163
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Avatar/Avatar.vue"
|
|
464158
464164
|
]
|
|
464159
464165
|
},
|
|
464160
464166
|
{
|
|
@@ -464387,7 +464393,7 @@ var componentsData = [
|
|
|
464387
464393
|
}
|
|
464388
464394
|
],
|
|
464389
464395
|
sourceFiles: [
|
|
464390
|
-
"/
|
|
464396
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Badge/Badge.vue"
|
|
464391
464397
|
]
|
|
464392
464398
|
},
|
|
464393
464399
|
{
|
|
@@ -464644,7 +464650,7 @@ var componentsData = [
|
|
|
464644
464650
|
}
|
|
464645
464651
|
],
|
|
464646
464652
|
sourceFiles: [
|
|
464647
|
-
"/
|
|
464653
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Banner/Banner.vue"
|
|
464648
464654
|
]
|
|
464649
464655
|
},
|
|
464650
464656
|
{
|
|
@@ -466218,7 +466224,7 @@ var componentsData = [
|
|
|
466218
466224
|
}
|
|
466219
466225
|
],
|
|
466220
466226
|
sourceFiles: [
|
|
466221
|
-
"/
|
|
466227
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Box/Box.vue"
|
|
466222
466228
|
]
|
|
466223
466229
|
},
|
|
466224
466230
|
{
|
|
@@ -466301,7 +466307,7 @@ var componentsData = [
|
|
|
466301
466307
|
}
|
|
466302
466308
|
],
|
|
466303
466309
|
sourceFiles: [
|
|
466304
|
-
"/
|
|
466310
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Breadcrumbs/Breadcrumbs.vue"
|
|
466305
466311
|
]
|
|
466306
466312
|
},
|
|
466307
466313
|
{
|
|
@@ -466902,7 +466908,7 @@ var componentsData = [
|
|
|
466902
466908
|
}
|
|
466903
466909
|
],
|
|
466904
466910
|
sourceFiles: [
|
|
466905
|
-
"/
|
|
466911
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Button/Button.vue"
|
|
466906
466912
|
]
|
|
466907
466913
|
},
|
|
466908
466914
|
{
|
|
@@ -466938,7 +466944,7 @@ var componentsData = [
|
|
|
466938
466944
|
}
|
|
466939
466945
|
],
|
|
466940
466946
|
sourceFiles: [
|
|
466941
|
-
"/
|
|
466947
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ButtonGroup/ButtonGroup.vue"
|
|
466942
466948
|
]
|
|
466943
466949
|
},
|
|
466944
466950
|
{
|
|
@@ -467014,7 +467020,7 @@ var componentsData = [
|
|
|
467014
467020
|
}
|
|
467015
467021
|
],
|
|
467016
467022
|
sourceFiles: [
|
|
467017
|
-
"/
|
|
467023
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Card/Card.vue"
|
|
467018
467024
|
]
|
|
467019
467025
|
},
|
|
467020
467026
|
{
|
|
@@ -467395,8 +467401,8 @@ var componentsData = [
|
|
|
467395
467401
|
}
|
|
467396
467402
|
],
|
|
467397
467403
|
sourceFiles: [
|
|
467398
|
-
"/
|
|
467399
|
-
"/
|
|
467404
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input.js",
|
|
467405
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Checkbox/Checkbox.vue"
|
|
467400
467406
|
]
|
|
467401
467407
|
},
|
|
467402
467408
|
{
|
|
@@ -467657,9 +467663,9 @@ var componentsData = [
|
|
|
467657
467663
|
}
|
|
467658
467664
|
],
|
|
467659
467665
|
sourceFiles: [
|
|
467660
|
-
"/
|
|
467661
|
-
"/
|
|
467662
|
-
"/
|
|
467666
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input_group.js",
|
|
467667
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/CheckboxGroup/CheckboxGroup.vue",
|
|
467668
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/InputGroup/InputGroup.vue"
|
|
467663
467669
|
]
|
|
467664
467670
|
},
|
|
467665
467671
|
{
|
|
@@ -467859,7 +467865,7 @@ var componentsData = [
|
|
|
467859
467865
|
}
|
|
467860
467866
|
],
|
|
467861
467867
|
sourceFiles: [
|
|
467862
|
-
"/
|
|
467868
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Chip/Chip.vue"
|
|
467863
467869
|
]
|
|
467864
467870
|
},
|
|
467865
467871
|
{
|
|
@@ -467909,7 +467915,7 @@ var componentsData = [
|
|
|
467909
467915
|
}
|
|
467910
467916
|
],
|
|
467911
467917
|
sourceFiles: [
|
|
467912
|
-
"/
|
|
467918
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Codeblock/Codeblock.vue"
|
|
467913
467919
|
]
|
|
467914
467920
|
},
|
|
467915
467921
|
{
|
|
@@ -468102,7 +468108,7 @@ var componentsData = [
|
|
|
468102
468108
|
}
|
|
468103
468109
|
],
|
|
468104
468110
|
sourceFiles: [
|
|
468105
|
-
"/
|
|
468111
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Collapsible/Collapsible.vue"
|
|
468106
468112
|
]
|
|
468107
468113
|
},
|
|
468108
468114
|
{
|
|
@@ -468153,7 +468159,7 @@ var componentsData = [
|
|
|
468153
468159
|
}
|
|
468154
468160
|
],
|
|
468155
468161
|
sourceFiles: [
|
|
468156
|
-
"/
|
|
468162
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Collapsible/CollapsibleLazyShow.vue"
|
|
468157
468163
|
]
|
|
468158
468164
|
},
|
|
468159
468165
|
{
|
|
@@ -468435,9 +468441,9 @@ var componentsData = [
|
|
|
468435
468441
|
}
|
|
468436
468442
|
],
|
|
468437
468443
|
sourceFiles: [
|
|
468438
|
-
"/
|
|
468439
|
-
"/
|
|
468440
|
-
"/
|
|
468444
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/dom.js",
|
|
468445
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/keyboard_list_navigation.js",
|
|
468446
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Combobox/Combobox.vue"
|
|
468441
468447
|
]
|
|
468442
468448
|
},
|
|
468443
468449
|
{
|
|
@@ -468473,7 +468479,7 @@ var componentsData = [
|
|
|
468473
468479
|
}
|
|
468474
468480
|
],
|
|
468475
468481
|
sourceFiles: [
|
|
468476
|
-
"/
|
|
468482
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Combobox/ComboboxEmptyList.vue"
|
|
468477
468483
|
]
|
|
468478
468484
|
},
|
|
468479
468485
|
{
|
|
@@ -468483,7 +468489,7 @@ var componentsData = [
|
|
|
468483
468489
|
tags: {
|
|
468484
468490
|
},
|
|
468485
468491
|
sourceFiles: [
|
|
468486
|
-
"/
|
|
468492
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Combobox/ComboboxLoadingList.vue"
|
|
468487
468493
|
]
|
|
468488
468494
|
},
|
|
468489
468495
|
{
|
|
@@ -468934,7 +468940,7 @@ var componentsData = [
|
|
|
468934
468940
|
}
|
|
468935
468941
|
],
|
|
468936
468942
|
sourceFiles: [
|
|
468937
|
-
"/
|
|
468943
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ComboboxMultiSelect/ComboboxMultiSelect.vue"
|
|
468938
468944
|
]
|
|
468939
468945
|
},
|
|
468940
468946
|
{
|
|
@@ -469332,7 +469338,7 @@ var componentsData = [
|
|
|
469332
469338
|
}
|
|
469333
469339
|
],
|
|
469334
469340
|
sourceFiles: [
|
|
469335
|
-
"/
|
|
469341
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ComboboxWithPopover/ComboboxWithPopover.vue"
|
|
469336
469342
|
]
|
|
469337
469343
|
},
|
|
469338
469344
|
{
|
|
@@ -469445,7 +469451,7 @@ var componentsData = [
|
|
|
469445
469451
|
}
|
|
469446
469452
|
],
|
|
469447
469453
|
sourceFiles: [
|
|
469448
|
-
"/
|
|
469454
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Datepicker/Datepicker.vue"
|
|
469449
469455
|
]
|
|
469450
469456
|
},
|
|
469451
469457
|
{
|
|
@@ -469546,7 +469552,7 @@ var componentsData = [
|
|
|
469546
469552
|
}
|
|
469547
469553
|
],
|
|
469548
469554
|
sourceFiles: [
|
|
469549
|
-
"/
|
|
469555
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/DescriptionList/DescriptionList.vue"
|
|
469550
469556
|
]
|
|
469551
469557
|
},
|
|
469552
469558
|
{
|
|
@@ -470010,9 +470016,9 @@ var componentsData = [
|
|
|
470010
470016
|
}
|
|
470011
470017
|
],
|
|
470012
470018
|
sourceFiles: [
|
|
470013
|
-
"/
|
|
470014
|
-
"/
|
|
470015
|
-
"/
|
|
470019
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/dom.js",
|
|
470020
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/keyboard_list_navigation.js",
|
|
470021
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Dropdown/Dropdown.vue"
|
|
470016
470022
|
]
|
|
470017
470023
|
},
|
|
470018
470024
|
{
|
|
@@ -470052,7 +470058,7 @@ var componentsData = [
|
|
|
470052
470058
|
}
|
|
470053
470059
|
],
|
|
470054
470060
|
sourceFiles: [
|
|
470055
|
-
"/
|
|
470061
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Dropdown/DropdownList.vue"
|
|
470056
470062
|
]
|
|
470057
470063
|
},
|
|
470058
470064
|
{
|
|
@@ -470062,7 +470068,7 @@ var componentsData = [
|
|
|
470062
470068
|
tags: {
|
|
470063
470069
|
},
|
|
470064
470070
|
sourceFiles: [
|
|
470065
|
-
"/
|
|
470071
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Dropdown/DropdownSeparator.vue"
|
|
470066
470072
|
]
|
|
470067
470073
|
},
|
|
470068
470074
|
{
|
|
@@ -470150,7 +470156,7 @@ var componentsData = [
|
|
|
470150
470156
|
}
|
|
470151
470157
|
],
|
|
470152
470158
|
sourceFiles: [
|
|
470153
|
-
"/
|
|
470159
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Emoji/Emoji.vue"
|
|
470154
470160
|
]
|
|
470155
470161
|
},
|
|
470156
470162
|
{
|
|
@@ -470411,7 +470417,7 @@ var componentsData = [
|
|
|
470411
470417
|
}
|
|
470412
470418
|
],
|
|
470413
470419
|
sourceFiles: [
|
|
470414
|
-
"/
|
|
470420
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/EmojiPicker/EmojiPicker.vue"
|
|
470415
470421
|
]
|
|
470416
470422
|
},
|
|
470417
470423
|
{
|
|
@@ -470468,7 +470474,7 @@ var componentsData = [
|
|
|
470468
470474
|
}
|
|
470469
470475
|
],
|
|
470470
470476
|
sourceFiles: [
|
|
470471
|
-
"/
|
|
470477
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/EmojiTextWrapper/EmojiTextWrapper.vue"
|
|
470472
470478
|
]
|
|
470473
470479
|
},
|
|
470474
470480
|
{
|
|
@@ -470591,7 +470597,7 @@ var componentsData = [
|
|
|
470591
470597
|
}
|
|
470592
470598
|
],
|
|
470593
470599
|
sourceFiles: [
|
|
470594
|
-
"/
|
|
470600
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/EmptyState/EmptyState.vue"
|
|
470595
470601
|
]
|
|
470596
470602
|
},
|
|
470597
470603
|
{
|
|
@@ -471042,7 +471048,7 @@ var componentsData = [
|
|
|
471042
471048
|
}
|
|
471043
471049
|
],
|
|
471044
471050
|
sourceFiles: [
|
|
471045
|
-
"/
|
|
471051
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/FilterPill/FilterPill.vue"
|
|
471046
471052
|
]
|
|
471047
471053
|
},
|
|
471048
471054
|
{
|
|
@@ -471375,7 +471381,7 @@ var componentsData = [
|
|
|
471375
471381
|
}
|
|
471376
471382
|
],
|
|
471377
471383
|
sourceFiles: [
|
|
471378
|
-
"/
|
|
471384
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Hovercard/Hovercard.vue"
|
|
471379
471385
|
]
|
|
471380
471386
|
},
|
|
471381
471387
|
{
|
|
@@ -471435,7 +471441,7 @@ var componentsData = [
|
|
|
471435
471441
|
}
|
|
471436
471442
|
],
|
|
471437
471443
|
sourceFiles: [
|
|
471438
|
-
"/
|
|
471444
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Icon/Icon.vue"
|
|
471439
471445
|
],
|
|
471440
471446
|
metadata: {
|
|
471441
471447
|
deprecated: true,
|
|
@@ -471462,7 +471468,7 @@ var componentsData = [
|
|
|
471462
471468
|
}
|
|
471463
471469
|
],
|
|
471464
471470
|
sourceFiles: [
|
|
471465
|
-
"/
|
|
471471
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Illustration/Illustration.vue"
|
|
471466
471472
|
]
|
|
471467
471473
|
},
|
|
471468
471474
|
{
|
|
@@ -471577,8 +471583,8 @@ var componentsData = [
|
|
|
471577
471583
|
}
|
|
471578
471584
|
],
|
|
471579
471585
|
sourceFiles: [
|
|
471580
|
-
"/
|
|
471581
|
-
"/
|
|
471586
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/mode.js",
|
|
471587
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ImageViewer/ImageViewer.vue"
|
|
471582
471588
|
]
|
|
471583
471589
|
},
|
|
471584
471590
|
{
|
|
@@ -472081,8 +472087,8 @@ var componentsData = [
|
|
|
472081
472087
|
}
|
|
472082
472088
|
],
|
|
472083
472089
|
sourceFiles: [
|
|
472084
|
-
"/
|
|
472085
|
-
"/
|
|
472090
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input.js",
|
|
472091
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Input/Input.vue"
|
|
472086
472092
|
]
|
|
472087
472093
|
},
|
|
472088
472094
|
{
|
|
@@ -472332,8 +472338,8 @@ var componentsData = [
|
|
|
472332
472338
|
}
|
|
472333
472339
|
],
|
|
472334
472340
|
sourceFiles: [
|
|
472335
|
-
"/
|
|
472336
|
-
"/
|
|
472341
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input_group.js",
|
|
472342
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/InputGroup/InputGroup.vue"
|
|
472337
472343
|
]
|
|
472338
472344
|
},
|
|
472339
472345
|
{
|
|
@@ -472545,7 +472551,7 @@ var componentsData = [
|
|
|
472545
472551
|
}
|
|
472546
472552
|
],
|
|
472547
472553
|
sourceFiles: [
|
|
472548
|
-
"/
|
|
472554
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ItemLayout/ItemLayout.vue"
|
|
472549
472555
|
]
|
|
472550
472556
|
},
|
|
472551
472557
|
{
|
|
@@ -472608,7 +472614,7 @@ var componentsData = [
|
|
|
472608
472614
|
}
|
|
472609
472615
|
],
|
|
472610
472616
|
sourceFiles: [
|
|
472611
|
-
"/
|
|
472617
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/KeyboardShortcut/KeyboardShortcut.vue"
|
|
472612
472618
|
]
|
|
472613
472619
|
},
|
|
472614
472620
|
{
|
|
@@ -472648,7 +472654,7 @@ var componentsData = [
|
|
|
472648
472654
|
}
|
|
472649
472655
|
],
|
|
472650
472656
|
sourceFiles: [
|
|
472651
|
-
"/
|
|
472657
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/KitchenSink/KitchenSinkView.vue"
|
|
472652
472658
|
]
|
|
472653
472659
|
},
|
|
472654
472660
|
{
|
|
@@ -472717,7 +472723,7 @@ var componentsData = [
|
|
|
472717
472723
|
}
|
|
472718
472724
|
],
|
|
472719
472725
|
sourceFiles: [
|
|
472720
|
-
"/
|
|
472726
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/LazyShow/LazyShow.vue"
|
|
472721
472727
|
]
|
|
472722
472728
|
},
|
|
472723
472729
|
{
|
|
@@ -472879,7 +472885,7 @@ var componentsData = [
|
|
|
472879
472885
|
}
|
|
472880
472886
|
],
|
|
472881
472887
|
sourceFiles: [
|
|
472882
|
-
"/
|
|
472888
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Link/Link.vue"
|
|
472883
472889
|
]
|
|
472884
472890
|
},
|
|
472885
472891
|
{
|
|
@@ -473049,7 +473055,7 @@ var componentsData = [
|
|
|
473049
473055
|
}
|
|
473050
473056
|
],
|
|
473051
473057
|
sourceFiles: [
|
|
473052
|
-
"/
|
|
473058
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ListItem/ListItem.vue"
|
|
473053
473059
|
]
|
|
473054
473060
|
},
|
|
473055
473061
|
{
|
|
@@ -473115,7 +473121,7 @@ var componentsData = [
|
|
|
473115
473121
|
}
|
|
473116
473122
|
],
|
|
473117
473123
|
sourceFiles: [
|
|
473118
|
-
"/
|
|
473124
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ListItemGroup/ListItemGroup.vue"
|
|
473119
473125
|
]
|
|
473120
473126
|
},
|
|
473121
473127
|
{
|
|
@@ -473161,7 +473167,7 @@ var componentsData = [
|
|
|
473161
473167
|
}
|
|
473162
473168
|
],
|
|
473163
473169
|
sourceFiles: [
|
|
473164
|
-
"/
|
|
473170
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Loader/Loader.vue"
|
|
473165
473171
|
]
|
|
473166
473172
|
},
|
|
473167
473173
|
{
|
|
@@ -473543,8 +473549,8 @@ var componentsData = [
|
|
|
473543
473549
|
}
|
|
473544
473550
|
],
|
|
473545
473551
|
sourceFiles: [
|
|
473546
|
-
"/
|
|
473547
|
-
"/
|
|
473552
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/mode.js",
|
|
473553
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Modal/Modal.vue"
|
|
473548
473554
|
]
|
|
473549
473555
|
},
|
|
473550
473556
|
{
|
|
@@ -473619,7 +473625,7 @@ var componentsData = [
|
|
|
473619
473625
|
}
|
|
473620
473626
|
],
|
|
473621
473627
|
sourceFiles: [
|
|
473622
|
-
"/
|
|
473628
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ModeIsland/ModeIsland.vue"
|
|
473623
473629
|
]
|
|
473624
473630
|
},
|
|
473625
473631
|
{
|
|
@@ -473859,7 +473865,7 @@ var componentsData = [
|
|
|
473859
473865
|
}
|
|
473860
473866
|
],
|
|
473861
473867
|
sourceFiles: [
|
|
473862
|
-
"/
|
|
473868
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/MotionText/MotionText.vue"
|
|
473863
473869
|
]
|
|
473864
473870
|
},
|
|
473865
473871
|
{
|
|
@@ -474110,7 +474116,7 @@ var componentsData = [
|
|
|
474110
474116
|
}
|
|
474111
474117
|
],
|
|
474112
474118
|
sourceFiles: [
|
|
474113
|
-
"/
|
|
474119
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Notice/Notice.vue"
|
|
474114
474120
|
]
|
|
474115
474121
|
},
|
|
474116
474122
|
{
|
|
@@ -474179,7 +474185,7 @@ var componentsData = [
|
|
|
474179
474185
|
}
|
|
474180
474186
|
],
|
|
474181
474187
|
sourceFiles: [
|
|
474182
|
-
"/
|
|
474188
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Notice/NoticeAction.vue"
|
|
474183
474189
|
]
|
|
474184
474190
|
},
|
|
474185
474191
|
{
|
|
@@ -474267,7 +474273,7 @@ var componentsData = [
|
|
|
474267
474273
|
}
|
|
474268
474274
|
],
|
|
474269
474275
|
sourceFiles: [
|
|
474270
|
-
"/
|
|
474276
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Notice/NoticeContent.vue"
|
|
474271
474277
|
]
|
|
474272
474278
|
},
|
|
474273
474279
|
{
|
|
@@ -474316,7 +474322,7 @@ var componentsData = [
|
|
|
474316
474322
|
}
|
|
474317
474323
|
],
|
|
474318
474324
|
sourceFiles: [
|
|
474319
|
-
"/
|
|
474325
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Notice/NoticeIcon.vue"
|
|
474320
474326
|
]
|
|
474321
474327
|
},
|
|
474322
474328
|
{
|
|
@@ -474394,7 +474400,7 @@ var componentsData = [
|
|
|
474394
474400
|
}
|
|
474395
474401
|
],
|
|
474396
474402
|
sourceFiles: [
|
|
474397
|
-
"/
|
|
474403
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Pagination/Pagination.vue"
|
|
474398
474404
|
]
|
|
474399
474405
|
},
|
|
474400
474406
|
{
|
|
@@ -475053,9 +475059,9 @@ var componentsData = [
|
|
|
475053
475059
|
}
|
|
475054
475060
|
],
|
|
475055
475061
|
sourceFiles: [
|
|
475056
|
-
"/
|
|
475057
|
-
"/
|
|
475058
|
-
"/
|
|
475062
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/modal.js",
|
|
475063
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/mode.js",
|
|
475064
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Popover/Popover.vue"
|
|
475059
475065
|
]
|
|
475060
475066
|
},
|
|
475061
475067
|
{
|
|
@@ -475133,7 +475139,7 @@ var componentsData = [
|
|
|
475133
475139
|
}
|
|
475134
475140
|
],
|
|
475135
475141
|
sourceFiles: [
|
|
475136
|
-
"/
|
|
475142
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Popover/PopoverHeaderFooter.vue"
|
|
475137
475143
|
]
|
|
475138
475144
|
},
|
|
475139
475145
|
{
|
|
@@ -475193,7 +475199,7 @@ var componentsData = [
|
|
|
475193
475199
|
}
|
|
475194
475200
|
],
|
|
475195
475201
|
sourceFiles: [
|
|
475196
|
-
"/
|
|
475202
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Presence/Presence.vue"
|
|
475197
475203
|
]
|
|
475198
475204
|
},
|
|
475199
475205
|
{
|
|
@@ -475269,7 +475275,7 @@ var componentsData = [
|
|
|
475269
475275
|
}
|
|
475270
475276
|
],
|
|
475271
475277
|
sourceFiles: [
|
|
475272
|
-
"/
|
|
475278
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ProgressCircle/ProgressCircle.vue"
|
|
475273
475279
|
]
|
|
475274
475280
|
},
|
|
475275
475281
|
{
|
|
@@ -475324,7 +475330,7 @@ var componentsData = [
|
|
|
475324
475330
|
}
|
|
475325
475331
|
],
|
|
475326
475332
|
sourceFiles: [
|
|
475327
|
-
"/
|
|
475333
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Prose/Prose.vue"
|
|
475328
475334
|
]
|
|
475329
475335
|
},
|
|
475330
475336
|
{
|
|
@@ -475732,8 +475738,8 @@ var componentsData = [
|
|
|
475732
475738
|
}
|
|
475733
475739
|
],
|
|
475734
475740
|
sourceFiles: [
|
|
475735
|
-
"/
|
|
475736
|
-
"/
|
|
475741
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input.js",
|
|
475742
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Radio/Radio.vue"
|
|
475737
475743
|
]
|
|
475738
475744
|
},
|
|
475739
475745
|
{
|
|
@@ -475994,9 +476000,9 @@ var componentsData = [
|
|
|
475994
476000
|
}
|
|
475995
476001
|
],
|
|
475996
476002
|
sourceFiles: [
|
|
475997
|
-
"/
|
|
475998
|
-
"/
|
|
475999
|
-
"/
|
|
476003
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input_group.js",
|
|
476004
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/InputGroup/InputGroup.vue",
|
|
476005
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RadioGroup/RadioGroup.vue"
|
|
476000
476006
|
]
|
|
476001
476007
|
},
|
|
476002
476008
|
{
|
|
@@ -476223,7 +476229,7 @@ var componentsData = [
|
|
|
476223
476229
|
}
|
|
476224
476230
|
],
|
|
476225
476231
|
sourceFiles: [
|
|
476226
|
-
"/
|
|
476232
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Resizable/Resizable.vue"
|
|
476227
476233
|
]
|
|
476228
476234
|
},
|
|
476229
476235
|
{
|
|
@@ -476320,7 +476326,7 @@ var componentsData = [
|
|
|
476320
476326
|
}
|
|
476321
476327
|
],
|
|
476322
476328
|
sourceFiles: [
|
|
476323
|
-
"/
|
|
476329
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Resizable/ResizableHandle.vue"
|
|
476324
476330
|
]
|
|
476325
476331
|
},
|
|
476326
476332
|
{
|
|
@@ -476848,7 +476854,7 @@ var componentsData = [
|
|
|
476848
476854
|
}
|
|
476849
476855
|
],
|
|
476850
476856
|
sourceFiles: [
|
|
476851
|
-
"/
|
|
476857
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Resizable/ResizablePanel.vue"
|
|
476852
476858
|
]
|
|
476853
476859
|
},
|
|
476854
476860
|
{
|
|
@@ -476867,7 +476873,7 @@ var componentsData = [
|
|
|
476867
476873
|
}
|
|
476868
476874
|
],
|
|
476869
476875
|
sourceFiles: [
|
|
476870
|
-
"/
|
|
476876
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue"
|
|
476871
476877
|
]
|
|
476872
476878
|
},
|
|
476873
476879
|
{
|
|
@@ -476877,7 +476883,7 @@ var componentsData = [
|
|
|
476877
476883
|
tags: {
|
|
476878
476884
|
},
|
|
476879
476885
|
sourceFiles: [
|
|
476880
|
-
"/
|
|
476886
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/Emoji/EmojiComponent.vue"
|
|
476881
476887
|
]
|
|
476882
476888
|
},
|
|
476883
476889
|
{
|
|
@@ -476896,7 +476902,7 @@ var componentsData = [
|
|
|
476896
476902
|
}
|
|
476897
476903
|
],
|
|
476898
476904
|
sourceFiles: [
|
|
476899
|
-
"/
|
|
476905
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/Emoji/EmojiSuggestion.vue"
|
|
476900
476906
|
]
|
|
476901
476907
|
},
|
|
476902
476908
|
{
|
|
@@ -476915,7 +476921,7 @@ var componentsData = [
|
|
|
476915
476921
|
}
|
|
476916
476922
|
],
|
|
476917
476923
|
sourceFiles: [
|
|
476918
|
-
"/
|
|
476924
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue"
|
|
476919
476925
|
]
|
|
476920
476926
|
},
|
|
476921
476927
|
{
|
|
@@ -476935,7 +476941,7 @@ var componentsData = [
|
|
|
476935
476941
|
}
|
|
476936
476942
|
],
|
|
476937
476943
|
sourceFiles: [
|
|
476938
|
-
"/
|
|
476944
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/SlashCommand/SlashCommandComponent.vue"
|
|
476939
476945
|
]
|
|
476940
476946
|
},
|
|
476941
476947
|
{
|
|
@@ -476954,7 +476960,7 @@ var componentsData = [
|
|
|
476954
476960
|
}
|
|
476955
476961
|
],
|
|
476956
476962
|
sourceFiles: [
|
|
476957
|
-
"/
|
|
476963
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue"
|
|
476958
476964
|
]
|
|
476959
476965
|
},
|
|
476960
476966
|
{
|
|
@@ -476994,7 +477000,7 @@ var componentsData = [
|
|
|
476994
477000
|
}
|
|
476995
477001
|
],
|
|
476996
477002
|
sourceFiles: [
|
|
476997
|
-
"/
|
|
477003
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue"
|
|
476998
477004
|
]
|
|
476999
477005
|
},
|
|
477000
477006
|
{
|
|
@@ -477004,7 +477010,7 @@ var componentsData = [
|
|
|
477004
477010
|
tags: {
|
|
477005
477011
|
},
|
|
477006
477012
|
sourceFiles: [
|
|
477007
|
-
"/
|
|
477013
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/Extensions/Variable/VariableComponent.vue"
|
|
477008
477014
|
]
|
|
477009
477015
|
},
|
|
477010
477016
|
{
|
|
@@ -477646,7 +477652,7 @@ var componentsData = [
|
|
|
477646
477652
|
}
|
|
477647
477653
|
],
|
|
477648
477654
|
sourceFiles: [
|
|
477649
|
-
"/
|
|
477655
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RichTextEditor/RichTextEditor.vue"
|
|
477650
477656
|
]
|
|
477651
477657
|
},
|
|
477652
477658
|
{
|
|
@@ -477860,7 +477866,7 @@ var componentsData = [
|
|
|
477860
477866
|
}
|
|
477861
477867
|
],
|
|
477862
477868
|
sourceFiles: [
|
|
477863
|
-
"/
|
|
477869
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/RootLayout/RootLayout.vue"
|
|
477864
477870
|
]
|
|
477865
477871
|
},
|
|
477866
477872
|
{
|
|
@@ -478100,7 +478106,7 @@ var componentsData = [
|
|
|
478100
478106
|
}
|
|
478101
478107
|
],
|
|
478102
478108
|
sourceFiles: [
|
|
478103
|
-
"/
|
|
478109
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Scroller/Scroller.vue"
|
|
478104
478110
|
]
|
|
478105
478111
|
},
|
|
478106
478112
|
{
|
|
@@ -478310,7 +478316,7 @@ var componentsData = [
|
|
|
478310
478316
|
}
|
|
478311
478317
|
],
|
|
478312
478318
|
sourceFiles: [
|
|
478313
|
-
"/
|
|
478319
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/SegmentedControl/SegmentedControl.vue"
|
|
478314
478320
|
]
|
|
478315
478321
|
},
|
|
478316
478322
|
{
|
|
@@ -478420,7 +478426,7 @@ var componentsData = [
|
|
|
478420
478426
|
}
|
|
478421
478427
|
],
|
|
478422
478428
|
sourceFiles: [
|
|
478423
|
-
"/
|
|
478429
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/SegmentedControl/SegmentedControlItem.vue"
|
|
478424
478430
|
]
|
|
478425
478431
|
},
|
|
478426
478432
|
{
|
|
@@ -478814,8 +478820,8 @@ var componentsData = [
|
|
|
478814
478820
|
}
|
|
478815
478821
|
],
|
|
478816
478822
|
sourceFiles: [
|
|
478817
|
-
"/
|
|
478818
|
-
"/
|
|
478823
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/input.js",
|
|
478824
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/SelectMenu/SelectMenu.vue"
|
|
478819
478825
|
]
|
|
478820
478826
|
},
|
|
478821
478827
|
{
|
|
@@ -478927,7 +478933,7 @@ var componentsData = [
|
|
|
478927
478933
|
}
|
|
478928
478934
|
],
|
|
478929
478935
|
sourceFiles: [
|
|
478930
|
-
"/
|
|
478936
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Skeleton/Skeleton.vue"
|
|
478931
478937
|
]
|
|
478932
478938
|
},
|
|
478933
478939
|
{
|
|
@@ -479048,7 +479054,7 @@ var componentsData = [
|
|
|
479048
479054
|
}
|
|
479049
479055
|
],
|
|
479050
479056
|
sourceFiles: [
|
|
479051
|
-
"/
|
|
479057
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Skeleton/SkeletonListItem.vue"
|
|
479052
479058
|
]
|
|
479053
479059
|
},
|
|
479054
479060
|
{
|
|
@@ -479182,7 +479188,7 @@ var componentsData = [
|
|
|
479182
479188
|
}
|
|
479183
479189
|
],
|
|
479184
479190
|
sourceFiles: [
|
|
479185
|
-
"/
|
|
479191
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Skeleton/SkeletonParagraph.vue"
|
|
479186
479192
|
]
|
|
479187
479193
|
},
|
|
479188
479194
|
{
|
|
@@ -479281,8 +479287,8 @@ var componentsData = [
|
|
|
479281
479287
|
}
|
|
479282
479288
|
],
|
|
479283
479289
|
sourceFiles: [
|
|
479284
|
-
"/
|
|
479285
|
-
"/
|
|
479290
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/skeleton.js",
|
|
479291
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Skeleton/SkeletonShape.vue"
|
|
479286
479292
|
]
|
|
479287
479293
|
},
|
|
479288
479294
|
{
|
|
@@ -479393,8 +479399,8 @@ var componentsData = [
|
|
|
479393
479399
|
}
|
|
479394
479400
|
],
|
|
479395
479401
|
sourceFiles: [
|
|
479396
|
-
"/
|
|
479397
|
-
"/
|
|
479402
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/skeleton.js",
|
|
479403
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Skeleton/SkeletonText.vue"
|
|
479398
479404
|
]
|
|
479399
479405
|
},
|
|
479400
479406
|
{
|
|
@@ -480230,7 +480236,7 @@ var componentsData = [
|
|
|
480230
480236
|
}
|
|
480231
480237
|
],
|
|
480232
480238
|
sourceFiles: [
|
|
480233
|
-
"/
|
|
480239
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/SplitButton/SplitButton.vue"
|
|
480234
480240
|
]
|
|
480235
480241
|
},
|
|
480236
480242
|
{
|
|
@@ -480342,7 +480348,7 @@ var componentsData = [
|
|
|
480342
480348
|
}
|
|
480343
480349
|
],
|
|
480344
480350
|
sourceFiles: [
|
|
480345
|
-
"/
|
|
480351
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/SplitButton/SplitButtonEnd.vue"
|
|
480346
480352
|
]
|
|
480347
480353
|
},
|
|
480348
480354
|
{
|
|
@@ -480593,7 +480599,7 @@ var componentsData = [
|
|
|
480593
480599
|
}
|
|
480594
480600
|
],
|
|
480595
480601
|
sourceFiles: [
|
|
480596
|
-
"/
|
|
480602
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/SplitButton/SplitButtonStart.vue"
|
|
480597
480603
|
]
|
|
480598
480604
|
},
|
|
480599
480605
|
{
|
|
@@ -480719,7 +480725,7 @@ var componentsData = [
|
|
|
480719
480725
|
}
|
|
480720
480726
|
],
|
|
480721
480727
|
sourceFiles: [
|
|
480722
|
-
"/
|
|
480728
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Stack/Stack.vue"
|
|
480723
480729
|
]
|
|
480724
480730
|
},
|
|
480725
480731
|
{
|
|
@@ -480904,7 +480910,7 @@ var componentsData = [
|
|
|
480904
480910
|
}
|
|
480905
480911
|
],
|
|
480906
480912
|
sourceFiles: [
|
|
480907
|
-
"/
|
|
480913
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Tab/Tab.vue"
|
|
480908
480914
|
]
|
|
480909
480915
|
},
|
|
480910
480916
|
{
|
|
@@ -481215,7 +481221,7 @@ var componentsData = [
|
|
|
481215
481221
|
}
|
|
481216
481222
|
],
|
|
481217
481223
|
sourceFiles: [
|
|
481218
|
-
"/
|
|
481224
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Tab/TabGroup.vue"
|
|
481219
481225
|
]
|
|
481220
481226
|
},
|
|
481221
481227
|
{
|
|
@@ -481283,8 +481289,8 @@ var componentsData = [
|
|
|
481283
481289
|
}
|
|
481284
481290
|
],
|
|
481285
481291
|
sourceFiles: [
|
|
481286
|
-
"/
|
|
481287
|
-
"/
|
|
481292
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/modal.js",
|
|
481293
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Tab/TabPanel.vue"
|
|
481288
481294
|
]
|
|
481289
481295
|
},
|
|
481290
481296
|
{
|
|
@@ -481616,7 +481622,7 @@ var componentsData = [
|
|
|
481616
481622
|
}
|
|
481617
481623
|
],
|
|
481618
481624
|
sourceFiles: [
|
|
481619
|
-
"/
|
|
481625
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Text/Text.vue"
|
|
481620
481626
|
]
|
|
481621
481627
|
},
|
|
481622
481628
|
{
|
|
@@ -481757,7 +481763,7 @@ var componentsData = [
|
|
|
481757
481763
|
}
|
|
481758
481764
|
],
|
|
481759
481765
|
sourceFiles: [
|
|
481760
|
-
"/
|
|
481766
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/TextList/TextList.vue"
|
|
481761
481767
|
]
|
|
481762
481768
|
},
|
|
481763
481769
|
{
|
|
@@ -481843,7 +481849,7 @@ var componentsData = [
|
|
|
481843
481849
|
}
|
|
481844
481850
|
],
|
|
481845
481851
|
sourceFiles: [
|
|
481846
|
-
"/
|
|
481852
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/TextList/TextListItem.vue"
|
|
481847
481853
|
]
|
|
481848
481854
|
},
|
|
481849
481855
|
{
|
|
@@ -482131,7 +482137,7 @@ var componentsData = [
|
|
|
482131
482137
|
}
|
|
482132
482138
|
],
|
|
482133
482139
|
sourceFiles: [
|
|
482134
|
-
"/
|
|
482140
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Toast/Toast.vue"
|
|
482135
482141
|
]
|
|
482136
482142
|
},
|
|
482137
482143
|
{
|
|
@@ -482302,7 +482308,7 @@ var componentsData = [
|
|
|
482302
482308
|
}
|
|
482303
482309
|
],
|
|
482304
482310
|
sourceFiles: [
|
|
482305
|
-
"/
|
|
482311
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Toggle/Toggle.vue"
|
|
482306
482312
|
]
|
|
482307
482313
|
},
|
|
482308
482314
|
{
|
|
@@ -482391,6 +482397,23 @@ var componentsData = [
|
|
|
482391
482397
|
value: "[0, 12]"
|
|
482392
482398
|
}
|
|
482393
482399
|
},
|
|
482400
|
+
{
|
|
482401
|
+
name: "showArrow",
|
|
482402
|
+
description: "Whether to show the arrow between the tooltip and its anchor.",
|
|
482403
|
+
tags: {
|
|
482404
|
+
},
|
|
482405
|
+
values: [
|
|
482406
|
+
"true",
|
|
482407
|
+
"false"
|
|
482408
|
+
],
|
|
482409
|
+
type: {
|
|
482410
|
+
name: "boolean"
|
|
482411
|
+
},
|
|
482412
|
+
defaultValue: {
|
|
482413
|
+
func: false,
|
|
482414
|
+
value: "true"
|
|
482415
|
+
}
|
|
482416
|
+
},
|
|
482394
482417
|
{
|
|
482395
482418
|
name: "placement",
|
|
482396
482419
|
description: "The direction the popover displays relative to the anchor. See\n<a\n class=\"d-link\"\n href=\"https://atomiks.github.io/tippyjs/v6/all-props/#placement\"\n target=\"_blank\"\n>\n Tippy.js docs\n</a>",
|
|
@@ -482620,8 +482643,8 @@ var componentsData = [
|
|
|
482620
482643
|
}
|
|
482621
482644
|
],
|
|
482622
482645
|
sourceFiles: [
|
|
482623
|
-
"/
|
|
482624
|
-
"/
|
|
482646
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/common/mixins/mode.js",
|
|
482647
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/Tooltip/Tooltip.vue"
|
|
482625
482648
|
]
|
|
482626
482649
|
},
|
|
482627
482650
|
{
|
|
@@ -482702,7 +482725,7 @@ var componentsData = [
|
|
|
482702
482725
|
}
|
|
482703
482726
|
],
|
|
482704
482727
|
sourceFiles: [
|
|
482705
|
-
"/
|
|
482728
|
+
"/home/runner/work/dialtone/dialtone/packages/dialtone-vue/components/ValidationMessages/ValidationMessages.vue"
|
|
482706
482729
|
]
|
|
482707
482730
|
}
|
|
482708
482731
|
];
|
|
@@ -498338,7 +498361,7 @@ var documentationData = [
|
|
|
498338
498361
|
"Tooltip as a Directive",
|
|
498339
498362
|
"Usage"
|
|
498340
498363
|
],
|
|
498341
|
-
content: "Default\n\nDefault tooltip directive uses top as default placement\n\n \n\nWith Placement\n\nIt's possible to change the tooltip default placement with directive arguments, possible values: bottom, bottom-start, bottom-end, right, right-start, right-end, left, left-start, left-end, top, top-start, top-end.\n\n \n\nWith Object Syntax\n\nIt's possible to change any property of the tooltip with object syntax.\n\n \n\nContent Mode\n\nTooltip content renders outside the DOM tree via Tippy.js. Use the contentMode modifier or object property to apply a color mode to the tooltip content. See Positioned Components for details.",
|
|
498364
|
+
content: "Default\n\nDefault tooltip directive uses top as default placement\n\n \n\nWith Placement\n\nIt's possible to change the tooltip default placement with directive arguments, possible values: bottom, bottom-start, bottom-end, right, right-start, right-end, left, left-start, left-end, top, top-start, top-end.\n\n \n\nWith Object Syntax\n\nIt's possible to change any property of the tooltip with object syntax. Object syntax also accepts showArrow: false to hide the tooltip arrow.\n\n \n\nContent Mode\n\nTooltip content renders outside the DOM tree via Tippy.js. Use the contentMode modifier or object property to apply a color mode to the tooltip content. See Positioned Components for details.",
|
|
498342
498365
|
frontmatter: {
|
|
498343
498366
|
title: "Tooltip",
|
|
498344
498367
|
description: "Brief helper text shown when an element receives hover or focus.",
|
|
@@ -498404,6 +498427,25 @@ var documentationData = [
|
|
|
498404
498427
|
},
|
|
498405
498428
|
filePath: "apps/dialtone-documentation/docs/components/tooltip.md"
|
|
498406
498429
|
},
|
|
498430
|
+
{
|
|
498431
|
+
id: "components/tooltip#tooltip-as-a-component-without-arrow",
|
|
498432
|
+
docId: "components/tooltip",
|
|
498433
|
+
docTitle: "Tooltip",
|
|
498434
|
+
category: "components",
|
|
498435
|
+
headingPath: [
|
|
498436
|
+
"Tooltip as a Component",
|
|
498437
|
+
"Without Arrow"
|
|
498438
|
+
],
|
|
498439
|
+
content: "Set showArrow to false to hide the tooltip arrow.",
|
|
498440
|
+
frontmatter: {
|
|
498441
|
+
title: "Tooltip",
|
|
498442
|
+
description: "Brief helper text shown when an element receives hover or focus.",
|
|
498443
|
+
status: "ready",
|
|
498444
|
+
figmaUrl: "https://www.figma.com/design/W58r5BkO8qTw3vem9YieJd/DT9-Component-Library--Rebrand-2025-?node-id=261-0",
|
|
498445
|
+
storybook: "https://dialtone.dialpad.com/vue/?path=/story/components-tooltip--default"
|
|
498446
|
+
},
|
|
498447
|
+
filePath: "apps/dialtone-documentation/docs/components/tooltip.md"
|
|
498448
|
+
},
|
|
498407
498449
|
{
|
|
498408
498450
|
id: "components/tooltip#tooltip-as-a-component-placement",
|
|
498409
498451
|
docId: "components/tooltip",
|
|
@@ -498526,7 +498568,7 @@ var documentationData = [
|
|
|
498526
498568
|
"Accessibility",
|
|
498527
498569
|
"Focus & Keyboard"
|
|
498528
498570
|
],
|
|
498529
|
-
content: "Due to the different contexts in which a tooltip can be used, focus management and\nkeyboard shortcut ESC is provided.\nYou are encouraged to consult the ARIA documentation for the particular role.\n\nimport { inject } from 'vue';\nimport ExampleTooltipDirections from '@exampleComponents/ExampleTooltipDirections.vue';\n\nconst dialtoneConstants = inject('dialtoneConstants', {});\nconst directions = dialtoneConstants.TOOLTIP_DIRECTIONS;",
|
|
498571
|
+
content: "Due to the different contexts in which a tooltip can be used, focus management and\nkeyboard shortcut ESC is provided.\nYou are encouraged to consult the ARIA documentation for the particular role.\n\nimport { inject } from 'vue';\nimport { DialtoneLocalization } from '@dialpad/dialtone-vue';\nimport ExampleTooltipDirections from '@exampleComponents/ExampleTooltipDirections.vue';\n\nconst dialtoneConstants = inject('dialtoneConstants', {});\nconst directions = dialtoneConstants.TOOLTIP_DIRECTIONS;\nconst i18n = new DialtoneLocalization();",
|
|
498530
498572
|
frontmatter: {
|
|
498531
498573
|
title: "Tooltip",
|
|
498532
498574
|
description: "Brief helper text shown when an element receives hover or focus.",
|
|
@@ -504646,7 +504688,7 @@ var documentationData = [
|
|
|
504646
504688
|
headingPath: [
|
|
504647
504689
|
"Installation"
|
|
504648
504690
|
],
|
|
504649
|
-
content: "Install the CLI globally:\n\n \n\nConfirm the installation:\n\n \n\nRun CLI commands from
|
|
504691
|
+
content: "Install the CLI globally:\n\n \n\nConfirm the installation:\n\n \n\nRun CLI commands from your project. The CLI prints one line on stderr naming the Dialtone data it uses:\n\n \n\nWithout local Dialtone data, the line reads Using bundled Dialtone data (@dialpad/dialtone-cli@).",
|
|
504650
504692
|
frontmatter: {
|
|
504651
504693
|
title: "Dialtone CLI",
|
|
504652
504694
|
description: "Search the Dialtone version installed in your project from the command line.",
|
|
@@ -504720,7 +504762,7 @@ var documentationData = [
|
|
|
504720
504762
|
"Commands",
|
|
504721
504763
|
"Inspect a component"
|
|
504722
504764
|
],
|
|
504723
|
-
content: "Use component to inspect
|
|
504765
|
+
content: "Use component to inspect a component's public API. The name must match exactly, ignoring case, separators, and the Dt prefix, so button, dt-button, and DtButton all work. For any other name, the CLI lists close matches on stderr and exits with an error. A deprecated component still works by its full name, with a note naming its replacement.\n\n \n\nFilter the output when you only need one part of the API:\n\n \n\n--prop returns the prop type, description, and accepted values. If the prop does not exist, the CLI lists the available prop names.",
|
|
504724
504766
|
frontmatter: {
|
|
504725
504767
|
title: "Dialtone CLI",
|
|
504726
504768
|
description: "Search the Dialtone version installed in your project from the command line.",
|
|
@@ -504832,7 +504874,7 @@ var documentationData = [
|
|
|
504832
504874
|
headingPath: [
|
|
504833
504875
|
"Data sources"
|
|
504834
504876
|
],
|
|
504835
|
-
content: "The CLI
|
|
504877
|
+
content: "The CLI looks for installed packages the way Node does, in the nodemodules folders in and above the directory you run it from:\n\n1. If a package.json at or above your directory, up to the repository root, depends on @dialpad/dialtone, the CLI uses that package's component, token, and utility data, and the icons package it depends on.\n2. Otherwise, it uses installed @dialpad/dialtone-vue, @dialpad/dialtone-css, and @dialpad/dialtone-icons packages, and fills any gaps from an installed @dialpad/dialtone.\n3. Anything it can't resolve comes from the data bundled with @dialpad/dialtone-cli. Documentation search always uses bundled content.\n\nThe source line lists any data that came from somewhere other than the main package. If package.json declares a caret, tilde, or exact version of @dialpad/dialtone (such as ^10.0.0) and the installed copy has a different major version, the CLI prints a warning. If package.json declares @dialpad/dialtone but the CLI can't find an installed copy, it warns and uses bundled data. Yarn Plug'n'Play installs have no nodemodules, so the CLI uses bundled data there.\n\nImport hints in component and prompt output use @dialpad/dialtone/vue. Versions of @dialpad/dialtone before 9.173 don't export ./vue, so their hints use @dialpad/dialtone/vue3. Component data from an installed @dialpad/dialtone-vue gives hints for @dialpad/dialtone-vue.\n\nUse --bundled when you want to ignore installed packages and query the CLI's bundled data:",
|
|
504836
504878
|
frontmatter: {
|
|
504837
504879
|
title: "Dialtone CLI",
|
|
504838
504880
|
description: "Search the Dialtone version installed in your project from the command line.",
|
|
@@ -504868,7 +504910,7 @@ var documentationData = [
|
|
|
504868
504910
|
headingPath: [
|
|
504869
504911
|
"Update the CLI"
|
|
504870
504912
|
],
|
|
504871
|
-
content: "The CLI checks npm for a newer version
|
|
504913
|
+
content: "The CLI checks npm for a newer version in the background, and gives up after 3 seconds. Update it globally when an update is available:\n\n \n\nUpdating refreshes bundled documentation and the fallback data used outside a Dialtone project.",
|
|
504872
504914
|
frontmatter: {
|
|
504873
504915
|
title: "Dialtone CLI",
|
|
504874
504916
|
description: "Search the Dialtone version installed in your project from the command line.",
|
|
@@ -504906,7 +504948,7 @@ var documentationData = [
|
|
|
504906
504948
|
"Troubleshooting",
|
|
504907
504949
|
"Results do not match the project"
|
|
504908
504950
|
],
|
|
504909
|
-
content: "Run the command from the project
|
|
504951
|
+
content: "Run the command from inside the project. The source line names the package and version each kind of data came from; bundled means the CLI couldn't find installed data for it. A version warning means the installed packages don't match package.json; reinstall dependencies.",
|
|
504910
504952
|
frontmatter: {
|
|
504911
504953
|
title: "Dialtone CLI",
|
|
504912
504954
|
description: "Search the Dialtone version installed in your project from the command line.",
|
|
@@ -504935,6 +504977,25 @@ var documentationData = [
|
|
|
504935
504977
|
},
|
|
504936
504978
|
filePath: "apps/dialtone-documentation/docs/guides/cli/index.md"
|
|
504937
504979
|
},
|
|
504980
|
+
{
|
|
504981
|
+
id: "guides/cli/index#troubleshooting-show-the-search-engine-s-debug-output",
|
|
504982
|
+
docId: "guides/cli/index",
|
|
504983
|
+
docTitle: "Dialtone CLI",
|
|
504984
|
+
category: "guides",
|
|
504985
|
+
headingPath: [
|
|
504986
|
+
"Troubleshooting",
|
|
504987
|
+
"Show the search engine's debug output"
|
|
504988
|
+
],
|
|
504989
|
+
content: "Set DIALTONE_DEBUG=1 to print the search engine's debug output to stderr, including the parsed query and how many results each step matched:",
|
|
504990
|
+
frontmatter: {
|
|
504991
|
+
title: "Dialtone CLI",
|
|
504992
|
+
description: "Search the Dialtone version installed in your project from the command line.",
|
|
504993
|
+
status: "ready",
|
|
504994
|
+
figmaUrl: null,
|
|
504995
|
+
storybook: null
|
|
504996
|
+
},
|
|
504997
|
+
filePath: "apps/dialtone-documentation/docs/guides/cli/index.md"
|
|
504998
|
+
},
|
|
504938
504999
|
{
|
|
504939
505000
|
id: "guides/cli/index#resources",
|
|
504940
505001
|
docId: "guides/cli/index",
|
|
@@ -523048,6 +523109,19 @@ function removeDuplicates(results) {
|
|
|
523048
523109
|
return true;
|
|
523049
523110
|
});
|
|
523050
523111
|
}
|
|
523112
|
+
function toSearchResult(component) {
|
|
523113
|
+
return {
|
|
523114
|
+
type: 'component',
|
|
523115
|
+
name: component.displayName,
|
|
523116
|
+
details: {
|
|
523117
|
+
description: component.description,
|
|
523118
|
+
props: component.props || [],
|
|
523119
|
+
events: component.events || [],
|
|
523120
|
+
slots: component.slots || []
|
|
523121
|
+
},
|
|
523122
|
+
metadata: component.metadata || null
|
|
523123
|
+
};
|
|
523124
|
+
}
|
|
523051
523125
|
/**
|
|
523052
523126
|
* Search components by name (with camelCase splitting)
|
|
523053
523127
|
*/
|
|
@@ -523058,17 +523132,7 @@ function searchByName(regexArray, components) {
|
|
|
523058
523132
|
const nameText = nameParts.join(' ');
|
|
523059
523133
|
const allMatch = regexArray.every(regex => regex.test(nameText));
|
|
523060
523134
|
if (allMatch) {
|
|
523061
|
-
matches.push(
|
|
523062
|
-
type: 'component',
|
|
523063
|
-
name: component.displayName,
|
|
523064
|
-
details: {
|
|
523065
|
-
description: component.description,
|
|
523066
|
-
props: component.props || [],
|
|
523067
|
-
events: component.events || [],
|
|
523068
|
-
slots: component.slots || []
|
|
523069
|
-
},
|
|
523070
|
-
metadata: component.metadata || null
|
|
523071
|
-
});
|
|
523135
|
+
matches.push(toSearchResult(component));
|
|
523072
523136
|
}
|
|
523073
523137
|
}
|
|
523074
523138
|
return matches;
|
|
@@ -523082,17 +523146,7 @@ function searchByDescription(regexArray, components) {
|
|
|
523082
523146
|
const description = (component.description || '').toLowerCase();
|
|
523083
523147
|
const allMatch = regexArray.every(regex => regex.test(description));
|
|
523084
523148
|
if (allMatch) {
|
|
523085
|
-
matches.push(
|
|
523086
|
-
type: 'component',
|
|
523087
|
-
name: component.displayName,
|
|
523088
|
-
details: {
|
|
523089
|
-
description: component.description,
|
|
523090
|
-
props: component.props || [],
|
|
523091
|
-
events: component.events || [],
|
|
523092
|
-
slots: component.slots || []
|
|
523093
|
-
},
|
|
523094
|
-
metadata: component.metadata || null
|
|
523095
|
-
});
|
|
523149
|
+
matches.push(toSearchResult(component));
|
|
523096
523150
|
}
|
|
523097
523151
|
}
|
|
523098
523152
|
return matches;
|
|
@@ -523111,17 +523165,7 @@ function searchByProps(regexArray, components) {
|
|
|
523111
523165
|
const combined = propsText.join(' ');
|
|
523112
523166
|
const allMatch = regexArray.every(regex => regex.test(combined));
|
|
523113
523167
|
if (allMatch) {
|
|
523114
|
-
matches.push(
|
|
523115
|
-
type: 'component',
|
|
523116
|
-
name: component.displayName,
|
|
523117
|
-
details: {
|
|
523118
|
-
description: component.description,
|
|
523119
|
-
props: component.props || [],
|
|
523120
|
-
events: component.events || [],
|
|
523121
|
-
slots: component.slots || []
|
|
523122
|
-
},
|
|
523123
|
-
metadata: component.metadata || null
|
|
523124
|
-
});
|
|
523168
|
+
matches.push(toSearchResult(component));
|
|
523125
523169
|
}
|
|
523126
523170
|
}
|
|
523127
523171
|
return matches;
|
|
@@ -523139,17 +523183,7 @@ function searchByEvents(regexArray, components) {
|
|
|
523139
523183
|
const combined = eventsText.join(' ');
|
|
523140
523184
|
const allMatch = regexArray.every(regex => regex.test(combined));
|
|
523141
523185
|
if (allMatch) {
|
|
523142
|
-
matches.push(
|
|
523143
|
-
type: 'component',
|
|
523144
|
-
name: component.displayName,
|
|
523145
|
-
details: {
|
|
523146
|
-
description: component.description,
|
|
523147
|
-
props: component.props || [],
|
|
523148
|
-
events: component.events || [],
|
|
523149
|
-
slots: component.slots || []
|
|
523150
|
-
},
|
|
523151
|
-
metadata: component.metadata || null
|
|
523152
|
-
});
|
|
523186
|
+
matches.push(toSearchResult(component));
|
|
523153
523187
|
}
|
|
523154
523188
|
}
|
|
523155
523189
|
return matches;
|
|
@@ -523167,21 +523201,34 @@ function searchBySlots(regexArray, components) {
|
|
|
523167
523201
|
const combined = slotsText.join(' ');
|
|
523168
523202
|
const allMatch = regexArray.every(regex => regex.test(combined));
|
|
523169
523203
|
if (allMatch) {
|
|
523170
|
-
matches.push(
|
|
523171
|
-
type: 'component',
|
|
523172
|
-
name: component.displayName,
|
|
523173
|
-
details: {
|
|
523174
|
-
description: component.description,
|
|
523175
|
-
props: component.props || [],
|
|
523176
|
-
events: component.events || [],
|
|
523177
|
-
slots: component.slots || []
|
|
523178
|
-
},
|
|
523179
|
-
metadata: component.metadata || null
|
|
523180
|
-
});
|
|
523204
|
+
matches.push(toSearchResult(component));
|
|
523181
523205
|
}
|
|
523182
523206
|
}
|
|
523183
523207
|
return matches;
|
|
523184
523208
|
}
|
|
523209
|
+
/**
|
|
523210
|
+
* Normalize a component name for exact matching: case-insensitive, ignores
|
|
523211
|
+
* separators and an optional "Dt" prefix. "DtButtonGroup", "button-group",
|
|
523212
|
+
* and "Button Group" all become "buttongroup".
|
|
523213
|
+
*/
|
|
523214
|
+
function normalizeComponentName(name) {
|
|
523215
|
+
return compactName(name).replace(/^dt/, '');
|
|
523216
|
+
}
|
|
523217
|
+
/** Lowercase and drop separators, keeping any "Dt" prefix. */
|
|
523218
|
+
function compactName(name) {
|
|
523219
|
+
return name.toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
523220
|
+
}
|
|
523221
|
+
function legacyNote(component) {
|
|
523222
|
+
const metadata = component.metadata;
|
|
523223
|
+
if (metadata?.deprecated) {
|
|
523224
|
+
return `${component.displayName} is deprecated. ${metadata.replacement ?? metadata.reason ?? ''}`.trim();
|
|
523225
|
+
}
|
|
523226
|
+
if (metadata?.discouraged) {
|
|
523227
|
+
const advice = metadata.alternatives?.length ? `Use ${metadata.alternatives.join(', ')} instead.` : (metadata.reason ?? '');
|
|
523228
|
+
return `${component.displayName} is discouraged. ${advice}`.trim();
|
|
523229
|
+
}
|
|
523230
|
+
return null;
|
|
523231
|
+
}
|
|
523185
523232
|
/**
|
|
523186
523233
|
* Search Vue components by name, description, props, events, and slots
|
|
523187
523234
|
*/
|
|
@@ -523217,19 +523264,35 @@ function searchComponents(query, components) {
|
|
|
523217
523264
|
// Remove duplicates (keep first occurrence)
|
|
523218
523265
|
const deduplicated = removeDuplicates(combined);
|
|
523219
523266
|
console.error(`[COMPONENT SEARCH DEBUG] After deduplication: ${deduplicated.length} results`);
|
|
523267
|
+
// Exact name first (DLT-3639). An explicit request for a deprecated or
|
|
523268
|
+
// discouraged component still returns it, with a note, instead of silently
|
|
523269
|
+
// substituting a different component. Those need their full name ("DtIcon",
|
|
523270
|
+
// "dt-icon"), so a generic word like "icon" doesn't lead with legacy UI.
|
|
523271
|
+
const target = normalizeComponentName(query);
|
|
523272
|
+
const candidates = target ? components.filter(c => normalizeComponentName(c.displayName) === target) : [];
|
|
523273
|
+
const match = candidates.find(c => c.displayName === query.trim()) ?? (candidates.length === 1 ? candidates[0] : null);
|
|
523274
|
+
// A note means the match is deprecated or discouraged.
|
|
523275
|
+
const note = match ? legacyNote(match) : null;
|
|
523276
|
+
const exact = match && (!note || compactName(query) === compactName(match.displayName)) ? match : null;
|
|
523277
|
+
console.error(`[COMPONENT SEARCH DEBUG] Exact match: ${exact ? exact.displayName : 'none'}`);
|
|
523220
523278
|
// Add note if no name matches but other buckets have results
|
|
523221
523279
|
const searchNotes = [];
|
|
523222
|
-
if (nameMatches.length === 0 && deduplicated.length > 0) {
|
|
523280
|
+
if (!exact && nameMatches.length === 0 && deduplicated.length > 0) {
|
|
523223
523281
|
searchNotes.push(`No component named '${query}', showing components with matching description/props/events/slots`);
|
|
523224
523282
|
}
|
|
523225
523283
|
// Apply smart filter (remove deprecated, swap discouraged with alternatives)
|
|
523226
523284
|
const componentsData = {};
|
|
523227
523285
|
components.forEach((c) => { componentsData[c.displayName] = c; });
|
|
523228
|
-
|
|
523286
|
+
// Keep the exact match out of the filter so it isn't dropped, swapped, or counted.
|
|
523287
|
+
const rest = deduplicated.filter(r => r.name !== exact?.displayName);
|
|
523288
|
+
const { results: filtered, notes: filterNotes } = applySmartFilter(rest, componentsData);
|
|
523229
523289
|
console.error(`[COMPONENT SEARCH DEBUG] After filter: ${filtered.length} results\n`);
|
|
523230
|
-
//
|
|
523231
|
-
|
|
523232
|
-
|
|
523290
|
+
// The note also covers a bare "icon": DtIcon is filtered out, but the note
|
|
523291
|
+
// still points to its replacement.
|
|
523292
|
+
const allNotes = [...(note ? [note] : []), ...searchNotes, ...filterNotes];
|
|
523293
|
+
// removeDuplicates also drops the exact match if the filter swapped it back in.
|
|
523294
|
+
const results = exact ? removeDuplicates([toSearchResult(exact), ...filtered]) : filtered;
|
|
523295
|
+
return { results, notes: allNotes, exactMatch: exact !== null, warning: note };
|
|
523233
523296
|
}
|
|
523234
523297
|
|
|
523235
523298
|
// ============================================================================
|
|
@@ -523491,108 +523554,184 @@ function formatDocumentationResults(results, _query) {
|
|
|
523491
523554
|
|
|
523492
523555
|
// ============================================================================
|
|
523493
523556
|
// DATA RESOLVER
|
|
523494
|
-
// Resolves Dialtone data from the
|
|
523495
|
-
//
|
|
523496
|
-
//
|
|
523497
|
-
// Resolution order:
|
|
523498
|
-
// 1. Individual packages (@dialpad/dialtone-css, dialtone-vue, dialtone-icons)
|
|
523499
|
-
// 2. Umbrella package (@dialpad/dialtone/dist/css/*, dist/vue3/*)
|
|
523500
|
-
// 3. Bundled data (compiled into the CLI at build time)
|
|
523557
|
+
// Resolves Dialtone data from the project's installed packages, falling back
|
|
523558
|
+
// to the CLI's bundled data one domain at a time.
|
|
523501
523559
|
//
|
|
523502
|
-
//
|
|
523503
|
-
//
|
|
523560
|
+
// Resolution order (DLT-3639):
|
|
523561
|
+
// 1. --bundled: bundled data only.
|
|
523562
|
+
// 2. The project declares @dialpad/dialtone: use that package's data, with
|
|
523563
|
+
// icons from the @dialpad/dialtone-icons it depends on. Separately
|
|
523564
|
+
// installed dialtone-css/-vue (e.g. lint-plugin peers) are ignored,
|
|
523565
|
+
// because they can be older than the Dialtone the app uses. Warn when the
|
|
523566
|
+
// installed major version differs from the declared one, or when none is
|
|
523567
|
+
// found (bundled data is used then).
|
|
523568
|
+
// 3. Otherwise, per domain: an individual @dialpad/dialtone-vue, -css or
|
|
523569
|
+
// -icons package, then an undeclared umbrella.
|
|
523570
|
+
// 4. Anything still missing: bundled data.
|
|
523571
|
+
// Documentation is always bundled. Packages are found through node_modules
|
|
523572
|
+
// folders only, never NODE_PATH.
|
|
523504
523573
|
// ============================================================================
|
|
523505
|
-
const
|
|
523506
|
-
|
|
523507
|
-
|
|
523508
|
-
|
|
523509
|
-
|
|
523510
|
-
|
|
523511
|
-
|
|
523512
|
-
|
|
523513
|
-
|
|
523514
|
-
|
|
523574
|
+
const DOMAINS = ['components', 'utilities', 'tokens', 'icons', 'docs'];
|
|
523575
|
+
const BUNDLED = { kind: 'bundled' };
|
|
523576
|
+
// The umbrella file that proves it's installed, and whose location and version stand for it.
|
|
523577
|
+
const anchorOf = (parts) => parts.components ?? parts.utilities ?? parts.tokens;
|
|
523578
|
+
const installWarning = (spec, problem) => `package.json declares @dialpad/dialtone "${spec}" but ${problem}. Reinstall dependencies to match.`;
|
|
523579
|
+
// dir, then each parent up to and including the filesystem root.
|
|
523580
|
+
function* ancestors(dir) {
|
|
523581
|
+
for (;; dir = dirname(dir)) {
|
|
523582
|
+
yield dir;
|
|
523583
|
+
if (dir === parse(dir).root)
|
|
523584
|
+
return;
|
|
523585
|
+
}
|
|
523586
|
+
}
|
|
523587
|
+
function findUp(fromDir, relativePath) {
|
|
523588
|
+
for (const dir of ancestors(fromDir)) {
|
|
523589
|
+
const candidate = join(dir, relativePath);
|
|
523590
|
+
if (existsSync(candidate))
|
|
523591
|
+
return candidate;
|
|
523592
|
+
}
|
|
523593
|
+
return null;
|
|
523594
|
+
}
|
|
523595
|
+
// Finds the package through node_modules folders only, then reads one of its
|
|
523596
|
+
// files. Plain require.resolve would also search NODE_PATH, which pnpm's bin
|
|
523597
|
+
// shims point at a whole store, so a missing install could quietly resolve
|
|
523598
|
+
// some other project's copy.
|
|
523599
|
+
function tryRead(fromDir, specifier) {
|
|
523600
|
+
// "@dialpad/dialtone-vue/component-documentation.json" → "@dialpad/dialtone-vue"
|
|
523601
|
+
const packageName = specifier.split('/').slice(0, 2).join('/');
|
|
523602
|
+
const manifest = findUp(fromDir, join('node_modules', packageName, 'package.json'));
|
|
523603
|
+
if (!manifest)
|
|
523604
|
+
return null;
|
|
523515
523605
|
try {
|
|
523516
|
-
|
|
523517
|
-
|
|
523606
|
+
// Resolving the package's own name from inside it applies its exports map.
|
|
523607
|
+
// The real path keeps the check below valid when Node preserves symlinks.
|
|
523608
|
+
const file = realpathSync(createRequire(manifest).resolve(specifier));
|
|
523609
|
+
// Without an exports map, resolve() falls back to Node's full lookup,
|
|
523610
|
+
// NODE_PATH included, so only accept the package's own files.
|
|
523611
|
+
if (!file.startsWith(realpathSync(dirname(manifest)) + sep))
|
|
523612
|
+
return null;
|
|
523613
|
+
const data = JSON.parse(readFileSync(file, 'utf-8'));
|
|
523614
|
+
if (data === null)
|
|
523615
|
+
return null;
|
|
523616
|
+
const { version, exports: exports$1 } = JSON.parse(readFileSync(manifest, 'utf-8'));
|
|
523617
|
+
return { data, file, source: { kind: 'local', package: packageName, version }, exports: exports$1 ?? {} };
|
|
523518
523618
|
}
|
|
523519
523619
|
catch {
|
|
523520
523620
|
return null;
|
|
523521
523621
|
}
|
|
523522
523622
|
}
|
|
523523
|
-
|
|
523623
|
+
// Walks up from cwd to the first package.json that declares @dialpad/dialtone,
|
|
523624
|
+
// so a subfolder stub like {"type": "module"} doesn't hide the app's. It stops
|
|
523625
|
+
// at the repository root (.git), so an enclosing project's declaration never
|
|
523626
|
+
// applies.
|
|
523627
|
+
function findProject(cwd) {
|
|
523628
|
+
for (const dir of ancestors(cwd)) {
|
|
523629
|
+
const spec = declaredDialtoneSpec(join(dir, 'package.json'));
|
|
523630
|
+
if (spec !== null)
|
|
523631
|
+
return { projectDir: dir, spec };
|
|
523632
|
+
if (existsSync(join(dir, '.git')))
|
|
523633
|
+
break;
|
|
523634
|
+
}
|
|
523635
|
+
return { projectDir: cwd, spec: null };
|
|
523636
|
+
}
|
|
523637
|
+
function declaredDialtoneSpec(pkgPath) {
|
|
523524
523638
|
try {
|
|
523525
|
-
const pkgPath = localRequire.resolve(specifier);
|
|
523526
523639
|
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
523527
|
-
|
|
523640
|
+
for (const key of ['dependencies', 'devDependencies', 'peerDependencies']) {
|
|
523641
|
+
const spec = pkg[key]?.['@dialpad/dialtone'];
|
|
523642
|
+
if (typeof spec === 'string')
|
|
523643
|
+
return spec;
|
|
523644
|
+
}
|
|
523645
|
+
return null;
|
|
523528
523646
|
}
|
|
523529
523647
|
catch {
|
|
523530
|
-
return
|
|
523648
|
+
return null;
|
|
523531
523649
|
}
|
|
523532
523650
|
}
|
|
523533
|
-
//
|
|
523534
|
-
|
|
523535
|
-
|
|
523536
|
-
|
|
523537
|
-
|
|
523538
|
-
|
|
523539
|
-
|
|
523540
|
-
|
|
523541
|
-
utilityClasses: utilityClasses,
|
|
523542
|
-
tokens: tokens,
|
|
523543
|
-
components: components,
|
|
523544
|
-
icons: icons,
|
|
523545
|
-
documentation: documentation,
|
|
523546
|
-
source: 'local',
|
|
523547
|
-
version: tryResolveVersion(localRequire, '@dialpad/dialtone-css/package.json'),
|
|
523548
|
-
};
|
|
523549
|
-
}
|
|
523550
|
-
return null;
|
|
523651
|
+
// v10 apps import components from the umbrella's ./vue export, which
|
|
523652
|
+
// umbrellas before 9.173 don't have. Bundled data documents v10.
|
|
523653
|
+
function componentImportPath(components) {
|
|
523654
|
+
if (components?.source.package === '@dialpad/dialtone-vue')
|
|
523655
|
+
return '@dialpad/dialtone-vue';
|
|
523656
|
+
if (components && !('./vue' in components.exports))
|
|
523657
|
+
return '@dialpad/dialtone/vue3';
|
|
523658
|
+
return '@dialpad/dialtone/vue';
|
|
523551
523659
|
}
|
|
523552
|
-
//
|
|
523553
|
-
|
|
523554
|
-
|
|
523555
|
-
const
|
|
523556
|
-
|
|
523557
|
-
|
|
523558
|
-
|
|
523559
|
-
|
|
523560
|
-
|
|
523561
|
-
|
|
523562
|
-
|
|
523563
|
-
|
|
523564
|
-
|
|
523565
|
-
|
|
523566
|
-
|
|
523567
|
-
|
|
523568
|
-
|
|
523569
|
-
|
|
523570
|
-
|
|
523571
|
-
|
|
523572
|
-
|
|
523573
|
-
|
|
523574
|
-
|
|
523575
|
-
|
|
523576
|
-
|
|
523577
|
-
|
|
523578
|
-
|
|
523579
|
-
|
|
523580
|
-
|
|
523581
|
-
|
|
523660
|
+
// Each domain comes from the first candidate that found it, else from bundled data.
|
|
523661
|
+
function assemble(...candidates) {
|
|
523662
|
+
const pick = (domain) => candidates.map(c => c[domain]).find(Boolean);
|
|
523663
|
+
const [components$1, utilities, tokens$1, icons$1] = [pick('components'), pick('utilities'), pick('tokens'), pick('icons')];
|
|
523664
|
+
return {
|
|
523665
|
+
components: components$1?.data ?? components,
|
|
523666
|
+
utilityClasses: utilities?.data ?? utilityClasses,
|
|
523667
|
+
tokens: tokens$1?.data ?? tokens,
|
|
523668
|
+
icons: icons$1?.data ?? icons,
|
|
523669
|
+
documentation: documentation,
|
|
523670
|
+
sources: {
|
|
523671
|
+
components: components$1?.source ?? BUNDLED,
|
|
523672
|
+
utilities: utilities?.source ?? BUNDLED,
|
|
523673
|
+
tokens: tokens$1?.source ?? BUNDLED,
|
|
523674
|
+
icons: icons$1?.source ?? BUNDLED,
|
|
523675
|
+
docs: BUNDLED,
|
|
523676
|
+
},
|
|
523677
|
+
componentImportPath: componentImportPath(components$1),
|
|
523678
|
+
warnings: [],
|
|
523679
|
+
};
|
|
523680
|
+
}
|
|
523681
|
+
// The umbrella's exports map "./*" → "./dist/*", so specifiers omit "dist/".
|
|
523682
|
+
function umbrellaParts(fromDir) {
|
|
523683
|
+
const components = tryRead(fromDir, '@dialpad/dialtone/vue3/component-documentation.json');
|
|
523684
|
+
const utilities = tryRead(fromDir, '@dialpad/dialtone/css/dialtone-docs.json');
|
|
523685
|
+
const tokens = tryRead(fromDir, '@dialpad/dialtone/css/tokens-docs.json');
|
|
523686
|
+
const anchor = anchorOf({ components, utilities, tokens });
|
|
523687
|
+
if (!anchor)
|
|
523688
|
+
return {};
|
|
523689
|
+
// Icons aren't in the umbrella's dist: look for the icons package from the
|
|
523690
|
+
// umbrella's real path, so it's the version the umbrella depends on. Under
|
|
523691
|
+
// pnpm, the umbrella's dependencies sit beside it there, not at the top.
|
|
523692
|
+
const icons = tryRead(dirname(anchor.file), '@dialpad/dialtone-icons/keywords-icons.json');
|
|
523693
|
+
return { components, utilities, tokens, icons };
|
|
523694
|
+
}
|
|
523695
|
+
function individualParts(fromDir) {
|
|
523696
|
+
return {
|
|
523697
|
+
components: tryRead(fromDir, '@dialpad/dialtone-vue/component-documentation.json'),
|
|
523698
|
+
utilities: tryRead(fromDir, '@dialpad/dialtone-css/lib/dist/dialtone-docs.json'),
|
|
523699
|
+
tokens: tryRead(fromDir, '@dialpad/dialtone-css/lib/dist/tokens-docs.json'),
|
|
523700
|
+
icons: tryRead(fromDir, '@dialpad/dialtone-icons/keywords-icons.json'),
|
|
523701
|
+
};
|
|
523582
523702
|
}
|
|
523583
|
-
|
|
523703
|
+
// A single caret, tilde or exact version, e.g. "^10.0.0", "~9.1",
|
|
523704
|
+
// "10.0.0-next.10", "10.0.0+build.1". The first group is the major.
|
|
523705
|
+
const SIMPLE_VERSION = /^[\^~=v]?(\d+)(\.(\d+|[xX*])){0,2}(-[\w.-]+)?(\+[\w.-]+)?$/;
|
|
523706
|
+
// Compares majors only, so no semver dependency is needed. Warns when the
|
|
523707
|
+
// installed major matches none of the range's alternatives ("^9 || ^10").
|
|
523708
|
+
// Anything that isn't simple versions ("*", "workspace:*", ">=10", "8 - 9")
|
|
523709
|
+
// never warns.
|
|
523710
|
+
function mismatchWarnings(spec, installed) {
|
|
523711
|
+
const majors = spec.split('||').map(a => SIMPLE_VERSION.exec(a.trim())?.[1]);
|
|
523712
|
+
if (majors.includes(undefined))
|
|
523713
|
+
return [];
|
|
523714
|
+
const have = installed?.match(/\d+/)?.[0];
|
|
523715
|
+
if (!have || majors.includes(have))
|
|
523716
|
+
return [];
|
|
523717
|
+
return [installWarning(spec, `${installed} is installed`)];
|
|
523718
|
+
}
|
|
523719
|
+
function resolveData(forceBundled = false, cwd = process.cwd()) {
|
|
523584
523720
|
if (forceBundled)
|
|
523585
|
-
return
|
|
523586
|
-
const
|
|
523587
|
-
|
|
523588
|
-
|
|
523589
|
-
|
|
523590
|
-
|
|
523591
|
-
|
|
523592
|
-
|
|
523593
|
-
|
|
523594
|
-
|
|
523595
|
-
|
|
523721
|
+
return assemble();
|
|
523722
|
+
const { projectDir, spec } = findProject(cwd);
|
|
523723
|
+
if (spec === null) {
|
|
523724
|
+
const individual = individualParts(projectDir);
|
|
523725
|
+
// The umbrella's files are large (~13MB), so skip them when individual
|
|
523726
|
+
// packages cover every domain. Any gap reads all of them.
|
|
523727
|
+
return Object.values(individual).every(Boolean) ? assemble(individual) : assemble(individual, umbrellaParts(projectDir));
|
|
523728
|
+
}
|
|
523729
|
+
const umbrella = umbrellaParts(projectDir);
|
|
523730
|
+
const anchor = anchorOf(umbrella);
|
|
523731
|
+
if (anchor) {
|
|
523732
|
+
return { ...assemble(umbrella), warnings: mismatchWarnings(spec, anchor.source.version) };
|
|
523733
|
+
}
|
|
523734
|
+
return { ...assemble(), warnings: [installWarning(spec, 'no installed copy with lookup data was found')] };
|
|
523596
523735
|
}
|
|
523597
523736
|
|
|
523598
523737
|
// ============================================================================
|
|
@@ -523600,12 +523739,22 @@ function resolveData(forceBundled = false) {
|
|
|
523600
523739
|
// Resolved once at startup, read by all commands.
|
|
523601
523740
|
// ============================================================================
|
|
523602
523741
|
let _context = null;
|
|
523742
|
+
const label = (source) => (source.kind === 'local' ? `${source.package}@${source.version ?? 'unknown'}` : 'bundled');
|
|
523743
|
+
/** One stderr line naming where each data domain came from. */
|
|
523744
|
+
function formatSourceLine(sources, cliVersion) {
|
|
523745
|
+
const primaryDomain = DOMAINS.find(d => sources[d].kind === 'local');
|
|
523746
|
+
if (!primaryDomain)
|
|
523747
|
+
return `Using bundled Dialtone data (@dialpad/dialtone-cli@${cliVersion})`;
|
|
523748
|
+
const primary = label(sources[primaryDomain]);
|
|
523749
|
+
const extras = DOMAINS
|
|
523750
|
+
.filter(d => label(sources[d]) !== primary)
|
|
523751
|
+
.map(d => `${d}: ${label(sources[d])}`);
|
|
523752
|
+
return `Using local Dialtone data: ${primary}${extras.length ? ` (${extras.join(', ')})` : ''}`;
|
|
523753
|
+
}
|
|
523603
523754
|
function initContext(forceBundled = false) {
|
|
523604
|
-
|
|
523605
|
-
_context
|
|
523606
|
-
|
|
523607
|
-
console.error(`Using local Dialtone data${data.version ? ` (v${data.version})` : ''}`);
|
|
523608
|
-
}
|
|
523755
|
+
_context = resolveData(forceBundled);
|
|
523756
|
+
console.error(formatSourceLine(_context.sources, pkg.version));
|
|
523757
|
+
_context.warnings.forEach(w => console.error(`Warning: ${w}`));
|
|
523609
523758
|
}
|
|
523610
523759
|
function getContext() {
|
|
523611
523760
|
if (!_context) {
|
|
@@ -525799,6 +525948,9 @@ var Table = /*@__PURE__*/getDefaultExportFromCjs(cliTable3Exports);
|
|
|
525799
525948
|
// ============================================================================
|
|
525800
525949
|
// OUTPUT FORMATTERS
|
|
525801
525950
|
// ============================================================================
|
|
525951
|
+
function importStatement(name, importFrom) {
|
|
525952
|
+
return `import { ${name} } from '${importFrom}'`;
|
|
525953
|
+
}
|
|
525802
525954
|
// ── Table helper ────────────────────────────────────────────────────────────
|
|
525803
525955
|
function makeTable(head, rows, colWidths) {
|
|
525804
525956
|
const table = new Table({
|
|
@@ -525850,7 +526002,7 @@ function minimalSearchResults(results) {
|
|
|
525850
526002
|
return `${i + 1}. [${tag}] ${r.name}`;
|
|
525851
526003
|
}).join('\n');
|
|
525852
526004
|
}
|
|
525853
|
-
function minimalComponent(result, describe = false) {
|
|
526005
|
+
function minimalComponent(result, importFrom, describe = false) {
|
|
525854
526006
|
const lines = [];
|
|
525855
526007
|
lines.push(result.name);
|
|
525856
526008
|
if (result.details.description) {
|
|
@@ -525868,7 +526020,7 @@ function minimalComponent(result, describe = false) {
|
|
|
525868
526020
|
lines.push('', 'Slots:');
|
|
525869
526021
|
lines.push(slotsTable(result.details.slots));
|
|
525870
526022
|
}
|
|
525871
|
-
lines.push('', `Import:
|
|
526023
|
+
lines.push('', `Import: ${importStatement(result.name, importFrom)}`);
|
|
525872
526024
|
return lines.join('\n');
|
|
525873
526025
|
}
|
|
525874
526026
|
function minimalToken(result) {
|
|
@@ -525912,7 +526064,7 @@ function markdownPropsTable(props) {
|
|
|
525912
526064
|
});
|
|
525913
526065
|
return lines.join('\n');
|
|
525914
526066
|
}
|
|
525915
|
-
function markdownComponent(result) {
|
|
526067
|
+
function markdownComponent(result, importFrom) {
|
|
525916
526068
|
const lines = [];
|
|
525917
526069
|
lines.push(`# ${result.name}`);
|
|
525918
526070
|
if (result.details.description) {
|
|
@@ -525934,7 +526086,7 @@ function markdownComponent(result) {
|
|
|
525934
526086
|
lines.push(`- \`${s.name}\``);
|
|
525935
526087
|
});
|
|
525936
526088
|
}
|
|
525937
|
-
lines.push('', '## Usage', '', '```vue',
|
|
526089
|
+
lines.push('', '## Usage', '', '```vue', importStatement(result.name, importFrom), '```');
|
|
525938
526090
|
return lines.join('\n');
|
|
525939
526091
|
}
|
|
525940
526092
|
function markdownToken(result) {
|
|
@@ -525952,7 +526104,7 @@ function markdownToken(result) {
|
|
|
525952
526104
|
return lines.join('\n');
|
|
525953
526105
|
}
|
|
525954
526106
|
// ── Prompt formatter (LLM-optimized) ────────────────────────────────────────
|
|
525955
|
-
function formatPrompt(component) {
|
|
526107
|
+
function formatPrompt(component, importFrom) {
|
|
525956
526108
|
const lines = [];
|
|
525957
526109
|
lines.push(`<${component.displayName}>`);
|
|
525958
526110
|
if (component.description) {
|
|
@@ -525978,7 +526130,7 @@ function formatPrompt(component) {
|
|
|
525978
526130
|
if (component.events?.length) {
|
|
525979
526131
|
lines.push(`Events: ${component.events.map((e) => e.name).join(', ')}`);
|
|
525980
526132
|
}
|
|
525981
|
-
lines.push(`Import:
|
|
526133
|
+
lines.push(`Import: ${importStatement(component.displayName, importFrom)}`);
|
|
525982
526134
|
return lines.join('\n');
|
|
525983
526135
|
}
|
|
525984
526136
|
// ── Public API ──────────────────────────────────────────────────────────────
|
|
@@ -526000,7 +526152,7 @@ function formatComponentOutput(result, format, filter, options) {
|
|
|
526000
526152
|
if (filter === 'props') {
|
|
526001
526153
|
if (format === 'markdown')
|
|
526002
526154
|
return markdownPropsTable(result.details.props || []);
|
|
526003
|
-
return propsTable(result.details.props || [], options
|
|
526155
|
+
return propsTable(result.details.props || [], options.describe);
|
|
526004
526156
|
}
|
|
526005
526157
|
if (filter === 'events') {
|
|
526006
526158
|
if (format === 'markdown') {
|
|
@@ -526009,11 +526161,11 @@ function formatComponentOutput(result, format, filter, options) {
|
|
|
526009
526161
|
return eventsTable(result.details.events || []);
|
|
526010
526162
|
}
|
|
526011
526163
|
if (filter === 'examples') {
|
|
526012
|
-
return
|
|
526164
|
+
return `${importStatement(result.name, options.importFrom)}\n\n<${result.name} />`;
|
|
526013
526165
|
}
|
|
526014
526166
|
if (format === 'markdown')
|
|
526015
|
-
return markdownComponent(result);
|
|
526016
|
-
return minimalComponent(result, options
|
|
526167
|
+
return markdownComponent(result, options.importFrom);
|
|
526168
|
+
return minimalComponent(result, options.importFrom, options.describe);
|
|
526017
526169
|
}
|
|
526018
526170
|
function formatTokenOutput(result, format) {
|
|
526019
526171
|
if (format === 'json')
|
|
@@ -526102,6 +526254,48 @@ const searchCommand = defineCommand({
|
|
|
526102
526254
|
},
|
|
526103
526255
|
});
|
|
526104
526256
|
|
|
526257
|
+
const MAX_CANDIDATES = 10;
|
|
526258
|
+
/**
|
|
526259
|
+
* Pick the one component `component` and `prompt` describe. Only an exact
|
|
526260
|
+
* name is selected; anything else lists candidates, even a single one,
|
|
526261
|
+
* because a wrong pick looks exactly like a right answer.
|
|
526262
|
+
*/
|
|
526263
|
+
function selectComponent(name, components) {
|
|
526264
|
+
if (!name.trim()) {
|
|
526265
|
+
// An empty query would match every component.
|
|
526266
|
+
return { ok: false, message: 'Component name is empty.' };
|
|
526267
|
+
}
|
|
526268
|
+
const { results, exactMatch, warning } = searchComponents(name, components);
|
|
526269
|
+
if (exactMatch) {
|
|
526270
|
+
return { ok: true, result: results[0], warning };
|
|
526271
|
+
}
|
|
526272
|
+
const lines = results.length === 0
|
|
526273
|
+
? [`No component found matching "${name}".`]
|
|
526274
|
+
: [`No component named "${name}". Did you mean:`, ...results.slice(0, MAX_CANDIDATES).map(r => ` ${r.name}`)];
|
|
526275
|
+
if (results.length > MAX_CANDIDATES) {
|
|
526276
|
+
lines.push(` ... and ${results.length - MAX_CANDIDATES} more (${results.length} total).`);
|
|
526277
|
+
}
|
|
526278
|
+
if (warning) {
|
|
526279
|
+
lines.push(`Note: ${warning}`);
|
|
526280
|
+
}
|
|
526281
|
+
return { ok: false, message: lines.join('\n') };
|
|
526282
|
+
}
|
|
526283
|
+
/**
|
|
526284
|
+
* selectComponent for a command: on failure, prints the message and exits 1;
|
|
526285
|
+
* otherwise prints any warning to stderr and returns the component.
|
|
526286
|
+
*/
|
|
526287
|
+
function requireComponent(name, components) {
|
|
526288
|
+
const selection = selectComponent(name, components);
|
|
526289
|
+
if (!selection.ok) {
|
|
526290
|
+
console.error(selection.message);
|
|
526291
|
+
process.exit(1);
|
|
526292
|
+
}
|
|
526293
|
+
if (selection.warning) {
|
|
526294
|
+
console.error(`Note: ${selection.warning}`);
|
|
526295
|
+
}
|
|
526296
|
+
return selection.result;
|
|
526297
|
+
}
|
|
526298
|
+
|
|
526105
526299
|
function formatSingleProp(prop) {
|
|
526106
526300
|
const lines = [];
|
|
526107
526301
|
lines.push(prop.name);
|
|
@@ -526130,13 +526324,8 @@ const componentCommand = defineCommand({
|
|
|
526130
526324
|
},
|
|
526131
526325
|
run({ args }) {
|
|
526132
526326
|
const format = (args.format || 'minimal');
|
|
526133
|
-
const { components } = getContext();
|
|
526134
|
-
const
|
|
526135
|
-
if (results.length === 0) {
|
|
526136
|
-
console.error(`No component found matching "${args.name}".`);
|
|
526137
|
-
process.exit(1);
|
|
526138
|
-
}
|
|
526139
|
-
const result = results[0];
|
|
526327
|
+
const { components, componentImportPath: importFrom } = getContext();
|
|
526328
|
+
const result = requireComponent(args.name, components);
|
|
526140
526329
|
// --prop <name>: single prop lookup
|
|
526141
526330
|
if (args.prop) {
|
|
526142
526331
|
const allProps = result.details.props || [];
|
|
@@ -526186,11 +526375,11 @@ const componentCommand = defineCommand({
|
|
|
526186
526375
|
}
|
|
526187
526376
|
// --examples
|
|
526188
526377
|
if (args.examples) {
|
|
526189
|
-
console.log(formatComponentOutput(result, format, 'examples'));
|
|
526378
|
+
console.log(formatComponentOutput(result, format, 'examples', { importFrom }));
|
|
526190
526379
|
return;
|
|
526191
526380
|
}
|
|
526192
526381
|
// Default: full component view
|
|
526193
|
-
console.log(formatComponentOutput(result, format, undefined, { describe: args.describe }));
|
|
526382
|
+
console.log(formatComponentOutput(result, format, undefined, { describe: args.describe, importFrom }));
|
|
526194
526383
|
},
|
|
526195
526384
|
});
|
|
526196
526385
|
|
|
@@ -526241,13 +526430,8 @@ const promptCommand = defineCommand({
|
|
|
526241
526430
|
format: { type: 'string', description: 'Output format: minimal, markdown, json', default: 'minimal' },
|
|
526242
526431
|
},
|
|
526243
526432
|
run({ args }) {
|
|
526244
|
-
const { components } = getContext();
|
|
526245
|
-
const
|
|
526246
|
-
if (results.length === 0) {
|
|
526247
|
-
console.error(`No component found matching "${args.name}".`);
|
|
526248
|
-
process.exit(1);
|
|
526249
|
-
}
|
|
526250
|
-
const result = results[0];
|
|
526433
|
+
const { components, componentImportPath: importFrom } = getContext();
|
|
526434
|
+
const result = requireComponent(args.name, components);
|
|
526251
526435
|
const format = args.format || 'minimal';
|
|
526252
526436
|
if (format === 'json') {
|
|
526253
526437
|
// Emit a structured JSON block optimized for LLM context
|
|
@@ -526260,7 +526444,7 @@ const promptCommand = defineCommand({
|
|
|
526260
526444
|
})),
|
|
526261
526445
|
slots: result.details.slots?.map((s) => s.name),
|
|
526262
526446
|
events: result.details.events?.map((e) => e.name),
|
|
526263
|
-
import:
|
|
526447
|
+
import: importStatement(result.name, importFrom),
|
|
526264
526448
|
};
|
|
526265
526449
|
console.log(JSON.stringify(component, null, 2));
|
|
526266
526450
|
return;
|
|
@@ -526273,7 +526457,7 @@ const promptCommand = defineCommand({
|
|
|
526273
526457
|
events: result.details.events,
|
|
526274
526458
|
slots: result.details.slots,
|
|
526275
526459
|
};
|
|
526276
|
-
console.log(formatPrompt(comp));
|
|
526460
|
+
console.log(formatPrompt(comp, importFrom));
|
|
526277
526461
|
},
|
|
526278
526462
|
});
|
|
526279
526463
|
|
|
@@ -526372,7 +526556,8 @@ const useBundled = process.argv.includes('--bundled');
|
|
|
526372
526556
|
initContext(useBundled);
|
|
526373
526557
|
async function checkVersion() {
|
|
526374
526558
|
try {
|
|
526375
|
-
|
|
526559
|
+
// A pending request keeps the process alive after the command has printed its answer.
|
|
526560
|
+
const response = await fetch(`https://registry.npmjs.org/${pkg.name}/latest`, { signal: AbortSignal.timeout(3000) });
|
|
526376
526561
|
const data = await response.json();
|
|
526377
526562
|
if (data.version && data.version !== pkg.version) {
|
|
526378
526563
|
console.error('');
|