@krak-stack/registry 0.10.16 → 0.10.17
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @krak-stack/registry
|
|
2
2
|
|
|
3
|
+
## 0.10.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Export `SupportPage` with a responsive heading and description above the inline support form. It shares localization and submission options with `SupportForm` and `SupportDialog`.
|
|
8
|
+
|
|
3
9
|
## 0.10.16
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -749,6 +749,33 @@ var SupportForm = ({
|
|
|
749
749
|
]
|
|
750
750
|
});
|
|
751
751
|
};
|
|
752
|
+
var SupportPage = (props) => {
|
|
753
|
+
const { title, description } = useSupportFormMessages(props.locale, props.messages);
|
|
754
|
+
const titleId = useId();
|
|
755
|
+
return /* @__PURE__ */ jsxs3("section", {
|
|
756
|
+
"aria-labelledby": titleId,
|
|
757
|
+
className: "mx-auto grid w-full max-w-xl gap-8 self-start",
|
|
758
|
+
children: [
|
|
759
|
+
/* @__PURE__ */ jsxs3("header", {
|
|
760
|
+
className: "grid gap-3",
|
|
761
|
+
children: [
|
|
762
|
+
/* @__PURE__ */ jsx9("h1", {
|
|
763
|
+
id: titleId,
|
|
764
|
+
className: "text-3xl font-semibold tracking-tight sm:text-4xl",
|
|
765
|
+
children: title
|
|
766
|
+
}),
|
|
767
|
+
description && /* @__PURE__ */ jsx9("p", {
|
|
768
|
+
className: "text-muted-foreground text-base sm:text-lg",
|
|
769
|
+
children: description
|
|
770
|
+
})
|
|
771
|
+
]
|
|
772
|
+
}),
|
|
773
|
+
/* @__PURE__ */ jsx9(SupportForm, {
|
|
774
|
+
...props
|
|
775
|
+
})
|
|
776
|
+
]
|
|
777
|
+
});
|
|
778
|
+
};
|
|
752
779
|
var SupportDialog = ({ trigger, ...props }) => {
|
|
753
780
|
const copy = useSupportFormMessages(props.locale, props.messages);
|
|
754
781
|
const [open, setOpen] = useState(false);
|
|
@@ -847,6 +874,7 @@ export {
|
|
|
847
874
|
SupportDialog,
|
|
848
875
|
SupportForm,
|
|
849
876
|
SupportMultipartPayload,
|
|
877
|
+
SupportPage,
|
|
850
878
|
SupportReplyEmail,
|
|
851
879
|
SupportRequestSchema,
|
|
852
880
|
readSupportScreenshots
|
|
@@ -57,6 +57,7 @@ export type SupportFormProps = {
|
|
|
57
57
|
onSubmit: (request: SupportRequest) => void | Promise<void>;
|
|
58
58
|
};
|
|
59
59
|
export declare const SupportForm: ({ locale, messages, askForReplyEmail, defaultReplyEmail, supportEmail, errorDetails, onSubmit, }: SupportFormProps) => import("react").JSX.Element;
|
|
60
|
+
export declare const SupportPage: (props: SupportFormProps) => import("react").JSX.Element;
|
|
60
61
|
export type SupportDialogMessages = SupportFormMessages;
|
|
61
62
|
export type SupportDialogProps = SupportFormProps & {
|
|
62
63
|
trigger?: ReactElement;
|
|
@@ -749,6 +749,33 @@ var SupportForm = ({
|
|
|
749
749
|
]
|
|
750
750
|
});
|
|
751
751
|
};
|
|
752
|
+
var SupportPage = (props) => {
|
|
753
|
+
const { title, description } = useSupportFormMessages(props.locale, props.messages);
|
|
754
|
+
const titleId = useId();
|
|
755
|
+
return /* @__PURE__ */ jsxs3("section", {
|
|
756
|
+
"aria-labelledby": titleId,
|
|
757
|
+
className: "mx-auto grid w-full max-w-xl gap-8 self-start",
|
|
758
|
+
children: [
|
|
759
|
+
/* @__PURE__ */ jsxs3("header", {
|
|
760
|
+
className: "grid gap-3",
|
|
761
|
+
children: [
|
|
762
|
+
/* @__PURE__ */ jsx9("h1", {
|
|
763
|
+
id: titleId,
|
|
764
|
+
className: "text-3xl font-semibold tracking-tight sm:text-4xl",
|
|
765
|
+
children: title
|
|
766
|
+
}),
|
|
767
|
+
description && /* @__PURE__ */ jsx9("p", {
|
|
768
|
+
className: "text-muted-foreground text-base sm:text-lg",
|
|
769
|
+
children: description
|
|
770
|
+
})
|
|
771
|
+
]
|
|
772
|
+
}),
|
|
773
|
+
/* @__PURE__ */ jsx9(SupportForm, {
|
|
774
|
+
...props
|
|
775
|
+
})
|
|
776
|
+
]
|
|
777
|
+
});
|
|
778
|
+
};
|
|
752
779
|
var SupportDialog = ({ trigger, ...props }) => {
|
|
753
780
|
const copy = useSupportFormMessages(props.locale, props.messages);
|
|
754
781
|
const [open, setOpen] = useState(false);
|
|
@@ -847,6 +874,7 @@ export {
|
|
|
847
874
|
SupportDialog,
|
|
848
875
|
SupportForm,
|
|
849
876
|
SupportMultipartPayload,
|
|
877
|
+
SupportPage,
|
|
850
878
|
SupportReplyEmail,
|
|
851
879
|
SupportRequestSchema,
|
|
852
880
|
readSupportScreenshots
|