@uipath/apollo-wind 2.85.1 → 2.86.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/index.cjs +36 -36
- package/dist/components/ui/json-tree-view/JsonTree.cjs +3 -1
- package/dist/components/ui/json-tree-view/JsonTree.d.ts +8 -1
- package/dist/components/ui/json-tree-view/JsonTree.js +3 -1
- package/dist/components/ui/json-tree-view/JsonTree.types.d.ts +19 -2
- package/dist/components/ui/json-tree-view/JsonTreeRow.cjs +19 -12
- package/dist/components/ui/json-tree-view/JsonTreeRow.d.ts +3 -1
- package/dist/components/ui/json-tree-view/JsonTreeRow.js +19 -12
- package/dist/components/ui/json-tree-view/JsonTypeBadge.cjs +18 -10
- package/dist/components/ui/json-tree-view/JsonTypeBadge.d.ts +7 -4
- package/dist/components/ui/json-tree-view/JsonTypeBadge.js +18 -10
- package/dist/components/ui/json-tree-view/NodeKey.cjs +30 -24
- package/dist/components/ui/json-tree-view/NodeKey.d.ts +4 -3
- package/dist/components/ui/json-tree-view/NodeKey.js +30 -24
- package/dist/components/ui/json-tree-view/buildJsonTree.cjs +19 -0
- package/dist/components/ui/json-tree-view/buildJsonTree.d.ts +6 -0
- package/dist/components/ui/json-tree-view/buildJsonTree.js +17 -1
- package/dist/index.cjs +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var __webpack_modules__ = {
|
|
|
18
18
|
"./avatar" (module) {
|
|
19
19
|
module.exports = require("./avatar.cjs");
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"@/components/ui/badge" (module) {
|
|
22
22
|
module.exports = require("./badge.cjs");
|
|
23
23
|
},
|
|
24
24
|
"./boolean-radio-group" (module) {
|
|
@@ -33,7 +33,7 @@ var __webpack_modules__ = {
|
|
|
33
33
|
"./button-group" (module) {
|
|
34
34
|
module.exports = require("./button-group.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"./button" (module) {
|
|
37
37
|
module.exports = require("./button.cjs");
|
|
38
38
|
},
|
|
39
39
|
"@/components/ui/calendar" (module) {
|
|
@@ -51,7 +51,7 @@ var __webpack_modules__ = {
|
|
|
51
51
|
"./chat-hero" (module) {
|
|
52
52
|
module.exports = require("./chat-hero.cjs");
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"@/components/ui/checkbox" (module) {
|
|
55
55
|
module.exports = require("./checkbox.cjs");
|
|
56
56
|
},
|
|
57
57
|
"./citation" (module) {
|
|
@@ -60,16 +60,16 @@ var __webpack_modules__ = {
|
|
|
60
60
|
"@/components/ui/code-block" (module) {
|
|
61
61
|
module.exports = require("./code-block.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/collapsible" (module) {
|
|
64
64
|
module.exports = require("./collapsible.cjs");
|
|
65
65
|
},
|
|
66
66
|
"./combobox" (module) {
|
|
67
67
|
module.exports = require("./combobox.cjs");
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"@/components/ui/command" (module) {
|
|
70
70
|
module.exports = require("./command.cjs");
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"@/components/ui/context-menu" (module) {
|
|
73
73
|
module.exports = require("./context-menu.cjs");
|
|
74
74
|
},
|
|
75
75
|
"./data-table" (module) {
|
|
@@ -81,7 +81,7 @@ var __webpack_modules__ = {
|
|
|
81
81
|
"./datetime-picker" (module) {
|
|
82
82
|
module.exports = require("./datetime-picker.cjs");
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"@/components/ui/dialog" (module) {
|
|
85
85
|
module.exports = require("./dialog.cjs");
|
|
86
86
|
},
|
|
87
87
|
"./disclosure-tree" (module) {
|
|
@@ -117,28 +117,28 @@ var __webpack_modules__ = {
|
|
|
117
117
|
"./file-validation" (module) {
|
|
118
118
|
module.exports = require("./file-validation.cjs");
|
|
119
119
|
},
|
|
120
|
-
"
|
|
120
|
+
"./form-field" (module) {
|
|
121
121
|
module.exports = require("./form-field.cjs");
|
|
122
122
|
},
|
|
123
|
-
"
|
|
123
|
+
"@/components/ui/hover-card" (module) {
|
|
124
124
|
module.exports = require("./hover-card.cjs");
|
|
125
125
|
},
|
|
126
|
-
"
|
|
126
|
+
"./info-tooltip" (module) {
|
|
127
127
|
module.exports = require("./info-tooltip.cjs");
|
|
128
128
|
},
|
|
129
|
-
"
|
|
129
|
+
"@/components/ui/input-group" (module) {
|
|
130
130
|
module.exports = require("./input-group.cjs");
|
|
131
131
|
},
|
|
132
|
-
"
|
|
132
|
+
"@/components/ui/input" (module) {
|
|
133
133
|
module.exports = require("./input.cjs");
|
|
134
134
|
},
|
|
135
135
|
"./json-tree-view" (module) {
|
|
136
136
|
module.exports = require("./json-tree-view/index.cjs");
|
|
137
137
|
},
|
|
138
|
-
"
|
|
138
|
+
"./label" (module) {
|
|
139
139
|
module.exports = require("./label.cjs");
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"./layout" (module) {
|
|
142
142
|
module.exports = require("./layout/index.cjs");
|
|
143
143
|
},
|
|
144
144
|
"./live-region" (module) {
|
|
@@ -207,7 +207,7 @@ var __webpack_modules__ = {
|
|
|
207
207
|
"./reference-chip-colors" (module) {
|
|
208
208
|
module.exports = require("./reference-chip-colors.cjs");
|
|
209
209
|
},
|
|
210
|
-
"
|
|
210
|
+
"@/components/ui/reference-chip" (module) {
|
|
211
211
|
module.exports = require("./reference-chip.cjs");
|
|
212
212
|
},
|
|
213
213
|
"./resizable" (module) {
|
|
@@ -270,19 +270,19 @@ var __webpack_modules__ = {
|
|
|
270
270
|
"./toggle-group" (module) {
|
|
271
271
|
module.exports = require("./toggle-group.cjs");
|
|
272
272
|
},
|
|
273
|
-
"
|
|
273
|
+
"./toggle" (module) {
|
|
274
274
|
module.exports = require("./toggle.cjs");
|
|
275
275
|
},
|
|
276
276
|
"./tool-call" (module) {
|
|
277
277
|
module.exports = require("./tool-call.cjs");
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"./tooltip" (module) {
|
|
280
280
|
module.exports = require("./tooltip.cjs");
|
|
281
281
|
},
|
|
282
282
|
"./tree-view" (module) {
|
|
283
283
|
module.exports = require("./tree-view.cjs");
|
|
284
284
|
},
|
|
285
|
-
"
|
|
285
|
+
"@/components/ui/variable-picker" (module) {
|
|
286
286
|
module.exports = require("./variable-picker/index.cjs");
|
|
287
287
|
},
|
|
288
288
|
"./variable-value-control" (module) {
|
|
@@ -398,7 +398,7 @@ var __webpack_exports__ = {};
|
|
|
398
398
|
"ReferenceChip"
|
|
399
399
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_5[__rspack_import_key];
|
|
400
400
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
401
|
-
var _badge__rspack_import_6 = __webpack_require__("
|
|
401
|
+
var _badge__rspack_import_6 = __webpack_require__("@/components/ui/badge");
|
|
402
402
|
var __rspack_reexport = {};
|
|
403
403
|
for(const __rspack_import_key in _badge__rspack_import_6)if ([
|
|
404
404
|
"getReferenceChipColors",
|
|
@@ -438,7 +438,7 @@ var __webpack_exports__ = {};
|
|
|
438
438
|
"ReferenceChip"
|
|
439
439
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_bubble__rspack_import_9[__rspack_import_key];
|
|
440
440
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
441
|
-
var _button__rspack_import_10 = __webpack_require__("
|
|
441
|
+
var _button__rspack_import_10 = __webpack_require__("./button");
|
|
442
442
|
var __rspack_reexport = {};
|
|
443
443
|
for(const __rspack_import_key in _button__rspack_import_10)if ([
|
|
444
444
|
"getReferenceChipColors",
|
|
@@ -508,7 +508,7 @@ var __webpack_exports__ = {};
|
|
|
508
508
|
"ReferenceChip"
|
|
509
509
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_chat_hero__rspack_import_16[__rspack_import_key];
|
|
510
510
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
511
|
-
var _checkbox__rspack_import_17 = __webpack_require__("
|
|
511
|
+
var _checkbox__rspack_import_17 = __webpack_require__("@/components/ui/checkbox");
|
|
512
512
|
var __rspack_reexport = {};
|
|
513
513
|
for(const __rspack_import_key in _checkbox__rspack_import_17)if ([
|
|
514
514
|
"getReferenceChipColors",
|
|
@@ -538,7 +538,7 @@ var __webpack_exports__ = {};
|
|
|
538
538
|
"ReferenceChip"
|
|
539
539
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_code_block__rspack_import_19[__rspack_import_key];
|
|
540
540
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
541
|
-
var _collapsible__rspack_import_20 = __webpack_require__("
|
|
541
|
+
var _collapsible__rspack_import_20 = __webpack_require__("@/components/ui/collapsible");
|
|
542
542
|
var __rspack_reexport = {};
|
|
543
543
|
for(const __rspack_import_key in _collapsible__rspack_import_20)if ([
|
|
544
544
|
"getReferenceChipColors",
|
|
@@ -558,7 +558,7 @@ var __webpack_exports__ = {};
|
|
|
558
558
|
"ReferenceChip"
|
|
559
559
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_21[__rspack_import_key];
|
|
560
560
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
561
|
-
var _command__rspack_import_22 = __webpack_require__("
|
|
561
|
+
var _command__rspack_import_22 = __webpack_require__("@/components/ui/command");
|
|
562
562
|
var __rspack_reexport = {};
|
|
563
563
|
for(const __rspack_import_key in _command__rspack_import_22)if ([
|
|
564
564
|
"getReferenceChipColors",
|
|
@@ -568,7 +568,7 @@ var __webpack_exports__ = {};
|
|
|
568
568
|
"ReferenceChip"
|
|
569
569
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_22[__rspack_import_key];
|
|
570
570
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
571
|
-
var _context_menu__rspack_import_23 = __webpack_require__("
|
|
571
|
+
var _context_menu__rspack_import_23 = __webpack_require__("@/components/ui/context-menu");
|
|
572
572
|
var __rspack_reexport = {};
|
|
573
573
|
for(const __rspack_import_key in _context_menu__rspack_import_23)if ([
|
|
574
574
|
"getReferenceChipColors",
|
|
@@ -608,7 +608,7 @@ var __webpack_exports__ = {};
|
|
|
608
608
|
"ReferenceChip"
|
|
609
609
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_26[__rspack_import_key];
|
|
610
610
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
611
|
-
var _dialog__rspack_import_27 = __webpack_require__("
|
|
611
|
+
var _dialog__rspack_import_27 = __webpack_require__("@/components/ui/dialog");
|
|
612
612
|
var __rspack_reexport = {};
|
|
613
613
|
for(const __rspack_import_key in _dialog__rspack_import_27)if ([
|
|
614
614
|
"getReferenceChipColors",
|
|
@@ -728,7 +728,7 @@ var __webpack_exports__ = {};
|
|
|
728
728
|
"ReferenceChip"
|
|
729
729
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_file_validation__rspack_import_38[__rspack_import_key];
|
|
730
730
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
731
|
-
var _form_field__rspack_import_39 = __webpack_require__("
|
|
731
|
+
var _form_field__rspack_import_39 = __webpack_require__("./form-field");
|
|
732
732
|
var __rspack_reexport = {};
|
|
733
733
|
for(const __rspack_import_key in _form_field__rspack_import_39)if ([
|
|
734
734
|
"getReferenceChipColors",
|
|
@@ -738,7 +738,7 @@ var __webpack_exports__ = {};
|
|
|
738
738
|
"ReferenceChip"
|
|
739
739
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_form_field__rspack_import_39[__rspack_import_key];
|
|
740
740
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
741
|
-
var _hover_card__rspack_import_40 = __webpack_require__("
|
|
741
|
+
var _hover_card__rspack_import_40 = __webpack_require__("@/components/ui/hover-card");
|
|
742
742
|
var __rspack_reexport = {};
|
|
743
743
|
for(const __rspack_import_key in _hover_card__rspack_import_40)if ([
|
|
744
744
|
"getReferenceChipColors",
|
|
@@ -748,7 +748,7 @@ var __webpack_exports__ = {};
|
|
|
748
748
|
"ReferenceChip"
|
|
749
749
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_40[__rspack_import_key];
|
|
750
750
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
751
|
-
var _info_tooltip__rspack_import_41 = __webpack_require__("
|
|
751
|
+
var _info_tooltip__rspack_import_41 = __webpack_require__("./info-tooltip");
|
|
752
752
|
var __rspack_reexport = {};
|
|
753
753
|
for(const __rspack_import_key in _info_tooltip__rspack_import_41)if ([
|
|
754
754
|
"getReferenceChipColors",
|
|
@@ -758,7 +758,7 @@ var __webpack_exports__ = {};
|
|
|
758
758
|
"ReferenceChip"
|
|
759
759
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_info_tooltip__rspack_import_41[__rspack_import_key];
|
|
760
760
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
761
|
-
var _input__rspack_import_42 = __webpack_require__("
|
|
761
|
+
var _input__rspack_import_42 = __webpack_require__("@/components/ui/input");
|
|
762
762
|
var __rspack_reexport = {};
|
|
763
763
|
for(const __rspack_import_key in _input__rspack_import_42)if ([
|
|
764
764
|
"getReferenceChipColors",
|
|
@@ -768,7 +768,7 @@ var __webpack_exports__ = {};
|
|
|
768
768
|
"ReferenceChip"
|
|
769
769
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_42[__rspack_import_key];
|
|
770
770
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
771
|
-
var _input_group__rspack_import_43 = __webpack_require__("
|
|
771
|
+
var _input_group__rspack_import_43 = __webpack_require__("@/components/ui/input-group");
|
|
772
772
|
var __rspack_reexport = {};
|
|
773
773
|
for(const __rspack_import_key in _input_group__rspack_import_43)if ([
|
|
774
774
|
"getReferenceChipColors",
|
|
@@ -788,7 +788,7 @@ var __webpack_exports__ = {};
|
|
|
788
788
|
"ReferenceChip"
|
|
789
789
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_json_tree_view__rspack_import_44[__rspack_import_key];
|
|
790
790
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
791
|
-
var _label__rspack_import_45 = __webpack_require__("
|
|
791
|
+
var _label__rspack_import_45 = __webpack_require__("./label");
|
|
792
792
|
var __rspack_reexport = {};
|
|
793
793
|
for(const __rspack_import_key in _label__rspack_import_45)if ([
|
|
794
794
|
"getReferenceChipColors",
|
|
@@ -798,7 +798,7 @@ var __webpack_exports__ = {};
|
|
|
798
798
|
"ReferenceChip"
|
|
799
799
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_45[__rspack_import_key];
|
|
800
800
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
801
|
-
var _layout__rspack_import_46 = __webpack_require__("
|
|
801
|
+
var _layout__rspack_import_46 = __webpack_require__("./layout");
|
|
802
802
|
var __rspack_reexport = {};
|
|
803
803
|
for(const __rspack_import_key in _layout__rspack_import_46)if ([
|
|
804
804
|
"getReferenceChipColors",
|
|
@@ -1018,7 +1018,7 @@ var __webpack_exports__ = {};
|
|
|
1018
1018
|
"ReferenceChip"
|
|
1019
1019
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_radio_group__rspack_import_67[__rspack_import_key];
|
|
1020
1020
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1021
|
-
var _reference_chip__rspack_import_68 = __webpack_require__("
|
|
1021
|
+
var _reference_chip__rspack_import_68 = __webpack_require__("@/components/ui/reference-chip");
|
|
1022
1022
|
var _reference_chip_colors__rspack_import_69 = __webpack_require__("./reference-chip-colors");
|
|
1023
1023
|
var _resizable__rspack_import_70 = __webpack_require__("./resizable");
|
|
1024
1024
|
var __rspack_reexport = {};
|
|
@@ -1210,7 +1210,7 @@ var __webpack_exports__ = {};
|
|
|
1210
1210
|
"ReferenceChip"
|
|
1211
1211
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_thinking_indicator__rspack_import_88[__rspack_import_key];
|
|
1212
1212
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1213
|
-
var _toggle__rspack_import_89 = __webpack_require__("
|
|
1213
|
+
var _toggle__rspack_import_89 = __webpack_require__("./toggle");
|
|
1214
1214
|
var __rspack_reexport = {};
|
|
1215
1215
|
for(const __rspack_import_key in _toggle__rspack_import_89)if ([
|
|
1216
1216
|
"getReferenceChipColors",
|
|
@@ -1240,7 +1240,7 @@ var __webpack_exports__ = {};
|
|
|
1240
1240
|
"ReferenceChip"
|
|
1241
1241
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tool_call__rspack_import_91[__rspack_import_key];
|
|
1242
1242
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1243
|
-
var _tooltip__rspack_import_92 = __webpack_require__("
|
|
1243
|
+
var _tooltip__rspack_import_92 = __webpack_require__("./tooltip");
|
|
1244
1244
|
var __rspack_reexport = {};
|
|
1245
1245
|
for(const __rspack_import_key in _tooltip__rspack_import_92)if ([
|
|
1246
1246
|
"getReferenceChipColors",
|
|
@@ -1252,7 +1252,7 @@ var __webpack_exports__ = {};
|
|
|
1252
1252
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1253
1253
|
var _tree_view__rspack_import_93 = __webpack_require__("./tree-view");
|
|
1254
1254
|
var _tree_view__rspack_import_93_default = /*#__PURE__*/ __webpack_require__.n(_tree_view__rspack_import_93);
|
|
1255
|
-
var _variable_picker__rspack_import_94 = __webpack_require__("
|
|
1255
|
+
var _variable_picker__rspack_import_94 = __webpack_require__("@/components/ui/variable-picker");
|
|
1256
1256
|
var __rspack_reexport = {};
|
|
1257
1257
|
for(const __rspack_import_key in _variable_picker__rspack_import_94)if ([
|
|
1258
1258
|
"getReferenceChipColors",
|
|
@@ -122,7 +122,7 @@ function JsonTreeView({ strings, tooltipContentClassName, ...props }) {
|
|
|
122
122
|
})
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query, filterPredicate, readOnly = false, onEdit, rowWrapper, decorateNode, deriveTypeIcon, renderValue, nodeActions, maxInlineActions = 3, renderCodeEditor, pathForCopy, onCopy, virtualized = false, scrollElement, emptyMessage, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className }) {
|
|
125
|
+
function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query, filterPredicate, readOnly = false, onEdit, rowWrapper, decorateNode, deriveTypeIcon, deriveTypeLabel, renderValue, nodeActions, maxInlineActions = 3, renderCodeEditor, pathForCopy, canCopyPath, onCopy, virtualized = false, scrollElement, emptyMessage, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className }) {
|
|
126
126
|
const strings = (0, external_strings_cjs_namespaceObject.useJsonTreeViewStrings)();
|
|
127
127
|
const [container, setContainer] = (0, external_react_namespaceObject.useState)(null);
|
|
128
128
|
const usesAncestorScroller = virtualized && !!scrollElement;
|
|
@@ -215,11 +215,13 @@ function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query,
|
|
|
215
215
|
readOnly,
|
|
216
216
|
decorateNode,
|
|
217
217
|
deriveTypeIcon,
|
|
218
|
+
deriveTypeLabel,
|
|
218
219
|
renderValue,
|
|
219
220
|
nodeActions,
|
|
220
221
|
maxInlineActions,
|
|
221
222
|
renderCodeEditor,
|
|
222
223
|
pathForCopy,
|
|
224
|
+
canCopyPath,
|
|
223
225
|
canEdit,
|
|
224
226
|
RowWrapper,
|
|
225
227
|
templateItemLabel,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CopyEvent, DeriveTypeIcon, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
1
|
+
import type { CanCopyPath, CopyEvent, DeriveTypeIcon, DeriveTypeLabel, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
2
2
|
import { type JsonTreeViewStrings } from './strings';
|
|
3
3
|
export interface JsonTreeViewProps {
|
|
4
4
|
/** Tree built with `buildJsonTree`. */
|
|
@@ -27,6 +27,8 @@ export interface JsonTreeViewProps {
|
|
|
27
27
|
decorateNode?: (node: JsonTreeNode) => NodeDecoration | undefined;
|
|
28
28
|
/** Custom type-badge icons per node. Return undefined to keep the default type icon. */
|
|
29
29
|
deriveTypeIcon?: DeriveTypeIcon;
|
|
30
|
+
/** Custom type names for badge tooltips. Return undefined to keep the JSON type name. */
|
|
31
|
+
deriveTypeLabel?: DeriveTypeLabel;
|
|
30
32
|
/** Custom value cell renderer; return undefined to keep the default cell. */
|
|
31
33
|
renderValue?: RenderValueCell;
|
|
32
34
|
/**
|
|
@@ -44,6 +46,11 @@ export interface JsonTreeViewProps {
|
|
|
44
46
|
renderCodeEditor?: RenderCodeEditor;
|
|
45
47
|
/** Builds the text copied when a field name is clicked. Defaults to the path itself. */
|
|
46
48
|
pathForCopy?: PathForCopy;
|
|
49
|
+
/**
|
|
50
|
+
* Whether clicking a node's field name copies its path. Return false to show
|
|
51
|
+
* the name as plain text (e.g. a reference that no longer resolves). Default: every node.
|
|
52
|
+
*/
|
|
53
|
+
canCopyPath?: CanCopyPath;
|
|
47
54
|
/** Called after something is copied to the clipboard. */
|
|
48
55
|
onCopy?: (event: CopyEvent) => void;
|
|
49
56
|
/**
|
|
@@ -94,7 +94,7 @@ function JsonTreeView({ strings, tooltipContentClassName, ...props }) {
|
|
|
94
94
|
})
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query, filterPredicate, readOnly = false, onEdit, rowWrapper, decorateNode, deriveTypeIcon, renderValue, nodeActions, maxInlineActions = 3, renderCodeEditor, pathForCopy, onCopy, virtualized = false, scrollElement, emptyMessage, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className }) {
|
|
97
|
+
function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query, filterPredicate, readOnly = false, onEdit, rowWrapper, decorateNode, deriveTypeIcon, deriveTypeLabel, renderValue, nodeActions, maxInlineActions = 3, renderCodeEditor, pathForCopy, canCopyPath, onCopy, virtualized = false, scrollElement, emptyMessage, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className }) {
|
|
98
98
|
const strings = useJsonTreeViewStrings();
|
|
99
99
|
const [container, setContainer] = useState(null);
|
|
100
100
|
const usesAncestorScroller = virtualized && !!scrollElement;
|
|
@@ -187,11 +187,13 @@ function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query,
|
|
|
187
187
|
readOnly,
|
|
188
188
|
decorateNode,
|
|
189
189
|
deriveTypeIcon,
|
|
190
|
+
deriveTypeLabel,
|
|
190
191
|
renderValue,
|
|
191
192
|
nodeActions,
|
|
192
193
|
maxInlineActions,
|
|
193
194
|
renderCodeEditor,
|
|
194
195
|
pathForCopy,
|
|
196
|
+
canCopyPath,
|
|
195
197
|
canEdit,
|
|
196
198
|
RowWrapper,
|
|
197
199
|
templateItemLabel,
|
|
@@ -85,6 +85,11 @@ export type NodeDecorationTone = 'neutral' | 'info' | 'warning' | 'error';
|
|
|
85
85
|
* `format: 'file'` schemas). Return undefined to keep the default type icon.
|
|
86
86
|
*/
|
|
87
87
|
export type DeriveTypeIcon = (node: JsonTreeNode) => ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Derives the type name a node's badge shows on hover (e.g. `'File'` for
|
|
90
|
+
* `format: 'file'` schemas). Return undefined to keep the JSON type name.
|
|
91
|
+
*/
|
|
92
|
+
export type DeriveTypeLabel = (node: JsonTreeNode) => string | undefined;
|
|
88
93
|
/** Chip annotation next to a node's key. Provide a label, an icon, or both. */
|
|
89
94
|
export interface NodeDecorationChip {
|
|
90
95
|
/** Pill text. Omit for a bare icon-only annotation. */
|
|
@@ -117,9 +122,14 @@ export interface NodeDecorationBadge {
|
|
|
117
122
|
className?: string;
|
|
118
123
|
/**
|
|
119
124
|
* Marks the node as a reference to another variable. The badge gets a
|
|
120
|
-
* corner tab with an arrow, and its tooltip names the reference.
|
|
125
|
+
* corner tab with an arrow, and its default tooltip names the reference.
|
|
121
126
|
*/
|
|
122
127
|
reference?: NodeBadgeReference;
|
|
128
|
+
/**
|
|
129
|
+
* Replaces the badge's hover content (wins over `deriveTypeLabel`), on a
|
|
130
|
+
* reference badge too. Keep it non-interactive, like chip tooltips.
|
|
131
|
+
*/
|
|
132
|
+
tooltip?: ReactNode;
|
|
123
133
|
}
|
|
124
134
|
/** A reference marker on a row's type badge. */
|
|
125
135
|
export interface NodeBadgeReference {
|
|
@@ -143,7 +153,7 @@ export interface NodeDecoration {
|
|
|
143
153
|
* in the row's flexible space, so revealing it never moves the trailing cluster.
|
|
144
154
|
*/
|
|
145
155
|
sublabelOnHover?: boolean;
|
|
146
|
-
/**
|
|
156
|
+
/** Customizes the type badge: its icon, color, reference marker, or tooltip. */
|
|
147
157
|
badge?: NodeDecorationBadge;
|
|
148
158
|
/** Small pill rendered next to the key (e.g. "mocked"). */
|
|
149
159
|
chip?: NodeDecorationChip;
|
|
@@ -249,6 +259,8 @@ export interface CopyEvent {
|
|
|
249
259
|
* key) without re-parsing the bracket-quoted string.
|
|
250
260
|
*/
|
|
251
261
|
export type PathForCopy = (path: string, segments: PathSegment[]) => string;
|
|
262
|
+
/** Whether clicking a node's field name copies its path. */
|
|
263
|
+
export type CanCopyPath = (node: JsonTreeNode) => boolean;
|
|
252
264
|
/** Details about a single value edit. */
|
|
253
265
|
export interface JsonTreeChange {
|
|
254
266
|
path: string;
|
|
@@ -270,6 +282,11 @@ export interface JsonTreeChange {
|
|
|
270
282
|
*/
|
|
271
283
|
export interface JsonTreeRowWrapperProps {
|
|
272
284
|
node: JsonTreeNode;
|
|
285
|
+
/**
|
|
286
|
+
* The node's path as the tree shows and copies it, after `pathForCopy`
|
|
287
|
+
* (e.g. `$vars.httpRequest1.output.body`). Also on the row as `data-reference`.
|
|
288
|
+
*/
|
|
289
|
+
displayPath: string;
|
|
273
290
|
className?: string;
|
|
274
291
|
style?: CSSProperties;
|
|
275
292
|
/**
|
|
@@ -46,7 +46,7 @@ const external_treeGrid_cjs_namespaceObject = require("./treeGrid.cjs");
|
|
|
46
46
|
const ROW_CLASS = 'group flex min-h-7 cursor-default items-center gap-2 py-1 pr-1 transition hover:bg-surface-overlay';
|
|
47
47
|
const ROW_MIN_HEIGHT_PX = 28;
|
|
48
48
|
const VALUE_CELL_CLASS = 'flex min-w-8 flex-1 items-center';
|
|
49
|
-
const NAME_CELL_CLASS = 'flex min-w-0
|
|
49
|
+
const NAME_CELL_CLASS = 'flex min-w-0 items-center gap-2';
|
|
50
50
|
const FOCUS_RING_CLASS = 'outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring';
|
|
51
51
|
const ROW_ELEMENT_CLASS = `group/row ${FOCUS_RING_CLASS}`;
|
|
52
52
|
function rowIndent(depth, extra = 0) {
|
|
@@ -75,7 +75,7 @@ function useJsonTreeRowContext() {
|
|
|
75
75
|
function JsonTreeRow({ row, index }) {
|
|
76
76
|
const { node, depth } = row;
|
|
77
77
|
const strings = (0, external_strings_cjs_namespaceObject.useJsonTreeViewStrings)();
|
|
78
|
-
const { collapsed, onToggleCollapsed, readOnly, decorateNode, deriveTypeIcon, renderValue, nodeActions, maxInlineActions, renderCodeEditor, pathForCopy, canEdit, RowWrapper, templateItemLabel, editingPath, jsonEditingPath, wrappedPaths, copied, activePath, setEditingPath, setJsonEditingPath, copyPath, copyValue, toggleWrapped, commitEdit } = useJsonTreeRowContext();
|
|
78
|
+
const { collapsed, onToggleCollapsed, readOnly, decorateNode, deriveTypeIcon, deriveTypeLabel, renderValue, nodeActions, maxInlineActions, renderCodeEditor, pathForCopy, canCopyPath, canEdit, RowWrapper, templateItemLabel, editingPath, jsonEditingPath, wrappedPaths, copied, activePath, setEditingPath, setJsonEditingPath, copyPath, copyValue, toggleWrapped, commitEdit } = useJsonTreeRowContext();
|
|
79
79
|
const isTabStop = activePath === node.path;
|
|
80
80
|
const buildDefaultActions = (node, flags)=>{
|
|
81
81
|
const actions = [];
|
|
@@ -109,7 +109,9 @@ function JsonTreeRow({ row, index }) {
|
|
|
109
109
|
const isTemplate = !!node.isArrayItemTemplate;
|
|
110
110
|
const isTemplateItem = (0, external_buildJsonTree_cjs_namespaceObject.isArrayItemTemplateRoot)(node);
|
|
111
111
|
const childCount = node.children?.filter((c)=>!(0, external_buildJsonTree_cjs_namespaceObject.isArrayItemTemplateRoot)(c)).length ?? 0;
|
|
112
|
+
const showsCount = !('array' === node.type && void 0 === node.value);
|
|
112
113
|
const decoration = decorateNode?.(node);
|
|
114
|
+
const displayPath = pathForCopy?.(node.path, node.segments) ?? node.path;
|
|
113
115
|
const customCell = renderValue?.(node, {
|
|
114
116
|
readOnly,
|
|
115
117
|
commit: (value)=>commitEdit(node, value),
|
|
@@ -146,10 +148,12 @@ function JsonTreeRow({ row, index }) {
|
|
|
146
148
|
const collapsedHere = isContainer && (0, external_buildJsonTree_cjs_namespaceObject.isPathCollapsed)(collapsed, node.path);
|
|
147
149
|
const editingInline = editingPath === node.path && !wrapped;
|
|
148
150
|
const showsValue = !isContainer && !wrapped && !decoration?.hideValue && (null != customCell || !(readOnly && void 0 === node.value || isTemplate));
|
|
151
|
+
const besideValue = isContainer ? null != customCell : showsValue;
|
|
149
152
|
const editingDetail = wrapped && editingPath === node.path && canEdit || isContainer && jsonEditingPath === node.path;
|
|
150
153
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
151
154
|
role: "row",
|
|
152
155
|
"data-path": node.path,
|
|
156
|
+
"data-reference": displayPath,
|
|
153
157
|
tabIndex: isTabStop ? 0 : -1,
|
|
154
158
|
"aria-level": depth + 1,
|
|
155
159
|
"aria-posinset": row.posInSet,
|
|
@@ -160,13 +164,14 @@ function JsonTreeRow({ row, index }) {
|
|
|
160
164
|
children: [
|
|
161
165
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(RowWrapper, {
|
|
162
166
|
node: node,
|
|
167
|
+
displayPath: displayPath,
|
|
163
168
|
className: (0, index_cjs_namespaceObject.cn)(ROW_CLASS, rowClickable && 'cursor-pointer'),
|
|
164
169
|
style: rowIndent(depth),
|
|
165
170
|
onClick: rowClickable ? handleRowClick : void 0,
|
|
166
171
|
children: [
|
|
167
172
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(GridCell, {
|
|
168
173
|
cell: "name",
|
|
169
|
-
className: NAME_CELL_CLASS,
|
|
174
|
+
className: (0, index_cjs_namespaceObject.cn)(NAME_CELL_CLASS, besideValue && 'max-w-1/2'),
|
|
170
175
|
children: [
|
|
171
176
|
isContainer ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
172
177
|
type: "button",
|
|
@@ -187,15 +192,21 @@ function JsonTreeRow({ row, index }) {
|
|
|
187
192
|
type: node.type,
|
|
188
193
|
icon: decoration?.badge?.icon ?? deriveTypeIcon?.(node),
|
|
189
194
|
className: decoration?.badge?.className,
|
|
190
|
-
reference: decoration?.badge?.reference
|
|
195
|
+
reference: decoration?.badge?.reference,
|
|
196
|
+
typeLabel: deriveTypeLabel?.(node),
|
|
197
|
+
tooltip: decoration?.badge?.tooltip
|
|
191
198
|
}),
|
|
192
199
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_NodeKey_cjs_namespaceObject.NodeKey, {
|
|
193
200
|
node: node,
|
|
194
201
|
label: isTemplateItem ? templateItemLabel : decoration?.label,
|
|
195
|
-
displayPath:
|
|
196
|
-
onCopyPath: copyPath,
|
|
202
|
+
displayPath: displayPath,
|
|
203
|
+
onCopyPath: canCopyPath?.(node) === false ? void 0 : copyPath,
|
|
197
204
|
className: isTemplateItem ? 'font-normal italic text-foreground-subtle' : void 0
|
|
198
205
|
}),
|
|
206
|
+
node.required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_label_cjs_namespaceObject.RequiredIndicator, {
|
|
207
|
+
className: "-ml-1.5 shrink-0 text-[10px] text-foreground",
|
|
208
|
+
srLabel: strings.requiredMarker
|
|
209
|
+
}),
|
|
199
210
|
copied?.path === node.path && 'path' === copied.kind && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CircleCheck, {
|
|
200
211
|
size: 11,
|
|
201
212
|
className: "shrink-0 text-brand",
|
|
@@ -204,18 +215,14 @@ function JsonTreeRow({ row, index }) {
|
|
|
204
215
|
decoration?.sublabel && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
205
216
|
className: (0, index_cjs_namespaceObject.cn)('min-w-0 truncate font-mono text-[10px] text-foreground-subtle leading-4', decoration.sublabelOnHover && 'hidden group-hover:block group-focus-within/row:block'),
|
|
206
217
|
children: decoration.sublabel
|
|
207
|
-
}),
|
|
208
|
-
node.required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_label_cjs_namespaceObject.RequiredIndicator, {
|
|
209
|
-
className: "ml-0 shrink-0 text-[10px] text-foreground",
|
|
210
|
-
srLabel: strings.requiredMarker
|
|
211
218
|
})
|
|
212
219
|
]
|
|
213
220
|
}),
|
|
214
221
|
isContainer ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(GridCell, {
|
|
215
222
|
cell: "value",
|
|
216
|
-
className: (0, index_cjs_namespaceObject.cn)('flex min-w-0 items-center gap-2', null != customCell
|
|
223
|
+
className: (0, index_cjs_namespaceObject.cn)('flex min-w-0 items-center gap-2', null != customCell ? 'flex-1' : !decoration?.chip && 'shrink-0'),
|
|
217
224
|
children: [
|
|
218
|
-
!decoration?.hideCount && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
225
|
+
showsCount && !decoration?.hideCount && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
219
226
|
className: "shrink-0 whitespace-nowrap font-mono italic text-[10px] text-foreground-subtle",
|
|
220
227
|
children: 'array' === node.type ? strings.itemCount(childCount) : strings.keyCount(childCount)
|
|
221
228
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FlatJsonTreeRow } from './buildJsonTree';
|
|
2
|
-
import type { CopyEvent, DeriveTypeIcon, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
2
|
+
import type { CanCopyPath, CopyEvent, DeriveTypeIcon, DeriveTypeLabel, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
3
3
|
/** `min-h-7` above (1.75rem) in px at the default root size: the virtualizer's estimate
|
|
4
4
|
* until each row is measured, so a different root size costs accuracy but not correctness. */
|
|
5
5
|
export declare const ROW_MIN_HEIGHT_PX = 28;
|
|
@@ -21,11 +21,13 @@ export interface JsonTreeRowContextValue {
|
|
|
21
21
|
readOnly: boolean;
|
|
22
22
|
decorateNode?: (node: JsonTreeNode) => NodeDecoration | undefined;
|
|
23
23
|
deriveTypeIcon?: DeriveTypeIcon;
|
|
24
|
+
deriveTypeLabel?: DeriveTypeLabel;
|
|
24
25
|
renderValue?: RenderValueCell;
|
|
25
26
|
nodeActions?: NodeActionsResolver;
|
|
26
27
|
maxInlineActions: number;
|
|
27
28
|
renderCodeEditor?: RenderCodeEditor;
|
|
28
29
|
pathForCopy?: PathForCopy;
|
|
30
|
+
canCopyPath?: CanCopyPath;
|
|
29
31
|
/** Editability is row-invariant (props only), so it is resolved once. */
|
|
30
32
|
canEdit: boolean;
|
|
31
33
|
RowWrapper: JsonTreeRowWrapper;
|
|
@@ -16,7 +16,7 @@ import { isParentRow } from "./treeGrid.js";
|
|
|
16
16
|
const ROW_CLASS = 'group flex min-h-7 cursor-default items-center gap-2 py-1 pr-1 transition hover:bg-surface-overlay';
|
|
17
17
|
const ROW_MIN_HEIGHT_PX = 28;
|
|
18
18
|
const VALUE_CELL_CLASS = 'flex min-w-8 flex-1 items-center';
|
|
19
|
-
const NAME_CELL_CLASS = 'flex min-w-0
|
|
19
|
+
const NAME_CELL_CLASS = 'flex min-w-0 items-center gap-2';
|
|
20
20
|
const FOCUS_RING_CLASS = 'outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring';
|
|
21
21
|
const ROW_ELEMENT_CLASS = `group/row ${FOCUS_RING_CLASS}`;
|
|
22
22
|
function rowIndent(depth, extra = 0) {
|
|
@@ -45,7 +45,7 @@ function useJsonTreeRowContext() {
|
|
|
45
45
|
function JsonTreeRow({ row, index }) {
|
|
46
46
|
const { node, depth } = row;
|
|
47
47
|
const strings = useJsonTreeViewStrings();
|
|
48
|
-
const { collapsed, onToggleCollapsed, readOnly, decorateNode, deriveTypeIcon, renderValue, nodeActions, maxInlineActions, renderCodeEditor, pathForCopy, canEdit, RowWrapper, templateItemLabel, editingPath, jsonEditingPath, wrappedPaths, copied, activePath, setEditingPath, setJsonEditingPath, copyPath, copyValue, toggleWrapped, commitEdit } = useJsonTreeRowContext();
|
|
48
|
+
const { collapsed, onToggleCollapsed, readOnly, decorateNode, deriveTypeIcon, deriveTypeLabel, renderValue, nodeActions, maxInlineActions, renderCodeEditor, pathForCopy, canCopyPath, canEdit, RowWrapper, templateItemLabel, editingPath, jsonEditingPath, wrappedPaths, copied, activePath, setEditingPath, setJsonEditingPath, copyPath, copyValue, toggleWrapped, commitEdit } = useJsonTreeRowContext();
|
|
49
49
|
const isTabStop = activePath === node.path;
|
|
50
50
|
const buildDefaultActions = (node, flags)=>{
|
|
51
51
|
const actions = [];
|
|
@@ -79,7 +79,9 @@ function JsonTreeRow({ row, index }) {
|
|
|
79
79
|
const isTemplate = !!node.isArrayItemTemplate;
|
|
80
80
|
const isTemplateItem = isArrayItemTemplateRoot(node);
|
|
81
81
|
const childCount = node.children?.filter((c)=>!isArrayItemTemplateRoot(c)).length ?? 0;
|
|
82
|
+
const showsCount = !('array' === node.type && void 0 === node.value);
|
|
82
83
|
const decoration = decorateNode?.(node);
|
|
84
|
+
const displayPath = pathForCopy?.(node.path, node.segments) ?? node.path;
|
|
83
85
|
const customCell = renderValue?.(node, {
|
|
84
86
|
readOnly,
|
|
85
87
|
commit: (value)=>commitEdit(node, value),
|
|
@@ -116,10 +118,12 @@ function JsonTreeRow({ row, index }) {
|
|
|
116
118
|
const collapsedHere = isContainer && isPathCollapsed(collapsed, node.path);
|
|
117
119
|
const editingInline = editingPath === node.path && !wrapped;
|
|
118
120
|
const showsValue = !isContainer && !wrapped && !decoration?.hideValue && (null != customCell || !(readOnly && void 0 === node.value || isTemplate));
|
|
121
|
+
const besideValue = isContainer ? null != customCell : showsValue;
|
|
119
122
|
const editingDetail = wrapped && editingPath === node.path && canEdit || isContainer && jsonEditingPath === node.path;
|
|
120
123
|
return /*#__PURE__*/ jsxs("div", {
|
|
121
124
|
role: "row",
|
|
122
125
|
"data-path": node.path,
|
|
126
|
+
"data-reference": displayPath,
|
|
123
127
|
tabIndex: isTabStop ? 0 : -1,
|
|
124
128
|
"aria-level": depth + 1,
|
|
125
129
|
"aria-posinset": row.posInSet,
|
|
@@ -130,13 +134,14 @@ function JsonTreeRow({ row, index }) {
|
|
|
130
134
|
children: [
|
|
131
135
|
/*#__PURE__*/ jsxs(RowWrapper, {
|
|
132
136
|
node: node,
|
|
137
|
+
displayPath: displayPath,
|
|
133
138
|
className: cn(ROW_CLASS, rowClickable && 'cursor-pointer'),
|
|
134
139
|
style: rowIndent(depth),
|
|
135
140
|
onClick: rowClickable ? handleRowClick : void 0,
|
|
136
141
|
children: [
|
|
137
142
|
/*#__PURE__*/ jsxs(GridCell, {
|
|
138
143
|
cell: "name",
|
|
139
|
-
className: NAME_CELL_CLASS,
|
|
144
|
+
className: cn(NAME_CELL_CLASS, besideValue && 'max-w-1/2'),
|
|
140
145
|
children: [
|
|
141
146
|
isContainer ? /*#__PURE__*/ jsx("button", {
|
|
142
147
|
type: "button",
|
|
@@ -157,15 +162,21 @@ function JsonTreeRow({ row, index }) {
|
|
|
157
162
|
type: node.type,
|
|
158
163
|
icon: decoration?.badge?.icon ?? deriveTypeIcon?.(node),
|
|
159
164
|
className: decoration?.badge?.className,
|
|
160
|
-
reference: decoration?.badge?.reference
|
|
165
|
+
reference: decoration?.badge?.reference,
|
|
166
|
+
typeLabel: deriveTypeLabel?.(node),
|
|
167
|
+
tooltip: decoration?.badge?.tooltip
|
|
161
168
|
}),
|
|
162
169
|
/*#__PURE__*/ jsx(NodeKey, {
|
|
163
170
|
node: node,
|
|
164
171
|
label: isTemplateItem ? templateItemLabel : decoration?.label,
|
|
165
|
-
displayPath:
|
|
166
|
-
onCopyPath: copyPath,
|
|
172
|
+
displayPath: displayPath,
|
|
173
|
+
onCopyPath: canCopyPath?.(node) === false ? void 0 : copyPath,
|
|
167
174
|
className: isTemplateItem ? 'font-normal italic text-foreground-subtle' : void 0
|
|
168
175
|
}),
|
|
176
|
+
node.required && /*#__PURE__*/ jsx(RequiredIndicator, {
|
|
177
|
+
className: "-ml-1.5 shrink-0 text-[10px] text-foreground",
|
|
178
|
+
srLabel: strings.requiredMarker
|
|
179
|
+
}),
|
|
169
180
|
copied?.path === node.path && 'path' === copied.kind && /*#__PURE__*/ jsx(CircleCheck, {
|
|
170
181
|
size: 11,
|
|
171
182
|
className: "shrink-0 text-brand",
|
|
@@ -174,18 +185,14 @@ function JsonTreeRow({ row, index }) {
|
|
|
174
185
|
decoration?.sublabel && /*#__PURE__*/ jsx("span", {
|
|
175
186
|
className: cn('min-w-0 truncate font-mono text-[10px] text-foreground-subtle leading-4', decoration.sublabelOnHover && 'hidden group-hover:block group-focus-within/row:block'),
|
|
176
187
|
children: decoration.sublabel
|
|
177
|
-
}),
|
|
178
|
-
node.required && /*#__PURE__*/ jsx(RequiredIndicator, {
|
|
179
|
-
className: "ml-0 shrink-0 text-[10px] text-foreground",
|
|
180
|
-
srLabel: strings.requiredMarker
|
|
181
188
|
})
|
|
182
189
|
]
|
|
183
190
|
}),
|
|
184
191
|
isContainer ? /*#__PURE__*/ jsxs(GridCell, {
|
|
185
192
|
cell: "value",
|
|
186
|
-
className: cn('flex min-w-0 items-center gap-2', null != customCell
|
|
193
|
+
className: cn('flex min-w-0 items-center gap-2', null != customCell ? 'flex-1' : !decoration?.chip && 'shrink-0'),
|
|
187
194
|
children: [
|
|
188
|
-
!decoration?.hideCount && /*#__PURE__*/ jsx("span", {
|
|
195
|
+
showsCount && !decoration?.hideCount && /*#__PURE__*/ jsx("span", {
|
|
189
196
|
className: "shrink-0 whitespace-nowrap font-mono italic text-[10px] text-foreground-subtle",
|
|
190
197
|
children: 'array' === node.type ? strings.itemCount(childCount) : strings.keyCount(childCount)
|
|
191
198
|
}),
|
|
@@ -47,23 +47,28 @@ const TYPE_LABEL = {
|
|
|
47
47
|
array: 'Array',
|
|
48
48
|
null: 'Null'
|
|
49
49
|
};
|
|
50
|
-
function JsonTypeBadge({ type, icon, className, tooltip, reference }) {
|
|
50
|
+
function JsonTypeBadge({ type, icon, className, typeLabel, tooltip, reference }) {
|
|
51
51
|
const strings = (0, external_strings_cjs_namespaceObject.useJsonTreeViewStrings)();
|
|
52
52
|
const DefaultIcon = TYPE_ICON[type];
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
53
|
+
const label = typeLabel ?? TYPE_LABEL[type];
|
|
54
|
+
const tooltipName = 'string' == typeof tooltip ? tooltip : void 0;
|
|
55
|
+
const boxClassName = (0, index_cjs_namespaceObject.cn)('inline-flex h-4.5 min-w-4.5 shrink-0 items-center justify-center rounded border border-border bg-surface-overlay px-0.5 text-foreground-muted [&_svg]:size-2.75', className);
|
|
56
|
+
const boxIcon = icon ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DefaultIcon, {});
|
|
57
57
|
if (!reference) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_JsonTreeTooltip_cjs_namespaceObject.JsonTreeTooltip, {
|
|
58
58
|
content: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
59
59
|
className: "break-all font-mono text-xs font-semibold leading-4",
|
|
60
|
-
children: tooltip ??
|
|
60
|
+
children: tooltip ?? label
|
|
61
61
|
}),
|
|
62
62
|
placement: "top",
|
|
63
63
|
delay: true,
|
|
64
|
-
children:
|
|
64
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
65
|
+
role: "img",
|
|
66
|
+
"aria-label": tooltipName ?? label,
|
|
67
|
+
className: boxClassName,
|
|
68
|
+
children: boxIcon
|
|
69
|
+
})
|
|
65
70
|
});
|
|
66
|
-
const title = strings.referenceType(
|
|
71
|
+
const title = strings.referenceType(label);
|
|
67
72
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_JsonTreeTooltip_cjs_namespaceObject.JsonTreeTooltip, {
|
|
68
73
|
content: tooltip ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
|
|
69
74
|
className: "flex flex-col gap-0.5 leading-4",
|
|
@@ -84,9 +89,12 @@ function JsonTypeBadge({ type, icon, className, tooltip, reference }) {
|
|
|
84
89
|
className: "relative inline-flex shrink-0 rounded outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
85
90
|
role: "img",
|
|
86
91
|
tabIndex: 0,
|
|
87
|
-
"aria-label": reference.source ? `${title}, ${reference.source}` : title,
|
|
92
|
+
"aria-label": tooltipName ?? (reference.source ? `${title}, ${reference.source}` : title),
|
|
88
93
|
children: [
|
|
89
|
-
|
|
94
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
95
|
+
className: boxClassName,
|
|
96
|
+
children: boxIcon
|
|
97
|
+
}),
|
|
90
98
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
91
99
|
className: "absolute -right-1 -bottom-1 grid size-3 place-items-center rounded-[3px] border border-border bg-surface-overlay text-foreground-muted",
|
|
92
100
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowUpRight, {
|
|
@@ -6,7 +6,9 @@ export interface JsonTypeBadgeProps {
|
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
/** Color/chrome overrides (e.g. from a node decoration). */
|
|
8
8
|
className?: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Type name shown on hover, in place of the capitalized JSON type. */
|
|
10
|
+
typeLabel?: string;
|
|
11
|
+
/** Tooltip content on hover, replacing the type name. */
|
|
10
12
|
tooltip?: ReactNode;
|
|
11
13
|
/** Marks the value as a reference: adds a corner tab with an arrow. */
|
|
12
14
|
reference?: NodeBadgeReference;
|
|
@@ -14,7 +16,8 @@ export interface JsonTypeBadgeProps {
|
|
|
14
16
|
/**
|
|
15
17
|
* Compact badge for a JSON value type. Deliberately neutral: the value text
|
|
16
18
|
* carries the color coding, the badge only carries the type icon. Hovering it
|
|
17
|
-
* shows the type name (override via `
|
|
18
|
-
*
|
|
19
|
+
* shows the type name (override via `typeLabel` or `tooltip`), which is also
|
|
20
|
+
* its accessible name. A `reference` adds a corner tab with an arrow and makes
|
|
21
|
+
* the badge focusable; it has no hover state of its own, only the tooltip.
|
|
19
22
|
*/
|
|
20
|
-
export declare function JsonTypeBadge({ type, icon, className, tooltip, reference }: JsonTypeBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function JsonTypeBadge({ type, icon, className, typeLabel, tooltip, reference, }: JsonTypeBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,23 +19,28 @@ const TYPE_LABEL = {
|
|
|
19
19
|
array: 'Array',
|
|
20
20
|
null: 'Null'
|
|
21
21
|
};
|
|
22
|
-
function JsonTypeBadge({ type, icon, className, tooltip, reference }) {
|
|
22
|
+
function JsonTypeBadge({ type, icon, className, typeLabel, tooltip, reference }) {
|
|
23
23
|
const strings = useJsonTreeViewStrings();
|
|
24
24
|
const DefaultIcon = TYPE_ICON[type];
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
25
|
+
const label = typeLabel ?? TYPE_LABEL[type];
|
|
26
|
+
const tooltipName = 'string' == typeof tooltip ? tooltip : void 0;
|
|
27
|
+
const boxClassName = cn('inline-flex h-4.5 min-w-4.5 shrink-0 items-center justify-center rounded border border-border bg-surface-overlay px-0.5 text-foreground-muted [&_svg]:size-2.75', className);
|
|
28
|
+
const boxIcon = icon ?? /*#__PURE__*/ jsx(DefaultIcon, {});
|
|
29
29
|
if (!reference) return /*#__PURE__*/ jsx(JsonTreeTooltip, {
|
|
30
30
|
content: /*#__PURE__*/ jsx("span", {
|
|
31
31
|
className: "break-all font-mono text-xs font-semibold leading-4",
|
|
32
|
-
children: tooltip ??
|
|
32
|
+
children: tooltip ?? label
|
|
33
33
|
}),
|
|
34
34
|
placement: "top",
|
|
35
35
|
delay: true,
|
|
36
|
-
children:
|
|
36
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
37
|
+
role: "img",
|
|
38
|
+
"aria-label": tooltipName ?? label,
|
|
39
|
+
className: boxClassName,
|
|
40
|
+
children: boxIcon
|
|
41
|
+
})
|
|
37
42
|
});
|
|
38
|
-
const title = strings.referenceType(
|
|
43
|
+
const title = strings.referenceType(label);
|
|
39
44
|
return /*#__PURE__*/ jsx(JsonTreeTooltip, {
|
|
40
45
|
content: tooltip ?? /*#__PURE__*/ jsxs("span", {
|
|
41
46
|
className: "flex flex-col gap-0.5 leading-4",
|
|
@@ -56,9 +61,12 @@ function JsonTypeBadge({ type, icon, className, tooltip, reference }) {
|
|
|
56
61
|
className: "relative inline-flex shrink-0 rounded outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
57
62
|
role: "img",
|
|
58
63
|
tabIndex: 0,
|
|
59
|
-
"aria-label": reference.source ? `${title}, ${reference.source}` : title,
|
|
64
|
+
"aria-label": tooltipName ?? (reference.source ? `${title}, ${reference.source}` : title),
|
|
60
65
|
children: [
|
|
61
|
-
|
|
66
|
+
/*#__PURE__*/ jsx("span", {
|
|
67
|
+
className: boxClassName,
|
|
68
|
+
children: boxIcon
|
|
69
|
+
}),
|
|
62
70
|
/*#__PURE__*/ jsx("span", {
|
|
63
71
|
className: "absolute -right-1 -bottom-1 grid size-3 place-items-center rounded-[3px] border border-border bg-surface-overlay text-foreground-muted",
|
|
64
72
|
children: /*#__PURE__*/ jsx(ArrowUpRight, {
|
|
@@ -35,34 +35,40 @@ function NodeKey({ node, label, displayPath, onCopyPath, className }) {
|
|
|
35
35
|
const text = label ?? node.key;
|
|
36
36
|
const copyPathText = displayPath ?? node.path;
|
|
37
37
|
const keyClass = (0, index_cjs_namespaceObject.cn)('min-w-4 truncate text-xs text-foreground', null != label ? 'font-medium' : 'font-mono', void 0 === node.value && 'text-foreground-muted', className);
|
|
38
|
-
|
|
39
|
-
className:
|
|
40
|
-
children:
|
|
38
|
+
const details = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
39
|
+
className: "flex max-w-60 flex-col gap-1",
|
|
40
|
+
children: [
|
|
41
|
+
null != label && label !== node.key && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
42
|
+
className: "text-xs font-semibold leading-4",
|
|
43
|
+
children: label
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
46
|
+
className: "break-all font-mono text-xs font-semibold leading-4",
|
|
47
|
+
children: copyPathText
|
|
48
|
+
}),
|
|
49
|
+
node.schema?.description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
50
|
+
className: "text-xs leading-4",
|
|
51
|
+
children: node.schema.description
|
|
52
|
+
}),
|
|
53
|
+
onCopyPath && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
54
|
+
className: "text-[11px] leading-4 opacity-70",
|
|
55
|
+
children: strings.copyPathHint
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
if (!onCopyPath) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_JsonTreeTooltip_cjs_namespaceObject.JsonTreeTooltip, {
|
|
60
|
+
placement: "top",
|
|
61
|
+
delay: true,
|
|
62
|
+
content: details,
|
|
63
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
64
|
+
className: keyClass,
|
|
65
|
+
children: text
|
|
66
|
+
})
|
|
41
67
|
});
|
|
42
68
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_JsonTreeTooltip_cjs_namespaceObject.JsonTreeTooltip, {
|
|
43
69
|
placement: "top",
|
|
44
70
|
delay: true,
|
|
45
|
-
content:
|
|
46
|
-
className: "flex max-w-60 flex-col gap-1",
|
|
47
|
-
children: [
|
|
48
|
-
null != label && label !== node.key && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
49
|
-
className: "text-xs font-semibold leading-4",
|
|
50
|
-
children: label
|
|
51
|
-
}),
|
|
52
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
53
|
-
className: "break-all font-mono text-xs font-semibold leading-4",
|
|
54
|
-
children: copyPathText
|
|
55
|
-
}),
|
|
56
|
-
node.schema?.description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
57
|
-
className: "text-xs leading-4",
|
|
58
|
-
children: node.schema.description
|
|
59
|
-
}),
|
|
60
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
61
|
-
className: "text-[11px] leading-4 opacity-70",
|
|
62
|
-
children: strings.copyPathHint
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
}),
|
|
71
|
+
content: details,
|
|
66
72
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
67
73
|
type: "button",
|
|
68
74
|
onClick: ()=>onCopyPath(node),
|
|
@@ -9,8 +9,9 @@ export interface NodeKeyProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* The field name. Hovering
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* The field name. Hovering (after a short delay) shows a popover titled with
|
|
13
|
+
* the node's full tree path, plus the schema description. With `onCopyPath`
|
|
14
|
+
* the name is also underlined on hover, the popover adds a copy hint, and
|
|
15
|
+
* clicking copies the path.
|
|
15
16
|
*/
|
|
16
17
|
export declare function NodeKey({ node, label, displayPath, onCopyPath, className }: NodeKeyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,34 +7,40 @@ function NodeKey({ node, label, displayPath, onCopyPath, className }) {
|
|
|
7
7
|
const text = label ?? node.key;
|
|
8
8
|
const copyPathText = displayPath ?? node.path;
|
|
9
9
|
const keyClass = cn('min-w-4 truncate text-xs text-foreground', null != label ? 'font-medium' : 'font-mono', void 0 === node.value && 'text-foreground-muted', className);
|
|
10
|
-
|
|
11
|
-
className:
|
|
12
|
-
children:
|
|
10
|
+
const details = /*#__PURE__*/ jsxs("div", {
|
|
11
|
+
className: "flex max-w-60 flex-col gap-1",
|
|
12
|
+
children: [
|
|
13
|
+
null != label && label !== node.key && /*#__PURE__*/ jsx("span", {
|
|
14
|
+
className: "text-xs font-semibold leading-4",
|
|
15
|
+
children: label
|
|
16
|
+
}),
|
|
17
|
+
/*#__PURE__*/ jsx("span", {
|
|
18
|
+
className: "break-all font-mono text-xs font-semibold leading-4",
|
|
19
|
+
children: copyPathText
|
|
20
|
+
}),
|
|
21
|
+
node.schema?.description && /*#__PURE__*/ jsx("span", {
|
|
22
|
+
className: "text-xs leading-4",
|
|
23
|
+
children: node.schema.description
|
|
24
|
+
}),
|
|
25
|
+
onCopyPath && /*#__PURE__*/ jsx("span", {
|
|
26
|
+
className: "text-[11px] leading-4 opacity-70",
|
|
27
|
+
children: strings.copyPathHint
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
if (!onCopyPath) return /*#__PURE__*/ jsx(JsonTreeTooltip, {
|
|
32
|
+
placement: "top",
|
|
33
|
+
delay: true,
|
|
34
|
+
content: details,
|
|
35
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
36
|
+
className: keyClass,
|
|
37
|
+
children: text
|
|
38
|
+
})
|
|
13
39
|
});
|
|
14
40
|
return /*#__PURE__*/ jsx(JsonTreeTooltip, {
|
|
15
41
|
placement: "top",
|
|
16
42
|
delay: true,
|
|
17
|
-
content:
|
|
18
|
-
className: "flex max-w-60 flex-col gap-1",
|
|
19
|
-
children: [
|
|
20
|
-
null != label && label !== node.key && /*#__PURE__*/ jsx("span", {
|
|
21
|
-
className: "text-xs font-semibold leading-4",
|
|
22
|
-
children: label
|
|
23
|
-
}),
|
|
24
|
-
/*#__PURE__*/ jsx("span", {
|
|
25
|
-
className: "break-all font-mono text-xs font-semibold leading-4",
|
|
26
|
-
children: copyPathText
|
|
27
|
-
}),
|
|
28
|
-
node.schema?.description && /*#__PURE__*/ jsx("span", {
|
|
29
|
-
className: "text-xs leading-4",
|
|
30
|
-
children: node.schema.description
|
|
31
|
-
}),
|
|
32
|
-
/*#__PURE__*/ jsx("span", {
|
|
33
|
-
className: "text-[11px] leading-4 opacity-70",
|
|
34
|
-
children: strings.copyPathHint
|
|
35
|
-
})
|
|
36
|
-
]
|
|
37
|
-
}),
|
|
43
|
+
content: details,
|
|
38
44
|
children: /*#__PURE__*/ jsx("button", {
|
|
39
45
|
type: "button",
|
|
40
46
|
onClick: ()=>onCopyPath(node),
|
|
@@ -30,6 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
flattenJsonTree: ()=>flattenJsonTree,
|
|
31
31
|
formatLeafValue: ()=>formatLeafValue,
|
|
32
32
|
getValueAtPath: ()=>getValueAtPath,
|
|
33
|
+
hasVisibleRows: ()=>hasVisibleRows,
|
|
33
34
|
inferValueType: ()=>inferValueType,
|
|
34
35
|
isArrayItemTemplateRoot: ()=>isArrayItemTemplateRoot,
|
|
35
36
|
isJsonObject: ()=>isJsonObject,
|
|
@@ -255,6 +256,22 @@ function flattenJsonTree(nodes, options = {}, depth = 0) {
|
|
|
255
256
|
numberSiblingSets(rows, depth);
|
|
256
257
|
return rows;
|
|
257
258
|
}
|
|
259
|
+
function someInSubtree(node, test) {
|
|
260
|
+
const stack = [
|
|
261
|
+
node
|
|
262
|
+
];
|
|
263
|
+
while(stack.length > 0){
|
|
264
|
+
const current = stack.pop();
|
|
265
|
+
if (test(current)) return true;
|
|
266
|
+
if (current.children) for (const child of current.children)stack.push(child);
|
|
267
|
+
}
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
function hasVisibleRows(nodes, options = {}) {
|
|
271
|
+
const { filterPredicate, displayTexts } = options;
|
|
272
|
+
const query = options.query?.trim().toLowerCase() ?? '';
|
|
273
|
+
return nodes.some((node)=>(!query || someInSubtree(node, (candidate)=>nodeSelfMatchesQuery(candidate, query, displayTexts))) && (!filterPredicate || someInSubtree(node, filterPredicate)));
|
|
274
|
+
}
|
|
258
275
|
function numberSiblingSets(rows, baseDepth) {
|
|
259
276
|
const openSets = [];
|
|
260
277
|
const close = (set)=>{
|
|
@@ -371,6 +388,7 @@ exports.collectContainerPaths = __webpack_exports__.collectContainerPaths;
|
|
|
371
388
|
exports.flattenJsonTree = __webpack_exports__.flattenJsonTree;
|
|
372
389
|
exports.formatLeafValue = __webpack_exports__.formatLeafValue;
|
|
373
390
|
exports.getValueAtPath = __webpack_exports__.getValueAtPath;
|
|
391
|
+
exports.hasVisibleRows = __webpack_exports__.hasVisibleRows;
|
|
374
392
|
exports.inferValueType = __webpack_exports__.inferValueType;
|
|
375
393
|
exports.isArrayItemTemplateRoot = __webpack_exports__.isArrayItemTemplateRoot;
|
|
376
394
|
exports.isJsonObject = __webpack_exports__.isJsonObject;
|
|
@@ -385,6 +403,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
385
403
|
"flattenJsonTree",
|
|
386
404
|
"formatLeafValue",
|
|
387
405
|
"getValueAtPath",
|
|
406
|
+
"hasVisibleRows",
|
|
388
407
|
"inferValueType",
|
|
389
408
|
"isArrayItemTemplateRoot",
|
|
390
409
|
"isJsonObject",
|
|
@@ -64,6 +64,12 @@ export interface FlattenOptions {
|
|
|
64
64
|
* nested tree can't overflow the call stack.
|
|
65
65
|
*/
|
|
66
66
|
export declare function flattenJsonTree(nodes: JsonTreeNode[], options?: FlattenOptions, depth?: number): FlatJsonTreeRow[];
|
|
67
|
+
/**
|
|
68
|
+
* Whether `flattenJsonTree` with nothing collapsed would show any row, without
|
|
69
|
+
* building them. A top-level node shows when its subtree holds a query match
|
|
70
|
+
* and a filter match (not necessarily the same node), so that is all it checks.
|
|
71
|
+
*/
|
|
72
|
+
export declare function hasVisibleRows(nodes: JsonTreeNode[], options?: Omit<FlattenOptions, 'collapsed'>): boolean;
|
|
67
73
|
export interface ContainerPath {
|
|
68
74
|
path: string;
|
|
69
75
|
depth: number;
|
|
@@ -215,6 +215,22 @@ function flattenJsonTree(nodes, options = {}, depth = 0) {
|
|
|
215
215
|
numberSiblingSets(rows, depth);
|
|
216
216
|
return rows;
|
|
217
217
|
}
|
|
218
|
+
function someInSubtree(node, test) {
|
|
219
|
+
const stack = [
|
|
220
|
+
node
|
|
221
|
+
];
|
|
222
|
+
while(stack.length > 0){
|
|
223
|
+
const current = stack.pop();
|
|
224
|
+
if (test(current)) return true;
|
|
225
|
+
if (current.children) for (const child of current.children)stack.push(child);
|
|
226
|
+
}
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
function hasVisibleRows(nodes, options = {}) {
|
|
230
|
+
const { filterPredicate, displayTexts } = options;
|
|
231
|
+
const query = options.query?.trim().toLowerCase() ?? '';
|
|
232
|
+
return nodes.some((node)=>(!query || someInSubtree(node, (candidate)=>nodeSelfMatchesQuery(candidate, query, displayTexts))) && (!filterPredicate || someInSubtree(node, filterPredicate)));
|
|
233
|
+
}
|
|
218
234
|
function numberSiblingSets(rows, baseDepth) {
|
|
219
235
|
const openSets = [];
|
|
220
236
|
const close = (set)=>{
|
|
@@ -325,4 +341,4 @@ function formatLeafValue(type, value, options) {
|
|
|
325
341
|
if ('string' === type) return options?.preserveStringWhitespace ? `"${value}"` : JSON.stringify(value);
|
|
326
342
|
return String(value);
|
|
327
343
|
}
|
|
328
|
-
export { appendPathSegment, buildJsonTree, collectContainerPaths, flattenJsonTree, formatLeafValue, getValueAtPath, inferValueType, isArrayItemTemplateRoot, isJsonObject, isPathCollapsed, removeValueAtPath, schemaDisplayType, setValueAtPath };
|
|
344
|
+
export { appendPathSegment, buildJsonTree, collectContainerPaths, flattenJsonTree, formatLeafValue, getValueAtPath, hasVisibleRows, inferValueType, isArrayItemTemplateRoot, isJsonObject, isPathCollapsed, removeValueAtPath, schemaDisplayType, setValueAtPath };
|
package/dist/index.cjs
CHANGED
|
@@ -108,6 +108,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
108
108
|
chatComposerVariants: ()=>chat_composer_cjs_namespaceObject.chatComposerVariants,
|
|
109
109
|
ReferenceChip: ()=>reference_chip_cjs_namespaceObject.ReferenceChip,
|
|
110
110
|
SidebarGroup: ()=>sidebar_index_cjs_namespaceObject.SidebarGroup,
|
|
111
|
+
hasVisibleRows: ()=>json_tree_view_index_cjs_namespaceObject.hasVisibleRows,
|
|
111
112
|
InputTokenNode: ()=>prompt_editor_index_cjs_namespaceObject.InputTokenNode,
|
|
112
113
|
ChartStyle: ()=>chart_cjs_namespaceObject.ChartStyle,
|
|
113
114
|
AttachmentTrigger: ()=>attachment_cjs_namespaceObject.AttachmentTrigger,
|
|
@@ -1144,6 +1145,7 @@ exports.getValueAtPath = __webpack_exports__.getValueAtPath;
|
|
|
1144
1145
|
exports.groupModels = __webpack_exports__.groupModels;
|
|
1145
1146
|
exports.hasMinMaxStep = __webpack_exports__.hasMinMaxStep;
|
|
1146
1147
|
exports.hasOptions = __webpack_exports__.hasOptions;
|
|
1148
|
+
exports.hasVisibleRows = __webpack_exports__.hasVisibleRows;
|
|
1147
1149
|
exports.inferTokenTypeFromPath = __webpack_exports__.inferTokenTypeFromPath;
|
|
1148
1150
|
exports.inferValueType = __webpack_exports__.inferValueType;
|
|
1149
1151
|
exports.inputGroupVariants = __webpack_exports__.inputGroupVariants;
|
|
@@ -1667,6 +1669,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1667
1669
|
"groupModels",
|
|
1668
1670
|
"hasMinMaxStep",
|
|
1669
1671
|
"hasOptions",
|
|
1672
|
+
"hasVisibleRows",
|
|
1670
1673
|
"inferTokenTypeFromPath",
|
|
1671
1674
|
"inferValueType",
|
|
1672
1675
|
"inputGroupVariants",
|
package/dist/index.d.ts
CHANGED
|
@@ -102,8 +102,8 @@ export type { InputProps } from './components/ui/input';
|
|
|
102
102
|
export { Input } from './components/ui/input';
|
|
103
103
|
export type { InputGroupAddonProps, InputGroupBodyProps, InputGroupButtonProps, InputGroupInputProps, InputGroupLayout, InputGroupPopoverTriggerProps, InputGroupProps, InputGroupRowProps, InputGroupState, InputGroupTextareaProps, InputGroupTextProps, InputGroupTriggerProps, } from './components/ui/input-group';
|
|
104
104
|
export { InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, inputGroupVariants, useInputGroup, } from './components/ui/input-group';
|
|
105
|
-
export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTreeViewStrings, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathForCopy, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
106
|
-
export { appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, DEFAULT_JSON_TREE_VIEW_STRINGS, flattenJsonTree, formatLeafValue, getValueAtPath, inferValueType, isArrayItemTemplateRoot, isJsonObject, isPathCollapsed, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, removeValueAtPath, schemaDisplayType, setValueAtPath, useJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
105
|
+
export type { BuildJsonTreeOptions, CanCopyPath, ContainerPath, CopyEvent, DeriveTypeIcon, DeriveTypeLabel, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTreeViewStrings, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathForCopy, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
106
|
+
export { appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, DEFAULT_JSON_TREE_VIEW_STRINGS, flattenJsonTree, formatLeafValue, getValueAtPath, hasVisibleRows, inferValueType, isArrayItemTemplateRoot, isJsonObject, isPathCollapsed, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, removeValueAtPath, schemaDisplayType, setValueAtPath, useJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
107
107
|
export type { LabelProps, LabelVariants, RequiredIndicatorProps, } from './components/ui/label';
|
|
108
108
|
export { Label, RequiredIndicator } from './components/ui/label';
|
|
109
109
|
export type { ColumnProps } from './components/ui/layout/column';
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/ui/h
|
|
|
60
60
|
import { InfoTooltip } from "./components/ui/info-tooltip.js";
|
|
61
61
|
import { Input } from "./components/ui/input.js";
|
|
62
62
|
import { InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, inputGroupVariants, useInputGroup } from "./components/ui/input-group.js";
|
|
63
|
-
import { DEFAULT_JSON_TREE_VIEW_STRINGS, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, flattenJsonTree, formatLeafValue, getValueAtPath, inferValueType, isArrayItemTemplateRoot, isJsonObject, isPathCollapsed, removeValueAtPath, schemaDisplayType, setValueAtPath, useJsonTreeViewStrings } from "./components/ui/json-tree-view/index.js";
|
|
63
|
+
import { DEFAULT_JSON_TREE_VIEW_STRINGS, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, flattenJsonTree, formatLeafValue, getValueAtPath, hasVisibleRows, inferValueType, isArrayItemTemplateRoot, isJsonObject, isPathCollapsed, removeValueAtPath, schemaDisplayType, setValueAtPath, useJsonTreeViewStrings } from "./components/ui/json-tree-view/index.js";
|
|
64
64
|
import { Label, RequiredIndicator } from "./components/ui/label.js";
|
|
65
65
|
import { Column } from "./components/ui/layout/column.js";
|
|
66
66
|
import { Grid } from "./components/ui/layout/grid.js";
|
|
@@ -114,4 +114,4 @@ import tree_view, { TreeView } from "./components/ui/tree-view.js";
|
|
|
114
114
|
import { VariablePicker, VariablePickerContent } from "./components/ui/variable-picker/index.js";
|
|
115
115
|
import { VariableValueControl } from "./components/ui/variable-value-control.js";
|
|
116
116
|
import { cn } from "./lib/utils.js";
|
|
117
|
-
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, Checkbox, Citation, CodeBlock, CodeBlockHeader, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DATE_PICKER_STRINGS, DEFAULT_DIALOG_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_PROMPT_SUGGESTIONS_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SEARCH_STRINGS, DEFAULT_SHEET_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureTree, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropzoneOverlay, EditableCell, EditableText, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LocaleProvider, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptSuggestions, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, ReferenceChip, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, createVariableModeControl, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getReferenceChipColors, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadDateLocale, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, promptSuggestionVariants, promptSuggestionsListVariants, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useDateLocale, useDatePickerStrings, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|
|
117
|
+
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, Checkbox, Citation, CodeBlock, CodeBlockHeader, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DATE_PICKER_STRINGS, DEFAULT_DIALOG_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_PROMPT_SUGGESTIONS_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SEARCH_STRINGS, DEFAULT_SHEET_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureTree, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropzoneOverlay, EditableCell, EditableText, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LocaleProvider, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptSuggestions, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, ReferenceChip, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, createVariableModeControl, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getReferenceChipColors, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, hasVisibleRows, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadDateLocale, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, promptSuggestionVariants, promptSuggestionsListVariants, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useDateLocale, useDatePickerStrings, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|