@bigbinary/neeto-thank-you-frontend 2.1.12 → 2.1.15
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 -36
- package/dist/ConfigureThankYou.js +9 -47
- package/dist/ConfigureThankYou.js.map +1 -1
- package/dist/ShowThankYou.js +2 -4
- package/dist/ShowThankYou.js.map +1 -1
- package/dist/SocialShare-BTqNNioi.js +44 -0
- package/dist/{SocialShare-ftRSFRqP.js.map → SocialShare-BTqNNioi.js.map} +1 -1
- package/dist/cjs/ConfigureThankYou.js +14 -52
- package/dist/cjs/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/ShowThankYou.js +2 -4
- package/dist/cjs/ShowThankYou.js.map +1 -1
- package/dist/cjs/SocialShare-C_YfnloM.js +48 -0
- package/dist/cjs/{SocialShare-D3fFcV4U.js.map → SocialShare-C_YfnloM.js.map} +1 -1
- package/dist/cjs/index.js +6 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/useCreateThankYouConfiguration.js +1 -1
- package/dist/cjs/useDeleteThankYouConfiguration.js +16 -0
- package/dist/cjs/useDeleteThankYouConfiguration.js.map +1 -0
- package/dist/cjs/useFetchThankYouConfigurations.js +1 -1
- package/dist/cjs/useShowThankYouConfiguration.js +1 -1
- package/dist/cjs/{useThankYouConfigurationApi-Dr0YDHIe.js → useThankYouConfigurationApi-khbEl5wW.js} +18 -2
- package/dist/cjs/useThankYouConfigurationApi-khbEl5wW.js.map +1 -0
- package/dist/cjs/useUpdateThankYouConfiguration.js +1 -1
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/useCreateThankYouConfiguration.js +1 -1
- package/dist/useDeleteThankYouConfiguration.js +14 -0
- package/dist/useDeleteThankYouConfiguration.js.map +1 -0
- package/dist/useFetchThankYouConfigurations.js +1 -1
- package/dist/useShowThankYouConfiguration.js +1 -1
- package/dist/{useThankYouConfigurationApi-BrC-zdEV.js → useThankYouConfigurationApi-BiVg-jmY.js} +18 -3
- package/dist/useThankYouConfigurationApi-BiVg-jmY.js.map +1 -0
- package/dist/useUpdateThankYouConfiguration.js +1 -1
- package/package.json +13 -11
- package/types/ConfigureThankYou.d.ts +0 -8
- package/types/ShowThankYou.d.ts +0 -8
- package/types/useDeleteThankYouConfiguration.d.ts +9 -0
- package/types.d.ts +1 -0
- package/dist/SocialShare-ftRSFRqP.js +0 -44
- package/dist/cjs/SocialShare-D3fFcV4U.js +0 -48
- package/dist/cjs/useThankYouConfigurationApi-Dr0YDHIe.js.map +0 -1
- package/dist/useThankYouConfigurationApi-BrC-zdEV.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var ConfigureThankYou = require('./ConfigureThankYou.js');
|
|
4
4
|
var ShowThankYou = require('./ShowThankYou.js');
|
|
5
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
5
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
6
6
|
var useThankYouPageApi = require('./useThankYouPageApi-DD3HwY6D.js');
|
|
7
|
-
var
|
|
8
|
-
var SocialShare = require('./SocialShare-D3fFcV4U.js');
|
|
7
|
+
var SocialShare = require('./SocialShare-C_YfnloM.js');
|
|
9
8
|
require('@bigbinary/neeto-cist');
|
|
10
9
|
require('@babel/runtime/helpers/defineProperty');
|
|
11
10
|
require('react');
|
|
@@ -32,6 +31,7 @@ require('@bigbinary/neetoui/Button');
|
|
|
32
31
|
require('@bigbinary/neetoui/Typography');
|
|
33
32
|
require('@bigbinary/neetoui/Modal');
|
|
34
33
|
require('@bigbinary/neeto-editor/EditorContent');
|
|
34
|
+
require('@bigbinary/neeto-molecules/BrowserPreview');
|
|
35
35
|
require('./BrandingInfo-y5Zm6Bej.js');
|
|
36
36
|
require('./utils.js');
|
|
37
37
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
@@ -47,20 +47,17 @@ require('@babel/runtime/helpers/objectWithoutProperties');
|
|
|
47
47
|
require('@tanstack/react-query');
|
|
48
48
|
require('axios');
|
|
49
49
|
require('./index-BeYCcFRQ.js');
|
|
50
|
+
require('./query.js');
|
|
50
51
|
|
|
51
|
-
var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration{display:flex;flex-direction:column
|
|
52
|
+
var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:4px;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:56px 15px;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:4px}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:12px;left:12px;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:4px;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:14px;font-weight:400;padding:4px 6px;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded);padding:12px 16px}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item:not(:last-child){margin-right:0!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item{align-items:start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:3px}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
52
53
|
SocialShare.n(css,{});
|
|
53
54
|
|
|
54
|
-
var THANK_YOU_CONFIGURATION_QUERY_KEY = query.QUERY_KEYS.THANK_YOU_CONFIGURATION,
|
|
55
|
-
THANK_YOU_PAGE_QUERY_KEY = query.QUERY_KEYS.THANK_YOU_PAGE;
|
|
56
|
-
|
|
57
55
|
exports.ConfigureThankYou = ConfigureThankYou;
|
|
58
56
|
exports.ShowThankYou = ShowThankYou;
|
|
59
57
|
exports.useCreateThankYouConfiguration = useThankYouConfigurationApi.useCreateThankYouConfiguration;
|
|
58
|
+
exports.useDeleteThankYouConfiguration = useThankYouConfigurationApi.useDeleteThankYouConfiguration;
|
|
60
59
|
exports.useFetchThankYouConfigurations = useThankYouConfigurationApi.useFetchThankYouConfigurations;
|
|
61
60
|
exports.useShowThankYouConfiguration = useThankYouConfigurationApi.useShowThankYouConfiguration;
|
|
62
61
|
exports.useUpdateThankYouConfiguration = useThankYouConfigurationApi.useUpdateThankYouConfiguration;
|
|
63
62
|
exports.useShowThankYouPage = useThankYouPageApi.useShowThankYouPage;
|
|
64
|
-
exports.THANK_YOU_CONFIGURATION_QUERY_KEY = THANK_YOU_CONFIGURATION_QUERY_KEY;
|
|
65
|
-
exports.THANK_YOU_PAGE_QUERY_KEY = THANK_YOU_PAGE_QUERY_KEY;
|
|
66
63
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
4
|
+
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
+
require('@babel/runtime/helpers/defineProperty');
|
|
6
|
+
require('@tanstack/react-query');
|
|
7
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
|
+
require('axios');
|
|
9
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
10
|
+
require('./index-BeYCcFRQ.js');
|
|
11
|
+
require('./query.js');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
module.exports = useThankYouConfigurationApi.useDeleteThankYouConfiguration;
|
|
16
|
+
//# sourceMappingURL=useDeleteThankYouConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeleteThankYouConfiguration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
package/dist/cjs/{useThankYouConfigurationApi-Dr0YDHIe.js → useThankYouConfigurationApi-khbEl5wW.js}
RENAMED
|
@@ -41,11 +41,18 @@ var update = function update(_ref2) {
|
|
|
41
41
|
thankYouConfiguration: payload
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
+
var destroy = function destroy(entityId, id) {
|
|
45
|
+
return axios["delete"](utils.buildUrl(index.THANK_YOU_CONFIGURATION_URL, {
|
|
46
|
+
entityId: entityId,
|
|
47
|
+
id: id
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
44
50
|
var thankYouConfigurationApi = {
|
|
45
51
|
fetch: fetch,
|
|
46
52
|
create: create,
|
|
47
53
|
show: show,
|
|
48
|
-
update: update
|
|
54
|
+
update: update,
|
|
55
|
+
destroy: destroy
|
|
49
56
|
};
|
|
50
57
|
|
|
51
58
|
var _excluded = ["entityId", "id"];
|
|
@@ -97,9 +104,18 @@ var useUpdateThankYouConfiguration = function useUpdateThankYouConfiguration(id)
|
|
|
97
104
|
keysToInvalidate: [query.QUERY_KEYS.THANK_YOU_CONFIGURATION]
|
|
98
105
|
}, options));
|
|
99
106
|
};
|
|
107
|
+
var useDeleteThankYouConfiguration = function useDeleteThankYouConfiguration(entityId) {
|
|
108
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
109
|
+
return reactUtils.useMutationWithInvalidation(function (id) {
|
|
110
|
+
return thankYouConfigurationApi.destroy(entityId, id);
|
|
111
|
+
}, _objectSpread({
|
|
112
|
+
keysToInvalidate: [query.QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId]
|
|
113
|
+
}, options));
|
|
114
|
+
};
|
|
100
115
|
|
|
101
116
|
exports.useCreateThankYouConfiguration = useCreateThankYouConfiguration;
|
|
117
|
+
exports.useDeleteThankYouConfiguration = useDeleteThankYouConfiguration;
|
|
102
118
|
exports.useFetchThankYouConfigurations = useFetchThankYouConfigurations;
|
|
103
119
|
exports.useShowThankYouConfiguration = useShowThankYouConfiguration;
|
|
104
120
|
exports.useUpdateThankYouConfiguration = useUpdateThankYouConfiguration;
|
|
105
|
-
//# sourceMappingURL=useThankYouConfigurationApi-
|
|
121
|
+
//# sourceMappingURL=useThankYouConfigurationApi-khbEl5wW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-khbEl5wW.js","sources":["../../app/javascript/src/apis/thank_you_configuration.js","../../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["import axios from \"axios\";\nimport { buildUrl } from \"neetocommons/utils\";\n\nimport {\n THANK_YOU_CONFIGURATIONS_URL,\n THANK_YOU_CONFIGURATION_URL,\n} from \"src/constants\";\n\nconst fetch = (entityId, params = {}) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), {\n params,\n });\n\nconst create = ({ entityId, payload }) =>\n axios.post(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), payload);\n\nconst show = (entityId, id) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst update = ({ entityId, id, payload }) =>\n axios.put(buildUrl(THANK_YOU_CONFIGURATION_URL, { id }), {\n entityId,\n thankYouConfiguration: payload,\n });\n\nconst destroy = (entityId, id) =>\n axios.delete(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst thankYouConfigurationApi = { fetch, create, show, update, destroy };\n\nexport default thankYouConfigurationApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchThankYouConfigurations = (\n entityId,\n filters = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, filters],\n queryFn: () => thankYouConfigurationApi.fetch(entityId, filters),\n ...options,\n });\n\nexport const useCreateThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n payload => thankYouConfigurationApi.create({ entityId, payload }),\n {\n ...options,\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n }\n );\n\nexport const useShowThankYouConfiguration = ({ entityId, id, ...options }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, id],\n queryFn: () => thankYouConfigurationApi.show(entityId, id),\n ...options,\n });\n\nexport const useUpdateThankYouConfiguration = (id, options = {}) =>\n useMutationWithInvalidation(\n ({ entityId, payload }) =>\n thankYouConfigurationApi.update({ id, entityId, payload }),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n ...options,\n }\n );\n\nexport const useDeleteThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n id => thankYouConfigurationApi.destroy(entityId, id),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],\n ...options,\n }\n );\n"],"names":["fetch","entityId","params","arguments","length","undefined","axios","get","buildUrl","THANK_YOU_CONFIGURATIONS_URL","create","_ref","payload","post","show","id","THANK_YOU_CONFIGURATION_URL","update","_ref2","put","thankYouConfiguration","destroy","thankYouConfigurationApi","useFetchThankYouConfigurations","filters","options","useQuery","_objectSpread","queryKey","QUERY_KEYS","THANK_YOU_CONFIGURATION","queryFn","useCreateThankYouConfiguration","useMutationWithInvalidation","keysToInvalidate","useShowThankYouConfiguration","_objectWithoutProperties","_excluded","useUpdateThankYouConfiguration","useDeleteThankYouConfiguration"],"mappings":";;;;;;;;;;;AAQA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAIC,QAAQ,EAAA;AAAA,EAAA,IAAEC,MAAM,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAClCG,KAAK,CAACC,GAAG,CAACC,cAAQ,CAACC,kCAA4B,EAAE;AAAER,IAAAA,QAAQ,EAARA;AAAS,GAAC,CAAC,EAAE;AAC9DC,IAAAA,MAAM,EAANA;AACF,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMQ,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMV,QAAQ,GAAAU,IAAA,CAARV,QAAQ;IAAEW,OAAO,GAAAD,IAAA,CAAPC,OAAO;AAAA,EAAA,OACjCN,KAAK,CAACO,IAAI,CAACL,cAAQ,CAACC,kCAA4B,EAAE;AAAER,IAAAA,QAAQ,EAARA;GAAU,CAAC,EAAEW,OAAO,CAAC;AAAA,CAAA;AAE3E,IAAME,IAAI,GAAG,SAAPA,IAAIA,CAAIb,QAAQ,EAAEc,EAAE,EAAA;AAAA,EAAA,OACxBT,KAAK,CAACC,GAAG,CAACC,cAAQ,CAACQ,iCAA2B,EAAE;AAAEf,IAAAA,QAAQ,EAARA,QAAQ;AAAEc,IAAAA,EAAE,EAAFA;AAAG,GAAC,CAAC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AAA,OAAO,CAEd,CAAC;AAAA;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export { default as ConfigureThankYou } from './ConfigureThankYou.js';
|
|
2
2
|
export { default as ShowThankYou } from './ShowThankYou.js';
|
|
3
|
-
export { a as useCreateThankYouConfiguration, u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
3
|
+
export { a as useCreateThankYouConfiguration, d as useDeleteThankYouConfiguration, u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
4
4
|
export { u as useShowThankYouPage } from './useThankYouPageApi-D61bhK5l.js';
|
|
5
|
-
import {
|
|
6
|
-
import { n } from './SocialShare-ftRSFRqP.js';
|
|
5
|
+
import { n } from './SocialShare-BTqNNioi.js';
|
|
7
6
|
import '@bigbinary/neeto-cist';
|
|
8
7
|
import '@babel/runtime/helpers/defineProperty';
|
|
9
8
|
import 'react';
|
|
@@ -30,6 +29,7 @@ import '@bigbinary/neetoui/Button';
|
|
|
30
29
|
import '@bigbinary/neetoui/Typography';
|
|
31
30
|
import '@bigbinary/neetoui/Modal';
|
|
32
31
|
import '@bigbinary/neeto-editor/EditorContent';
|
|
32
|
+
import '@bigbinary/neeto-molecules/BrowserPreview';
|
|
33
33
|
import './BrandingInfo-57u33B-f.js';
|
|
34
34
|
import './utils.js';
|
|
35
35
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -45,12 +45,8 @@ import '@babel/runtime/helpers/objectWithoutProperties';
|
|
|
45
45
|
import '@tanstack/react-query';
|
|
46
46
|
import 'axios';
|
|
47
47
|
import './index-CGjGDIfp.js';
|
|
48
|
+
import './query.js';
|
|
48
49
|
|
|
49
|
-
var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration{display:flex;flex-direction:column
|
|
50
|
+
var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:4px;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:56px 15px;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:4px}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:12px;left:12px;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:4px;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:14px;font-weight:400;padding:4px 6px;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded);padding:12px 16px}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item:not(:last-child){margin-right:0!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item{align-items:start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:3px}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
50
51
|
n(css,{});
|
|
51
|
-
|
|
52
|
-
var THANK_YOU_CONFIGURATION_QUERY_KEY = QUERY_KEYS.THANK_YOU_CONFIGURATION,
|
|
53
|
-
THANK_YOU_PAGE_QUERY_KEY = QUERY_KEYS.THANK_YOU_PAGE;
|
|
54
|
-
|
|
55
|
-
export { THANK_YOU_CONFIGURATION_QUERY_KEY, THANK_YOU_PAGE_QUERY_KEY };
|
|
56
52
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useCreateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { a as useCreateThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { d as useDeleteThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
2
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
4
|
+
import '@tanstack/react-query';
|
|
5
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
|
+
import 'axios';
|
|
7
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
+
import './index-CGjGDIfp.js';
|
|
9
|
+
import './query.js';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export { useDeleteThankYouConfiguration as default };
|
|
14
|
+
//# sourceMappingURL=useDeleteThankYouConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeleteThankYouConfiguration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useFetchThankYouConfigurations } from './useThankYouConfigurationApi-
|
|
1
|
+
import { u as useFetchThankYouConfigurations } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as useShowThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { b as useShowThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
package/dist/{useThankYouConfigurationApi-BrC-zdEV.js → useThankYouConfigurationApi-BiVg-jmY.js}
RENAMED
|
@@ -39,11 +39,18 @@ var update = function update(_ref2) {
|
|
|
39
39
|
thankYouConfiguration: payload
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
+
var destroy = function destroy(entityId, id) {
|
|
43
|
+
return axios["delete"](buildUrl(THANK_YOU_CONFIGURATION_URL, {
|
|
44
|
+
entityId: entityId,
|
|
45
|
+
id: id
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
42
48
|
var thankYouConfigurationApi = {
|
|
43
49
|
fetch: fetch,
|
|
44
50
|
create: create,
|
|
45
51
|
show: show,
|
|
46
|
-
update: update
|
|
52
|
+
update: update,
|
|
53
|
+
destroy: destroy
|
|
47
54
|
};
|
|
48
55
|
|
|
49
56
|
var _excluded = ["entityId", "id"];
|
|
@@ -95,6 +102,14 @@ var useUpdateThankYouConfiguration = function useUpdateThankYouConfiguration(id)
|
|
|
95
102
|
keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION]
|
|
96
103
|
}, options));
|
|
97
104
|
};
|
|
105
|
+
var useDeleteThankYouConfiguration = function useDeleteThankYouConfiguration(entityId) {
|
|
106
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
107
|
+
return useMutationWithInvalidation(function (id) {
|
|
108
|
+
return thankYouConfigurationApi.destroy(entityId, id);
|
|
109
|
+
}, _objectSpread({
|
|
110
|
+
keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId]
|
|
111
|
+
}, options));
|
|
112
|
+
};
|
|
98
113
|
|
|
99
|
-
export { useCreateThankYouConfiguration as a, useShowThankYouConfiguration as b, useUpdateThankYouConfiguration as c, useFetchThankYouConfigurations as u };
|
|
100
|
-
//# sourceMappingURL=useThankYouConfigurationApi-
|
|
114
|
+
export { useCreateThankYouConfiguration as a, useShowThankYouConfiguration as b, useUpdateThankYouConfiguration as c, useDeleteThankYouConfiguration as d, useFetchThankYouConfigurations as u };
|
|
115
|
+
//# sourceMappingURL=useThankYouConfigurationApi-BiVg-jmY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-BiVg-jmY.js","sources":["../app/javascript/src/apis/thank_you_configuration.js","../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["import axios from \"axios\";\nimport { buildUrl } from \"neetocommons/utils\";\n\nimport {\n THANK_YOU_CONFIGURATIONS_URL,\n THANK_YOU_CONFIGURATION_URL,\n} from \"src/constants\";\n\nconst fetch = (entityId, params = {}) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), {\n params,\n });\n\nconst create = ({ entityId, payload }) =>\n axios.post(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), payload);\n\nconst show = (entityId, id) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst update = ({ entityId, id, payload }) =>\n axios.put(buildUrl(THANK_YOU_CONFIGURATION_URL, { id }), {\n entityId,\n thankYouConfiguration: payload,\n });\n\nconst destroy = (entityId, id) =>\n axios.delete(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst thankYouConfigurationApi = { fetch, create, show, update, destroy };\n\nexport default thankYouConfigurationApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchThankYouConfigurations = (\n entityId,\n filters = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, filters],\n queryFn: () => thankYouConfigurationApi.fetch(entityId, filters),\n ...options,\n });\n\nexport const useCreateThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n payload => thankYouConfigurationApi.create({ entityId, payload }),\n {\n ...options,\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n }\n );\n\nexport const useShowThankYouConfiguration = ({ entityId, id, ...options }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, id],\n queryFn: () => thankYouConfigurationApi.show(entityId, id),\n ...options,\n });\n\nexport const useUpdateThankYouConfiguration = (id, options = {}) =>\n useMutationWithInvalidation(\n ({ entityId, payload }) =>\n thankYouConfigurationApi.update({ id, entityId, payload }),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n ...options,\n }\n );\n\nexport const useDeleteThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n id => thankYouConfigurationApi.destroy(entityId, id),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],\n ...options,\n }\n );\n"],"names":["fetch","entityId","params","arguments","length","undefined","axios","get","buildUrl","THANK_YOU_CONFIGURATIONS_URL","create","_ref","payload","post","show","id","THANK_YOU_CONFIGURATION_URL","update","_ref2","put","thankYouConfiguration","destroy","thankYouConfigurationApi","useFetchThankYouConfigurations","filters","options","useQuery","_objectSpread","queryKey","QUERY_KEYS","THANK_YOU_CONFIGURATION","queryFn","useCreateThankYouConfiguration","useMutationWithInvalidation","keysToInvalidate","useShowThankYouConfiguration","_objectWithoutProperties","_excluded","useUpdateThankYouConfiguration","useDeleteThankYouConfiguration"],"mappings":";;;;;;;;;AAQA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAIC,QAAQ,EAAA;AAAA,EAAA,IAAEC,MAAM,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAClCG,KAAK,CAACC,GAAG,CAACC,QAAQ,CAACC,4BAA4B,EAAE;AAAER,IAAAA,QAAQ,EAARA;AAAS,GAAC,CAAC,EAAE;AAC9DC,IAAAA,MAAM,EAANA;AACF,GAAC,CAAC;AAAA,CAAA;AAEJ,I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ACC,uBAAuB;GAClDL,EAAAA,OAAO,CAEd,CAAC;AAAA;IAEUc,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAItC,QAAQ,EAAA;AAAA,EAAA,IAAEwB,OAAO,GAAAtB,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,OACnE8B,2BAA2B,CACzB,UAAAlB,EAAE,EAAA;AAAA,IAAA,OAAIO,wBAAwB,CAACD,OAAO,CAACpB,QAAQ,EAAEc,EAAE,CAAC;AAAA,GAAA,EAAAY,aAAA,CAAA;AAElDO,IAAAA,gBAAgB,EAAE,CAACL,UAAU,CAACC,uBAAuB,EAAE7B,QAAQ;GAC5DwB,EAAAA,OAAO,CAEd,CAAC;AAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-thank-you-frontend",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
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",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@babel/runtime": "7.26.0",
|
|
60
60
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
61
61
|
"@bigbinary/eslint-plugin-neeto": "1.5.6",
|
|
62
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
63
|
-
"@bigbinary/neeto-commons-frontend": "4.12.
|
|
64
|
-
"@bigbinary/neeto-editor": "1.43.
|
|
62
|
+
"@bigbinary/neeto-cist": "1.0.14",
|
|
63
|
+
"@bigbinary/neeto-commons-frontend": "4.12.6",
|
|
64
|
+
"@bigbinary/neeto-editor": "1.43.28",
|
|
65
65
|
"@bigbinary/neeto-filters-frontend": "4.3.10",
|
|
66
66
|
"@bigbinary/neeto-icons": "1.20.21",
|
|
67
67
|
"@bigbinary/neeto-image-uploader-frontend": "2.3.11",
|
|
68
|
-
"@bigbinary/neeto-molecules": "3.
|
|
69
|
-
"@bigbinary/neetoui": "8.2.
|
|
68
|
+
"@bigbinary/neeto-molecules": "3.13.9",
|
|
69
|
+
"@bigbinary/neetoui": "8.2.45",
|
|
70
70
|
"@emotion/is-prop-valid": "1.2.0",
|
|
71
71
|
"@faker-js/faker": "8.2.0",
|
|
72
72
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"@rollup/plugin-node-resolve": "15.3.0",
|
|
79
79
|
"@rollup/plugin-replace": "5.0.4",
|
|
80
80
|
"@svgr/rollup": "8.1.0",
|
|
81
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
81
82
|
"@tanstack/react-query": "5.59.20",
|
|
82
83
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
83
84
|
"antd": "5.22.0",
|
|
@@ -170,16 +171,17 @@
|
|
|
170
171
|
},
|
|
171
172
|
"peerDependencies": {
|
|
172
173
|
"@babel/runtime": "7.26.0",
|
|
173
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
174
|
-
"@bigbinary/neeto-commons-frontend": "4.12.
|
|
175
|
-
"@bigbinary/neeto-editor": "1.43.
|
|
174
|
+
"@bigbinary/neeto-cist": "1.0.14",
|
|
175
|
+
"@bigbinary/neeto-commons-frontend": "4.12.6",
|
|
176
|
+
"@bigbinary/neeto-editor": "1.43.28",
|
|
176
177
|
"@bigbinary/neeto-filters-frontend": "4.3.10",
|
|
177
178
|
"@bigbinary/neeto-icons": "1.20.21",
|
|
178
179
|
"@bigbinary/neeto-image-uploader-frontend": "2.3.11",
|
|
179
|
-
"@bigbinary/neeto-molecules": "3.
|
|
180
|
-
"@bigbinary/neetoui": "8.2.
|
|
180
|
+
"@bigbinary/neeto-molecules": "3.13.9",
|
|
181
|
+
"@bigbinary/neetoui": "8.2.45",
|
|
181
182
|
"@honeybadger-io/js": "6.10.1",
|
|
182
183
|
"@honeybadger-io/react": "6.1.25",
|
|
184
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
183
185
|
"@tanstack/react-query": "5.59.20",
|
|
184
186
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
185
187
|
"antd": "5.22.0",
|
|
@@ -10,13 +10,6 @@ type SocialHandle = {
|
|
|
10
10
|
generateShareUrl: () => string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
type BrandingInfo = {
|
|
14
|
-
displayText: string;
|
|
15
|
-
additionalComponents?: {
|
|
16
|
-
[tagName: string]: React.ReactElement;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
|
|
20
13
|
interface ConfigureThankYouProps {
|
|
21
14
|
breadcrumbs: Breadcrumb[];
|
|
22
15
|
socialHandles?: SocialHandle[];
|
|
@@ -38,7 +31,6 @@ interface ConfigureThankYouProps {
|
|
|
38
31
|
onSuccessCallbackParams: any[],
|
|
39
32
|
previousConfiguration: Record<string, any>
|
|
40
33
|
) => void;
|
|
41
|
-
brandingInfo: BrandingInfo;
|
|
42
34
|
editorProps?: object;
|
|
43
35
|
preview?: ReactElement;
|
|
44
36
|
allowEmptyCustomMessage?: boolean;
|
package/types/ShowThankYou.d.ts
CHANGED
|
@@ -5,13 +5,6 @@ type SocialHandle = {
|
|
|
5
5
|
generateShareUrl: () => string;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
type BrandingInfo = {
|
|
9
|
-
displayText: string;
|
|
10
|
-
additionalComponents?: {
|
|
11
|
-
[tagName: string]: React.ReactElement;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
|
|
15
8
|
interface ShowThankYouProps {
|
|
16
9
|
entityId: string;
|
|
17
10
|
isDraftPreview: boolean;
|
|
@@ -22,7 +15,6 @@ interface ShowThankYouProps {
|
|
|
22
15
|
publicLinkId: string;
|
|
23
16
|
appName: string;
|
|
24
17
|
customPageLoader?: React.ReactNode | (() => React.ReactNode);
|
|
25
|
-
brandingInfo: BrandingInfo;
|
|
26
18
|
}
|
|
27
19
|
const ShowThankYou: React.FC<ShowThankYouProps>;
|
|
28
20
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseMutationResult, UseMutationOptions } from "@tanstack/react-query";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
|
|
4
|
+
function useDeleteThankYouConfiguration({
|
|
5
|
+
entityId: string,
|
|
6
|
+
options: UseMutationOptions,
|
|
7
|
+
}): UseMutationResult<axios.AxiosResponse<any, any>, unknown>;
|
|
8
|
+
|
|
9
|
+
export default useDeleteThankYouConfiguration;
|
package/types.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { default as useFetchThankYouConfigurations } from "./types/useFetchThank
|
|
|
4
4
|
export { default as useCreateThankYouConfiguration } from "./types/useCreateThankYouConfiguration";
|
|
5
5
|
export { default as useShowThankYouConfiguration } from "./types/useShowThankYouConfiguration";
|
|
6
6
|
export { default as useUpdateThankYouConfiguration } from "./types/useUpdateThankYouConfiguration";
|
|
7
|
+
export { default as useDeleteThankYouConfiguration } from "./types/useDeleteThankYouConfiguration";
|
|
7
8
|
export { default as useShowThankYouPage } from "./types/useShowThankYouPage";
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { useTranslation } from 'react-i18next';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
var THANK_YOU_TEXT_ALIGNMENTS = {
|
|
5
|
-
left: "left",
|
|
6
|
-
center: "center"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
10
|
-
|
|
11
|
-
var css = ".neeto-thank-you-configuration{display:flex;flex-direction:column;height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:4px;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:56px 15px;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:4px}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-thank-you-configuration-preview{border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);box-shadow:var(--neeto-ui-shadow-xs);display:flex;flex-direction:column;height:100%;min-height:500px;overflow:hidden;position:relative}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration-preview__browser-header{border-bottom:1px solid rgb(var(--neeto-ui-gray-300));padding:5px}.neeto-thank-you-configuration__branding-wrapper{bottom:12px;left:12px;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:4px;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:14px;font-weight:400;padding:4px 6px;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}";
|
|
12
|
-
n(css,{});
|
|
13
|
-
|
|
14
|
-
var SocialShare = function SocialShare(_ref) {
|
|
15
|
-
var socialHandles = _ref.socialHandles,
|
|
16
|
-
publicLinkId = _ref.publicLinkId;
|
|
17
|
-
var _useTranslation = useTranslation(),
|
|
18
|
-
t = _useTranslation.t;
|
|
19
|
-
return /*#__PURE__*/jsxs("div", {
|
|
20
|
-
className: "neeto-thank-you-configuration__social-share",
|
|
21
|
-
children: [/*#__PURE__*/jsx("h3", {
|
|
22
|
-
className: "neeto-thank-you-configuration__social-share-title",
|
|
23
|
-
children: t("neetoThankYou.thankYou.socialShareHeading")
|
|
24
|
-
}), /*#__PURE__*/jsx("div", {
|
|
25
|
-
className: "neeto-thank-you-configuration-social-follow",
|
|
26
|
-
children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
|
|
27
|
-
var Icon = data.icon,
|
|
28
|
-
generateShareUrl = data.generateShareUrl;
|
|
29
|
-
return /*#__PURE__*/jsx("div", {
|
|
30
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
31
|
-
children: /*#__PURE__*/jsx("a", {
|
|
32
|
-
href: generateShareUrl(publicLinkId),
|
|
33
|
-
rel: "noreferrer",
|
|
34
|
-
target: "_blank",
|
|
35
|
-
children: /*#__PURE__*/jsx(Icon, {})
|
|
36
|
-
})
|
|
37
|
-
}, idx);
|
|
38
|
-
})
|
|
39
|
-
})]
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { SocialShare as S, THANK_YOU_TEXT_ALIGNMENTS as T, n };
|
|
44
|
-
//# sourceMappingURL=SocialShare-ftRSFRqP.js.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactI18next = require('react-i18next');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
var THANK_YOU_TEXT_ALIGNMENTS = {
|
|
7
|
-
left: "left",
|
|
8
|
-
center: "center"
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
12
|
-
|
|
13
|
-
var css = ".neeto-thank-you-configuration{display:flex;flex-direction:column;height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:4px;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:56px 15px;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:4px}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-thank-you-configuration-preview{border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);box-shadow:var(--neeto-ui-shadow-xs);display:flex;flex-direction:column;height:100%;min-height:500px;overflow:hidden;position:relative}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration-preview__browser-header{border-bottom:1px solid rgb(var(--neeto-ui-gray-300));padding:5px}.neeto-thank-you-configuration__branding-wrapper{bottom:12px;left:12px;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:4px;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:14px;font-weight:400;padding:4px 6px;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}";
|
|
14
|
-
n(css,{});
|
|
15
|
-
|
|
16
|
-
var SocialShare = function SocialShare(_ref) {
|
|
17
|
-
var socialHandles = _ref.socialHandles,
|
|
18
|
-
publicLinkId = _ref.publicLinkId;
|
|
19
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
20
|
-
t = _useTranslation.t;
|
|
21
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
22
|
-
className: "neeto-thank-you-configuration__social-share",
|
|
23
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
24
|
-
className: "neeto-thank-you-configuration__social-share-title",
|
|
25
|
-
children: t("neetoThankYou.thankYou.socialShareHeading")
|
|
26
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
27
|
-
className: "neeto-thank-you-configuration-social-follow",
|
|
28
|
-
children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
|
|
29
|
-
var Icon = data.icon,
|
|
30
|
-
generateShareUrl = data.generateShareUrl;
|
|
31
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
32
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
33
|
-
children: /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
34
|
-
href: generateShareUrl(publicLinkId),
|
|
35
|
-
rel: "noreferrer",
|
|
36
|
-
target: "_blank",
|
|
37
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
|
|
38
|
-
})
|
|
39
|
-
}, idx);
|
|
40
|
-
})
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
exports.SocialShare = SocialShare;
|
|
46
|
-
exports.THANK_YOU_TEXT_ALIGNMENTS = THANK_YOU_TEXT_ALIGNMENTS;
|
|
47
|
-
exports.n = n;
|
|
48
|
-
//# sourceMappingURL=SocialShare-D3fFcV4U.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouConfigurationApi-Dr0YDHIe.js","sources":["../../app/javascript/src/apis/thank_you_configuration.js","../../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["import axios from \"axios\";\nimport { buildUrl } from \"neetocommons/utils\";\n\nimport {\n THANK_YOU_CONFIGURATIONS_URL,\n THANK_YOU_CONFIGURATION_URL,\n} from \"src/constants\";\n\nconst fetch = (entityId, params = {}) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), {\n params,\n });\n\nconst create = ({ entityId, payload }) =>\n axios.post(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), payload);\n\nconst show = (entityId, id) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst update = ({ entityId, id, payload }) =>\n axios.put(buildUrl(THANK_YOU_CONFIGURATION_URL, { id }), {\n entityId,\n thankYouConfiguration: payload,\n });\n\nconst thankYouConfigurationApi = { fetch, create, show, update };\n\nexport default thankYouConfigurationApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchThankYouConfigurations = (\n entityId,\n filters = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, filters],\n queryFn: () => thankYouConfigurationApi.fetch(entityId, filters),\n ...options,\n });\n\nexport const useCreateThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n payload => thankYouConfigurationApi.create({ entityId, payload }),\n {\n ...options,\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n }\n );\n\nexport const useShowThankYouConfiguration = ({ entityId, id, ...options }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, id],\n queryFn: () => thankYouConfigurationApi.show(entityId, id),\n ...options,\n });\n\nexport const useUpdateThankYouConfiguration = (id, options = {}) =>\n useMutationWithInvalidation(\n ({ entityId, payload }) =>\n thankYouConfigurationApi.update({ id, entityId, payload }),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n ...options,\n }\n );\n"],"names":["fetch","entityId","params","arguments","length","undefined","axios","get","buildUrl","THANK_YOU_CONFIGURATIONS_URL","create","_ref","payload","post","show","id","THANK_YOU_CONFIGURATION_URL","update","_ref2","put","thankYouConfiguration","thankYouConfigurationApi","useFetchThankYouConfigurations","filters","options","useQuery","_objectSpread","queryKey","QUERY_KEYS","THANK_YOU_CONFIGURATION","queryFn","useCreateThankYouConfiguration","useMutationWithInvalidation","keysToInvalidate","useShowThankYouConfiguration","_objectWitho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