@bigbinary/neeto-thank-you-frontend 2.0.4 → 2.1.0
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/app/javascript/src/translations/en.json +1 -0
- package/dist/BrandingInfo-cb3c7c87.js +26 -0
- package/dist/BrandingInfo-cb3c7c87.js.map +1 -0
- package/dist/ConfigureThankYou.js +453 -375
- package/dist/ConfigureThankYou.js.map +1 -1
- package/dist/ShowThankYou.js +80 -69
- package/dist/ShowThankYou.js.map +1 -1
- package/dist/SocialShare-4ece80cd.js +44 -0
- package/dist/SocialShare-4ece80cd.js.map +1 -0
- package/dist/cjs/BrandingInfo-2f9123ba.js +28 -0
- package/dist/cjs/BrandingInfo-2f9123ba.js.map +1 -0
- package/dist/cjs/ConfigureThankYou.js +453 -376
- package/dist/cjs/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/ShowThankYou.js +80 -70
- package/dist/cjs/ShowThankYou.js.map +1 -1
- package/dist/cjs/SocialShare-5ebb5ae3.js +48 -0
- package/dist/cjs/SocialShare-5ebb5ae3.js.map +1 -0
- package/dist/cjs/commons.js +24 -27
- package/dist/cjs/commons.js.map +1 -1
- package/dist/cjs/constants.js +3 -3
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index.js +8 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{query-95d5312e.js → query-63e48fba.js} +3 -3
- package/dist/cjs/{query-95d5312e.js.map → query-63e48fba.js.map} +1 -1
- package/dist/cjs/useShowThankYouConfiguration.js +2 -2
- package/dist/cjs/useShowThankYouPage.js +2 -2
- package/dist/cjs/useThankYouConfigurationApi-27b0ace0.js +101 -0
- package/dist/cjs/useThankYouConfigurationApi-27b0ace0.js.map +1 -0
- package/dist/cjs/useThankYouPageApi-8d0e4fbc.js +41 -0
- package/dist/cjs/useThankYouPageApi-8d0e4fbc.js.map +1 -0
- package/dist/cjs/utils.js +11 -5
- package/dist/cjs/utils.js.map +1 -1
- package/dist/commons.js +24 -23
- package/dist/commons.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/{query-ab526f47.js → query-3e439d01.js} +3 -3
- package/dist/{query-ab526f47.js.map → query-3e439d01.js.map} +1 -1
- package/dist/useShowThankYouConfiguration.js +3 -3
- package/dist/useShowThankYouPage.js +3 -3
- package/dist/useThankYouConfigurationApi-5b45610e.js +93 -0
- package/dist/useThankYouConfigurationApi-5b45610e.js.map +1 -0
- package/dist/useThankYouPageApi-660012d0.js +35 -0
- package/dist/useThankYouPageApi-660012d0.js.map +1 -0
- package/dist/utils.js +11 -5
- package/dist/utils.js.map +1 -1
- package/package.json +11 -11
- package/dist/BrandingInfo-da0b773a.js +0 -32
- package/dist/BrandingInfo-da0b773a.js.map +0 -1
- package/dist/SocialShare-e7e5efc6.js +0 -45
- package/dist/SocialShare-e7e5efc6.js.map +0 -1
- package/dist/cjs/BrandingInfo-cdb9a379.js +0 -38
- package/dist/cjs/BrandingInfo-cdb9a379.js.map +0 -1
- package/dist/cjs/SocialShare-4607aba6.js +0 -53
- package/dist/cjs/SocialShare-4607aba6.js.map +0 -1
- package/dist/cjs/useThankYouConfigurationApi-302df56a.js +0 -58
- package/dist/cjs/useThankYouConfigurationApi-302df56a.js.map +0 -1
- package/dist/cjs/useThankYouPageApi-b6b47745.js +0 -43
- package/dist/cjs/useThankYouPageApi-b6b47745.js.map +0 -1
- package/dist/useThankYouConfigurationApi-ed20746a.js +0 -51
- package/dist/useThankYouConfigurationApi-ed20746a.js.map +0 -1
- package/dist/useThankYouPageApi-1ac56883.js +0 -37
- package/dist/useThankYouPageApi-1ac56883.js.map +0 -1
package/dist/cjs/commons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons.js","sources":["../../app/javascript/src/components/commons/ProgressBar.jsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"commons.js","sources":["../../app/javascript/src/components/commons/ProgressBar.jsx"],"sourcesContent":["import { motion } from \"framer-motion\";\n\nconst ProgressBar = ({ progressPercentage, progressValue }) => (\n <div className=\"neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden\">\n <motion.div\n animate={{ width: `${progressPercentage}%` }}\n className=\"neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none\"\n initial={{ width: 0 }}\n transition={{ duration: 0.5, ease: \"easeInOut\" }}\n >\n {progressValue}\n </motion.div>\n </div>\n);\n\nexport default ProgressBar;\n"],"names":["ProgressBar","_ref","progressPercentage","progressValue","_jsx","className","children","motion","div","animate","width","concat","initial","transition","duration","ease"],"mappings":";;;;;;;;;;;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAAEC,aAAa,GAAAF,IAAA,CAAbE,aAAa,CAAA;AAAA,EAAA,oBACtDC,cAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mEAAmE;AAAAC,IAAAA,QAAA,eAChFF,cAAA,CAACG,mBAAM,CAACC,GAAG,EAAA;AACTC,MAAAA,OAAO,EAAE;QAAEC,KAAK,EAAA,EAAA,CAAAC,MAAA,CAAKT,kBAAkB,EAAA,GAAA,CAAA;OAAM;AAC7CG,MAAAA,SAAS,EAAC,8JAA8J;AACxKO,MAAAA,OAAO,EAAE;AAAEF,QAAAA,KAAK,EAAE,CAAA;OAAI;AACtBG,MAAAA,UAAU,EAAE;AAAEC,QAAAA,QAAQ,EAAE,GAAG;AAAEC,QAAAA,IAAI,EAAE,WAAA;OAAc;AAAAT,MAAAA,QAAA,EAEhDH,aAAAA;KACS,CAAA;AAAC,GACV,CAAC,CAAA;AAAA;;;;;"}
|
package/dist/cjs/constants.js
CHANGED
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
var ENVIRONMENTS = {
|
|
8
8
|
development: "development",
|
|
9
9
|
staging: "staging",
|
|
10
10
|
production: "production",
|
|
11
11
|
heroku: "heroku"
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
var IS_PRODUCTION_ENV = initializers.globalProps.railsEnv === ENVIRONMENTS.production;
|
|
14
|
+
var TLD = IS_PRODUCTION_ENV ? "com" : "net";
|
|
15
15
|
|
|
16
16
|
exports.ENVIRONMENTS = ENVIRONMENTS;
|
|
17
17
|
exports.IS_PRODUCTION_ENV = IS_PRODUCTION_ENV;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../app/javascript/src/components/constants.js"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\n\nexport const ENVIRONMENTS = {\n development: \"development\",\n staging: \"staging\",\n production: \"production\",\n heroku: \"heroku\",\n};\n\nexport const IS_PRODUCTION_ENV =\n globalProps.railsEnv === ENVIRONMENTS.production;\n\nexport const TLD = IS_PRODUCTION_ENV ? \"com\" : \"net\";\n"],"names":["ENVIRONMENTS","development","staging","production","heroku","IS_PRODUCTION_ENV","globalProps","railsEnv","TLD"],"mappings":";;;;;;AAEO,
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../app/javascript/src/components/constants.js"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\n\nexport const ENVIRONMENTS = {\n development: \"development\",\n staging: \"staging\",\n production: \"production\",\n heroku: \"heroku\",\n};\n\nexport const IS_PRODUCTION_ENV =\n globalProps.railsEnv === ENVIRONMENTS.production;\n\nexport const TLD = IS_PRODUCTION_ENV ? \"com\" : \"net\";\n"],"names":["ENVIRONMENTS","development","staging","production","heroku","IS_PRODUCTION_ENV","globalProps","railsEnv","TLD"],"mappings":";;;;;;AAEO,IAAMA,YAAY,GAAG;AAC1BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,MAAM,EAAE,QAAA;AACV,EAAC;AAEM,IAAMC,iBAAiB,GAC5BC,wBAAW,CAACC,QAAQ,KAAKP,YAAY,CAACG,WAAU;IAErCK,GAAG,GAAGH,iBAAiB,GAAG,KAAK,GAAG;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var ConfigureThankYou = require('./ConfigureThankYou.js');
|
|
6
6
|
var ShowThankYou = require('./ShowThankYou.js');
|
|
7
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
8
|
-
var useThankYouPageApi = require('./useThankYouPageApi-
|
|
9
|
-
var SocialShare = require('./SocialShare-
|
|
10
|
-
require('react');
|
|
7
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-27b0ace0.js');
|
|
8
|
+
var useThankYouPageApi = require('./useThankYouPageApi-8d0e4fbc.js');
|
|
9
|
+
var SocialShare = require('./SocialShare-5ebb5ae3.js');
|
|
11
10
|
require('@bigbinary/neeto-cist');
|
|
12
11
|
require('@bigbinary/neeto-molecules/Scrollable');
|
|
12
|
+
require('react');
|
|
13
13
|
require('classnames');
|
|
14
14
|
require('@bigbinary/neeto-molecules/PageLoader');
|
|
15
15
|
require('@bigbinary/neetoui/formik/ActionBlock');
|
|
@@ -25,12 +25,13 @@ require('@bigbinary/neetoui/formik/Input');
|
|
|
25
25
|
require('@bigbinary/neetoui/formik/Switch');
|
|
26
26
|
require('react-i18next');
|
|
27
27
|
require('@bigbinary/neeto-image-uploader-frontend');
|
|
28
|
+
require('react/jsx-runtime');
|
|
28
29
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
29
30
|
require('@bigbinary/neetoui/Button');
|
|
30
31
|
require('@bigbinary/neetoui/Typography');
|
|
31
32
|
require('@bigbinary/neetoui/Modal');
|
|
32
33
|
require('@bigbinary/neeto-editor/EditorContent');
|
|
33
|
-
require('./BrandingInfo-
|
|
34
|
+
require('./BrandingInfo-2f9123ba.js');
|
|
34
35
|
require('./utils.js');
|
|
35
36
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
36
37
|
require('./constants.js');
|
|
@@ -41,10 +42,10 @@ require('yup');
|
|
|
41
42
|
require('@bigbinary/neeto-molecules/Header');
|
|
42
43
|
require('@tanstack/react-query');
|
|
43
44
|
require('axios');
|
|
44
|
-
require('./query-
|
|
45
|
+
require('./query-63e48fba.js');
|
|
45
46
|
require('dompurify');
|
|
46
47
|
|
|
47
|
-
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;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:
|
|
48
|
+
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;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:24px 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{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}.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))}";
|
|
48
49
|
SocialShare.n(css,{});
|
|
49
50
|
|
|
50
51
|
exports.ConfigureThankYou = ConfigureThankYou;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var THANK_YOU_ENGINE_BASE_URL = "/neeto_thank_you_engine";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var QUERY_KEYS = {
|
|
6
6
|
THANK_YOU_CONFIGURATION: "thank-you-configuration",
|
|
7
7
|
THANK_YOU_PAGE: "thank-you-page"
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
exports.QUERY_KEYS = QUERY_KEYS;
|
|
11
11
|
exports.THANK_YOU_ENGINE_BASE_URL = THANK_YOU_ENGINE_BASE_URL;
|
|
12
|
-
//# sourceMappingURL=query-
|
|
12
|
+
//# sourceMappingURL=query-63e48fba.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-
|
|
1
|
+
{"version":3,"file":"query-63e48fba.js","sources":["../../app/javascript/src/constants/index.js","../../app/javascript/src/constants/query.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you_engine\";\n","export const QUERY_KEYS = {\n THANK_YOU_CONFIGURATION: \"thank-you-configuration\",\n THANK_YOU_PAGE: \"thank-you-page\",\n};\n"],"names":["THANK_YOU_ENGINE_BASE_URL","QUERY_KEYS","THANK_YOU_CONFIGURATION","THANK_YOU_PAGE"],"mappings":";;AAAO,IAAMA,yBAAyB,GAAG;;ACAlC,IAAMC,UAAU,GAAG;AACxBC,EAAAA,uBAAuB,EAAE,yBAAyB;AAClDC,EAAAA,cAAc,EAAE,gBAAA;AAClB;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-27b0ace0.js');
|
|
4
4
|
require('@tanstack/react-query');
|
|
5
5
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
6
6
|
require('axios');
|
|
7
|
-
require('./query-
|
|
7
|
+
require('./query-63e48fba.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouPageApi = require('./useThankYouPageApi-
|
|
3
|
+
var useThankYouPageApi = require('./useThankYouPageApi-8d0e4fbc.js');
|
|
4
4
|
require('@tanstack/react-query');
|
|
5
5
|
require('axios');
|
|
6
|
-
require('./query-
|
|
6
|
+
require('./query-63e48fba.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactQuery = require('@tanstack/react-query');
|
|
4
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
5
|
+
var axios = require('axios');
|
|
6
|
+
var query = require('./query-63e48fba.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
11
|
+
|
|
12
|
+
function _typeof(o) {
|
|
13
|
+
"@babel/helpers - typeof";
|
|
14
|
+
|
|
15
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
16
|
+
return typeof o;
|
|
17
|
+
} : function (o) {
|
|
18
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
19
|
+
}, _typeof(o);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function _toPrimitive(input, hint) {
|
|
23
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
24
|
+
var prim = input[Symbol.toPrimitive];
|
|
25
|
+
if (prim !== undefined) {
|
|
26
|
+
var res = prim.call(input, hint || "default");
|
|
27
|
+
if (_typeof(res) !== "object") return res;
|
|
28
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
29
|
+
}
|
|
30
|
+
return (hint === "string" ? String : Number)(input);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _toPropertyKey(arg) {
|
|
34
|
+
var key = _toPrimitive(arg, "string");
|
|
35
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _defineProperty(obj, key, value) {
|
|
39
|
+
key = _toPropertyKey(key);
|
|
40
|
+
if (key in obj) {
|
|
41
|
+
Object.defineProperty(obj, key, {
|
|
42
|
+
value: value,
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
obj[key] = value;
|
|
49
|
+
}
|
|
50
|
+
return obj;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var baseUrl = "".concat(query.THANK_YOU_ENGINE_BASE_URL, "/thank_you_configuration");
|
|
54
|
+
var show = function show(entityId) {
|
|
55
|
+
return axios__default["default"].get(baseUrl, {
|
|
56
|
+
params: {
|
|
57
|
+
entityId: entityId
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
var update = function update(_ref) {
|
|
62
|
+
var entityId = _ref.entityId,
|
|
63
|
+
payload = _ref.payload;
|
|
64
|
+
return axios__default["default"].put(baseUrl, {
|
|
65
|
+
entityId: entityId,
|
|
66
|
+
thankYouConfiguration: payload
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
var thankYouConfigurationApi = {
|
|
70
|
+
show: show,
|
|
71
|
+
update: update
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
75
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
76
|
+
var useShowThankYouConfiguration = function useShowThankYouConfiguration(_ref) {
|
|
77
|
+
var entityId = _ref.entityId;
|
|
78
|
+
return reactQuery.useQuery({
|
|
79
|
+
queryKey: [query.QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],
|
|
80
|
+
queryFn: function queryFn() {
|
|
81
|
+
return thankYouConfigurationApi.show(entityId);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
var useUpdateThankYouConfiguration = function useUpdateThankYouConfiguration(options) {
|
|
86
|
+
return reactUtils.useMutationWithInvalidation(function (_ref2) {
|
|
87
|
+
var entityId = _ref2.entityId,
|
|
88
|
+
payload = _ref2.payload;
|
|
89
|
+
return thankYouConfigurationApi.update({
|
|
90
|
+
entityId: entityId,
|
|
91
|
+
payload: payload
|
|
92
|
+
});
|
|
93
|
+
}, _objectSpread({
|
|
94
|
+
keysToInvalidate: [[query.QUERY_KEYS.THANK_YOU_CONFIGURATION]]
|
|
95
|
+
}, options));
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports._defineProperty = _defineProperty;
|
|
99
|
+
exports.useShowThankYouConfiguration = useShowThankYouConfiguration;
|
|
100
|
+
exports.useUpdateThankYouConfiguration = useUpdateThankYouConfiguration;
|
|
101
|
+
//# sourceMappingURL=useThankYouConfigurationApi-27b0ace0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-27b0ace0.js","sources":["../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../app/javascript/src/apis/thank_you_configuration.js","../../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import axios from \"axios\";\n\nimport { THANK_YOU_ENGINE_BASE_URL } from \"src/constants\";\n\nconst baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configuration`;\n\nconst show = entityId => axios.get(baseUrl, { params: { entityId } });\n\nconst update = ({ entityId, payload }) =>\n axios.put(baseUrl, { entityId, thankYouConfiguration: payload });\n\nconst thankYouConfigurationApi = { 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 useShowThankYouConfiguration = ({ entityId }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],\n queryFn: () => thankYouConfigurationApi.show(entityId),\n });\n\nexport const useUpdateThankYouConfiguration = options =>\n useMutationWithInvalidation(\n ({ entityId, payload }) =>\n thankYouConfigurationApi.update({ entityId, payload }),\n {\n keysToInvalidate: [[QUERY_KEYS.THANK_YOU_CONFIGURATION]],\n ...options,\n }\n );\n"],"names":["toPrimitive","toPropertyKey","baseUrl","concat","THANK_YOU_ENGINE_BASE_URL","show","entityId","axios","get","params","update","_ref","payload","put","thankYouConfiguration","thankYouConfigurationApi","useShowThankYouConfiguration","useQuery","queryKey","QUERY_KEYS","THANK_YOU_CONFIGURATION","queryFn","useUpdateThankYouConfiguration","options","useMutationWithInvalidation","_ref2","_objectSpread","keysToInvalidate"],"mappings":"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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactQuery = require('@tanstack/react-query');
|
|
4
|
+
var axios = require('axios');
|
|
5
|
+
var query = require('./query-63e48fba.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
10
|
+
|
|
11
|
+
var baseUrl = "".concat(query.THANK_YOU_ENGINE_BASE_URL, "/thank_you_page");
|
|
12
|
+
var show = function show(_ref) {
|
|
13
|
+
var entityId = _ref.entityId,
|
|
14
|
+
isTemplateView = _ref.isTemplateView;
|
|
15
|
+
return axios__default["default"].get(baseUrl, {
|
|
16
|
+
params: {
|
|
17
|
+
entityId: entityId,
|
|
18
|
+
isTemplateView: isTemplateView
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var thankYouPageApi = {
|
|
23
|
+
show: show
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var useShowThankYouPage = function useShowThankYouPage(_ref) {
|
|
27
|
+
var entityId = _ref.entityId,
|
|
28
|
+
isTemplateView = _ref.isTemplateView;
|
|
29
|
+
return reactQuery.useQuery({
|
|
30
|
+
queryKey: [query.QUERY_KEYS.THANK_YOU_PAGE, entityId],
|
|
31
|
+
queryFn: function queryFn() {
|
|
32
|
+
return thankYouPageApi.show({
|
|
33
|
+
entityId: entityId,
|
|
34
|
+
isTemplateView: isTemplateView
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.useShowThankYouPage = useShowThankYouPage;
|
|
41
|
+
//# sourceMappingURL=useThankYouPageApi-8d0e4fbc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouPageApi-8d0e4fbc.js","sources":["../../app/javascript/src/apis/thank_you_page.js","../../app/javascript/src/hooks/reactQuery/useThankYouPageApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { THANK_YOU_ENGINE_BASE_URL } from \"src/constants\";\n\nconst baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_page`;\n\nconst show = ({ entityId, isTemplateView }) =>\n axios.get(baseUrl, { params: { entityId, isTemplateView } });\n\nconst thankYouPageApi = { show };\n\nexport default thankYouPageApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport thankYouPageApi from \"apis/thank_you_page\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouPage = ({ entityId, isTemplateView }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () => thankYouPageApi.show({ entityId, isTemplateView }),\n });\n"],"names":["baseUrl","concat","THANK_YOU_ENGINE_BASE_URL","show","_ref","entityId","isTemplateView","axios","get","params","thankYouPageApi","useShowThankYouPage","useQuery","queryKey","QUERY_KEYS","THANK_YOU_PAGE","queryFn"],"mappings":";;;;;;;;;;AAIA,IAAMA,OAAO,GAAA,EAAA,CAAAC,MAAA,CAAMC,+BAAyB,EAAiB,iBAAA,CAAA,CAAA;AAE7D,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc,CAAA;AAAA,EAAA,OACtCC,yBAAK,CAACC,GAAG,CAACR,OAAO,EAAE;AAAES,IAAAA,MAAM,EAAE;AAAEJ,MAAAA,QAAQ,EAARA,QAAQ;AAAEC,MAAAA,cAAc,EAAdA,cAAAA;AAAe,KAAA;AAAE,GAAC,CAAC,CAAA;AAAA,CAAA,CAAA;AAE9D,IAAMI,eAAe,GAAG;AAAEP,EAAAA,IAAI,EAAJA,IAAAA;AAAK,CAAC;;ICJnBQ,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAP,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc,CAAA;AAAA,EAAA,OAC5DM,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,gBAAU,CAACC,cAAc,EAAEV,QAAQ,CAAC;IAC/CW,OAAO,EAAE,SAAAA,OAAA,GAAA;MAAA,OAAMN,eAAe,CAACP,IAAI,CAAC;AAAEE,QAAAA,QAAQ,EAARA,QAAQ;AAAEC,QAAAA,cAAc,EAAdA,cAAAA;AAAe,OAAC,CAAC,CAAA;AAAA,KAAA;AACnE,GAAC,CAAC,CAAA;AAAA;;;;"}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -6,11 +6,17 @@ var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
|
6
6
|
var constants = require('./constants.js');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
var getNeetoAuthRoute = function getNeetoAuthRoute(topLevelDomain) {
|
|
10
|
+
return "https://app.neetoauth.".concat(topLevelDomain, "/signups/new");
|
|
11
|
+
};
|
|
12
|
+
var getRedirectUri = function getRedirectUri(appName) {
|
|
13
|
+
return "".concat(appName.toLowerCase(), ".").concat(constants.TLD);
|
|
14
|
+
};
|
|
15
|
+
var buildSignUpUrl = function buildSignUpUrl(appName) {
|
|
16
|
+
return utils.buildUrl(getNeetoAuthRoute(constants.TLD), {
|
|
17
|
+
redirectUri: getRedirectUri(appName)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
14
20
|
|
|
15
21
|
exports.buildSignUpUrl = buildSignUpUrl;
|
|
16
22
|
//# sourceMappingURL=utils.js.map
|
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../app/javascript/src/components/utils.js"],"sourcesContent":["import { buildUrl } from \"neetocommons/utils\";\n\nimport { TLD } from \"./constants\";\n\nconst getNeetoAuthRoute = topLevelDomain =>\n `https://app.neetoauth.${topLevelDomain}/signups/new`;\n\nconst getRedirectUri = appName => `${appName.toLowerCase()}.${TLD}`;\n\nexport const buildSignUpUrl = appName =>\n buildUrl(getNeetoAuthRoute(TLD), { redirectUri: getRedirectUri(appName) });\n"],"names":["getNeetoAuthRoute","topLevelDomain","getRedirectUri","appName","toLowerCase","TLD","buildSignUpUrl","buildUrl","redirectUri"],"mappings":";;;;;;;;AAIA,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../app/javascript/src/components/utils.js"],"sourcesContent":["import { buildUrl } from \"neetocommons/utils\";\n\nimport { TLD } from \"./constants\";\n\nconst getNeetoAuthRoute = topLevelDomain =>\n `https://app.neetoauth.${topLevelDomain}/signups/new`;\n\nconst getRedirectUri = appName => `${appName.toLowerCase()}.${TLD}`;\n\nexport const buildSignUpUrl = appName =>\n buildUrl(getNeetoAuthRoute(TLD), { redirectUri: getRedirectUri(appName) });\n"],"names":["getNeetoAuthRoute","topLevelDomain","concat","getRedirectUri","appName","toLowerCase","TLD","buildSignUpUrl","buildUrl","redirectUri"],"mappings":";;;;;;;;AAIA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,cAAc,EAAA;EAAA,OAAAC,wBAAAA,CAAAA,MAAA,CACbD,cAAc,EAAA,cAAA,CAAA,CAAA;AAAA,CAAc,CAAA;AAEvD,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAA;EAAA,OAAAF,EAAAA,CAAAA,MAAA,CAAOE,OAAO,CAACC,WAAW,EAAE,EAAA,GAAA,CAAA,CAAAH,MAAA,CAAII,aAAG,CAAA,CAAA;AAAA,CAAE,CAAA;IAEtDC,cAAc,GAAG,SAAjBA,cAAcA,CAAGH,OAAO,EAAA;AAAA,EAAA,OACnCI,cAAQ,CAACR,iBAAiB,CAACM,aAAG,CAAC,EAAE;IAAEG,WAAW,EAAEN,cAAc,CAACC,OAAO,CAAA;AAAE,GAAC,CAAC,CAAA;AAAA;;;;"}
|
package/dist/commons.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
export { B as BrandingInfo } from './BrandingInfo-
|
|
2
|
-
import React__default from 'react';
|
|
1
|
+
export { B as BrandingInfo } from './BrandingInfo-cb3c7c87.js';
|
|
3
2
|
import { motion } from 'framer-motion';
|
|
4
|
-
import 'react-
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import '@bigbinary/neeto-cist';
|
|
5
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
6
|
import './utils.js';
|
|
6
7
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
7
8
|
import './constants.js';
|
|
8
9
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}
|
|
11
|
+
var ProgressBar = function ProgressBar(_ref) {
|
|
12
|
+
var progressPercentage = _ref.progressPercentage,
|
|
13
|
+
progressValue = _ref.progressValue;
|
|
14
|
+
return /*#__PURE__*/jsx("div", {
|
|
15
|
+
className: "neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden",
|
|
16
|
+
children: /*#__PURE__*/jsx(motion.div, {
|
|
17
|
+
animate: {
|
|
18
|
+
width: "".concat(progressPercentage, "%")
|
|
19
|
+
},
|
|
20
|
+
className: "neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none",
|
|
21
|
+
initial: {
|
|
22
|
+
width: 0
|
|
23
|
+
},
|
|
24
|
+
transition: {
|
|
25
|
+
duration: 0.5,
|
|
26
|
+
ease: "easeInOut"
|
|
27
|
+
},
|
|
28
|
+
children: progressValue
|
|
29
|
+
})
|
|
30
|
+
});
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export { ProgressBar };
|
package/dist/commons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons.js","sources":["../app/javascript/src/components/commons/ProgressBar.jsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"commons.js","sources":["../app/javascript/src/components/commons/ProgressBar.jsx"],"sourcesContent":["import { motion } from \"framer-motion\";\n\nconst ProgressBar = ({ progressPercentage, progressValue }) => (\n <div className=\"neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden\">\n <motion.div\n animate={{ width: `${progressPercentage}%` }}\n className=\"neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none\"\n initial={{ width: 0 }}\n transition={{ duration: 0.5, ease: \"easeInOut\" }}\n >\n {progressValue}\n </motion.div>\n </div>\n);\n\nexport default ProgressBar;\n"],"names":["ProgressBar","_ref","progressPercentage","progressValue","_jsx","className","children","motion","div","animate","width","concat","initial","transition","duration","ease"],"mappings":";;;;;;;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAAEC,aAAa,GAAAF,IAAA,CAAbE,aAAa,CAAA;AAAA,EAAA,oBACtDC,GAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mEAAmE;AAAAC,IAAAA,QAAA,eAChFF,GAAA,CAACG,MAAM,CAACC,GAAG,EAAA;AACTC,MAAAA,OAAO,EAAE;QAAEC,KAAK,EAAA,EAAA,CAAAC,MAAA,CAAKT,kBAAkB,EAAA,GAAA,CAAA;OAAM;AAC7CG,MAAAA,SAAS,EAAC,8JAA8J;AACxKO,MAAAA,OAAO,EAAE;AAAEF,QAAAA,KAAK,EAAE,CAAA;OAAI;AACtBG,MAAAA,UAAU,EAAE;AAAEC,QAAAA,QAAQ,EAAE,GAAG;AAAEC,QAAAA,IAAI,EAAE,WAAA;OAAc;AAAAT,MAAAA,QAAA,EAEhDH,aAAAA;KACS,CAAA;AAAC,GACV,CAAC,CAAA;AAAA;;;;"}
|
package/dist/constants.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var ENVIRONMENTS = {
|
|
4
4
|
development: "development",
|
|
5
5
|
staging: "staging",
|
|
6
6
|
production: "production",
|
|
7
7
|
heroku: "heroku"
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var IS_PRODUCTION_ENV = globalProps.railsEnv === ENVIRONMENTS.production;
|
|
10
|
+
var TLD = IS_PRODUCTION_ENV ? "com" : "net";
|
|
11
11
|
|
|
12
12
|
export { ENVIRONMENTS, IS_PRODUCTION_ENV, TLD };
|
|
13
13
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../app/javascript/src/components/constants.js"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\n\nexport const ENVIRONMENTS = {\n development: \"development\",\n staging: \"staging\",\n production: \"production\",\n heroku: \"heroku\",\n};\n\nexport const IS_PRODUCTION_ENV =\n globalProps.railsEnv === ENVIRONMENTS.production;\n\nexport const TLD = IS_PRODUCTION_ENV ? \"com\" : \"net\";\n"],"names":["ENVIRONMENTS","development","staging","production","heroku","IS_PRODUCTION_ENV","globalProps","railsEnv","TLD"],"mappings":";;AAEO,
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../app/javascript/src/components/constants.js"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\n\nexport const ENVIRONMENTS = {\n development: \"development\",\n staging: \"staging\",\n production: \"production\",\n heroku: \"heroku\",\n};\n\nexport const IS_PRODUCTION_ENV =\n globalProps.railsEnv === ENVIRONMENTS.production;\n\nexport const TLD = IS_PRODUCTION_ENV ? \"com\" : \"net\";\n"],"names":["ENVIRONMENTS","development","staging","production","heroku","IS_PRODUCTION_ENV","globalProps","railsEnv","TLD"],"mappings":";;AAEO,IAAMA,YAAY,GAAG;AAC1BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,MAAM,EAAE,QAAA;AACV,EAAC;AAEM,IAAMC,iBAAiB,GAC5BC,WAAW,CAACC,QAAQ,KAAKP,YAAY,CAACG,WAAU;IAErCK,GAAG,GAAGH,iBAAiB,GAAG,KAAK,GAAG;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { default as ConfigureThankYou } from './ConfigureThankYou.js';
|
|
2
2
|
export { default as ShowThankYou } from './ShowThankYou.js';
|
|
3
|
-
export { u as useShowThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
4
|
-
export { u as useShowThankYouPage } from './useThankYouPageApi-
|
|
5
|
-
import { n } from './SocialShare-
|
|
6
|
-
import 'react';
|
|
3
|
+
export { u as useShowThankYouConfiguration } from './useThankYouConfigurationApi-5b45610e.js';
|
|
4
|
+
export { u as useShowThankYouPage } from './useThankYouPageApi-660012d0.js';
|
|
5
|
+
import { n } from './SocialShare-4ece80cd.js';
|
|
7
6
|
import '@bigbinary/neeto-cist';
|
|
8
7
|
import '@bigbinary/neeto-molecules/Scrollable';
|
|
8
|
+
import 'react';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import '@bigbinary/neeto-molecules/PageLoader';
|
|
11
11
|
import '@bigbinary/neetoui/formik/ActionBlock';
|
|
@@ -21,12 +21,13 @@ import '@bigbinary/neetoui/formik/Input';
|
|
|
21
21
|
import '@bigbinary/neetoui/formik/Switch';
|
|
22
22
|
import 'react-i18next';
|
|
23
23
|
import '@bigbinary/neeto-image-uploader-frontend';
|
|
24
|
+
import 'react/jsx-runtime';
|
|
24
25
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
25
26
|
import '@bigbinary/neetoui/Button';
|
|
26
27
|
import '@bigbinary/neetoui/Typography';
|
|
27
28
|
import '@bigbinary/neetoui/Modal';
|
|
28
29
|
import '@bigbinary/neeto-editor/EditorContent';
|
|
29
|
-
import './BrandingInfo-
|
|
30
|
+
import './BrandingInfo-cb3c7c87.js';
|
|
30
31
|
import './utils.js';
|
|
31
32
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
32
33
|
import './constants.js';
|
|
@@ -37,9 +38,9 @@ import 'yup';
|
|
|
37
38
|
import '@bigbinary/neeto-molecules/Header';
|
|
38
39
|
import '@tanstack/react-query';
|
|
39
40
|
import 'axios';
|
|
40
|
-
import './query-
|
|
41
|
+
import './query-3e439d01.js';
|
|
41
42
|
import 'dompurify';
|
|
42
43
|
|
|
43
|
-
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;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:
|
|
44
|
+
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;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:24px 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{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}.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))}";
|
|
44
45
|
n(css,{});
|
|
45
46
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
var THANK_YOU_ENGINE_BASE_URL = "/neeto_thank_you_engine";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var QUERY_KEYS = {
|
|
4
4
|
THANK_YOU_CONFIGURATION: "thank-you-configuration",
|
|
5
5
|
THANK_YOU_PAGE: "thank-you-page"
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { QUERY_KEYS as Q, THANK_YOU_ENGINE_BASE_URL as T };
|
|
9
|
-
//# sourceMappingURL=query-
|
|
9
|
+
//# sourceMappingURL=query-3e439d01.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-
|
|
1
|
+
{"version":3,"file":"query-3e439d01.js","sources":["../app/javascript/src/constants/index.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you_engine\";\n","export const QUERY_KEYS = {\n THANK_YOU_CONFIGURATION: \"thank-you-configuration\",\n THANK_YOU_PAGE: \"thank-you-page\",\n};\n"],"names":["THANK_YOU_ENGINE_BASE_URL","QUERY_KEYS","THANK_YOU_CONFIGURATION","THANK_YOU_PAGE"],"mappings":"AAAO,IAAMA,yBAAyB,GAAG;;ACAlC,IAAMC,UAAU,GAAG;AACxBC,EAAAA,uBAAuB,EAAE,yBAAyB;AAClDC,EAAAA,cAAc,EAAE,gBAAA;AAClB;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useShowThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
2
|
-
export { u as default } from './useThankYouConfigurationApi-
|
|
1
|
+
import { u as useShowThankYouConfiguration } from './useThankYouConfigurationApi-5b45610e.js';
|
|
2
|
+
export { u as default } from './useThankYouConfigurationApi-5b45610e.js';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import 'axios';
|
|
6
|
-
import './query-
|
|
6
|
+
import './query-3e439d01.js';
|
|
7
7
|
//# sourceMappingURL=useShowThankYouConfiguration.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useShowThankYouPage } from './useThankYouPageApi-
|
|
2
|
-
export { u as default } from './useThankYouPageApi-
|
|
1
|
+
import { u as useShowThankYouPage } from './useThankYouPageApi-660012d0.js';
|
|
2
|
+
export { u as default } from './useThankYouPageApi-660012d0.js';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'axios';
|
|
5
|
-
import './query-
|
|
5
|
+
import './query-3e439d01.js';
|
|
6
6
|
//# sourceMappingURL=useShowThankYouPage.js.map
|