@krak-stack/registry 0.2.0 → 0.2.2
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/CHANGELOG.md +12 -0
- package/dist/components/ui/app-brand.js +17 -17
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/color-picker.js +26 -28
- package/dist/components/ui/copy-button.js +4 -4
- package/dist/components/ui/data-table.js +441 -442
- package/dist/components/ui/editing-locale-switcher.js +10 -10
- package/dist/components/ui/effect-form.js +185 -186
- package/dist/components/ui/error-component.js +6 -6
- package/dist/components/ui/file-picker.js +2 -2
- package/dist/components/ui/form.d.ts +5 -5
- package/dist/components/ui/form.js +138 -139
- package/dist/components/ui/google-map.js +2 -2
- package/dist/components/ui/icon-input.js +47 -50
- package/dist/components/ui/krakstack-provider.js +2 -2
- package/dist/components/ui/locale-switcher.js +4 -4
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/search-menu.js +2 -2
- package/dist/components/ui/sidebar-layout.js +67 -72
- package/dist/components/ui/theme-switcher.js +6 -6
- package/dist/components/ui/virtualized-combobox.js +33 -36
- package/dist/lib/docs.js +166 -171
- package/dist/lib/docs.server.js +18 -40
- package/dist/lib/documentation-toolkit.js +19 -41
- package/dist/lib/httpapi-adapter.js +2 -2
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/query.js +11 -11
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/oxlint/anti-slop/index.js +2 -2
- package/dist/services/agent/client/index.js +153 -155
- package/dist/services/agent/index.js +2 -2
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/events/browser.js +6 -6
- package/dist/services/events/client/audit-log-table.js +445 -446
- package/dist/services/events/index.js +59 -59
- package/dist/services/events/migrations.js +2 -2
- package/dist/services/events/record.js +2 -2
- package/dist/services/events/schema.js +39 -39
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +5 -5
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +7 -7
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/opentelemetry/api.js +2 -2
- package/dist/services/opentelemetry/browser.js +7 -7
- package/dist/services/opentelemetry/web-vitals.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/dist/services/speech/schema.js +9 -9
- package/dist/services/webhooks/client/delivery-table.js +479 -480
- package/dist/services/webhooks/http-client.js +5 -5
- package/dist/services/webhooks/index.js +34 -34
- package/dist/services/webhooks/migrations.js +5 -5
- package/dist/services/webhooks/schema.js +20 -20
- package/dist/services/webhooks/url.js +5 -5
- package/package.json +1 -1
package/dist/lib/docs.server.js
CHANGED
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
|
|
17
17
|
// ../../src/components/ui/app-brand.tsx
|
|
18
18
|
import { Link } from "@tanstack/react-router";
|
|
19
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
20
19
|
|
|
21
20
|
// ../../src/components/ui/badge.tsx
|
|
22
21
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
@@ -46,7 +45,6 @@ var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center
|
|
|
46
45
|
// ../../src/components/ui/button.tsx
|
|
47
46
|
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
48
47
|
import { cva as cva2 } from "class-variance-authority";
|
|
49
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
50
48
|
var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
51
49
|
variants: {
|
|
52
50
|
variant: {
|
|
@@ -78,7 +76,6 @@ var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justif
|
|
|
78
76
|
import { Check, Copy, TriangleAlert } from "lucide-react";
|
|
79
77
|
import { useEffect, useRef, useState } from "react";
|
|
80
78
|
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
|
|
81
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
82
79
|
|
|
83
80
|
// ../../src/components/ui/code-block.tsx
|
|
84
81
|
import { highlight } from "@tanstack/highlight";
|
|
@@ -86,7 +83,6 @@ import { createThemeCss } from "@tanstack/highlight/theme";
|
|
|
86
83
|
import { githubDarkTheme } from "@tanstack/highlight/themes/github-dark";
|
|
87
84
|
import { githubLightTheme } from "@tanstack/highlight/themes/github-light";
|
|
88
85
|
import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider";
|
|
89
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
90
86
|
var themeCss = `${createThemeCss({
|
|
91
87
|
light: githubLightTheme,
|
|
92
88
|
dark: githubDarkTheme,
|
|
@@ -104,12 +100,8 @@ var themeCss = `${createThemeCss({
|
|
|
104
100
|
}
|
|
105
101
|
[data-code-theme] pre.th-code code { font: inherit; }`;
|
|
106
102
|
|
|
107
|
-
// ../../src/lib/markdown/content.tsx
|
|
108
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
109
|
-
|
|
110
103
|
// ../../src/components/ui/collapsible.tsx
|
|
111
104
|
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
112
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
113
105
|
|
|
114
106
|
// ../../src/components/ui/search-menu.tsx
|
|
115
107
|
import { SearchIcon as SearchIcon2 } from "lucide-react";
|
|
@@ -122,14 +114,9 @@ import { SearchIcon } from "lucide-react";
|
|
|
122
114
|
// ../../src/components/ui/dialog.tsx
|
|
123
115
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
124
116
|
import { XIcon } from "lucide-react";
|
|
125
|
-
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
126
|
-
|
|
127
|
-
// ../../src/components/ui/command.tsx
|
|
128
|
-
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
129
117
|
|
|
130
118
|
// ../../src/components/ui/search-menu.tsx
|
|
131
119
|
import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider";
|
|
132
|
-
import { jsx as jsx9, jsxs as jsxs6, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
133
120
|
|
|
134
121
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
135
122
|
import { Link as Link2, Outlet } from "@tanstack/react-router";
|
|
@@ -148,30 +135,22 @@ import * as React from "react";
|
|
|
148
135
|
|
|
149
136
|
// ../../src/components/ui/input.tsx
|
|
150
137
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
151
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
152
138
|
|
|
153
139
|
// ../../src/components/ui/separator.tsx
|
|
154
140
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
155
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
156
141
|
|
|
157
142
|
// ../../src/components/ui/sheet.tsx
|
|
158
143
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
159
144
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
160
|
-
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
161
145
|
"use client";
|
|
162
146
|
|
|
163
|
-
// ../../src/components/ui/skeleton.tsx
|
|
164
|
-
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
165
|
-
|
|
166
147
|
// ../../src/components/ui/tooltip.tsx
|
|
167
148
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
168
|
-
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
169
149
|
"use client";
|
|
170
150
|
|
|
171
151
|
// ../../src/components/ui/sidebar.tsx
|
|
172
152
|
import { PanelLeftIcon } from "lucide-react";
|
|
173
153
|
import { Schema } from "effect";
|
|
174
|
-
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
175
154
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
176
155
|
var SidebarContext = React2.createContext(null);
|
|
177
156
|
var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
@@ -193,20 +172,19 @@ var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-
|
|
|
193
172
|
});
|
|
194
173
|
|
|
195
174
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
196
|
-
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
197
175
|
var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
|
|
198
176
|
identifier: "SidebarOpenCookie"
|
|
199
177
|
});
|
|
200
178
|
|
|
201
179
|
// ../../src/lib/docs.tsx
|
|
202
|
-
import { jsx
|
|
180
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
203
181
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
204
182
|
var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
|
|
205
183
|
identifier: "SidebarOpenCookie"
|
|
206
184
|
});
|
|
207
185
|
var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME]);
|
|
208
186
|
var makeIcon = (name, paths) => {
|
|
209
|
-
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */
|
|
187
|
+
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx("svg", {
|
|
210
188
|
"aria-hidden": "true",
|
|
211
189
|
fill: "none",
|
|
212
190
|
height: size,
|
|
@@ -223,48 +201,48 @@ var makeIcon = (name, paths) => {
|
|
|
223
201
|
Icon.displayName = name;
|
|
224
202
|
return Icon;
|
|
225
203
|
};
|
|
226
|
-
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */
|
|
204
|
+
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs(Fragment, {
|
|
227
205
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ jsx("path", {
|
|
229
207
|
d: "m12 19-7-7 7-7"
|
|
230
208
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ jsx("path", {
|
|
232
210
|
d: "M19 12H5"
|
|
233
211
|
})
|
|
234
212
|
]
|
|
235
213
|
}));
|
|
236
|
-
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */
|
|
214
|
+
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs(Fragment, {
|
|
237
215
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ jsx("path", {
|
|
239
217
|
d: "M5 12h14"
|
|
240
218
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ jsx("path", {
|
|
242
220
|
d: "m12 5 7 7-7 7"
|
|
243
221
|
})
|
|
244
222
|
]
|
|
245
223
|
}));
|
|
246
|
-
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */
|
|
224
|
+
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs(Fragment, {
|
|
247
225
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ jsx("path", {
|
|
249
227
|
d: "M12 7v14"
|
|
250
228
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ jsx("path", {
|
|
252
230
|
d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4Z"
|
|
253
231
|
})
|
|
254
232
|
]
|
|
255
233
|
}));
|
|
256
|
-
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */
|
|
234
|
+
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx("path", {
|
|
257
235
|
d: "m6 9 6 6 6-6"
|
|
258
236
|
}));
|
|
259
|
-
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */
|
|
237
|
+
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs(Fragment, {
|
|
260
238
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ jsx("path", {
|
|
262
240
|
d: "M15 3h6v6"
|
|
263
241
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ jsx("path", {
|
|
265
243
|
d: "M10 14 21 3"
|
|
266
244
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ jsx("path", {
|
|
268
246
|
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
|
|
269
247
|
})
|
|
270
248
|
]
|
|
@@ -446,7 +424,7 @@ var loadMdxDocsDirectory = async (root) => {
|
|
|
446
424
|
return pages;
|
|
447
425
|
};
|
|
448
426
|
export {
|
|
449
|
-
|
|
427
|
+
compileDocsMarkdown,
|
|
450
428
|
compileMdxDocsPage,
|
|
451
|
-
|
|
429
|
+
loadMdxDocsDirectory
|
|
452
430
|
};
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
|
|
17
17
|
// ../../src/components/ui/app-brand.tsx
|
|
18
18
|
import { Link } from "@tanstack/react-router";
|
|
19
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
20
19
|
|
|
21
20
|
// ../../src/components/ui/badge.tsx
|
|
22
21
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
@@ -46,7 +45,6 @@ var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center
|
|
|
46
45
|
// ../../src/components/ui/button.tsx
|
|
47
46
|
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
48
47
|
import { cva as cva2 } from "class-variance-authority";
|
|
49
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
50
48
|
var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
51
49
|
variants: {
|
|
52
50
|
variant: {
|
|
@@ -78,7 +76,6 @@ var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justif
|
|
|
78
76
|
import { Check, Copy, TriangleAlert } from "lucide-react";
|
|
79
77
|
import { useEffect, useRef, useState } from "react";
|
|
80
78
|
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
|
|
81
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
82
79
|
|
|
83
80
|
// ../../src/components/ui/code-block.tsx
|
|
84
81
|
import { highlight } from "@tanstack/highlight";
|
|
@@ -86,7 +83,6 @@ import { createThemeCss } from "@tanstack/highlight/theme";
|
|
|
86
83
|
import { githubDarkTheme } from "@tanstack/highlight/themes/github-dark";
|
|
87
84
|
import { githubLightTheme } from "@tanstack/highlight/themes/github-light";
|
|
88
85
|
import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider";
|
|
89
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
90
86
|
var themeCss = `${createThemeCss({
|
|
91
87
|
light: githubLightTheme,
|
|
92
88
|
dark: githubDarkTheme,
|
|
@@ -104,12 +100,8 @@ var themeCss = `${createThemeCss({
|
|
|
104
100
|
}
|
|
105
101
|
[data-code-theme] pre.th-code code { font: inherit; }`;
|
|
106
102
|
|
|
107
|
-
// ../../src/lib/markdown/content.tsx
|
|
108
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
109
|
-
|
|
110
103
|
// ../../src/components/ui/collapsible.tsx
|
|
111
104
|
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
112
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
113
105
|
|
|
114
106
|
// ../../src/components/ui/search-menu.tsx
|
|
115
107
|
import { SearchIcon as SearchIcon2 } from "lucide-react";
|
|
@@ -122,14 +114,9 @@ import { SearchIcon } from "lucide-react";
|
|
|
122
114
|
// ../../src/components/ui/dialog.tsx
|
|
123
115
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
124
116
|
import { XIcon } from "lucide-react";
|
|
125
|
-
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
126
|
-
|
|
127
|
-
// ../../src/components/ui/command.tsx
|
|
128
|
-
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
129
117
|
|
|
130
118
|
// ../../src/components/ui/search-menu.tsx
|
|
131
119
|
import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider";
|
|
132
|
-
import { jsx as jsx9, jsxs as jsxs6, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
133
120
|
|
|
134
121
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
135
122
|
import { Link as Link2, Outlet } from "@tanstack/react-router";
|
|
@@ -148,30 +135,22 @@ import * as React from "react";
|
|
|
148
135
|
|
|
149
136
|
// ../../src/components/ui/input.tsx
|
|
150
137
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
151
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
152
138
|
|
|
153
139
|
// ../../src/components/ui/separator.tsx
|
|
154
140
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
155
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
156
141
|
|
|
157
142
|
// ../../src/components/ui/sheet.tsx
|
|
158
143
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
159
144
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
160
|
-
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
161
145
|
"use client";
|
|
162
146
|
|
|
163
|
-
// ../../src/components/ui/skeleton.tsx
|
|
164
|
-
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
165
|
-
|
|
166
147
|
// ../../src/components/ui/tooltip.tsx
|
|
167
148
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
168
|
-
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
169
149
|
"use client";
|
|
170
150
|
|
|
171
151
|
// ../../src/components/ui/sidebar.tsx
|
|
172
152
|
import { PanelLeftIcon } from "lucide-react";
|
|
173
153
|
import { Schema } from "effect";
|
|
174
|
-
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
175
154
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
176
155
|
var SidebarContext = React2.createContext(null);
|
|
177
156
|
var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
@@ -193,20 +172,19 @@ var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-
|
|
|
193
172
|
});
|
|
194
173
|
|
|
195
174
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
196
|
-
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
197
175
|
var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
|
|
198
176
|
identifier: "SidebarOpenCookie"
|
|
199
177
|
});
|
|
200
178
|
|
|
201
179
|
// ../../src/lib/docs.tsx
|
|
202
|
-
import { jsx
|
|
180
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
203
181
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
204
182
|
var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
|
|
205
183
|
identifier: "SidebarOpenCookie"
|
|
206
184
|
});
|
|
207
185
|
var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME]);
|
|
208
186
|
var makeIcon = (name, paths) => {
|
|
209
|
-
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */
|
|
187
|
+
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx("svg", {
|
|
210
188
|
"aria-hidden": "true",
|
|
211
189
|
fill: "none",
|
|
212
190
|
height: size,
|
|
@@ -223,48 +201,48 @@ var makeIcon = (name, paths) => {
|
|
|
223
201
|
Icon.displayName = name;
|
|
224
202
|
return Icon;
|
|
225
203
|
};
|
|
226
|
-
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */
|
|
204
|
+
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs(Fragment, {
|
|
227
205
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ jsx("path", {
|
|
229
207
|
d: "m12 19-7-7 7-7"
|
|
230
208
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ jsx("path", {
|
|
232
210
|
d: "M19 12H5"
|
|
233
211
|
})
|
|
234
212
|
]
|
|
235
213
|
}));
|
|
236
|
-
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */
|
|
214
|
+
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs(Fragment, {
|
|
237
215
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ jsx("path", {
|
|
239
217
|
d: "M5 12h14"
|
|
240
218
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ jsx("path", {
|
|
242
220
|
d: "m12 5 7 7-7 7"
|
|
243
221
|
})
|
|
244
222
|
]
|
|
245
223
|
}));
|
|
246
|
-
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */
|
|
224
|
+
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs(Fragment, {
|
|
247
225
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ jsx("path", {
|
|
249
227
|
d: "M12 7v14"
|
|
250
228
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ jsx("path", {
|
|
252
230
|
d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4Z"
|
|
253
231
|
})
|
|
254
232
|
]
|
|
255
233
|
}));
|
|
256
|
-
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */
|
|
234
|
+
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx("path", {
|
|
257
235
|
d: "m6 9 6 6 6-6"
|
|
258
236
|
}));
|
|
259
|
-
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */
|
|
237
|
+
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs(Fragment, {
|
|
260
238
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ jsx("path", {
|
|
262
240
|
d: "M15 3h6v6"
|
|
263
241
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ jsx("path", {
|
|
265
243
|
d: "M10 14 21 3"
|
|
266
244
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ jsx("path", {
|
|
268
246
|
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
|
|
269
247
|
})
|
|
270
248
|
]
|
|
@@ -375,8 +353,8 @@ var DocumentationToolkitLayer = ({
|
|
|
375
353
|
readDocumentation: ({ paths }) => readDocumentation({ docs, locale, paths })
|
|
376
354
|
});
|
|
377
355
|
export {
|
|
378
|
-
|
|
379
|
-
readDocumentation,
|
|
356
|
+
DocumentationToolkit,
|
|
380
357
|
DocumentationToolkitLayer,
|
|
381
|
-
|
|
358
|
+
readDocumentation,
|
|
359
|
+
searchDocumentation
|
|
382
360
|
};
|
|
@@ -211,6 +211,6 @@ class HttpApiAdapter extends Context.Service()("@krak-stack/registry/HttpApiAdap
|
|
|
211
211
|
static layer = (config) => Layer.effect(this, this.make(config));
|
|
212
212
|
}
|
|
213
213
|
export {
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
HttpApiAdapter,
|
|
215
|
+
encodeHttpApiOperationResult
|
|
216
216
|
};
|
package/dist/lib/httpapi-cli.js
CHANGED
|
@@ -436,22 +436,22 @@ var callOperation = Effect2.fn("HttpApiCli.callOperation")(function* (operation,
|
|
|
436
436
|
params: emptyValues(),
|
|
437
437
|
query: emptyValues()
|
|
438
438
|
};
|
|
439
|
-
for (const
|
|
440
|
-
const parsed = callConfig[
|
|
439
|
+
for (const input of inputs) {
|
|
440
|
+
const parsed = callConfig[input.configKey];
|
|
441
441
|
const value = Option2.isOption(parsed) ? Option2.getOrUndefined(parsed) : parsed;
|
|
442
442
|
if (value !== undefined) {
|
|
443
|
-
assembled[
|
|
443
|
+
assembled[input.location][input.name] = value;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
const bodyInput = inputs.some((
|
|
446
|
+
const bodyInput = inputs.some((input) => input.location === "body" && input.name === "body") ? assembled.body.body : Object.keys(assembled.body).length > 0 || cliJsonSchema(operation.inputJsonSchema).required?.includes("body") ? assembled.body : undefined;
|
|
447
447
|
const rawInput = {};
|
|
448
|
-
if (inputs.some((
|
|
448
|
+
if (inputs.some((input) => input.location === "params")) {
|
|
449
449
|
rawInput.params = assembled.params;
|
|
450
450
|
}
|
|
451
|
-
if (inputs.some((
|
|
451
|
+
if (inputs.some((input) => input.location === "headers")) {
|
|
452
452
|
rawInput.headers = assembled.headers;
|
|
453
453
|
}
|
|
454
|
-
if (inputs.some((
|
|
454
|
+
if (inputs.some((input) => input.location === "query")) {
|
|
455
455
|
rawInput.query = assembled.query;
|
|
456
456
|
}
|
|
457
457
|
if (bodyInput !== undefined)
|
package/dist/lib/query.js
CHANGED
|
@@ -169,16 +169,16 @@ var PaginatedResponse = (items) => Schema.Struct({
|
|
|
169
169
|
meta: PaginationMeta
|
|
170
170
|
});
|
|
171
171
|
export {
|
|
172
|
-
|
|
173
|
-
SortParamsFromString,
|
|
174
|
-
SortParams,
|
|
175
|
-
SortParamFromString,
|
|
176
|
-
SortParam,
|
|
177
|
-
SortDirection,
|
|
178
|
-
QueryStandard,
|
|
179
|
-
Query,
|
|
180
|
-
PaginationMeta,
|
|
181
|
-
PaginatedResponse,
|
|
172
|
+
ColumnFilter,
|
|
182
173
|
ColumnFilters,
|
|
183
|
-
|
|
174
|
+
PaginatedResponse,
|
|
175
|
+
PaginationMeta,
|
|
176
|
+
Query,
|
|
177
|
+
QueryStandard,
|
|
178
|
+
SortDirection,
|
|
179
|
+
SortParam,
|
|
180
|
+
SortParamFromString,
|
|
181
|
+
SortParams,
|
|
182
|
+
SortParamsFromString,
|
|
183
|
+
TextFilterOperator
|
|
184
184
|
};
|
package/dist/lib/seo.js
CHANGED
|
@@ -266,11 +266,11 @@ var WebFetchToolkitLayer = (options = {}) => WebFetchToolkit.toLayer(Effect2.gen
|
|
|
266
266
|
});
|
|
267
267
|
}));
|
|
268
268
|
export {
|
|
269
|
-
|
|
270
|
-
WebFetchToolkitOptions,
|
|
271
|
-
WebFetchToolkitLayer,
|
|
272
|
-
WebFetchToolkit,
|
|
273
|
-
WebFetchResponse,
|
|
269
|
+
WebFetchFailure,
|
|
274
270
|
WebFetchRequest,
|
|
275
|
-
|
|
271
|
+
WebFetchResponse,
|
|
272
|
+
WebFetchToolkit,
|
|
273
|
+
WebFetchToolkitLayer,
|
|
274
|
+
WebFetchToolkitOptions,
|
|
275
|
+
defaultWebFetchToolkitOptions
|
|
276
276
|
};
|
|
@@ -349,8 +349,8 @@ function classifyWideningTarget(type, environment) {
|
|
|
349
349
|
if (alias === undefined)
|
|
350
350
|
return null;
|
|
351
351
|
if ((alias.typeParameters?.params.length ?? 0) > 0) {
|
|
352
|
-
const
|
|
353
|
-
return
|
|
352
|
+
const substitutions = aliasSubstitution(alias, unwrapped, new Map);
|
|
353
|
+
return substitutions !== null && resolvesToDictionary(alias.typeAnnotation, environment, substitutions, new Set([name])) ? { kind: "generic container" } : null;
|
|
354
354
|
}
|
|
355
355
|
const substitutions = aliasSubstitution(alias, unwrapped, new Map);
|
|
356
356
|
if (substitutions === null)
|