@bigbinary/neeto-thank-you-frontend 1.0.2 → 1.0.4
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/README.md +2 -19
- package/dist/index.cjs.js +52 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +52 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +37 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-thank-you-frontend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-thank-you-nano",
|
package/types.d.ts
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
import axios from "axios";
|
|
1
2
|
import React from "react";
|
|
3
|
+
import { UseQueryResult } from "react-query";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
type Breadcrumb = {
|
|
6
|
+
text: string;
|
|
7
|
+
link: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
type SocialHandle = {
|
|
11
|
+
icon: any,
|
|
12
|
+
generateShareUrl: () => string,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
interface ConfigureThankYouProps {
|
|
16
|
+
breadcrumbs: Breadcrumb[];
|
|
17
|
+
socialHandles?: SocialHandle[];
|
|
18
|
+
entityId: string;
|
|
19
|
+
hasImageUploader?: boolean;
|
|
20
|
+
uniqueSubmissionEnabled?: boolean;
|
|
21
|
+
uniqueSubmissionLink?: string;
|
|
22
|
+
resubmitLink?: string;
|
|
23
|
+
redirectToOnCancel: string;
|
|
24
|
+
thankYouTextAlignment?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface ShowThankYouProps {
|
|
28
|
+
entityId: string;
|
|
29
|
+
isDraftPreview: boolean;
|
|
30
|
+
resubmitLink: string;
|
|
31
|
+
socialHandles: SocialHandle[];
|
|
32
|
+
isThankYouPageLoading: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const ShowThankYou: React.FC<ShowThankYouProps>;
|
|
36
|
+
export const ConfigureThankYou: React.FC<ConfigureThankYouProps>;
|
|
37
|
+
|
|
38
|
+
export function useShowThankYouPage({ entityId: string }): UseQueryResult<axios.AxiosResponse<any, any>, unknown>;
|
|
39
|
+
export function useShowThankYouConfiguration({ entityId: string }): UseQueryResult<axios.AxiosResponse<any, any>, unknown>;
|