@replicated/portal-components 0.0.11 → 0.0.12
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/components/metadata/registry.json +2 -2
- package/components/metadata/registry.md +2 -2
- package/datadog/tracer.d.ts +3 -0
- package/datadog/tracer.js +82 -0
- package/datadog/tracer.ts +101 -0
- package/dist/esm/index.js +91 -64
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/install-card.js +8 -21
- package/dist/esm/install-card.js.map +1 -1
- package/dist/esm/license-card.js +8 -12
- package/dist/esm/license-card.js.map +1 -1
- package/dist/esm/license-details.js +1 -1
- package/dist/esm/license-details.js.map +1 -1
- package/dist/esm/support-card.js +4 -6
- package/dist/esm/support-card.js.map +1 -1
- package/dist/esm/team-settings-card.js +8 -13
- package/dist/esm/team-settings-card.js.map +1 -1
- package/dist/esm/top-nav.js +69 -29
- package/dist/esm/top-nav.js.map +1 -1
- package/dist/esm/update-layout.js +69 -29
- package/dist/esm/update-layout.js.map +1 -1
- package/dist/esm/updates-card.js +8 -14
- package/dist/esm/updates-card.js.map +1 -1
- package/dist/esm/utils/observability/index.js +193 -0
- package/dist/esm/utils/observability/index.js.map +1 -0
- package/dist/index.js +91 -64
- package/dist/index.js.map +1 -1
- package/dist/install-card.js +8 -21
- package/dist/install-card.js.map +1 -1
- package/dist/license-card.js +8 -12
- package/dist/license-card.js.map +1 -1
- package/dist/license-details.js +1 -1
- package/dist/license-details.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/support-card.js +4 -6
- package/dist/support-card.js.map +1 -1
- package/dist/team-settings-card.js +8 -13
- package/dist/team-settings-card.js.map +1 -1
- package/dist/top-nav.js +69 -29
- package/dist/top-nav.js.map +1 -1
- package/dist/update-layout.js +69 -29
- package/dist/update-layout.js.map +1 -1
- package/dist/updates-card.js +8 -14
- package/dist/updates-card.js.map +1 -1
- package/dist/utils/observability/index.d.mts +13 -0
- package/dist/utils/observability/index.d.ts +13 -0
- package/dist/utils/observability/index.js +198 -0
- package/dist/utils/observability/index.js.map +1 -0
- package/instrumentation.d.ts +8 -0
- package/instrumentation.js +22 -0
- package/package.json +16 -3
|
@@ -61,10 +61,14 @@ var defaultTopNavLinks = [
|
|
|
61
61
|
className: "h-4 w-4",
|
|
62
62
|
fill: "none",
|
|
63
63
|
stroke: "currentColor",
|
|
64
|
-
strokeWidth: "
|
|
64
|
+
strokeWidth: "2",
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round",
|
|
65
67
|
children: [
|
|
66
|
-
/* @__PURE__ */ jsx("
|
|
67
|
-
/* @__PURE__ */ jsx("
|
|
68
|
+
/* @__PURE__ */ jsx("rect", { width: "7", height: "9", x: "3", y: "3", rx: "1" }),
|
|
69
|
+
/* @__PURE__ */ jsx("rect", { width: "7", height: "5", x: "14", y: "3", rx: "1" }),
|
|
70
|
+
/* @__PURE__ */ jsx("rect", { width: "7", height: "9", x: "14", y: "12", rx: "1" }),
|
|
71
|
+
/* @__PURE__ */ jsx("rect", { width: "7", height: "5", x: "3", y: "16", rx: "1" })
|
|
68
72
|
]
|
|
69
73
|
}
|
|
70
74
|
)
|
|
@@ -79,11 +83,13 @@ var defaultTopNavLinks = [
|
|
|
79
83
|
className: "h-4 w-4",
|
|
80
84
|
fill: "none",
|
|
81
85
|
stroke: "currentColor",
|
|
82
|
-
strokeWidth: "
|
|
86
|
+
strokeWidth: "2",
|
|
87
|
+
strokeLinecap: "round",
|
|
88
|
+
strokeLinejoin: "round",
|
|
83
89
|
children: [
|
|
84
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
85
|
-
/* @__PURE__ */ jsx("
|
|
86
|
-
/* @__PURE__ */ jsx("
|
|
90
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
91
|
+
/* @__PURE__ */ jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
92
|
+
/* @__PURE__ */ jsx("line", { x1: "12", x2: "12", y1: "15", y2: "3" })
|
|
87
93
|
]
|
|
88
94
|
}
|
|
89
95
|
)
|
|
@@ -99,10 +105,13 @@ var defaultTopNavLinks = [
|
|
|
99
105
|
className: "h-4 w-4",
|
|
100
106
|
fill: "none",
|
|
101
107
|
stroke: "currentColor",
|
|
102
|
-
strokeWidth: "
|
|
108
|
+
strokeWidth: "2",
|
|
109
|
+
strokeLinecap: "round",
|
|
110
|
+
strokeLinejoin: "round",
|
|
103
111
|
children: [
|
|
104
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
105
|
-
/* @__PURE__ */ jsx("
|
|
112
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
113
|
+
/* @__PURE__ */ jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
114
|
+
/* @__PURE__ */ jsx("line", { x1: "12", x2: "12", y1: "15", y2: "3" })
|
|
106
115
|
]
|
|
107
116
|
}
|
|
108
117
|
)
|
|
@@ -118,15 +127,34 @@ var defaultTopNavLinks = [
|
|
|
118
127
|
className: "h-4 w-4",
|
|
119
128
|
fill: "none",
|
|
120
129
|
stroke: "currentColor",
|
|
121
|
-
strokeWidth: "
|
|
130
|
+
strokeWidth: "2",
|
|
131
|
+
strokeLinecap: "round",
|
|
132
|
+
strokeLinejoin: "round",
|
|
122
133
|
children: [
|
|
123
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
124
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
125
|
-
/* @__PURE__ */ jsx("path", { d: "M4 10c1.5-4 6-6 10-4m6 4c-1.5 4-6 6-10 4" })
|
|
134
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }),
|
|
135
|
+
/* @__PURE__ */ jsx("path", { d: "M21 3v5h-5" })
|
|
126
136
|
]
|
|
127
137
|
}
|
|
128
138
|
)
|
|
129
139
|
},
|
|
140
|
+
{
|
|
141
|
+
label: "Security",
|
|
142
|
+
href: "/security",
|
|
143
|
+
icon: /* @__PURE__ */ jsx(
|
|
144
|
+
"svg",
|
|
145
|
+
{
|
|
146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
147
|
+
viewBox: "0 0 24 24",
|
|
148
|
+
className: "h-4 w-4",
|
|
149
|
+
fill: "none",
|
|
150
|
+
stroke: "currentColor",
|
|
151
|
+
strokeWidth: "2",
|
|
152
|
+
strokeLinecap: "round",
|
|
153
|
+
strokeLinejoin: "round",
|
|
154
|
+
children: /* @__PURE__ */ jsx("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" })
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
},
|
|
130
158
|
{
|
|
131
159
|
label: "Release History",
|
|
132
160
|
href: "/release-history",
|
|
@@ -138,10 +166,15 @@ var defaultTopNavLinks = [
|
|
|
138
166
|
className: "h-4 w-4",
|
|
139
167
|
fill: "none",
|
|
140
168
|
stroke: "currentColor",
|
|
141
|
-
strokeWidth: "
|
|
169
|
+
strokeWidth: "2",
|
|
170
|
+
strokeLinecap: "round",
|
|
171
|
+
strokeLinejoin: "round",
|
|
142
172
|
children: [
|
|
143
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
144
|
-
/* @__PURE__ */ jsx("
|
|
173
|
+
/* @__PURE__ */ jsx("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
174
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
175
|
+
/* @__PURE__ */ jsx("path", { d: "M10 9H8" }),
|
|
176
|
+
/* @__PURE__ */ jsx("path", { d: "M16 13H8" }),
|
|
177
|
+
/* @__PURE__ */ jsx("path", { d: "M16 17H8" })
|
|
145
178
|
]
|
|
146
179
|
}
|
|
147
180
|
)
|
|
@@ -157,12 +190,13 @@ var defaultTopNavLinks = [
|
|
|
157
190
|
className: "h-4 w-4",
|
|
158
191
|
fill: "none",
|
|
159
192
|
stroke: "currentColor",
|
|
160
|
-
strokeWidth: "
|
|
193
|
+
strokeWidth: "2",
|
|
194
|
+
strokeLinecap: "round",
|
|
195
|
+
strokeLinejoin: "round",
|
|
161
196
|
children: [
|
|
162
|
-
/* @__PURE__ */ jsx("
|
|
163
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
164
|
-
/* @__PURE__ */ jsx("
|
|
165
|
-
/* @__PURE__ */ jsx("path", { d: "M9 15h6" })
|
|
197
|
+
/* @__PURE__ */ jsx("path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4" }),
|
|
198
|
+
/* @__PURE__ */ jsx("path", { d: "m21 2-9.6 9.6" }),
|
|
199
|
+
/* @__PURE__ */ jsx("circle", { cx: "7.5", cy: "15.5", r: "5.5" })
|
|
166
200
|
]
|
|
167
201
|
}
|
|
168
202
|
)
|
|
@@ -178,10 +212,16 @@ var defaultTopNavLinks = [
|
|
|
178
212
|
className: "h-4 w-4",
|
|
179
213
|
fill: "none",
|
|
180
214
|
stroke: "currentColor",
|
|
181
|
-
strokeWidth: "
|
|
215
|
+
strokeWidth: "2",
|
|
216
|
+
strokeLinecap: "round",
|
|
217
|
+
strokeLinejoin: "round",
|
|
182
218
|
children: [
|
|
183
|
-
/* @__PURE__ */ jsx("
|
|
184
|
-
/* @__PURE__ */ jsx("
|
|
219
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
220
|
+
/* @__PURE__ */ jsx("path", { d: "m4.93 4.93 4.24 4.24" }),
|
|
221
|
+
/* @__PURE__ */ jsx("path", { d: "m14.83 9.17 4.24-4.24" }),
|
|
222
|
+
/* @__PURE__ */ jsx("path", { d: "m14.83 14.83 4.24 4.24" }),
|
|
223
|
+
/* @__PURE__ */ jsx("path", { d: "m9.17 14.83-4.24 4.24" }),
|
|
224
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4" })
|
|
185
225
|
]
|
|
186
226
|
}
|
|
187
227
|
)
|
|
@@ -281,7 +321,7 @@ var TopNav = async ({
|
|
|
281
321
|
return /* @__PURE__ */ jsx(
|
|
282
322
|
"div",
|
|
283
323
|
{
|
|
284
|
-
className: "relative flex h-[
|
|
324
|
+
className: "relative flex h-[280px] w-full items-start justify-center",
|
|
285
325
|
style: {
|
|
286
326
|
backgroundImage: `linear-gradient(to top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 33%), linear-gradient(${gradientStart}, ${gradientEnd})`,
|
|
287
327
|
backgroundRepeat: "no-repeat",
|
|
@@ -308,7 +348,7 @@ var TopNav = async ({
|
|
|
308
348
|
brandTitle ? /* @__PURE__ */ jsx("span", { className: "text-lg font-semibold text-gray-900", children: brandTitle }) : null
|
|
309
349
|
] }) : /* @__PURE__ */ jsx("div", {}),
|
|
310
350
|
/* @__PURE__ */ jsxs("details", { className: "group relative", children: [
|
|
311
|
-
/* @__PURE__ */ jsxs("summary", { className: "flex cursor-pointer items-center gap-2
|
|
351
|
+
/* @__PURE__ */ jsxs("summary", { className: "flex cursor-pointer items-center gap-2 text-sm font-medium text-gray-600 hover:text-gray-900 list-none", children: [
|
|
312
352
|
/* @__PURE__ */ jsxs(
|
|
313
353
|
"svg",
|
|
314
354
|
{
|
|
@@ -380,12 +420,12 @@ var TopNav = async ({
|
|
|
380
420
|
const className = `flex items-center gap-2 px-4 py-1 transition text-gray-500 ${isActive ? "underline underline-offset-8 decoration-2" : ""}`;
|
|
381
421
|
if (href) {
|
|
382
422
|
return /* @__PURE__ */ jsxs(Link, { href, className, children: [
|
|
383
|
-
/* @__PURE__ */ jsx("span", { className: isActive ? "text-
|
|
423
|
+
/* @__PURE__ */ jsx("span", { className: isActive ? "text-gray-900" : "text-gray-500", children: icon }),
|
|
384
424
|
/* @__PURE__ */ jsx("span", { children: label })
|
|
385
425
|
] }, label);
|
|
386
426
|
}
|
|
387
427
|
return /* @__PURE__ */ jsxs("button", { className, type: "button", children: [
|
|
388
|
-
/* @__PURE__ */ jsx("span", { className: isActive ? "text-
|
|
428
|
+
/* @__PURE__ */ jsx("span", { className: isActive ? "text-gray-900" : "text-gray-500", children: icon }),
|
|
389
429
|
/* @__PURE__ */ jsx("span", { children: label })
|
|
390
430
|
] }, label);
|
|
391
431
|
}) })
|