@krak-stack/registry 0.10.0 → 0.10.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 +17 -0
- package/README.md +50 -0
- package/dist/components/ui/app-brand.d.ts +2 -0
- package/dist/components/ui/app-brand.js +24 -9
- package/dist/components/ui/{secret-value.d.ts → copy-value.d.ts} +6 -4
- package/dist/components/ui/copy-value.js +319 -0
- package/dist/components/ui/data-table.d.ts +12 -0
- package/dist/components/ui/data-table.js +195 -137
- package/dist/components/ui/effect-form.d.ts +2 -0
- package/dist/components/ui/effect-form.js +3 -0
- package/dist/components/ui/pagination.d.ts +3 -1
- package/dist/components/ui/pagination.js +5 -1
- package/dist/components/ui/sidebar-layout.js +12 -9
- package/dist/lib/docs.integrations.server.d.ts +56 -0
- package/dist/lib/docs.integrations.server.js +945 -0
- package/dist/lib/docs.js +36 -23
- package/dist/lib/docs.server.js +3 -5
- package/dist/lib/docs.webhook-reference.server.d.ts +21 -0
- package/dist/lib/documentation-toolkit.js +3 -5
- package/dist/services/events/client/audit-log-table.js +195 -137
- package/dist/services/webhooks/client/delivery-table.js +195 -137
- package/package.json +9 -5
- package/dist/components/ui/secret-value.js +0 -222
|
@@ -99,6 +99,7 @@ export declare const FileField: FormReact.FieldComponent<File | undefined, FileF
|
|
|
99
99
|
export declare const NullableTextAreaField: FormReact.FieldComponent<string | null | undefined, TextAreaFieldOptions>;
|
|
100
100
|
export declare const CheckboxField: FormReact.FieldComponent<boolean, FieldOptions>;
|
|
101
101
|
type SelectFieldOptions<T extends string> = FieldOptions & {
|
|
102
|
+
contentClassName?: string;
|
|
102
103
|
options: ReadonlyArray<{
|
|
103
104
|
label: string;
|
|
104
105
|
value: T;
|
|
@@ -121,6 +122,7 @@ type MultiSelectFieldOptions<T extends string> = FieldOptions & {
|
|
|
121
122
|
export declare const MultiSelectField: <T extends string>({ field, props, }: FormReact.FieldComponentProps<ReadonlyArray<T>, MultiSelectFieldOptions<T>>) => JSX.Element;
|
|
122
123
|
export declare const NullableMultiSelectField: <T extends string>({ field, props, }: FormReact.FieldComponentProps<ReadonlyArray<T> | null | undefined, MultiSelectFieldOptions<T>>) => JSX.Element;
|
|
123
124
|
type SearchableSelectFieldSharedOptions<TData> = FieldOptions & {
|
|
125
|
+
contentClassName?: string;
|
|
124
126
|
emptyLabel: ReactNode;
|
|
125
127
|
initialItems?: readonly VirtualizedComboboxOption<TData>[];
|
|
126
128
|
items: readonly VirtualizedComboboxOption<TData>[];
|
|
@@ -1689,6 +1689,7 @@ var SelectField = ({
|
|
|
1689
1689
|
})
|
|
1690
1690
|
}),
|
|
1691
1691
|
/* @__PURE__ */ jsx13(SelectContent, {
|
|
1692
|
+
className: props.contentClassName,
|
|
1692
1693
|
children: /* @__PURE__ */ jsx13(SelectGroup, {
|
|
1693
1694
|
children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
|
|
1694
1695
|
value: option.value,
|
|
@@ -1830,6 +1831,7 @@ var SearchableSelectField = ({
|
|
|
1830
1831
|
children: props.label
|
|
1831
1832
|
}),
|
|
1832
1833
|
/* @__PURE__ */ jsx13(VirtualizedCombobox, {
|
|
1834
|
+
contentClassName: props.contentClassName,
|
|
1833
1835
|
ariaInvalid: invalid,
|
|
1834
1836
|
ariaLabel,
|
|
1835
1837
|
emptyLabel: props.emptyLabel,
|
|
@@ -1872,6 +1874,7 @@ var SingleSearchableSelectField = ({
|
|
|
1872
1874
|
children: props.label
|
|
1873
1875
|
}),
|
|
1874
1876
|
/* @__PURE__ */ jsx13(VirtualizedCombobox, {
|
|
1877
|
+
contentClassName: props.contentClassName,
|
|
1875
1878
|
ariaInvalid: invalid,
|
|
1876
1879
|
ariaLabel,
|
|
1877
1880
|
emptyLabel: props.emptyLabel,
|
|
@@ -29,6 +29,8 @@ export declare const paginationMessages: (locale?: string, translations?: Pagina
|
|
|
29
29
|
goToLastPage: string;
|
|
30
30
|
};
|
|
31
31
|
export type PaginationProps = {
|
|
32
|
+
className?: string | undefined;
|
|
33
|
+
pageSizeContentClassName?: string | undefined;
|
|
32
34
|
compact?: boolean | undefined;
|
|
33
35
|
locale?: string | undefined;
|
|
34
36
|
messages?: PaginationMessageTranslations | undefined;
|
|
@@ -42,4 +44,4 @@ export type PaginationProps = {
|
|
|
42
44
|
showResults?: boolean | undefined;
|
|
43
45
|
totalRows: number;
|
|
44
46
|
};
|
|
45
|
-
export declare function Pagination({ compact, locale: localeOverride, messages: messageOverrides, onPageChange, onPageSizeChange, page, pageCount, pageSize, pageSizes, selectedRows, showResults, totalRows, }: PaginationProps): import("react").JSX.Element;
|
|
47
|
+
export declare function Pagination({ className, pageSizeContentClassName, compact, locale: localeOverride, messages: messageOverrides, onPageChange, onPageSizeChange, page, pageCount, pageSize, pageSizes, selectedRows, showResults, totalRows, }: PaginationProps): import("react").JSX.Element;
|
|
@@ -213,6 +213,8 @@ var paginationMessages = (locale = "en", translations) => ({
|
|
|
213
213
|
...translations?.[locale]
|
|
214
214
|
});
|
|
215
215
|
function Pagination({
|
|
216
|
+
className,
|
|
217
|
+
pageSizeContentClassName,
|
|
216
218
|
compact = false,
|
|
217
219
|
locale: localeOverride,
|
|
218
220
|
messages: messageOverrides,
|
|
@@ -232,7 +234,8 @@ function Pagination({
|
|
|
232
234
|
const canGoBack = page > 0;
|
|
233
235
|
const canGoForward = page + 1 < pageCount;
|
|
234
236
|
return /* @__PURE__ */ jsxs2("div", {
|
|
235
|
-
|
|
237
|
+
"data-slot": "pagination",
|
|
238
|
+
className: cn("flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between", compact && "gap-2 px-0 sm:flex-col sm:items-stretch", className),
|
|
236
239
|
children: [
|
|
237
240
|
showResults ? /* @__PURE__ */ jsxs2("div", {
|
|
238
241
|
className: "text-muted-foreground flex flex-wrap items-center gap-x-3 gap-y-1 text-sm",
|
|
@@ -273,6 +276,7 @@ function Pagination({
|
|
|
273
276
|
}),
|
|
274
277
|
/* @__PURE__ */ jsx4(SelectContent, {
|
|
275
278
|
side: "top",
|
|
279
|
+
className: pageSizeContentClassName,
|
|
276
280
|
children: pageSizes.map((size) => /* @__PURE__ */ jsx4(SelectItem, {
|
|
277
281
|
value: `${size}`,
|
|
278
282
|
children: size
|
|
@@ -733,15 +733,18 @@ function SidebarLayout({
|
|
|
733
733
|
/* @__PURE__ */ jsxs4(SidebarInset, {
|
|
734
734
|
className: cn("min-w-0 overflow-x-clip", fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
735
735
|
children: [
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
className: "
|
|
738
|
-
children:
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
736
|
+
/* @__PURE__ */ jsx5("div", {
|
|
737
|
+
className: "h-14 shrink-0",
|
|
738
|
+
children: /* @__PURE__ */ jsxs4("header", {
|
|
739
|
+
className: cn("bg-background/95 supports-[backdrop-filter]:bg-background/60 fixed inset-x-0 top-0 z-10 flex h-14 items-center gap-2 border-b px-4 backdrop-blur transition-[left] duration-200 ease-linear", sidebarCollapsible === "none" ? "left-(--sidebar-width)" : sidebarOpen ? "md:left-(--sidebar-width)" : sidebarCollapsible === "icon" ? "md:left-(--sidebar-width-icon)" : "md:left-0", fullPage && "xl:static"),
|
|
740
|
+
children: [
|
|
741
|
+
/* @__PURE__ */ jsx5(SidebarTrigger, {}),
|
|
742
|
+
/* @__PURE__ */ jsx5("div", {
|
|
743
|
+
className: "ml-auto flex items-center gap-2",
|
|
744
|
+
children: headerActions
|
|
745
|
+
})
|
|
746
|
+
]
|
|
747
|
+
})
|
|
745
748
|
}),
|
|
746
749
|
/* @__PURE__ */ jsx5("div", {
|
|
747
750
|
className: cn("isolate", contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8"),
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { DocsPage } from "./docs.js";
|
|
3
|
+
export type IntegrationDocsText = Readonly<{
|
|
4
|
+
en: string;
|
|
5
|
+
fr: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type WebhookEventReference = {
|
|
8
|
+
name: string;
|
|
9
|
+
description: IntegrationDocsText;
|
|
10
|
+
/** Reuse the sender's schema for the complete delivered JSON body. */
|
|
11
|
+
payload: Schema.Top;
|
|
12
|
+
};
|
|
13
|
+
export type WebhookDocsConfig = {
|
|
14
|
+
events: ReadonlyArray<WebhookEventReference>;
|
|
15
|
+
/** Public Markdown instructions only. Never pass signing secrets. */
|
|
16
|
+
verification?: IntegrationDocsText;
|
|
17
|
+
/** Public Markdown describing the sender's actual retry and delivery policy. */
|
|
18
|
+
delivery?: IntegrationDocsText;
|
|
19
|
+
};
|
|
20
|
+
/** Public protocol documentation for the KrakStack Webhooks sender (0.8.3).
|
|
21
|
+
* Opt in explicitly; other webhook senders may use a different protocol.
|
|
22
|
+
*/
|
|
23
|
+
export declare const krakStackWebhookDocs: {
|
|
24
|
+
verification: {
|
|
25
|
+
en: string;
|
|
26
|
+
fr: string;
|
|
27
|
+
};
|
|
28
|
+
delivery: {
|
|
29
|
+
en: string;
|
|
30
|
+
fr: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type IntegrationDocsConfig = {
|
|
34
|
+
appName: string;
|
|
35
|
+
/** Canonical public origin, including https://. */
|
|
36
|
+
origin: `http://${string}` | `https://${string}`;
|
|
37
|
+
basePath?: string;
|
|
38
|
+
section?: string;
|
|
39
|
+
/** Reserve three consecutive, positive navigation orders. Defaults to 1000. */
|
|
40
|
+
order?: number;
|
|
41
|
+
locales?: ReadonlyArray<"en" | "fr">;
|
|
42
|
+
/** Disabled unless explicitly enabled. Authentication remains app-owned. */
|
|
43
|
+
api?: boolean | {
|
|
44
|
+
referenceUrl?: string;
|
|
45
|
+
};
|
|
46
|
+
/** Enable only for remote Streamable HTTP servers supporting OAuth. */
|
|
47
|
+
mcp?: boolean | {
|
|
48
|
+
url?: string;
|
|
49
|
+
};
|
|
50
|
+
/** Reuse event definitions from the sender, or true for the generic guide. */
|
|
51
|
+
webhooks?: boolean | WebhookDocsConfig;
|
|
52
|
+
/** Local pages replace defaults with the same locale and slug. */
|
|
53
|
+
pages?: ReadonlyArray<DocsPage>;
|
|
54
|
+
};
|
|
55
|
+
/** Compile on the server, then pass the records to createDocsSource. Requires Bun. */
|
|
56
|
+
export declare const createIntegrationDocs: (config: IntegrationDocsConfig) => DocsPage[];
|