@krak-stack/registry 0.10.15 → 0.10.16
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 +8 -0
- package/dist/components/support-dialog.d.ts +1 -49
- package/dist/components/support-dialog.js +412 -252
- package/dist/components/support.d.ts +65 -0
- package/dist/components/support.js +853 -0
- package/dist/components/ui/effect-form.d.ts +4 -0
- package/dist/components/ui/effect-form.js +78 -35
- package/dist/components/ui/error-component.d.ts +3 -1
- package/dist/components/ui/error-component.js +4 -2
- package/dist/components/ui/search-menu.d.ts +1 -1
- package/dist/components/ui/search-menu.js +70 -8
- package/dist/lib/docs.integrations.server.js +3 -3
- package/dist/lib/docs.js +72 -10
- package/dist/lib/docs.server.js +3 -3
- package/dist/lib/documentation-toolkit.js +3 -3
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @krak-stack/registry
|
|
2
2
|
|
|
3
|
+
## 0.10.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add an `optional` prop to Effect Form fields to display a localized optional marker without changing schema validation.
|
|
8
|
+
- Add a clear button inside the Search Menu input that keeps the dialog open, reset the results scroll position when the query changes, and keep the first match selected when externally filtered results update.
|
|
9
|
+
- Add `SupportForm` for inline support pages, shared by the existing `SupportDialog`. Both support an optional, editable reply address, a direct email link, and a checkbox for including error details. Add a feedback render slot to `ErrorComponent`.
|
|
10
|
+
|
|
3
11
|
## 0.10.15
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,49 +1 @@
|
|
|
1
|
-
|
|
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 {};
|
|
1
|
+
export * from "./support.js";
|