@copilotkit/web-inspector 2.0.0-rc.7 → 2.0.0-rc.9
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/index.cjs +19 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +20 -87
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +597 -97
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/icons.cjs +408 -0
- package/dist/lib/icons.cjs.map +1 -0
- package/dist/lib/icons.mjs +407 -0
- package/dist/lib/icons.mjs.map +1 -0
- package/dist/lib/json-block.cjs +0 -1
- package/dist/lib/json-block.mjs +1 -1
- package/dist/lib/markdown.cjs +170 -0
- package/dist/lib/markdown.cjs.map +1 -0
- package/dist/lib/markdown.mjs +170 -0
- package/dist/lib/markdown.mjs.map +1 -0
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/styles/generated.cjs +1 -1
- package/dist/styles/generated.cjs.map +1 -1
- package/dist/styles/generated.mjs +1 -1
- package/dist/styles/generated.mjs.map +1 -1
- package/package.json +5 -6
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
//#region src/lib/icons.ts
|
|
2
|
+
const alertTriangleIcon = [
|
|
3
|
+
["path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }],
|
|
4
|
+
["path", { d: "M12 9v4" }],
|
|
5
|
+
["path", { d: "M12 17h.01" }]
|
|
6
|
+
];
|
|
7
|
+
const ICON_NODES = {
|
|
8
|
+
Activity: [["path", { d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" }]],
|
|
9
|
+
AlertTriangle: alertTriangleIcon,
|
|
10
|
+
ArrowLeft: [["path", { d: "m12 19-7-7 7-7" }], ["path", { d: "M19 12H5" }]],
|
|
11
|
+
ArrowRight: [["path", { d: "M5 12h14" }], ["path", { d: "m12 5 7 7-7 7" }]],
|
|
12
|
+
ArrowUp: [["path", { d: "m5 12 7-7 7 7" }], ["path", { d: "M12 19V5" }]],
|
|
13
|
+
ArrowUpRight: [["path", { d: "M7 7h10v10" }], ["path", { d: "M7 17 17 7" }]],
|
|
14
|
+
Bot: [
|
|
15
|
+
["path", { d: "M12 8V4H8" }],
|
|
16
|
+
["rect", {
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "12",
|
|
19
|
+
x: "4",
|
|
20
|
+
y: "8",
|
|
21
|
+
rx: "2"
|
|
22
|
+
}],
|
|
23
|
+
["path", { d: "M2 14h2" }],
|
|
24
|
+
["path", { d: "M20 14h2" }],
|
|
25
|
+
["path", { d: "M15 13v2" }],
|
|
26
|
+
["path", { d: "M9 13v2" }]
|
|
27
|
+
],
|
|
28
|
+
Brain: [
|
|
29
|
+
["path", { d: "M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" }],
|
|
30
|
+
["path", { d: "M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" }],
|
|
31
|
+
["path", { d: "M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" }],
|
|
32
|
+
["path", { d: "M17.599 6.5a3 3 0 0 0 .399-1.375" }],
|
|
33
|
+
["path", { d: "M6.003 5.125A3 3 0 0 0 6.401 6.5" }],
|
|
34
|
+
["path", { d: "M3.477 10.896a4 4 0 0 1 .585-.396" }],
|
|
35
|
+
["path", { d: "M19.938 10.5a4 4 0 0 1 .585.396" }],
|
|
36
|
+
["path", { d: "M6 18a4 4 0 0 1-1.967-.516" }],
|
|
37
|
+
["path", { d: "M19.967 17.484A4 4 0 0 1 18 18" }]
|
|
38
|
+
],
|
|
39
|
+
Check: [["path", { d: "M20 6 9 17l-5-5" }]],
|
|
40
|
+
ChevronDown: [["path", { d: "m6 9 6 6 6-6" }]],
|
|
41
|
+
ChevronLeft: [["path", { d: "m15 18-6-6 6-6" }]],
|
|
42
|
+
ChevronRight: [["path", { d: "m9 18 6-6-6-6" }]],
|
|
43
|
+
CircleHelp: [
|
|
44
|
+
["circle", {
|
|
45
|
+
cx: "12",
|
|
46
|
+
cy: "12",
|
|
47
|
+
r: "10"
|
|
48
|
+
}],
|
|
49
|
+
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }],
|
|
50
|
+
["path", { d: "M12 17h.01" }]
|
|
51
|
+
],
|
|
52
|
+
ClipboardCopy: [
|
|
53
|
+
["rect", {
|
|
54
|
+
width: "8",
|
|
55
|
+
height: "4",
|
|
56
|
+
x: "8",
|
|
57
|
+
y: "2",
|
|
58
|
+
rx: "1",
|
|
59
|
+
ry: "1"
|
|
60
|
+
}],
|
|
61
|
+
["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2" }],
|
|
62
|
+
["path", { d: "M16 4h2a2 2 0 0 1 2 2v4" }],
|
|
63
|
+
["path", { d: "M21 14H11" }],
|
|
64
|
+
["path", { d: "m15 10-4 4 4 4" }]
|
|
65
|
+
],
|
|
66
|
+
Clock: [["path", { d: "M12 6v6l4 2" }], ["circle", {
|
|
67
|
+
cx: "12",
|
|
68
|
+
cy: "12",
|
|
69
|
+
r: "10"
|
|
70
|
+
}]],
|
|
71
|
+
Clock3: [["path", { d: "M12 6v6h4" }], ["circle", {
|
|
72
|
+
cx: "12",
|
|
73
|
+
cy: "12",
|
|
74
|
+
r: "10"
|
|
75
|
+
}]],
|
|
76
|
+
Copy: [["rect", {
|
|
77
|
+
width: "14",
|
|
78
|
+
height: "14",
|
|
79
|
+
x: "8",
|
|
80
|
+
y: "8",
|
|
81
|
+
rx: "2",
|
|
82
|
+
ry: "2"
|
|
83
|
+
}], ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]],
|
|
84
|
+
Database: [
|
|
85
|
+
["ellipse", {
|
|
86
|
+
cx: "12",
|
|
87
|
+
cy: "5",
|
|
88
|
+
rx: "9",
|
|
89
|
+
ry: "3"
|
|
90
|
+
}],
|
|
91
|
+
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5" }],
|
|
92
|
+
["path", { d: "M3 12A9 3 0 0 0 21 12" }]
|
|
93
|
+
],
|
|
94
|
+
Download: [
|
|
95
|
+
["path", { d: "M12 15V3" }],
|
|
96
|
+
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }],
|
|
97
|
+
["path", { d: "m7 10 5 5 5-5" }]
|
|
98
|
+
],
|
|
99
|
+
Eye: [["path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", {
|
|
100
|
+
cx: "12",
|
|
101
|
+
cy: "12",
|
|
102
|
+
r: "3"
|
|
103
|
+
}]],
|
|
104
|
+
EyeOff: [
|
|
105
|
+
["path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }],
|
|
106
|
+
["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }],
|
|
107
|
+
["path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }],
|
|
108
|
+
["path", { d: "m2 2 20 20" }]
|
|
109
|
+
],
|
|
110
|
+
FileText: [
|
|
111
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }],
|
|
112
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }],
|
|
113
|
+
["path", { d: "M10 9H8" }],
|
|
114
|
+
["path", { d: "M16 13H8" }],
|
|
115
|
+
["path", { d: "M16 17H8" }]
|
|
116
|
+
],
|
|
117
|
+
Filter: [["path", { d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]],
|
|
118
|
+
Hammer: [
|
|
119
|
+
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9" }],
|
|
120
|
+
["path", { d: "m18 15 4-4" }],
|
|
121
|
+
["path", { d: "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" }]
|
|
122
|
+
],
|
|
123
|
+
History: [
|
|
124
|
+
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }],
|
|
125
|
+
["path", { d: "M3 3v5h5" }],
|
|
126
|
+
["path", { d: "M12 7v5l4 2" }]
|
|
127
|
+
],
|
|
128
|
+
Home: [["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]],
|
|
129
|
+
Layers: [
|
|
130
|
+
["path", { d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" }],
|
|
131
|
+
["path", { d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" }],
|
|
132
|
+
["path", { d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" }]
|
|
133
|
+
],
|
|
134
|
+
LayoutGrid: [
|
|
135
|
+
["rect", {
|
|
136
|
+
width: "7",
|
|
137
|
+
height: "7",
|
|
138
|
+
x: "3",
|
|
139
|
+
y: "3",
|
|
140
|
+
rx: "1"
|
|
141
|
+
}],
|
|
142
|
+
["rect", {
|
|
143
|
+
width: "7",
|
|
144
|
+
height: "7",
|
|
145
|
+
x: "14",
|
|
146
|
+
y: "3",
|
|
147
|
+
rx: "1"
|
|
148
|
+
}],
|
|
149
|
+
["rect", {
|
|
150
|
+
width: "7",
|
|
151
|
+
height: "7",
|
|
152
|
+
x: "14",
|
|
153
|
+
y: "14",
|
|
154
|
+
rx: "1"
|
|
155
|
+
}],
|
|
156
|
+
["rect", {
|
|
157
|
+
width: "7",
|
|
158
|
+
height: "7",
|
|
159
|
+
x: "3",
|
|
160
|
+
y: "14",
|
|
161
|
+
rx: "1"
|
|
162
|
+
}]
|
|
163
|
+
],
|
|
164
|
+
LayoutTemplate: [
|
|
165
|
+
["rect", {
|
|
166
|
+
width: "18",
|
|
167
|
+
height: "7",
|
|
168
|
+
x: "3",
|
|
169
|
+
y: "3",
|
|
170
|
+
rx: "1"
|
|
171
|
+
}],
|
|
172
|
+
["rect", {
|
|
173
|
+
width: "9",
|
|
174
|
+
height: "7",
|
|
175
|
+
x: "3",
|
|
176
|
+
y: "14",
|
|
177
|
+
rx: "1"
|
|
178
|
+
}],
|
|
179
|
+
["rect", {
|
|
180
|
+
width: "5",
|
|
181
|
+
height: "7",
|
|
182
|
+
x: "16",
|
|
183
|
+
y: "14",
|
|
184
|
+
rx: "1"
|
|
185
|
+
}]
|
|
186
|
+
],
|
|
187
|
+
Lightbulb: [
|
|
188
|
+
["path", { d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" }],
|
|
189
|
+
["path", { d: "M9 18h6" }],
|
|
190
|
+
["path", { d: "M10 22h4" }]
|
|
191
|
+
],
|
|
192
|
+
LoaderCircle: [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]],
|
|
193
|
+
Maximize2: [
|
|
194
|
+
["path", { d: "M15 3h6v6" }],
|
|
195
|
+
["path", { d: "m21 3-7 7" }],
|
|
196
|
+
["path", { d: "m3 21 7-7" }],
|
|
197
|
+
["path", { d: "M9 21H3v-6" }]
|
|
198
|
+
],
|
|
199
|
+
Megaphone: [
|
|
200
|
+
["path", { d: "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z" }],
|
|
201
|
+
["path", { d: "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14" }],
|
|
202
|
+
["path", { d: "M8 6v8" }]
|
|
203
|
+
],
|
|
204
|
+
MessageCircle: [["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z" }]],
|
|
205
|
+
MessageSquare: [["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }]],
|
|
206
|
+
MessagesSquare: [["path", { d: "M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z" }], ["path", { d: "M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1" }]],
|
|
207
|
+
Moon: [["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }]],
|
|
208
|
+
PanelLeft: [["rect", {
|
|
209
|
+
width: "18",
|
|
210
|
+
height: "18",
|
|
211
|
+
x: "3",
|
|
212
|
+
y: "3",
|
|
213
|
+
rx: "2"
|
|
214
|
+
}], ["path", { d: "M9 3v18" }]],
|
|
215
|
+
PanelsTopLeft: [
|
|
216
|
+
["rect", {
|
|
217
|
+
width: "18",
|
|
218
|
+
height: "18",
|
|
219
|
+
x: "3",
|
|
220
|
+
y: "3",
|
|
221
|
+
rx: "2"
|
|
222
|
+
}],
|
|
223
|
+
["path", { d: "M3 9h18" }],
|
|
224
|
+
["path", { d: "M9 21V9" }]
|
|
225
|
+
],
|
|
226
|
+
PictureInPicture2: [["path", { d: "M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4" }], ["rect", {
|
|
227
|
+
width: "10",
|
|
228
|
+
height: "7",
|
|
229
|
+
x: "12",
|
|
230
|
+
y: "13",
|
|
231
|
+
rx: "2"
|
|
232
|
+
}]],
|
|
233
|
+
Plus: [["path", { d: "M5 12h14" }], ["path", { d: "M12 5v14" }]],
|
|
234
|
+
RefreshCw: [
|
|
235
|
+
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }],
|
|
236
|
+
["path", { d: "M21 3v5h-5" }],
|
|
237
|
+
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }],
|
|
238
|
+
["path", { d: "M8 16H3v5" }]
|
|
239
|
+
],
|
|
240
|
+
RotateCcw: [["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { d: "M3 3v5h5" }]],
|
|
241
|
+
RotateCw: [["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }], ["path", { d: "M21 3v5h-5" }]],
|
|
242
|
+
Search: [["path", { d: "m21 21-4.34-4.34" }], ["circle", {
|
|
243
|
+
cx: "11",
|
|
244
|
+
cy: "11",
|
|
245
|
+
r: "8"
|
|
246
|
+
}]],
|
|
247
|
+
Server: [
|
|
248
|
+
["rect", {
|
|
249
|
+
width: "20",
|
|
250
|
+
height: "8",
|
|
251
|
+
x: "2",
|
|
252
|
+
y: "2",
|
|
253
|
+
rx: "2",
|
|
254
|
+
ry: "2"
|
|
255
|
+
}],
|
|
256
|
+
["rect", {
|
|
257
|
+
width: "20",
|
|
258
|
+
height: "8",
|
|
259
|
+
x: "2",
|
|
260
|
+
y: "14",
|
|
261
|
+
rx: "2",
|
|
262
|
+
ry: "2"
|
|
263
|
+
}],
|
|
264
|
+
["line", {
|
|
265
|
+
x1: "6",
|
|
266
|
+
x2: "6.01",
|
|
267
|
+
y1: "6",
|
|
268
|
+
y2: "6"
|
|
269
|
+
}],
|
|
270
|
+
["line", {
|
|
271
|
+
x1: "6",
|
|
272
|
+
x2: "6.01",
|
|
273
|
+
y1: "18",
|
|
274
|
+
y2: "18"
|
|
275
|
+
}]
|
|
276
|
+
],
|
|
277
|
+
Settings: [["path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }], ["circle", {
|
|
278
|
+
cx: "12",
|
|
279
|
+
cy: "12",
|
|
280
|
+
r: "3"
|
|
281
|
+
}]],
|
|
282
|
+
ShieldCheck: [["path", { d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { d: "m9 12 2 2 4-4" }]],
|
|
283
|
+
ShieldOff: [
|
|
284
|
+
["path", { d: "m2 2 20 20" }],
|
|
285
|
+
["path", { d: "M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71" }],
|
|
286
|
+
["path", { d: "M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264" }]
|
|
287
|
+
],
|
|
288
|
+
SlidersHorizontal: [
|
|
289
|
+
["line", {
|
|
290
|
+
x1: "21",
|
|
291
|
+
x2: "14",
|
|
292
|
+
y1: "4",
|
|
293
|
+
y2: "4"
|
|
294
|
+
}],
|
|
295
|
+
["line", {
|
|
296
|
+
x1: "10",
|
|
297
|
+
x2: "3",
|
|
298
|
+
y1: "4",
|
|
299
|
+
y2: "4"
|
|
300
|
+
}],
|
|
301
|
+
["line", {
|
|
302
|
+
x1: "21",
|
|
303
|
+
x2: "12",
|
|
304
|
+
y1: "12",
|
|
305
|
+
y2: "12"
|
|
306
|
+
}],
|
|
307
|
+
["line", {
|
|
308
|
+
x1: "8",
|
|
309
|
+
x2: "3",
|
|
310
|
+
y1: "12",
|
|
311
|
+
y2: "12"
|
|
312
|
+
}],
|
|
313
|
+
["line", {
|
|
314
|
+
x1: "21",
|
|
315
|
+
x2: "16",
|
|
316
|
+
y1: "20",
|
|
317
|
+
y2: "20"
|
|
318
|
+
}],
|
|
319
|
+
["line", {
|
|
320
|
+
x1: "12",
|
|
321
|
+
x2: "3",
|
|
322
|
+
y1: "20",
|
|
323
|
+
y2: "20"
|
|
324
|
+
}],
|
|
325
|
+
["line", {
|
|
326
|
+
x1: "14",
|
|
327
|
+
x2: "14",
|
|
328
|
+
y1: "2",
|
|
329
|
+
y2: "6"
|
|
330
|
+
}],
|
|
331
|
+
["line", {
|
|
332
|
+
x1: "8",
|
|
333
|
+
x2: "8",
|
|
334
|
+
y1: "10",
|
|
335
|
+
y2: "14"
|
|
336
|
+
}],
|
|
337
|
+
["line", {
|
|
338
|
+
x1: "16",
|
|
339
|
+
x2: "16",
|
|
340
|
+
y1: "18",
|
|
341
|
+
y2: "22"
|
|
342
|
+
}]
|
|
343
|
+
],
|
|
344
|
+
Sparkles: [
|
|
345
|
+
["path", { d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" }],
|
|
346
|
+
["path", { d: "M20 3v4" }],
|
|
347
|
+
["path", { d: "M22 5h-4" }],
|
|
348
|
+
["path", { d: "M4 17v2" }],
|
|
349
|
+
["path", { d: "M5 18H3" }]
|
|
350
|
+
],
|
|
351
|
+
Square: [["rect", {
|
|
352
|
+
width: "18",
|
|
353
|
+
height: "18",
|
|
354
|
+
x: "3",
|
|
355
|
+
y: "3",
|
|
356
|
+
rx: "2"
|
|
357
|
+
}]],
|
|
358
|
+
Sun: [
|
|
359
|
+
["circle", {
|
|
360
|
+
cx: "12",
|
|
361
|
+
cy: "12",
|
|
362
|
+
r: "4"
|
|
363
|
+
}],
|
|
364
|
+
["path", { d: "M12 2v2" }],
|
|
365
|
+
["path", { d: "M12 20v2" }],
|
|
366
|
+
["path", { d: "m4.93 4.93 1.41 1.41" }],
|
|
367
|
+
["path", { d: "m17.66 17.66 1.41 1.41" }],
|
|
368
|
+
["path", { d: "M2 12h2" }],
|
|
369
|
+
["path", { d: "M20 12h2" }],
|
|
370
|
+
["path", { d: "m6.34 17.66-1.41 1.41" }],
|
|
371
|
+
["path", { d: "m19.07 4.93-1.41 1.41" }]
|
|
372
|
+
],
|
|
373
|
+
Trash2: [
|
|
374
|
+
["path", { d: "M3 6h18" }],
|
|
375
|
+
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }],
|
|
376
|
+
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }],
|
|
377
|
+
["line", {
|
|
378
|
+
x1: "10",
|
|
379
|
+
x2: "10",
|
|
380
|
+
y1: "11",
|
|
381
|
+
y2: "17"
|
|
382
|
+
}],
|
|
383
|
+
["line", {
|
|
384
|
+
x1: "14",
|
|
385
|
+
x2: "14",
|
|
386
|
+
y1: "11",
|
|
387
|
+
y2: "17"
|
|
388
|
+
}]
|
|
389
|
+
],
|
|
390
|
+
TriangleAlert: alertTriangleIcon,
|
|
391
|
+
Wand2: [
|
|
392
|
+
["path", { d: "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" }],
|
|
393
|
+
["path", { d: "m14 7 3 3" }],
|
|
394
|
+
["path", { d: "M5 6v4" }],
|
|
395
|
+
["path", { d: "M19 14v4" }],
|
|
396
|
+
["path", { d: "M10 2v2" }],
|
|
397
|
+
["path", { d: "M7 8H3" }],
|
|
398
|
+
["path", { d: "M21 16h-4" }],
|
|
399
|
+
["path", { d: "M11 3H9" }]
|
|
400
|
+
],
|
|
401
|
+
X: [["path", { d: "M18 6 6 18" }], ["path", { d: "m6 6 12 12" }]],
|
|
402
|
+
Zap: [["path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" }]]
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
//#endregion
|
|
406
|
+
export { ICON_NODES };
|
|
407
|
+
//# sourceMappingURL=icons.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.mjs","names":[],"sources":["../../src/lib/icons.ts"],"sourcesContent":["/**\n * SVG node data for the Lucide icons the Inspector renders.\n *\n * Copied verbatim from lucide@0.525.0 (`icons` export) so the Inspector does\n * not bundle all ~1,800 Lucide icons. Add an icon by copying its node array\n * from the same Lucide release; `IconName` is derived from this map, so an\n * icon that is not vendored here is a type error at the call site.\n *\n * Lucide — https://lucide.dev — ISC License\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as\n * part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide\n * Contributors 2022.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\n/** One SVG child element: tag name and its attributes. */\nexport type IconNode = ReadonlyArray<\n readonly [tag: string, attributes: Readonly<Record<string, string>>]\n>;\n\nconst alertTriangleIcon: IconNode = [\n [\n \"path\",\n {\n d: \"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",\n },\n ],\n [\"path\", { d: \"M12 9v4\" }],\n [\"path\", { d: \"M12 17h.01\" }],\n];\n\nexport const ICON_NODES = {\n Activity: [\n [\n \"path\",\n {\n d: \"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\",\n },\n ],\n ],\n AlertTriangle: alertTriangleIcon,\n ArrowLeft: [\n [\"path\", { d: \"m12 19-7-7 7-7\" }],\n [\"path\", { d: \"M19 12H5\" }],\n ],\n ArrowRight: [\n [\"path\", { d: \"M5 12h14\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\" }],\n ],\n ArrowUp: [\n [\"path\", { d: \"m5 12 7-7 7 7\" }],\n [\"path\", { d: \"M12 19V5\" }],\n ],\n ArrowUpRight: [\n [\"path\", { d: \"M7 7h10v10\" }],\n [\"path\", { d: \"M7 17 17 7\" }],\n ],\n Bot: [\n [\"path\", { d: \"M12 8V4H8\" }],\n [\"rect\", { width: \"16\", height: \"12\", x: \"4\", y: \"8\", rx: \"2\" }],\n [\"path\", { d: \"M2 14h2\" }],\n [\"path\", { d: \"M20 14h2\" }],\n [\"path\", { d: \"M15 13v2\" }],\n [\"path\", { d: \"M9 13v2\" }],\n ],\n Brain: [\n [\n \"path\",\n {\n d: \"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z\",\n },\n ],\n [\n \"path\",\n {\n d: \"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z\",\n },\n ],\n [\"path\", { d: \"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4\" }],\n [\"path\", { d: \"M17.599 6.5a3 3 0 0 0 .399-1.375\" }],\n [\"path\", { d: \"M6.003 5.125A3 3 0 0 0 6.401 6.5\" }],\n [\"path\", { d: \"M3.477 10.896a4 4 0 0 1 .585-.396\" }],\n [\"path\", { d: \"M19.938 10.5a4 4 0 0 1 .585.396\" }],\n [\"path\", { d: \"M6 18a4 4 0 0 1-1.967-.516\" }],\n [\"path\", { d: \"M19.967 17.484A4 4 0 0 1 18 18\" }],\n ],\n Check: [[\"path\", { d: \"M20 6 9 17l-5-5\" }]],\n ChevronDown: [[\"path\", { d: \"m6 9 6 6 6-6\" }]],\n ChevronLeft: [[\"path\", { d: \"m15 18-6-6 6-6\" }]],\n ChevronRight: [[\"path\", { d: \"m9 18 6-6-6-6\" }]],\n CircleHelp: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\" }],\n [\"path\", { d: \"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" }],\n [\"path\", { d: \"M12 17h.01\" }],\n ],\n ClipboardCopy: [\n [\"rect\", { width: \"8\", height: \"4\", x: \"8\", y: \"2\", rx: \"1\", ry: \"1\" }],\n [\n \"path\",\n { d: \"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" },\n ],\n [\"path\", { d: \"M16 4h2a2 2 0 0 1 2 2v4\" }],\n [\"path\", { d: \"M21 14H11\" }],\n [\"path\", { d: \"m15 10-4 4 4 4\" }],\n ],\n Clock: [\n [\"path\", { d: \"M12 6v6l4 2\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\" }],\n ],\n Clock3: [\n [\"path\", { d: \"M12 6v6h4\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\" }],\n ],\n Copy: [\n [\"rect\", { width: \"14\", height: \"14\", x: \"8\", y: \"8\", rx: \"2\", ry: \"2\" }],\n [\"path\", { d: \"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" }],\n ],\n Database: [\n [\"ellipse\", { cx: \"12\", cy: \"5\", rx: \"9\", ry: \"3\" }],\n [\"path\", { d: \"M3 5V19A9 3 0 0 0 21 19V5\" }],\n [\"path\", { d: \"M3 12A9 3 0 0 0 21 12\" }],\n ],\n Download: [\n [\"path\", { d: \"M12 15V3\" }],\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" }],\n [\"path\", { d: \"m7 10 5 5 5-5\" }],\n ],\n Eye: [\n [\n \"path\",\n {\n d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n },\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\" }],\n ],\n EyeOff: [\n [\n \"path\",\n {\n d: \"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\",\n },\n ],\n [\"path\", { d: \"M14.084 14.158a3 3 0 0 1-4.242-4.242\" }],\n [\n \"path\",\n {\n d: \"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\",\n },\n ],\n [\"path\", { d: \"m2 2 20 20\" }],\n ],\n FileText: [\n [\n \"path\",\n { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" },\n ],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\" }],\n [\"path\", { d: \"M10 9H8\" }],\n [\"path\", { d: \"M16 13H8\" }],\n [\"path\", { d: \"M16 17H8\" }],\n ],\n Filter: [\n [\n \"path\",\n {\n d: \"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\",\n },\n ],\n ],\n Hammer: [\n [\"path\", { d: \"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9\" }],\n [\"path\", { d: \"m18 15 4-4\" }],\n [\n \"path\",\n {\n d: \"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5\",\n },\n ],\n ],\n History: [\n [\"path\", { d: \"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\" }],\n [\"path\", { d: \"M3 3v5h5\" }],\n [\"path\", { d: \"M12 7v5l4 2\" }],\n ],\n Home: [\n [\"path\", { d: \"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\" }],\n [\n \"path\",\n {\n d: \"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\",\n },\n ],\n ],\n Layers: [\n [\n \"path\",\n {\n d: \"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\",\n },\n ],\n [\n \"path\",\n {\n d: \"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\",\n },\n ],\n [\n \"path\",\n {\n d: \"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\",\n },\n ],\n ],\n LayoutGrid: [\n [\"rect\", { width: \"7\", height: \"7\", x: \"3\", y: \"3\", rx: \"1\" }],\n [\"rect\", { width: \"7\", height: \"7\", x: \"14\", y: \"3\", rx: \"1\" }],\n [\"rect\", { width: \"7\", height: \"7\", x: \"14\", y: \"14\", rx: \"1\" }],\n [\"rect\", { width: \"7\", height: \"7\", x: \"3\", y: \"14\", rx: \"1\" }],\n ],\n LayoutTemplate: [\n [\"rect\", { width: \"18\", height: \"7\", x: \"3\", y: \"3\", rx: \"1\" }],\n [\"rect\", { width: \"9\", height: \"7\", x: \"3\", y: \"14\", rx: \"1\" }],\n [\"rect\", { width: \"5\", height: \"7\", x: \"16\", y: \"14\", rx: \"1\" }],\n ],\n Lightbulb: [\n [\n \"path\",\n {\n d: \"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\",\n },\n ],\n [\"path\", { d: \"M9 18h6\" }],\n [\"path\", { d: \"M10 22h4\" }],\n ],\n LoaderCircle: [[\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\" }]],\n Maximize2: [\n [\"path\", { d: \"M15 3h6v6\" }],\n [\"path\", { d: \"m21 3-7 7\" }],\n [\"path\", { d: \"m3 21 7-7\" }],\n [\"path\", { d: \"M9 21H3v-6\" }],\n ],\n Megaphone: [\n [\n \"path\",\n {\n d: \"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z\",\n },\n ],\n [\n \"path\",\n { d: \"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14\" },\n ],\n [\"path\", { d: \"M8 6v8\" }],\n ],\n MessageCircle: [[\"path\", { d: \"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" }]],\n MessageSquare: [\n [\n \"path\",\n { d: \"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" },\n ],\n ],\n MessagesSquare: [\n [\n \"path\",\n { d: \"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z\" },\n ],\n [\"path\", { d: \"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1\" }],\n ],\n Moon: [[\"path\", { d: \"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\" }]],\n PanelLeft: [\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\" }],\n [\"path\", { d: \"M9 3v18\" }],\n ],\n PanelsTopLeft: [\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\" }],\n [\"path\", { d: \"M3 9h18\" }],\n [\"path\", { d: \"M9 21V9\" }],\n ],\n PictureInPicture2: [\n [\"path\", { d: \"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4\" }],\n [\"rect\", { width: \"10\", height: \"7\", x: \"12\", y: \"13\", rx: \"2\" }],\n ],\n Plus: [\n [\"path\", { d: \"M5 12h14\" }],\n [\"path\", { d: \"M12 5v14\" }],\n ],\n RefreshCw: [\n [\"path\", { d: \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" }],\n [\"path\", { d: \"M21 3v5h-5\" }],\n [\"path\", { d: \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" }],\n [\"path\", { d: \"M8 16H3v5\" }],\n ],\n RotateCcw: [\n [\"path\", { d: \"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\" }],\n [\"path\", { d: \"M3 3v5h5\" }],\n ],\n RotateCw: [\n [\"path\", { d: \"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8\" }],\n [\"path\", { d: \"M21 3v5h-5\" }],\n ],\n Search: [\n [\"path\", { d: \"m21 21-4.34-4.34\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\" }],\n ],\n Server: [\n [\"rect\", { width: \"20\", height: \"8\", x: \"2\", y: \"2\", rx: \"2\", ry: \"2\" }],\n [\"rect\", { width: \"20\", height: \"8\", x: \"2\", y: \"14\", rx: \"2\", ry: \"2\" }],\n [\"line\", { x1: \"6\", x2: \"6.01\", y1: \"6\", y2: \"6\" }],\n [\"line\", { x1: \"6\", x2: \"6.01\", y1: \"18\", y2: \"18\" }],\n ],\n Settings: [\n [\n \"path\",\n {\n d: \"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z\",\n },\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\" }],\n ],\n ShieldCheck: [\n [\n \"path\",\n {\n d: \"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\",\n },\n ],\n [\"path\", { d: \"m9 12 2 2 4-4\" }],\n ],\n ShieldOff: [\n [\"path\", { d: \"m2 2 20 20\" }],\n [\n \"path\",\n {\n d: \"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71\",\n },\n ],\n [\n \"path\",\n {\n d: \"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264\",\n },\n ],\n ],\n SlidersHorizontal: [\n [\"line\", { x1: \"21\", x2: \"14\", y1: \"4\", y2: \"4\" }],\n [\"line\", { x1: \"10\", x2: \"3\", y1: \"4\", y2: \"4\" }],\n [\"line\", { x1: \"21\", x2: \"12\", y1: \"12\", y2: \"12\" }],\n [\"line\", { x1: \"8\", x2: \"3\", y1: \"12\", y2: \"12\" }],\n [\"line\", { x1: \"21\", x2: \"16\", y1: \"20\", y2: \"20\" }],\n [\"line\", { x1: \"12\", x2: \"3\", y1: \"20\", y2: \"20\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"2\", y2: \"6\" }],\n [\"line\", { x1: \"8\", x2: \"8\", y1: \"10\", y2: \"14\" }],\n [\"line\", { x1: \"16\", x2: \"16\", y1: \"18\", y2: \"22\" }],\n ],\n Sparkles: [\n [\n \"path\",\n {\n d: \"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\",\n },\n ],\n [\"path\", { d: \"M20 3v4\" }],\n [\"path\", { d: \"M22 5h-4\" }],\n [\"path\", { d: \"M4 17v2\" }],\n [\"path\", { d: \"M5 18H3\" }],\n ],\n Square: [[\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\" }]],\n Sun: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"4\" }],\n [\"path\", { d: \"M12 2v2\" }],\n [\"path\", { d: \"M12 20v2\" }],\n [\"path\", { d: \"m4.93 4.93 1.41 1.41\" }],\n [\"path\", { d: \"m17.66 17.66 1.41 1.41\" }],\n [\"path\", { d: \"M2 12h2\" }],\n [\"path\", { d: \"M20 12h2\" }],\n [\"path\", { d: \"m6.34 17.66-1.41 1.41\" }],\n [\"path\", { d: \"m19.07 4.93-1.41 1.41\" }],\n ],\n Trash2: [\n [\"path\", { d: \"M3 6h18\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"11\", y2: \"17\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"11\", y2: \"17\" }],\n ],\n TriangleAlert: alertTriangleIcon,\n Wand2: [\n [\n \"path\",\n {\n d: \"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72\",\n },\n ],\n [\"path\", { d: \"m14 7 3 3\" }],\n [\"path\", { d: \"M5 6v4\" }],\n [\"path\", { d: \"M19 14v4\" }],\n [\"path\", { d: \"M10 2v2\" }],\n [\"path\", { d: \"M7 8H3\" }],\n [\"path\", { d: \"M21 16h-4\" }],\n [\"path\", { d: \"M11 3H9\" }],\n ],\n X: [\n [\"path\", { d: \"M18 6 6 18\" }],\n [\"path\", { d: \"m6 6 12 12\" }],\n ],\n Zap: [\n [\n \"path\",\n {\n d: \"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\",\n },\n ],\n ],\n} satisfies Record<string, IconNode>;\n\n/** Name of a vendored Lucide icon the Inspector can render. */\nexport type IconName = keyof typeof ICON_NODES;\n"],"mappings":";AA+BA,MAAM,oBAA8B;CAClC,CACE,QACA,EACE,GAAG,4EACJ,CACF;CACD,CAAC,QAAQ,EAAE,GAAG,WAAW,CAAC;CAC1B,CAAC,QAAQ,EAAE,GAAG,cAAc,CAAC;CAC9B;AAED,MAAa,aAAa;CACxB,UAAU,CACR,CACE,QACA,EACE,GAAG,8HACJ,CACF,CACF;CACD,eAAe;CACf,WAAW,CACT,CAAC,QAAQ,EAAE,GAAG,kBAAkB,CAAC,EACjC,CAAC,QAAQ,EAAE,GAAG,YAAY,CAAC,CAC5B;CACD,YAAY,CACV,CAAC,QAAQ,EAAE,GAAG,YAAY,CAAC,EAC3B,CAAC,QAAQ,EAAE,GAAG,iBAAiB,CAAC,CACjC;CACD,SAAS,CACP,CAAC,QAAQ,EAAE,GAAG,iBAAiB,CAAC,EAChC,CAAC,QAAQ,EAAE,GAAG,YAAY,CAAC,CAC5B;CACD,cAAc,CACZ,CAAC,QAAQ,EAAE,GAAG,cAAc,CAAC,EAC7B,CAAC,QAAQ,EAAE,GAAG,cAAc,CAAC,CAC9B;CACD,KAAK;EACH,CAAC,QAAQ,EAAE,GAAG,aAAa,CAAC;EAC5B,CAAC,QAAQ;GAAE,OAAO;GAAM,QAAQ;GAAM,GAAG;GAAK,GAAG;GAAK,IAAI;GAAK,CAAC;EAChE,CAAC,QAAQ,EAAE,GAAG,WAAW,CAAC;EAC1B,CAAC,QAAQ,EAAE,GAAG,YAAY,CAAC;EAC3B,CAAC,QAAQ,EAA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CAAC,QAAQ,EAAE,GAAG,aAAa,CAAC;EAC5B,CAAC,QAAQ,EAAE,GAAG,WAAW,CAAC;EAC3B;CACD,GAAG,CACD,CAAC,QAAQ,EAAE,GAAG,cAAc,CAAC,EAC7B,CAAC,QAAQ,EAAE,GAAG,cAAc,CAAC,CAC9B;CACD,KAAK,CACH,CACE,QACA,EACE,GAAG,+JACJ,CACF,CACF;CACF"}
|
package/dist/lib/json-block.cjs
CHANGED
|
@@ -133,7 +133,6 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
133
133
|
exports.CpkJsonBlock = CpkJsonBlock;
|
|
134
134
|
exports.JSON_BLOCK_TAG = JSON_BLOCK_TAG;
|
|
135
135
|
exports.coerceJsonValue = coerceJsonValue;
|
|
136
|
-
exports.escapeHtml = escapeHtml;
|
|
137
136
|
exports.renderHighlightedJsonBlock = renderHighlightedJsonBlock;
|
|
138
137
|
exports.setInspectorJsonRenderer = setInspectorJsonRenderer;
|
|
139
138
|
//# sourceMappingURL=json-block.cjs.map
|
package/dist/lib/json-block.mjs
CHANGED
|
@@ -130,5 +130,5 @@ ${unsafeHTML(highlightedJson(parsed))}</pre
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
//#endregion
|
|
133
|
-
export { CpkJsonBlock, JSON_BLOCK_TAG, coerceJsonValue,
|
|
133
|
+
export { CpkJsonBlock, JSON_BLOCK_TAG, coerceJsonValue, renderHighlightedJsonBlock, setInspectorJsonRenderer };
|
|
134
134
|
//# sourceMappingURL=json-block.mjs.map
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
let _copilotkit_markdown_renderer = require("@copilotkit/markdown-renderer");
|
|
2
|
+
|
|
3
|
+
//#region src/lib/markdown.ts
|
|
4
|
+
const ESCAPED = {
|
|
5
|
+
"&": "&",
|
|
6
|
+
"<": "<",
|
|
7
|
+
">": ">",
|
|
8
|
+
"\"": """,
|
|
9
|
+
"'": "'"
|
|
10
|
+
};
|
|
11
|
+
/** Escape every markup-significant character (attributes, code). */
|
|
12
|
+
function escapeAll(value) {
|
|
13
|
+
return value.replace(/[&<>"']/g, (char) => ESCAPED[char]);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Escape prose text but leave existing character references such as `&`
|
|
17
|
+
* or `©` alone, as Markdown (and the previous marked renderer) does. A
|
|
18
|
+
* character reference cannot open a tag, so this does not weaken escaping.
|
|
19
|
+
*/
|
|
20
|
+
function escapeText(value) {
|
|
21
|
+
return value.replace(/[<>"']|&(?!#\d{1,7};|#[Xx][a-fA-F0-9]{1,6};|\w+;)/g, (char) => ESCAPED[char]);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Render a complete Markdown document to an HTML string for the What's new
|
|
25
|
+
* article. The output is meant for `unsafeHTML`, so every piece of source text
|
|
26
|
+
* is escaped: raw HTML in the Markdown renders as visible text, and URLs only
|
|
27
|
+
* reach attributes through the caller's `linkHref` / `imageSrc` policy.
|
|
28
|
+
*/
|
|
29
|
+
function renderMarkdownToHtml(markdown, options) {
|
|
30
|
+
const state = (0, _copilotkit_markdown_renderer.finalizeStreamingMarkdown)((0, _copilotkit_markdown_renderer.parseStreamingMarkdownChunk)((0, _copilotkit_markdown_renderer.createStreamingMarkdownParserState)({ segmenter: false }), markdown));
|
|
31
|
+
const nodes = new Map(state.nodes.map((node) => [node.id, node]));
|
|
32
|
+
const root = state.rootId === null ? void 0 : nodes.get(state.rootId);
|
|
33
|
+
if (!root || root.type !== "document") return "";
|
|
34
|
+
return renderChildren(root.children, {
|
|
35
|
+
nodes,
|
|
36
|
+
source: state.source,
|
|
37
|
+
options
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function childNodes(ids, context) {
|
|
41
|
+
return ids.flatMap((id) => {
|
|
42
|
+
const node = context.nodes.get(id);
|
|
43
|
+
return node ? [node] : [];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function renderChildren(ids, context) {
|
|
47
|
+
return childNodes(ids, context).map((node) => renderNode(node, context)).join("");
|
|
48
|
+
}
|
|
49
|
+
function renderNode(node, context) {
|
|
50
|
+
switch (node.type) {
|
|
51
|
+
case "document":
|
|
52
|
+
case "table-row":
|
|
53
|
+
case "table-cell": return renderChildren(node.children, context);
|
|
54
|
+
case "paragraph": return `<p>${renderChildren(node.children, context)}</p>\n`;
|
|
55
|
+
case "heading": return `<h${node.level}>${renderChildren(node.children, context)}</h${node.level}>\n`;
|
|
56
|
+
case "blockquote": return `<blockquote>\n${renderChildren(node.children, context)}</blockquote>\n`;
|
|
57
|
+
case "list": return renderList(node, context);
|
|
58
|
+
case "list-item": return `<li>${renderChildren(node.children, context)}</li>\n`;
|
|
59
|
+
case "code-block": return renderCodeBlock(node, context);
|
|
60
|
+
case "table": return renderTable(node, context);
|
|
61
|
+
case "thematic-break": return "<hr>\n";
|
|
62
|
+
case "text": return escapeText(node.text);
|
|
63
|
+
case "em": return `<em>${renderChildren(node.children, context)}</em>`;
|
|
64
|
+
case "strong": return `<strong>${renderChildren(node.children, context)}</strong>`;
|
|
65
|
+
case "strikethrough": return `<del>${renderChildren(node.children, context)}</del>`;
|
|
66
|
+
case "inline-code": return `<code>${escapeAll(node.text)}</code>`;
|
|
67
|
+
case "soft-break": return "\n";
|
|
68
|
+
case "hard-break": return "<br>";
|
|
69
|
+
case "link": return renderLink(node.url, node.title, renderChildren(node.children, context), context);
|
|
70
|
+
case "autolink": return renderLink(node.url, void 0, escapeText(node.text), context);
|
|
71
|
+
case "image": return renderImage(node, context);
|
|
72
|
+
case "citation": return escapeText(`[^${node.idRef}]`);
|
|
73
|
+
default: return node;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The parser keeps each list item as a single paragraph, so a blank line
|
|
78
|
+
* inside an item survives only as two soft breaks in a row. Split there to
|
|
79
|
+
* recover the paragraphs the author wrote.
|
|
80
|
+
*/
|
|
81
|
+
function itemParts(item, context) {
|
|
82
|
+
return childNodes(item.children, context).flatMap((block) => block.type === "paragraph" ? splitAtBlankLines(childNodes(block.children, context)).map((nodes) => ({
|
|
83
|
+
kind: "paragraph",
|
|
84
|
+
nodes
|
|
85
|
+
})) : [{
|
|
86
|
+
kind: "block",
|
|
87
|
+
node: block
|
|
88
|
+
}]);
|
|
89
|
+
}
|
|
90
|
+
function splitAtBlankLines(nodes) {
|
|
91
|
+
const paragraphs = [[]];
|
|
92
|
+
let breaks = [];
|
|
93
|
+
for (const node of nodes) {
|
|
94
|
+
const isBlankText = node.type === "text" && node.text.trim() === "";
|
|
95
|
+
if (node.type === "soft-break" || breaks.length > 0 && isBlankText) {
|
|
96
|
+
breaks.push(node);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
const current = paragraphs[paragraphs.length - 1];
|
|
100
|
+
if (breaks.filter((n) => n.type === "soft-break").length >= 2) paragraphs.push([node]);
|
|
101
|
+
else current.push(...breaks, node);
|
|
102
|
+
breaks = [];
|
|
103
|
+
}
|
|
104
|
+
return paragraphs.filter((paragraph) => paragraph.length > 0);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A list is loose when a blank line separates two of its items or two
|
|
108
|
+
* paragraphs inside one item. The blank line that ends the list does not
|
|
109
|
+
* count, so a list followed by more prose still renders tight.
|
|
110
|
+
*/
|
|
111
|
+
function isLooseList(items, parts, context) {
|
|
112
|
+
return parts.some((item) => item.filter((part) => part.kind === "paragraph").length > 1) || items.slice(0, -1).some((item, index) => {
|
|
113
|
+
const between = context.source.slice(item.range.start, items[index + 1].range.start);
|
|
114
|
+
return /\n[ \t]*\n/.test(between);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
const TASK_MARKER = /^\[([ xX])\][ \t]+/;
|
|
118
|
+
/** Render inline nodes, turning a leading `[ ]` / `[x]` into a checkbox. */
|
|
119
|
+
function renderTaskAwareInline(nodes, context) {
|
|
120
|
+
const [first, ...rest] = nodes;
|
|
121
|
+
const task = first?.type === "text" ? TASK_MARKER.exec(first.text) : null;
|
|
122
|
+
if (!first || first.type !== "text" || !task) return nodes.map((node) => renderNode(node, context)).join("");
|
|
123
|
+
return `<input ${task[1] === " " ? "" : "checked=\"\" "}disabled="" type="checkbox"> ${escapeText(first.text.slice(task[0].length))}${rest.map((node) => renderNode(node, context)).join("")}`;
|
|
124
|
+
}
|
|
125
|
+
function renderList(node, context) {
|
|
126
|
+
const tag = node.ordered ? "ol" : "ul";
|
|
127
|
+
const start = node.ordered && node.start !== null && node.start !== 1 ? ` start="${node.start}"` : "";
|
|
128
|
+
const items = childNodes(node.children, context).filter((item) => item.type === "list-item");
|
|
129
|
+
const parts = items.map((item) => itemParts(item, context));
|
|
130
|
+
const loose = isLooseList(items, parts, context);
|
|
131
|
+
return `<${tag}${start}>\n${parts.map((itemContent) => {
|
|
132
|
+
return `<li>${itemContent.map((part, index) => {
|
|
133
|
+
if (part.kind === "block") return renderNode(part.node, context);
|
|
134
|
+
const inline = index === 0 ? renderTaskAwareInline(part.nodes, context) : part.nodes.map((n) => renderNode(n, context)).join("");
|
|
135
|
+
return loose ? `<p>${inline}</p>\n` : inline;
|
|
136
|
+
}).join("")}</li>\n`;
|
|
137
|
+
}).join("")}</${tag}>\n`;
|
|
138
|
+
}
|
|
139
|
+
function renderCodeBlock(node, context) {
|
|
140
|
+
const language = (node.info ?? "").replace(/[^a-z0-9-]/gi, "");
|
|
141
|
+
const languageClass = language ? ` class="language-${language}"` : "";
|
|
142
|
+
const payload = escapeAll(context.options.copyPayload(node.text));
|
|
143
|
+
return `<div class="announcement-code"><pre><code${languageClass}>${escapeAll(node.text)}</code></pre><div class="announcement-code__copy-shield"><button type="button" class="announcement-code__copy" data-copy="${payload}" aria-label="Copy code">Copy</button></div></div>`;
|
|
144
|
+
}
|
|
145
|
+
function renderTable(node, context) {
|
|
146
|
+
const rows = childNodes(node.children, context).filter((row) => row.type === "table-row");
|
|
147
|
+
const renderRow = (row) => {
|
|
148
|
+
const tag = row.isHeader ? "th" : "td";
|
|
149
|
+
return `<tr>\n${childNodes(row.children, context).map((cell, index) => {
|
|
150
|
+
const align = node.align[index];
|
|
151
|
+
return `<${tag}${align && align !== "none" ? ` align="${align}"` : ""}>${renderNode(cell, context)}</${tag}>\n`;
|
|
152
|
+
}).join("")}</tr>\n`;
|
|
153
|
+
};
|
|
154
|
+
const header = rows.filter((row) => row.isHeader).map(renderRow);
|
|
155
|
+
const body = rows.filter((row) => !row.isHeader).map(renderRow);
|
|
156
|
+
return `<table>\n<thead>\n${header.join("")}</thead>\n${body.length > 0 ? `<tbody>${body.join("")}</tbody>` : ""}</table>\n`;
|
|
157
|
+
}
|
|
158
|
+
function renderImage(node, context) {
|
|
159
|
+
const src = context.options.imageSrc(node.url);
|
|
160
|
+
if (src === null) return escapeText(node.alt);
|
|
161
|
+
const title = node.title ? ` title="${escapeAll(node.title)}"` : "";
|
|
162
|
+
return `<img src="${escapeAll(src)}" alt="${escapeAll(node.alt)}"${title}>`;
|
|
163
|
+
}
|
|
164
|
+
function renderLink(url, title, content, context) {
|
|
165
|
+
return `<a href="${escapeAll(context.options.linkHref(url))}" target="_blank" rel="noopener"${title ? ` title="${escapeAll(title)}"` : ""}>${content}</a>`;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
//#endregion
|
|
169
|
+
exports.renderMarkdownToHtml = renderMarkdownToHtml;
|
|
170
|
+
//# sourceMappingURL=markdown.cjs.map
|