@bigbinary/neeto-thank-you-frontend 2.2.5 → 3.0.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/README.md +3 -1
- package/dist/ConfigureThankYou.js +3 -3
- package/dist/ShowThankYou.js +2 -2
- package/dist/cjs/ConfigureThankYou.js +3 -3
- package/dist/cjs/ShowThankYou.js +2 -2
- package/dist/cjs/{index-BeYCcFRQ.js → index-Bp2NY-mY.js} +2 -2
- package/dist/cjs/index-Bp2NY-mY.js.map +1 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/useCreateThankYouConfiguration.js +2 -2
- package/dist/cjs/useDeleteThankYouConfiguration.js +2 -2
- package/dist/cjs/useFetchThankYouConfigurations.js +2 -2
- package/dist/cjs/useShowThankYouConfiguration.js +2 -2
- package/dist/cjs/useShowThankYouPage.js +2 -2
- package/dist/cjs/{useThankYouConfigurationApi-khbEl5wW.js → useThankYouConfigurationApi-CIRMlHep.js} +2 -2
- package/dist/cjs/{useThankYouConfigurationApi-khbEl5wW.js.map → useThankYouConfigurationApi-CIRMlHep.js.map} +1 -1
- package/dist/cjs/{useThankYouPageApi-w2oudWa5.js → useThankYouPageApi-DeHETkcA.js} +2 -2
- package/dist/cjs/{useThankYouPageApi-w2oudWa5.js.map → useThankYouPageApi-DeHETkcA.js.map} +1 -1
- package/dist/cjs/useUpdateThankYouConfiguration.js +2 -2
- package/dist/{index-CGjGDIfp.js → index-CJXBMIZP.js} +2 -2
- package/dist/index-CJXBMIZP.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/useCreateThankYouConfiguration.js +2 -2
- package/dist/useDeleteThankYouConfiguration.js +2 -2
- package/dist/useFetchThankYouConfigurations.js +2 -2
- package/dist/useShowThankYouConfiguration.js +2 -2
- package/dist/useShowThankYouPage.js +2 -2
- package/dist/{useThankYouConfigurationApi-BiVg-jmY.js → useThankYouConfigurationApi-hprxzGah.js} +2 -2
- package/dist/{useThankYouConfigurationApi-BiVg-jmY.js.map → useThankYouConfigurationApi-hprxzGah.js.map} +1 -1
- package/dist/{useThankYouPageApi-D869lYwH.js → useThankYouPageApi-Qu4dKbsj.js} +2 -2
- package/dist/{useThankYouPageApi-D869lYwH.js.map → useThankYouPageApi-Qu4dKbsj.js.map} +1 -1
- package/dist/useUpdateThankYouConfiguration.js +2 -2
- package/package.json +13 -13
- package/dist/cjs/index-BeYCcFRQ.js.map +0 -1
- package/dist/index-CGjGDIfp.js.map +0 -1
package/README.md
CHANGED
|
@@ -46,8 +46,10 @@ organization.
|
|
|
46
46
|
```
|
|
47
47
|
3. Add this line to your application's `config/routes.rb` file:
|
|
48
48
|
```ruby
|
|
49
|
-
mount NeetoThankYouEngine::Engine
|
|
49
|
+
mount NeetoThankYouEngine::Engine, at: "/neeto_thank_you"
|
|
50
50
|
```
|
|
51
|
+
**NOTE: The mount point must be `/neeto_thank_you` and cannot be changed to
|
|
52
|
+
any other path.**
|
|
51
53
|
4. Run the following command to copy the migrations from the engine to the host
|
|
52
54
|
application:
|
|
53
55
|
```ruby
|
|
@@ -11,7 +11,7 @@ import BlockNavigation from '@bigbinary/neetoui/formik/BlockNavigation';
|
|
|
11
11
|
import NeetoUIForm from '@bigbinary/neetoui/formik/Form';
|
|
12
12
|
import Radio from '@bigbinary/neetoui/formik/Radio';
|
|
13
13
|
import { isEmpty } from 'ramda';
|
|
14
|
-
import { u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
14
|
+
import { u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
15
15
|
import { useFormikContext } from 'formik';
|
|
16
16
|
import FormikEditor from '@bigbinary/neeto-editor/FormikEditor';
|
|
17
17
|
import Input from '@bigbinary/neetoui/formik/Input';
|
|
@@ -37,12 +37,12 @@ import * as yup from 'yup';
|
|
|
37
37
|
import '@tanstack/react-query';
|
|
38
38
|
import 'axios';
|
|
39
39
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
40
|
-
import './index-
|
|
40
|
+
import './index-CJXBMIZP.js';
|
|
41
41
|
import './query.js';
|
|
42
42
|
import '@bigbinary/neeto-molecules/MadeWith';
|
|
43
43
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
44
44
|
|
|
45
|
-
var css = ".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:.75rem 1rem}.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:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
45
|
+
var css = ".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:.75rem 1rem}.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:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
46
46
|
n(css,{});
|
|
47
47
|
|
|
48
48
|
var ResubmissionWarningModal = withT(function (_ref) {
|
package/dist/ShowThankYou.js
CHANGED
|
@@ -3,7 +3,7 @@ import NeetoUIPageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
|
3
3
|
import { B as BrandingInfo } from './BrandingInfo-CVoR92MO.js';
|
|
4
4
|
import { S as SocialShare, R as REDIRECT_DELAY, T as THANK_YOU_TEXT_ALIGNMENTS, F as FORM_OPTIONS } from './SocialShare-SyR23dOh.js';
|
|
5
5
|
import { VARIABLE_SPAN_REGEX, IS_PRO_ORGANIZATION } from './constants.js';
|
|
6
|
-
import { u as useShowThankYouPage } from './useThankYouPageApi-
|
|
6
|
+
import { u as useShowThankYouPage } from './useThankYouPageApi-Qu4dKbsj.js';
|
|
7
7
|
import DOMPurify from 'dompurify';
|
|
8
8
|
import { useTranslation, Trans } from 'react-i18next';
|
|
9
9
|
import { findBy, isPresent, filterNonNull } from '@bigbinary/neeto-cist';
|
|
@@ -17,7 +17,7 @@ import 'i18next';
|
|
|
17
17
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
18
18
|
import '@tanstack/react-query';
|
|
19
19
|
import 'axios';
|
|
20
|
-
import './index-
|
|
20
|
+
import './index-CJXBMIZP.js';
|
|
21
21
|
import './query.js';
|
|
22
22
|
|
|
23
23
|
var buildDraftUrl = function buildDraftUrl(url) {
|
|
@@ -13,7 +13,7 @@ var BlockNavigation = require('@bigbinary/neetoui/formik/BlockNavigation');
|
|
|
13
13
|
var NeetoUIForm = require('@bigbinary/neetoui/formik/Form');
|
|
14
14
|
var Radio = require('@bigbinary/neetoui/formik/Radio');
|
|
15
15
|
var ramda = require('ramda');
|
|
16
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
16
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
17
17
|
var formik = require('formik');
|
|
18
18
|
var FormikEditor = require('@bigbinary/neeto-editor/FormikEditor');
|
|
19
19
|
var Input = require('@bigbinary/neetoui/formik/Input');
|
|
@@ -39,7 +39,7 @@ var yup = require('yup');
|
|
|
39
39
|
require('@tanstack/react-query');
|
|
40
40
|
require('axios');
|
|
41
41
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
42
|
-
require('./index-
|
|
42
|
+
require('./index-Bp2NY-mY.js');
|
|
43
43
|
require('./query.js');
|
|
44
44
|
require('@bigbinary/neeto-molecules/MadeWith');
|
|
45
45
|
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
@@ -63,7 +63,7 @@ function _interopNamespaceDefault(e) {
|
|
|
63
63
|
|
|
64
64
|
var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
|
|
65
65
|
|
|
66
|
-
var css = ".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:.75rem 1rem}.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:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
66
|
+
var css = ".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:.75rem 1rem}.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:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
67
67
|
SocialShare.n(css,{});
|
|
68
68
|
|
|
69
69
|
var ResubmissionWarningModal = reactUtils.withT(function (_ref) {
|
package/dist/cjs/ShowThankYou.js
CHANGED
|
@@ -5,7 +5,7 @@ var NeetoUIPageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
|
5
5
|
var BrandingInfo = require('./BrandingInfo-quX3BPdQ.js');
|
|
6
6
|
var SocialShare = require('./SocialShare-BtTtwb5-.js');
|
|
7
7
|
var constants = require('./constants.js');
|
|
8
|
-
var useThankYouPageApi = require('./useThankYouPageApi-
|
|
8
|
+
var useThankYouPageApi = require('./useThankYouPageApi-DeHETkcA.js');
|
|
9
9
|
var DOMPurify = require('dompurify');
|
|
10
10
|
var reactI18next = require('react-i18next');
|
|
11
11
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
@@ -19,7 +19,7 @@ require('i18next');
|
|
|
19
19
|
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
20
20
|
require('@tanstack/react-query');
|
|
21
21
|
require('axios');
|
|
22
|
-
require('./index-
|
|
22
|
+
require('./index-Bp2NY-mY.js');
|
|
23
23
|
require('./query.js');
|
|
24
24
|
|
|
25
25
|
var buildDraftUrl = function buildDraftUrl(url) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var THANK_YOU_ENGINE_BASE_URL = "/
|
|
3
|
+
var THANK_YOU_ENGINE_BASE_URL = "/neeto_thank_you";
|
|
4
4
|
var THANK_YOU_CONFIGURATIONS_URL = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_configurations");
|
|
5
5
|
var THANK_YOU_CONFIGURATION_URL = "".concat(THANK_YOU_CONFIGURATIONS_URL, "/:id");
|
|
6
6
|
|
|
7
7
|
exports.THANK_YOU_CONFIGURATIONS_URL = THANK_YOU_CONFIGURATIONS_URL;
|
|
8
8
|
exports.THANK_YOU_CONFIGURATION_URL = THANK_YOU_CONFIGURATION_URL;
|
|
9
9
|
exports.THANK_YOU_ENGINE_BASE_URL = THANK_YOU_ENGINE_BASE_URL;
|
|
10
|
-
//# sourceMappingURL=index-
|
|
10
|
+
//# sourceMappingURL=index-Bp2NY-mY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Bp2NY-mY.js","sources":["../../app/javascript/src/constants/index.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you\";\n\nexport const THANK_YOU_CONFIGURATIONS_URL = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configurations`;\n\nexport const THANK_YOU_CONFIGURATION_URL = `${THANK_YOU_CONFIGURATIONS_URL}/:id`;\n"],"names":["THANK_YOU_ENGINE_BASE_URL","THANK_YOU_CONFIGURATIONS_URL","concat","THANK_YOU_CONFIGURATION_URL"],"mappings":";;AAAO,IAAMA,yBAAyB,GAAG;IAE5BC,4BAA4B,GAAA,EAAA,CAAAC,MAAA,CAAMF,yBAAyB,EAA2B,2BAAA;IAEtFG,2BAA2B,GAAA,EAAA,CAAAD,MAAA,CAAMD,4BAA4B,EAAM,MAAA;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var ConfigureThankYou = require('./ConfigureThankYou.js');
|
|
4
4
|
var ShowThankYou = require('./ShowThankYou.js');
|
|
5
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
6
|
-
var useThankYouPageApi = require('./useThankYouPageApi-
|
|
5
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
6
|
+
var useThankYouPageApi = require('./useThankYouPageApi-DeHETkcA.js');
|
|
7
7
|
var SocialShare = require('./SocialShare-BtTtwb5-.js');
|
|
8
8
|
require('@bigbinary/neeto-cist');
|
|
9
9
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -46,10 +46,10 @@ require('dompurify');
|
|
|
46
46
|
require('@tanstack/react-query');
|
|
47
47
|
require('axios');
|
|
48
48
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
49
|
-
require('./index-
|
|
49
|
+
require('./index-Bp2NY-mY.js');
|
|
50
50
|
require('./query.js');
|
|
51
51
|
|
|
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:.25rem;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:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.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__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__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-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.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:.75rem 1rem}.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:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
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:.25rem;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:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.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__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__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-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.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:.75rem 1rem}.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:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
53
53
|
SocialShare.n(css,{});
|
|
54
54
|
|
|
55
55
|
exports.ConfigureThankYou = ConfigureThankYou;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-Bp2NY-mY.js');
|
|
11
11
|
require('./query.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-Bp2NY-mY.js');
|
|
11
11
|
require('./query.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-Bp2NY-mY.js');
|
|
11
11
|
require('./query.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-Bp2NY-mY.js');
|
|
11
11
|
require('./query.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouPageApi = require('./useThankYouPageApi-
|
|
3
|
+
var useThankYouPageApi = require('./useThankYouPageApi-DeHETkcA.js');
|
|
4
4
|
require('@tanstack/react-query');
|
|
5
5
|
require('axios');
|
|
6
|
-
require('./index-
|
|
6
|
+
require('./index-Bp2NY-mY.js');
|
|
7
7
|
require('./query.js');
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/{useThankYouConfigurationApi-khbEl5wW.js → useThankYouConfigurationApi-CIRMlHep.js}
RENAMED
|
@@ -6,7 +6,7 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
6
6
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-Bp2NY-mY.js');
|
|
10
10
|
var query = require('./query.js');
|
|
11
11
|
|
|
12
12
|
var fetch = function fetch(entityId) {
|
|
@@ -118,4 +118,4 @@ exports.useDeleteThankYouConfiguration = useDeleteThankYouConfiguration;
|
|
|
118
118
|
exports.useFetchThankYouConfigurations = useFetchThankYouConfigurations;
|
|
119
119
|
exports.useShowThankYouConfiguration = useShowThankYouConfiguration;
|
|
120
120
|
exports.useUpdateThankYouConfiguration = useUpdateThankYouConfiguration;
|
|
121
|
-
//# sourceMappingURL=useThankYouConfigurationApi-
|
|
121
|
+
//# sourceMappingURL=useThankYouConfigurationApi-CIRMlHep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouConfigurationApi-
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-CIRMlHep.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,M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AA,CAAA;AAE1DO,IAAAA,gBAAgB,EAAE,CAACL,gBAAU,CAACC,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,sCAA2B,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,gBAAU,CAACC,uBAAuB,EAAE7B,QAAQ;GAC5DwB,EAAAA,OAAO,CAEd,CAAC;AAAA;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var reactQuery = require('@tanstack/react-query');
|
|
4
4
|
var axios = require('axios');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-Bp2NY-mY.js');
|
|
6
6
|
var query = require('./query.js');
|
|
7
7
|
|
|
8
8
|
var baseUrl = "".concat(index.THANK_YOU_ENGINE_BASE_URL, "/thank_you_page");
|
|
@@ -39,4 +39,4 @@ var useShowThankYouPage = function useShowThankYouPage(_ref) {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
exports.useShowThankYouPage = useShowThankYouPage;
|
|
42
|
-
//# sourceMappingURL=useThankYouPageApi-
|
|
42
|
+
//# sourceMappingURL=useThankYouPageApi-DeHETkcA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouPageApi-
|
|
1
|
+
{"version":3,"file":"useThankYouPageApi-DeHETkcA.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, resourceId, isTemplateView }) =>\n axios.get(baseUrl, { params: { entityId, resourceId, 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, resourceId, isTemplateView }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () =>\n thankYouPageApi.show({ entityId, resourceId, isTemplateView }),\n });\n"],"names":["baseUrl","concat","THANK_YOU_ENGINE_BASE_URL","show","_ref","entityId","resourceId","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;AAE7D,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAEC,cAAc,GAAAH,IAAA,CAAdG,cAAc;AAAA,EAAA,OAClDC,KAAK,CAACC,GAAG,CAACT,OAAO,EAAE;AAAEU,IAAAA,MAAM,EAAE;AAAEL,MAAAA,QAAQ,EAARA,QAAQ;AAAEC,MAAAA,UAAU,EAAVA,UAAU;AAAEC,MAAAA,cAAc,EAAdA;AAAe;AAAE,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAMI,eAAe,GAAG;AAAER,EAAAA,IAAI,EAAJA;AAAK,CAAC;;ICJnBS,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAR,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAEC,cAAc,GAAAH,IAAA,CAAdG,cAAc;AAAA,EAAA,OACxEM,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,gBAAU,CAACC,cAAc,EAAEX,QAAQ,CAAC;IAC/CY,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OACLN,eAAe,CAACR,IAAI,CAAC;AAAEE,QAAAA,QAAQ,EAARA,QAAQ;AAAEC,QAAAA,UAAU,EAAVA,UAAU;AAAEC,QAAAA,cAAc,EAAdA;AAAe,OAAC,CAAC;AAAA;AAClE,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-CIRMlHep.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-Bp2NY-mY.js');
|
|
11
11
|
require('./query.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var THANK_YOU_ENGINE_BASE_URL = "/
|
|
1
|
+
var THANK_YOU_ENGINE_BASE_URL = "/neeto_thank_you";
|
|
2
2
|
var THANK_YOU_CONFIGURATIONS_URL = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_configurations");
|
|
3
3
|
var THANK_YOU_CONFIGURATION_URL = "".concat(THANK_YOU_CONFIGURATIONS_URL, "/:id");
|
|
4
4
|
|
|
5
5
|
export { THANK_YOU_CONFIGURATIONS_URL as T, THANK_YOU_CONFIGURATION_URL as a, THANK_YOU_ENGINE_BASE_URL as b };
|
|
6
|
-
//# sourceMappingURL=index-
|
|
6
|
+
//# sourceMappingURL=index-CJXBMIZP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CJXBMIZP.js","sources":["../app/javascript/src/constants/index.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you\";\n\nexport const THANK_YOU_CONFIGURATIONS_URL = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configurations`;\n\nexport const THANK_YOU_CONFIGURATION_URL = `${THANK_YOU_CONFIGURATIONS_URL}/:id`;\n"],"names":["THANK_YOU_ENGINE_BASE_URL","THANK_YOU_CONFIGURATIONS_URL","concat","THANK_YOU_CONFIGURATION_URL"],"mappings":"AAAO,IAAMA,yBAAyB,GAAG;IAE5BC,4BAA4B,GAAA,EAAA,CAAAC,MAAA,CAAMF,yBAAyB,EAA2B,2BAAA;IAEtFG,2BAA2B,GAAA,EAAA,CAAAD,MAAA,CAAMD,4BAA4B,EAAM,MAAA;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as ConfigureThankYou } from './ConfigureThankYou.js';
|
|
2
2
|
export { default as ShowThankYou } from './ShowThankYou.js';
|
|
3
|
-
export { a as useCreateThankYouConfiguration, d as useDeleteThankYouConfiguration, u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
4
|
-
export { u as useShowThankYouPage } from './useThankYouPageApi-
|
|
3
|
+
export { a as useCreateThankYouConfiguration, d as useDeleteThankYouConfiguration, u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
4
|
+
export { u as useShowThankYouPage } from './useThankYouPageApi-Qu4dKbsj.js';
|
|
5
5
|
import { n } from './SocialShare-SyR23dOh.js';
|
|
6
6
|
import '@bigbinary/neeto-cist';
|
|
7
7
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -44,9 +44,9 @@ import 'dompurify';
|
|
|
44
44
|
import '@tanstack/react-query';
|
|
45
45
|
import 'axios';
|
|
46
46
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
47
|
-
import './index-
|
|
47
|
+
import './index-CJXBMIZP.js';
|
|
48
48
|
import './query.js';
|
|
49
49
|
|
|
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:.25rem;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:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.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__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__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-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.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:.75rem 1rem}.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:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
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:.25rem;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:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.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__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__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-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.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:.75rem 1rem}.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:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
51
51
|
n(css,{});
|
|
52
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as useCreateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { a as useCreateThankYouConfiguration } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CJXBMIZP.js';
|
|
9
9
|
import './query.js';
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as useDeleteThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { d as useDeleteThankYouConfiguration } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CJXBMIZP.js';
|
|
9
9
|
import './query.js';
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as useFetchThankYouConfigurations } from './useThankYouConfigurationApi-
|
|
1
|
+
import { u as useFetchThankYouConfigurations } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CJXBMIZP.js';
|
|
9
9
|
import './query.js';
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as useShowThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { b as useShowThankYouConfiguration } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CJXBMIZP.js';
|
|
9
9
|
import './query.js';
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useShowThankYouPage } from './useThankYouPageApi-
|
|
1
|
+
import { u as useShowThankYouPage } from './useThankYouPageApi-Qu4dKbsj.js';
|
|
2
2
|
import '@tanstack/react-query';
|
|
3
3
|
import 'axios';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-CJXBMIZP.js';
|
|
5
5
|
import './query.js';
|
|
6
6
|
|
|
7
7
|
|
package/dist/{useThankYouConfigurationApi-BiVg-jmY.js → useThankYouConfigurationApi-hprxzGah.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
4
4
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
7
|
-
import { T as THANK_YOU_CONFIGURATIONS_URL, a as THANK_YOU_CONFIGURATION_URL } from './index-
|
|
7
|
+
import { T as THANK_YOU_CONFIGURATIONS_URL, a as THANK_YOU_CONFIGURATION_URL } from './index-CJXBMIZP.js';
|
|
8
8
|
import { QUERY_KEYS } from './query.js';
|
|
9
9
|
|
|
10
10
|
var fetch = function fetch(entityId) {
|
|
@@ -112,4 +112,4 @@ var useDeleteThankYouConfiguration = function useDeleteThankYouConfiguration(ent
|
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
export { useCreateThankYouConfiguration as a, useShowThankYouConfiguration as b, useUpdateThankYouConfiguration as c, useDeleteThankYouConfiguration as d, useFetchThankYouConfigurations as u };
|
|
115
|
-
//# sourceMappingURL=useThankYouConfigurationApi-
|
|
115
|
+
//# sourceMappingURL=useThankYouConfigurationApi-hprxzGah.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouConfigurationApi-
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-hprxzGah.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,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,QAAQ,CAACC,4BAA4B,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,QAAQ,CAACQ,2BAA2B,EAAE;AAAEf,IAAAA,QAAQ,EAARA,QAAQ;AAAEc,IAAAA,EAAE,EAAFA;AAAG,GAAC,CAAC,CAAC;AAAA,CAAA;AAEpE,IAAME,MAAM,GAAG,SAATA,MAAMA,CAAAC,KAAA,EAAA;AAAA,EAAA,IAAMjB,QAAQ,GAAAiB,KAAA,CAARjB,QAAQ;IAAEc,EAAE,GAAAG,KAAA,CAAFH,EAAE;IAAEH,OAAO,GAAAM,KAAA,CAAPN,OAAO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OAAO,GAAAtB,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,OAC7D8B,2BAA2B,CACzB,UAAAf,KAAA,EAAA;AAAA,IAAA,IAAGjB,QAAQ,GAAAiB,KAAA,CAARjB,QAAQ;MAAEW,OAAO,GAAAM,KAAA,CAAPN,OAAO;IAAA,OAClBU,wBAAwB,CAACL,MAAM,CAAC;AAAEF,MAAAA,EAAE,EAAFA,EAAE;AAAEd,MAAAA,QAAQ,EAARA,QAAQ;AAAEW,MAAAA,OAAO,EAAPA;AAAQ,KAAC,CAAC;AAAA,GAAA,EAAAe,aAAA,CAAA;AAE1DO,IAAAA,gBAAgB,EAAE,CAACL,UAAU,CAACC,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,6 +1,6 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
|
-
import { b as THANK_YOU_ENGINE_BASE_URL } from './index-
|
|
3
|
+
import { b as THANK_YOU_ENGINE_BASE_URL } from './index-CJXBMIZP.js';
|
|
4
4
|
import { QUERY_KEYS } from './query.js';
|
|
5
5
|
|
|
6
6
|
var baseUrl = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_page");
|
|
@@ -37,4 +37,4 @@ var useShowThankYouPage = function useShowThankYouPage(_ref) {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export { useShowThankYouPage as u };
|
|
40
|
-
//# sourceMappingURL=useThankYouPageApi-
|
|
40
|
+
//# sourceMappingURL=useThankYouPageApi-Qu4dKbsj.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouPageApi-
|
|
1
|
+
{"version":3,"file":"useThankYouPageApi-Qu4dKbsj.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, resourceId, isTemplateView }) =>\n axios.get(baseUrl, { params: { entityId, resourceId, 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, resourceId, isTemplateView }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () =>\n thankYouPageApi.show({ entityId, resourceId, isTemplateView }),\n });\n"],"names":["baseUrl","concat","THANK_YOU_ENGINE_BASE_URL","show","_ref","entityId","resourceId","isTemplateView","axios","get","params","thankYouPageApi","useShowThankYouPage","useQuery","queryKey","QUERY_KEYS","THANK_YOU_PAGE","queryFn"],"mappings":";;;;;AAIA,IAAMA,OAAO,GAAA,EAAA,CAAAC,MAAA,CAAMC,yBAAyB,EAAiB,iBAAA,CAAA;AAE7D,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAEC,cAAc,GAAAH,IAAA,CAAdG,cAAc;AAAA,EAAA,OAClDC,KAAK,CAACC,GAAG,CAACT,OAAO,EAAE;AAAEU,IAAAA,MAAM,EAAE;AAAEL,MAAAA,QAAQ,EAARA,QAAQ;AAAEC,MAAAA,UAAU,EAAVA,UAAU;AAAEC,MAAAA,cAAc,EAAdA;AAAe;AAAE,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAMI,eAAe,GAAG;AAAER,EAAAA,IAAI,EAAJA;AAAK,CAAC;;ICJnBS,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAR,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAEC,cAAc,GAAAH,IAAA,CAAdG,cAAc;AAAA,EAAA,OACxEM,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,cAAc,EAAEX,QAAQ,CAAC;IAC/CY,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OACLN,eAAe,CAACR,IAAI,CAAC;AAAEE,QAAAA,QAAQ,EAARA,QAAQ;AAAEC,QAAAA,UAAU,EAAVA,UAAU;AAAEC,QAAAA,cAAc,EAAdA;AAAe,OAAC,CAAC;AAAA;AAClE,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-
|
|
1
|
+
import { c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-hprxzGah.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CJXBMIZP.js';
|
|
9
9
|
import './query.js';
|
|
10
10
|
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-thank-you-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
61
61
|
"@bigbinary/eslint-plugin-neeto": "1.7.6",
|
|
62
62
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
63
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
64
|
-
"@bigbinary/neeto-editor": "1.47.
|
|
63
|
+
"@bigbinary/neeto-commons-frontend": "4.13.75",
|
|
64
|
+
"@bigbinary/neeto-editor": "1.47.55",
|
|
65
65
|
"@bigbinary/neeto-filters-frontend": "4.3.24",
|
|
66
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
67
|
-
"@bigbinary/neeto-molecules": "4.0.
|
|
68
|
-
"@bigbinary/neetoui": "8.3.
|
|
66
|
+
"@bigbinary/neeto-icons": "1.20.60",
|
|
67
|
+
"@bigbinary/neeto-molecules": "4.0.74",
|
|
68
|
+
"@bigbinary/neetoui": "8.3.37",
|
|
69
69
|
"@emotion/is-prop-valid": "1.2.0",
|
|
70
70
|
"@faker-js/faker": "8.2.0",
|
|
71
71
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"antd": "5.22.0",
|
|
84
84
|
"assert": "^2.1.0",
|
|
85
85
|
"autoprefixer": "^10.4.5",
|
|
86
|
-
"axios": "1.
|
|
86
|
+
"axios": "1.12.0",
|
|
87
87
|
"babel-loader": "^8.2.5",
|
|
88
88
|
"babel-plugin-istanbul": "^6.1.1",
|
|
89
89
|
"babel-plugin-js-logger": "1.0.17",
|
|
@@ -173,19 +173,19 @@
|
|
|
173
173
|
"peerDependencies": {
|
|
174
174
|
"@babel/runtime": "7.26.10",
|
|
175
175
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
176
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
177
|
-
"@bigbinary/neeto-editor": "1.47.
|
|
176
|
+
"@bigbinary/neeto-commons-frontend": "4.13.75",
|
|
177
|
+
"@bigbinary/neeto-editor": "1.47.55",
|
|
178
178
|
"@bigbinary/neeto-filters-frontend": "4.3.24",
|
|
179
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
180
|
-
"@bigbinary/neeto-molecules": "4.0.
|
|
181
|
-
"@bigbinary/neetoui": "8.3.
|
|
179
|
+
"@bigbinary/neeto-icons": "1.20.60",
|
|
180
|
+
"@bigbinary/neeto-molecules": "4.0.74",
|
|
181
|
+
"@bigbinary/neetoui": "8.3.37",
|
|
182
182
|
"@honeybadger-io/js": "6.10.1",
|
|
183
183
|
"@honeybadger-io/react": "6.1.25",
|
|
184
184
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
185
185
|
"@tanstack/react-query": "5.59.20",
|
|
186
186
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
187
187
|
"antd": "5.22.0",
|
|
188
|
-
"axios": "1.
|
|
188
|
+
"axios": "1.12.0",
|
|
189
189
|
"buffer": "^6.0.3",
|
|
190
190
|
"classnames": "2.5.1",
|
|
191
191
|
"crypto-browserify": "3.12.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-BeYCcFRQ.js","sources":["../../app/javascript/src/constants/index.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you_engine\";\n\nexport const THANK_YOU_CONFIGURATIONS_URL = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configurations`;\n\nexport const THANK_YOU_CONFIGURATION_URL = `${THANK_YOU_CONFIGURATIONS_URL}/:id`;\n"],"names":["THANK_YOU_ENGINE_BASE_URL","THANK_YOU_CONFIGURATIONS_URL","concat","THANK_YOU_CONFIGURATION_URL"],"mappings":";;AAAO,IAAMA,yBAAyB,GAAG;IAE5BC,4BAA4B,GAAA,EAAA,CAAAC,MAAA,CAAMF,yBAAyB,EAA2B,2BAAA;IAEtFG,2BAA2B,GAAA,EAAA,CAAAD,MAAA,CAAMD,4BAA4B,EAAM,MAAA;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-CGjGDIfp.js","sources":["../app/javascript/src/constants/index.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you_engine\";\n\nexport const THANK_YOU_CONFIGURATIONS_URL = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configurations`;\n\nexport const THANK_YOU_CONFIGURATION_URL = `${THANK_YOU_CONFIGURATIONS_URL}/:id`;\n"],"names":["THANK_YOU_ENGINE_BASE_URL","THANK_YOU_CONFIGURATIONS_URL","concat","THANK_YOU_CONFIGURATION_URL"],"mappings":"AAAO,IAAMA,yBAAyB,GAAG;IAE5BC,4BAA4B,GAAA,EAAA,CAAAC,MAAA,CAAMF,yBAAyB,EAA2B,2BAAA;IAEtFG,2BAA2B,GAAA,EAAA,CAAAD,MAAA,CAAMD,4BAA4B,EAAM,MAAA;;;;"}
|