@krak-stack/registry 0.10.11 → 0.10.13
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 +25 -0
- package/dist/components/support-dialog.d.ts +49 -0
- package/dist/components/support-dialog.js +651 -0
- package/dist/components/ui/data-table.d.ts +14 -0
- package/dist/components/ui/data-table.js +353 -79
- package/dist/components/ui/pagination.js +1 -1
- package/dist/lib/query.d.ts +1 -0
- package/dist/lib/query.js +5 -3
- package/dist/services/events/browser.js +4 -3
- package/dist/services/events/client/audit-log-table.js +353 -79
- package/dist/services/events/index.js +4 -3
- package/dist/services/events/schema.js +4 -3
- package/dist/services/webhooks/client/delivery-table.js +353 -79
- package/dist/services/webhooks/index.js +4 -3
- package/dist/services/webhooks/schema.js +4 -3
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @krak-stack/registry
|
|
2
2
|
|
|
3
|
+
## 0.10.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add a reusable support dialog with a message, optional screenshot attachments, and a host-owned delivery callback.
|
|
8
|
+
|
|
9
|
+
Share support schemas, multipart limits, and screenshot handling with host APIs.
|
|
10
|
+
|
|
11
|
+
## 0.10.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Place table search alongside the menubar on wider screens, show an icon-only Filters trigger on mobile, and keep internal scroll targets clear of sticky column headers.
|
|
16
|
+
|
|
17
|
+
Match the menubar border and shadow to the search input.
|
|
18
|
+
- Allow virtualized tables to use page scrolling instead of an internal vertical viewport.
|
|
19
|
+
|
|
20
|
+
Keep list-cell menus from locking page scrolling and disturbing virtualized rows.
|
|
21
|
+
- Keep table toolbar menus non-modal so opening them does not lock page scrolling.
|
|
22
|
+
- Add opt-in DataTable row virtualization for large flat tables.
|
|
23
|
+
- Make pagination opt-in. Paginated tables default to 100 rows and offer page sizes of 20, 50, and 100.
|
|
24
|
+
|
|
25
|
+
Automatically virtualize tables with at least 100 displayed rows unless `virtualization` is set to `false`.
|
|
26
|
+
- Virtualize expanded group rows, place the internal scrollbar below the header, and keep the bottom divider attached to the sticky header.
|
|
27
|
+
|
|
3
28
|
## 0.10.11
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Effect, FileSystem, Schema } from "effect";
|
|
2
|
+
import { Multipart } from "effect/http";
|
|
3
|
+
import { HttpApiSchema } from "effect/http-api";
|
|
4
|
+
import { type ReactElement } from "react";
|
|
5
|
+
export declare const SupportReplyEmail: Schema.Trim;
|
|
6
|
+
export declare const SupportRequestSchema: Schema.Struct<{
|
|
7
|
+
readonly message: Schema.Trim;
|
|
8
|
+
readonly replyEmail: Schema.optionalKey<Schema.Trim>;
|
|
9
|
+
readonly attachments: Schema.$Array<Schema.File>;
|
|
10
|
+
}>;
|
|
11
|
+
export type SupportRequest = typeof SupportRequestSchema.Type;
|
|
12
|
+
export declare const SupportMultipartPayload: HttpApiSchema.asMultipart<Schema.Struct<{
|
|
13
|
+
readonly message: Schema.Trim;
|
|
14
|
+
readonly replyEmail: Schema.optionalKey<Schema.Trim>;
|
|
15
|
+
readonly attachments: Schema.optionalKey<Schema.$Array<Multipart.PersistedFileSchema>>;
|
|
16
|
+
}>>;
|
|
17
|
+
declare const InvalidSupportScreenshot_base: Schema.Class<InvalidSupportScreenshot, Schema.TaggedStruct<"InvalidSupportScreenshot", {}>, import("effect/Cause").YieldableError>;
|
|
18
|
+
export declare class InvalidSupportScreenshot extends InvalidSupportScreenshot_base {
|
|
19
|
+
}
|
|
20
|
+
/** Read bounded temporary files from SupportMultipartPayload and check their signatures. */
|
|
21
|
+
export declare const readSupportScreenshots: (files: readonly Multipart.PersistedFile[]) => Effect.Effect<{
|
|
22
|
+
content: Uint8Array<ArrayBufferLike>;
|
|
23
|
+
contentType: string;
|
|
24
|
+
filename: string;
|
|
25
|
+
}[], InvalidSupportScreenshot | import("effect/PlatformError").PlatformError, FileSystem.FileSystem>;
|
|
26
|
+
export type SupportDialogMessages = {
|
|
27
|
+
title: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
replyEmail: string;
|
|
31
|
+
attach: string;
|
|
32
|
+
invalidAttachments: string;
|
|
33
|
+
removeAttachment: string;
|
|
34
|
+
submit: string;
|
|
35
|
+
pending: string;
|
|
36
|
+
success: string;
|
|
37
|
+
close: string;
|
|
38
|
+
invalid: string;
|
|
39
|
+
failed: string;
|
|
40
|
+
};
|
|
41
|
+
export type SupportDialogProps = {
|
|
42
|
+
locale?: string;
|
|
43
|
+
messages?: Partial<Record<string, Partial<SupportDialogMessages>>>;
|
|
44
|
+
trigger?: ReactElement;
|
|
45
|
+
askForReplyEmail?: boolean;
|
|
46
|
+
onSubmit: (request: SupportRequest) => void | Promise<void>;
|
|
47
|
+
};
|
|
48
|
+
export declare const SupportDialog: ({ locale: localeOverride, messages, trigger, askForReplyEmail, onSubmit, }: SupportDialogProps) => import("react").JSX.Element;
|
|
49
|
+
export {};
|