@bigbinary/neeto-thank-you-frontend 2.1.47 → 2.2.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 +2 -2
- package/app/javascript/src/translations/de.json +1 -1
- package/app/javascript/src/translations/en.json +0 -16
- package/app/javascript/src/translations/es.json +1 -1
- package/app/javascript/src/translations/fr.json +1 -1
- package/dist/ConfigureThankYou.js +13 -59
- package/dist/ConfigureThankYou.js.map +1 -1
- package/dist/ShowThankYou.js +3 -10
- package/dist/ShowThankYou.js.map +1 -1
- package/dist/{SocialShare-DR_yGnQY.js → SocialShare-SyR23dOh.js} +2 -2
- package/dist/{SocialShare-DR_yGnQY.js.map → SocialShare-SyR23dOh.js.map} +1 -1
- package/dist/cjs/ConfigureThankYou.js +11 -57
- package/dist/cjs/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/ShowThankYou.js +3 -10
- package/dist/cjs/ShowThankYou.js.map +1 -1
- package/dist/cjs/{SocialShare-CCf5ewmX.js → SocialShare-BtTtwb5-.js} +2 -2
- package/dist/cjs/{SocialShare-CCf5ewmX.js.map → SocialShare-BtTtwb5-.js.map} +1 -1
- package/dist/cjs/index.js +4 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +11 -13
package/dist/cjs/ShowThankYou.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var classNames = require('classnames');
|
|
4
4
|
var NeetoUIPageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
5
5
|
var BrandingInfo = require('./BrandingInfo-quX3BPdQ.js');
|
|
6
|
-
var SocialShare = require('./SocialShare-
|
|
6
|
+
var SocialShare = require('./SocialShare-BtTtwb5-.js');
|
|
7
7
|
var constants = require('./constants.js');
|
|
8
8
|
var useThankYouPageApi = require('./useThankYouPageApi-DD3HwY6D.js');
|
|
9
9
|
var DOMPurify = require('dompurify');
|
|
10
|
-
var neetoCist = require('@bigbinary/neeto-cist');
|
|
11
10
|
var reactI18next = require('react-i18next');
|
|
11
|
+
var neetoCist = require('@bigbinary/neeto-cist');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
14
14
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -70,14 +70,7 @@ var CustomMessage = function CustomMessage(_ref) {
|
|
|
70
70
|
t = _useTranslation.t;
|
|
71
71
|
var message = substituteVariables(thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.message, editorProps.variables);
|
|
72
72
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
73
|
-
children: [
|
|
74
|
-
className: "neeto-thank-you-configuration__img",
|
|
75
|
-
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
76
|
-
alt: "",
|
|
77
|
-
"data-cy": "thank-you-page-image",
|
|
78
|
-
src: thankYouConfiguration.imageUrl
|
|
79
|
-
})
|
|
80
|
-
}), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.message) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
73
|
+
children: [(thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.message) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
81
74
|
className: "neeto-thank-you-configuration__description",
|
|
82
75
|
dangerouslySetInnerHTML: {
|
|
83
76
|
__html: sanitize$1(message)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowThankYou.js","sources":["../../app/javascript/src/components/ShowThankYou/utils.js","../../app/javascript/src/components/ShowThankYou/CustomMessage.jsx","../../app/javascript/src/components/ShowThankYou/ExternalLink.jsx","../../app/javascript/src/components/ShowThankYou/index.jsx"],"sourcesContent":["import DOMPurify from \"dompurify\";\nimport { findBy } from \"neetocist\";\n\nimport { VARIABLE_SPAN_REGEX } from \"components/constants\";\n\nexport const buildDraftUrl = url => `${url}?draftPreview=true`;\n\nexport const getSafeURL = url => {\n try {\n const parsed = new URL(url);\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n return undefined;\n }\n\n return DOMPurify.sanitize(url);\n } catch {\n return undefined;\n }\n};\n\nexport const substituteVariables = (highlightedContent = \"\", variables = []) =>\n highlightedContent.replace(VARIABLE_SPAN_REGEX, (matchedSpan, dataLabel) => {\n const dataLabelSplitted = dataLabel.split(\".\");\n\n if (dataLabelSplitted.length > 1) {\n const category = findBy({ category: dataLabelSplitted[0] }, variables);\n const variable = findBy(\n { key: dataLabelSplitted[1] },\n category?.variables || []\n );\n\n return variable?.value ? variable.value : matchedSpan;\n }\n\n const variable = findBy({ key: dataLabelSplitted[0] }, variables);\n\n return variable?.value ? variable.value : matchedSpan;\n });\n","import DOMPurify from \"dompurify\";\nimport { isPresent } from \"neetocist\";\nimport { useTranslation } from \"react-i18next\";\n\nimport SocialShare from \"components/ConfigureThankYou/Customize/SocialShare\";\n\nimport { buildDraftUrl, substituteVariables } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst CustomMessage = ({\n isDraftPreview,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouConfiguration,\n editorProps,\n}) => {\n const { t } = useTranslation();\n\n const message = substituteVariables(\n thankYouConfiguration?.message,\n editorProps.variables\n );\n\n return (\n <>\n {isPresent(thankYouConfiguration?.imageUrl) && (\n <div className=\"neeto-thank-you-configuration__img\">\n <img\n alt=\"\"\n data-cy=\"thank-you-page-image\"\n src={thankYouConfiguration.imageUrl}\n />\n </div>\n )}\n {thankYouConfiguration?.message && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n dangerouslySetInnerHTML={{ __html: sanitize(message) }}\n data-cy=\"thank-you-page-message\"\n />\n )}\n {thankYouConfiguration?.showResubmitLink && (\n <a\n className=\"neeto-thank-you-configuration__resubmit\"\n data-cy=\"thank-you-page-resubmit-link\"\n href={isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink}\n >\n {thankYouConfiguration?.resubmitLinkText ??\n t(\"neetoThankYou.common.resubmit\")}\n </a>\n )}\n {thankYouConfiguration?.socialSharingEnabled && (\n <SocialShare {...{ publicLinkId, socialHandles }} />\n )}\n {isDraftPreview && (\n <p className=\"neeto-thank-you-configuration__draft-preview-message\">\n {t(\"neetoThankYou.thankYou.draftVersionForm\")}\n </p>\n )}\n </>\n );\n};\n\nexport default CustomMessage;\n","import { useEffect, useState } from \"react\";\n\nimport DOMPurify from \"dompurify\";\nimport { isPresent, filterNonNull } from \"neetocist\";\nimport { dec, toPairs } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { REDIRECT_DELAY } from \"components/commons/constants\";\n\nimport { getSafeURL, substituteVariables } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst ExternalLink = ({\n thankYouConfiguration = {},\n editorProps,\n enableTopLevelRedirect,\n eventDetails,\n}) => {\n const [countdown, setCountdown] = useState(REDIRECT_DELAY);\n const [isUnableToRedirect, setIsUnableToRedirect] = useState(false);\n\n const { t } = useTranslation();\n\n const {\n redirectUrl = \"\",\n redirectMessage = \"\",\n passEventDetailsToRedirectUrl = false,\n } = thankYouConfiguration;\n const message = substituteVariables(redirectMessage, editorProps.variables);\n const redirectFailureAnchorProps = enableTopLevelRedirect\n ? { target: \"_top\" }\n : {};\n\n useEffect(() => {\n if (countdown === 0) {\n try {\n const redirectUrlWithParams = new URL(redirectUrl);\n\n if (passEventDetailsToRedirectUrl && isPresent(eventDetails)) {\n toPairs(filterNonNull(eventDetails)).forEach(([key, value]) => {\n redirectUrlWithParams.searchParams.set(key, value);\n });\n }\n\n const redirectTarget = enableTopLevelRedirect\n ? window.top.location\n : window.location;\n\n redirectTarget.href = getSafeURL(redirectUrlWithParams.toString());\n } catch {\n setIsUnableToRedirect(true);\n }\n\n return undefined;\n }\n\n const timer = setInterval(() => {\n setCountdown(dec);\n }, 1000);\n\n return () => clearInterval(timer);\n }, [countdown, redirectUrl]);\n\n return (\n <>\n {redirectMessage && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n dangerouslySetInnerHTML={{ __html: sanitize(message) }}\n data-cy=\"thank-you-page-message\"\n />\n )}\n {isUnableToRedirect && (\n <p className=\"neeto-thank-you-configuration__redirect-failure-message\">\n <Trans\n i18nKey=\"neetoThankYou.thankYou.redirect_failure_message\"\n components={{\n Link: <a href={redirectUrl} {...redirectFailureAnchorProps} />,\n }}\n />\n </p>\n )}\n {!isUnableToRedirect && countdown > 0 && (\n <p className=\"neeto-thank-you-configuration__redirect-message\">\n {t(\"neetoThankYou.thankYou.redirecting_in_seconds_message\", {\n seconds: countdown,\n })}\n </p>\n )}\n </>\n );\n};\n\nexport default ExternalLink;\n","import classNames from \"classnames\";\nimport NeetoUIPageLoader from \"neetomolecules/PageLoader\";\n\nimport BrandingInfo from \"components/commons/BrandingInfo\";\nimport {\n FORM_OPTIONS,\n THANK_YOU_TEXT_ALIGNMENTS,\n} from \"components/commons/constants\";\nimport { IS_PRO_ORGANIZATION } from \"components/constants\";\nimport { useShowThankYouPage } from \"hooks/reactQuery/useThankYouPageApi\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/layout/_thank-you.scss\";\n\nimport CustomMessage from \"./CustomMessage\";\nimport ExternalLink from \"./ExternalLink\";\n\nconst DefaultPageLoader = () => (\n <div className=\"neeto-thank-you-configuration\">\n <NeetoUIPageLoader />\n </div>\n);\n\nconst ShowThankYou = ({\n entityId,\n isDraftPreview,\n resubmitLink,\n socialHandles,\n isThankYouPageLoading,\n publicLinkId,\n appName,\n appIcon,\n customPageLoader: CustomPageLoader,\n thankYouTextAlignment = THANK_YOU_TEXT_ALIGNMENTS.center,\n editorProps = {},\n enableTopLevelRedirect = false,\n eventDetails = {},\n}) => {\n const { data: { thankYouConfiguration } = {}, isFetching } =\n useShowThankYouPage({ entityId });\n\n const PageLoader = CustomPageLoader || DefaultPageLoader;\n\n if (isFetching && isThankYouPageLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"neeto-thank-you-configuration\">\n <main\n className={classNames(\"neeto-thank-you-configuration__main\", {\n \"neeto-thank-you-configuration-alignment--left\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.left,\n \"neeto-thank-you-configuration-alignment--center\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.center,\n })}\n >\n <div\n className=\"neeto-thank-you-configuration__box\"\n data-cy=\"thank-you-page-content\"\n >\n {thankYouConfiguration?.kind === FORM_OPTIONS.customize.kind ? (\n <CustomMessage\n {...{\n editorProps,\n isDraftPreview,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouConfiguration,\n }}\n />\n ) : (\n <ExternalLink\n {...{\n editorProps,\n enableTopLevelRedirect,\n eventDetails,\n thankYouConfiguration,\n }}\n />\n )}\n </div>\n </main>\n {!IS_PRO_ORGANIZATION && thankYouConfiguration?.brandingEnabled && (\n <BrandingInfo {...{ appIcon, appName }} />\n )}\n </div>\n );\n};\n\nexport default ShowThankYou;\n"],"names":["buildDraftUrl","url","concat","getSafeURL","parsed","URL","protocol","undefined","DOMPurify","sanitize","_unused","substituteVariables","highlightedContent","arguments","length","variables","replace","VARIABLE_SPAN_REGEX","matchedSpan","dataLabel","dataLabelSplitted","split","category","findBy","variable","key","value","CustomMessage","_ref","_thankYouConfiguratio","isDraftPreview","publicLinkId","resubmitLink","socialHandles","thankYouConfiguration","editorProps","_useTranslation","useTranslation","t","message","_jsxs","_Fragment","children","isPresent","imageUrl","_jsx","className","alt","src","dangerouslySetInnerHTML","__html","showResubmitLink","href","resubmitLinkText","socialSharingEnabled","SocialShare","ExternalLink","_ref$thankYouConfigur","enableTopLevelRedirect","eventDetails","_useState","useState","REDIRECT_DELAY","_useState2","_slicedToArray","countdown","setCountdown","_useState3","_useState4","isUnableToRedirect","setIsUnableToRedirect","redirectUrl","_thankYouConfiguratio2","redirectMessage","_thankYouConfiguratio3","passEventDetailsToRedirectUrl","redirectFailureAnchorProps","target","useEffect","redirectUrlWithParams","toPairs","filterNonNull","forEach","_ref2","_ref3","searchParams","set","redirectTarget","window","top","location","toString","timer","setInterval","dec","clearInterval","Trans","i18nKey","components","Link","_objectSpread","seconds","DefaultPageLoader","NeetoUIPageLoader","ShowThankYou","entityId","isThankYouPageLoading","appName","appIcon","CustomPageLoader","customPageLoader","_ref$thankYouTextAlig","thankYouTextAlignment","THANK_YOU_TEXT_ALIGNMENTS","center","_ref$editorProps","_ref$enableTopLevelRe","_ref$eventDetails","_useShowThankYouPage","useShowThankYouPage","_useShowThankYouPage$","data","_useShowThankYouPage$2","isFetching","PageLoader","classNames","left","kind","FORM_OPTIONS","customize","IS_PRO_ORGANIZATION","brandingEnabled","BrandingInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAKO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,GAAG,EAAA;EAAA,OAAAC,EAAAA,CAAAA,MAAA,CAAOD,GAAG,EAAA,oBAAA,CAAA;AAAA,CAAoB;AAEvD,IAAME,UAAU,GAAG,SAAbA,UAAUA,CAAGF,GAAG,EAAI;EAC/B,IAAI;AACF,IAAA,IAAMG,MAAM,GAAG,IAAIC,GAAG,CAACJ,GAAG,CAAC;IAC3B,IAAIG,MAAM,CAACE,QAAQ,KAAK,QAAQ,IAAIF,MAAM,CAACE,QAAQ,KAAK,OAAO,EAAE;AAC/D,MAAA,OAAOC,SAAS;AAClB;AAEA,IAAA,OAAOC,SAAS,CAACC,QAAQ,CAACR,GAAG,CAAC;GAC/B,CAAC,OAAAS,OAAA,EAAM;AACN,IAAA,OAAOH,SAAS;AAClB;AACF,CAAC;AAEM,IAAMI,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,IAAIC,kBAAkB,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAN,SAAA,GAAAM,SAAA,CAAA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AAAA,cAAA,CAACuF,yBAAY,EAAA;AAAOxB,MAAAA,OAAO,EAAPA,OAAO;AAAED,MAAAA,OAAO,EAAPA;AAAO,KAAK,CAC1C;AAAA,GACE,CAAC;AAEV;;;;"}
|
|
1
|
+
{"version":3,"file":"ShowThankYou.js","sources":["../../app/javascript/src/components/ShowThankYou/utils.js","../../app/javascript/src/components/ShowThankYou/CustomMessage.jsx","../../app/javascript/src/components/ShowThankYou/ExternalLink.jsx","../../app/javascript/src/components/ShowThankYou/index.jsx"],"sourcesContent":["import DOMPurify from \"dompurify\";\nimport { findBy } from \"neetocist\";\n\nimport { VARIABLE_SPAN_REGEX } from \"components/constants\";\n\nexport const buildDraftUrl = url => `${url}?draftPreview=true`;\n\nexport const getSafeURL = url => {\n try {\n const parsed = new URL(url);\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n return undefined;\n }\n\n return DOMPurify.sanitize(url);\n } catch {\n return undefined;\n }\n};\n\nexport const substituteVariables = (highlightedContent = \"\", variables = []) =>\n highlightedContent.replace(VARIABLE_SPAN_REGEX, (matchedSpan, dataLabel) => {\n const dataLabelSplitted = dataLabel.split(\".\");\n\n if (dataLabelSplitted.length > 1) {\n const category = findBy({ category: dataLabelSplitted[0] }, variables);\n const variable = findBy(\n { key: dataLabelSplitted[1] },\n category?.variables || []\n );\n\n return variable?.value ? variable.value : matchedSpan;\n }\n\n const variable = findBy({ key: dataLabelSplitted[0] }, variables);\n\n return variable?.value ? variable.value : matchedSpan;\n });\n","import DOMPurify from \"dompurify\";\nimport { useTranslation } from \"react-i18next\";\n\nimport SocialShare from \"components/ConfigureThankYou/Customize/SocialShare\";\n\nimport { buildDraftUrl, substituteVariables } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst CustomMessage = ({\n isDraftPreview,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouConfiguration,\n editorProps,\n}) => {\n const { t } = useTranslation();\n\n const message = substituteVariables(\n thankYouConfiguration?.message,\n editorProps.variables\n );\n\n return (\n <>\n {thankYouConfiguration?.message && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n dangerouslySetInnerHTML={{ __html: sanitize(message) }}\n data-cy=\"thank-you-page-message\"\n />\n )}\n {thankYouConfiguration?.showResubmitLink && (\n <a\n className=\"neeto-thank-you-configuration__resubmit\"\n data-cy=\"thank-you-page-resubmit-link\"\n href={isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink}\n >\n {thankYouConfiguration?.resubmitLinkText ??\n t(\"neetoThankYou.common.resubmit\")}\n </a>\n )}\n {thankYouConfiguration?.socialSharingEnabled && (\n <SocialShare {...{ publicLinkId, socialHandles }} />\n )}\n {isDraftPreview && (\n <p className=\"neeto-thank-you-configuration__draft-preview-message\">\n {t(\"neetoThankYou.thankYou.draftVersionForm\")}\n </p>\n )}\n </>\n );\n};\n\nexport default CustomMessage;\n","import { useEffect, useState } from \"react\";\n\nimport DOMPurify from \"dompurify\";\nimport { isPresent, filterNonNull } from \"neetocist\";\nimport { dec, toPairs } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { REDIRECT_DELAY } from \"components/commons/constants\";\n\nimport { getSafeURL, substituteVariables } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst ExternalLink = ({\n thankYouConfiguration = {},\n editorProps,\n enableTopLevelRedirect,\n eventDetails,\n}) => {\n const [countdown, setCountdown] = useState(REDIRECT_DELAY);\n const [isUnableToRedirect, setIsUnableToRedirect] = useState(false);\n\n const { t } = useTranslation();\n\n const {\n redirectUrl = \"\",\n redirectMessage = \"\",\n passEventDetailsToRedirectUrl = false,\n } = thankYouConfiguration;\n const message = substituteVariables(redirectMessage, editorProps.variables);\n const redirectFailureAnchorProps = enableTopLevelRedirect\n ? { target: \"_top\" }\n : {};\n\n useEffect(() => {\n if (countdown === 0) {\n try {\n const redirectUrlWithParams = new URL(redirectUrl);\n\n if (passEventDetailsToRedirectUrl && isPresent(eventDetails)) {\n toPairs(filterNonNull(eventDetails)).forEach(([key, value]) => {\n redirectUrlWithParams.searchParams.set(key, value);\n });\n }\n\n const redirectTarget = enableTopLevelRedirect\n ? window.top.location\n : window.location;\n\n redirectTarget.href = getSafeURL(redirectUrlWithParams.toString());\n } catch {\n setIsUnableToRedirect(true);\n }\n\n return undefined;\n }\n\n const timer = setInterval(() => {\n setCountdown(dec);\n }, 1000);\n\n return () => clearInterval(timer);\n }, [countdown, redirectUrl]);\n\n return (\n <>\n {redirectMessage && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n dangerouslySetInnerHTML={{ __html: sanitize(message) }}\n data-cy=\"thank-you-page-message\"\n />\n )}\n {isUnableToRedirect && (\n <p className=\"neeto-thank-you-configuration__redirect-failure-message\">\n <Trans\n i18nKey=\"neetoThankYou.thankYou.redirect_failure_message\"\n components={{\n Link: <a href={redirectUrl} {...redirectFailureAnchorProps} />,\n }}\n />\n </p>\n )}\n {!isUnableToRedirect && countdown > 0 && (\n <p className=\"neeto-thank-you-configuration__redirect-message\">\n {t(\"neetoThankYou.thankYou.redirecting_in_seconds_message\", {\n seconds: countdown,\n })}\n </p>\n )}\n </>\n );\n};\n\nexport default ExternalLink;\n","import classNames from \"classnames\";\nimport NeetoUIPageLoader from \"neetomolecules/PageLoader\";\n\nimport BrandingInfo from \"components/commons/BrandingInfo\";\nimport {\n FORM_OPTIONS,\n THANK_YOU_TEXT_ALIGNMENTS,\n} from \"components/commons/constants\";\nimport { IS_PRO_ORGANIZATION } from \"components/constants\";\nimport { useShowThankYouPage } from \"hooks/reactQuery/useThankYouPageApi\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/layout/_thank-you.scss\";\n\nimport CustomMessage from \"./CustomMessage\";\nimport ExternalLink from \"./ExternalLink\";\n\nconst DefaultPageLoader = () => (\n <div className=\"neeto-thank-you-configuration\">\n <NeetoUIPageLoader />\n </div>\n);\n\nconst ShowThankYou = ({\n entityId,\n isDraftPreview,\n resubmitLink,\n socialHandles,\n isThankYouPageLoading,\n publicLinkId,\n appName,\n appIcon,\n customPageLoader: CustomPageLoader,\n thankYouTextAlignment = THANK_YOU_TEXT_ALIGNMENTS.center,\n editorProps = {},\n enableTopLevelRedirect = false,\n eventDetails = {},\n}) => {\n const { data: { thankYouConfiguration } = {}, isFetching } =\n useShowThankYouPage({ entityId });\n\n const PageLoader = CustomPageLoader || DefaultPageLoader;\n\n if (isFetching && isThankYouPageLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"neeto-thank-you-configuration\">\n <main\n className={classNames(\"neeto-thank-you-configuration__main\", {\n \"neeto-thank-you-configuration-alignment--left\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.left,\n \"neeto-thank-you-configuration-alignment--center\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.center,\n })}\n >\n <div\n className=\"neeto-thank-you-configuration__box\"\n data-cy=\"thank-you-page-content\"\n >\n {thankYouConfiguration?.kind === FORM_OPTIONS.customize.kind ? (\n <CustomMessage\n {...{\n editorProps,\n isDraftPreview,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouConfiguration,\n }}\n />\n ) : (\n <ExternalLink\n {...{\n editorProps,\n enableTopLevelRedirect,\n eventDetails,\n thankYouConfiguration,\n }}\n />\n )}\n </div>\n </main>\n {!IS_PRO_ORGANIZATION && thankYouConfiguration?.brandingEnabled && (\n <BrandingInfo {...{ appIcon, appName }} />\n )}\n </div>\n );\n};\n\nexport default ShowThankYou;\n"],"names":["buildDraftUrl","url","concat","getSafeURL","parsed","URL","protocol","undefined","DOMPurify","sanitize","_unused","substituteVariables","highlightedContent","arguments","length","variables","replace","VARIABLE_SPAN_REGEX","matchedSpan","dataLabel","dataLabelSplitted","split","category","findBy","variable","key","value","CustomMessage","_ref","_thankYouConfiguratio","isDraftPreview","publicLinkId","resubmitLink","socialHandles","thankYouConfiguration","editorProps","_useTranslation","useTranslation","t","message","_jsxs","_Fragment","children","_jsx","className","dangerouslySetInnerHTML","__html","showResubmitLink","href","resubmitLinkText","socialSharingEnabled","SocialShare","ExternalLink","_ref$thankYouConfigur","enableTopLevelRedirect","eventDetails","_useState","useState","REDIRECT_DELAY","_useState2","_slicedToArray","countdown","setCountdown","_useState3","_useState4","isUnableToRedirect","setIsUnableToRedirect","redirectUrl","_thankYouConfiguratio2","redirectMessage","_thankYouConfiguratio3","passEventDetailsToRedirectUrl","redirectFailureAnchorProps","target","useEffect","redirectUrlWithParams","isPresent","toPairs","filterNonNull","forEach","_ref2","_ref3","searchParams","set","redirectTarget","window","top","location","toString","timer","setInterval","dec","clearInterval","Trans","i18nKey","components","Link","_objectSpread","seconds","DefaultPageLoader","NeetoUIPageLoader","ShowThankYou","entityId","isThankYouPageLoading","appName","appIcon","CustomPageLoader","customPageLoader","_ref$thankYouTextAlig","thankYouTextAlignment","THANK_YOU_TEXT_ALIGNMENTS","center","_ref$editorProps","_ref$enableTopLevelRe","_ref$eventDetails","_useShowThankYouPage","useShowThankYouPage","_useShowThankYouPage$","data","_useShowThankYouPage$2","isFetching","PageLoader","classNames","left","kind","FORM_OPTIONS","customize","IS_PRO_ORGANIZATION","brandingEnabled","BrandingInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAKO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,GAAG,EAAA;EAAA,OAAAC,EAAAA,CAAAA,MAAA,CAAOD,GAAG,EAAA,oBAAA,CAAA;AAAA,CAAoB;AAEvD,IAAME,UAAU,GAAG,SAAbA,UAAUA,CAAGF,GAAG,EAAI;EAC/B,IAAI;AACF,IAAA,IAAMG,MAAM,GAAG,IAAIC,GAAG,CAACJ,GAAG,CAAC;IAC3B,IAAIG,MAAM,CAACE,QAAQ,KAAK,QAAQ,IAAIF,MAAM,CAACE,QAAQ,KAAK,OAAO,EAAE;AAC/D,MAAA,OAAOC,SAAS;AAClB;AAEA,IAAA,OAAOC,SAAS,CAACC,QAAQ,CAACR,GAAG,CAAC;GAC/B,CAAC,OAAAS,OAAA,EAA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e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
30
30
|
|
|
31
|
-
var css = ".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-
|
|
31
|
+
var css = ".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}";
|
|
32
32
|
n(css,{});
|
|
33
33
|
|
|
34
34
|
var SocialShare = function SocialShare(_ref) {
|
|
@@ -66,4 +66,4 @@ exports.SocialShare = SocialShare;
|
|
|
66
66
|
exports.THANK_YOU_KINDS = THANK_YOU_KINDS;
|
|
67
67
|
exports.THANK_YOU_TEXT_ALIGNMENTS = THANK_YOU_TEXT_ALIGNMENTS;
|
|
68
68
|
exports.n = n;
|
|
69
|
-
//# sourceMappingURL=SocialShare-
|
|
69
|
+
//# sourceMappingURL=SocialShare-BtTtwb5-.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialShare-
|
|
1
|
+
{"version":3,"file":"SocialShare-BtTtwb5-.js","sources":["../../app/javascript/src/components/commons/constants.js","../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nexport const THANK_YOU_KINDS = {\n CUSTOM_MESSAGE: \"custom_message\",\n REDIRECT_TO_URL: \"redirect_to_url\",\n};\n\nexport const FORM_OPTIONS = {\n customize: {\n label: t(\"neetoThankYou.thankYou.customize\"),\n description: t(\"neetoThankYou.thankYou.customizeDescription\"),\n kind: THANK_YOU_KINDS.CUSTOM_MESSAGE,\n },\n externalLink: {\n label: t(\"neetoThankYou.thankYou.externalLink\"),\n description: t(\"neetoThankYou.thankYou.externalLinkDescription\"),\n kind: THANK_YOU_KINDS.REDIRECT_TO_URL,\n },\n};\n\nexport const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n\nexport const REDIRECT_DELAY = 5;\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { useTranslation } from \"react-i18next\";\n\nconst SocialShare = ({ socialHandles, publicLinkId }) => {\n const { t } = useTranslation();\n\n return (\n <div className=\"neeto-thank-you-configuration__social-share\">\n <h3 className=\"neeto-thank-you-configuration__social-share-title\">\n {t(\"neetoThankYou.thankYou.socialShareHeading\")}\n </h3>\n <div className=\"neeto-thank-you-configuration-social-follow\">\n {socialHandles?.map((data, idx) => {\n const { icon: Icon, generateShareUrl } = data;\n\n return (\n <div\n className=\"neeto-thank-you-configuration-social-follow__item\"\n key={idx}\n >\n <a\n href={generateShareUrl(publicLinkId)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon />\n </a>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default SocialShare;\n"],"names":["THANK_YOU_KINDS","CUSTOM_MESSAGE","REDIRECT_TO_URL","FORM_OPTIONS","customize","label","t","description","kind","externalLink","THANK_YOU_TEXT_ALIGNMENTS","left","center","REDIRECT_DELAY","SocialShare","_ref","socialHandles","publicLinkId","_useTranslation","useTranslation","_jsxs","className","children","_jsx","map","data","idx","Icon","icon","generateShareUrl","href","rel","target"],"mappings":";;;;;;AAEO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,cAAc,EAAE,gBAAgB;AAChCC,EAAAA,eAAe,EAAE;AACnB;AAEO,IAAMC,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,KAAK,EAAEC,SAAC,CAAC,kCAAkC,CAAC;AAC5CC,IAAAA,WAAW,EAAED,SAAC,CAAC,6CAA6C,CAAC;IAC7DE,IAAI,EAAER,eAAe,CAACC;GACvB;AACDQ,EAAAA,YAAY,EAAE;AACZJ,IAAAA,KAAK,EAAEC,SAAC,CAAC,qCAAqC,CAAC;AAC/CC,IAAAA,WAAW,EAAED,SAAC,CAAC,gDAAgD,CAAC;IAChEE,IAAI,EAAER,eAAe,CAACE;AACxB;AACF;AAEO,IAAMQ,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE;AACV;AAEO,IAAMC,cAAc,GAAG;;ACzB9B,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,C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AED,gBAAgB,CAACZ,YAAY,CAAE;AACrCc,YAAAA,GAAG,EAAC,YAAY;AAChBC,YAAAA,MAAM,EAAC,QAAQ;AAAAV,YAAAA,QAAA,eAEfC,cAAA,CAACI,IAAI,EAAE,EAAA;WACN;AAAC,SAAA,EARCD,GASF,CAAC;OAET;AAAC,KACC,CAAC;AAAA,GACH,CAAC;AAEV;;;;;;;;;","x_google_ignoreList":[1]}
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var ConfigureThankYou = require('./ConfigureThankYou.js');
|
|
|
4
4
|
var ShowThankYou = require('./ShowThankYou.js');
|
|
5
5
|
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
|
|
6
6
|
var useThankYouPageApi = require('./useThankYouPageApi-DD3HwY6D.js');
|
|
7
|
-
var SocialShare = require('./SocialShare-
|
|
7
|
+
var SocialShare = require('./SocialShare-BtTtwb5-.js');
|
|
8
8
|
require('@bigbinary/neeto-cist');
|
|
9
9
|
require('@babel/runtime/helpers/defineProperty');
|
|
10
10
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -19,16 +19,14 @@ require('@bigbinary/neetoui/formik/Radio');
|
|
|
19
19
|
require('ramda');
|
|
20
20
|
require('formik');
|
|
21
21
|
require('@bigbinary/neeto-editor/FormikEditor');
|
|
22
|
-
require('@bigbinary/neetoui/Label');
|
|
23
22
|
require('@bigbinary/neetoui/formik/Input');
|
|
24
23
|
require('@bigbinary/neetoui/formik/Switch');
|
|
25
24
|
require('react-i18next');
|
|
26
|
-
require('@bigbinary/neeto-image-uploader-frontend/ImageUploader');
|
|
27
|
-
require('react/jsx-runtime');
|
|
28
25
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
29
26
|
require('@bigbinary/neetoui/Button');
|
|
30
27
|
require('@bigbinary/neetoui/Typography');
|
|
31
28
|
require('@bigbinary/neetoui/Modal');
|
|
29
|
+
require('react/jsx-runtime');
|
|
32
30
|
require('@bigbinary/neeto-molecules/BrowserPreview');
|
|
33
31
|
require('./BrandingInfo-quX3BPdQ.js');
|
|
34
32
|
require('@bigbinary/neeto-molecules/MadeWith');
|
|
@@ -38,6 +36,7 @@ require('@bigbinary/neeto-editor/EditorContent');
|
|
|
38
36
|
require('@bigbinary/neeto-icons/Link');
|
|
39
37
|
require('@bigbinary/neeto-molecules/HelpPopover');
|
|
40
38
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
39
|
+
require('@bigbinary/neetoui/Label');
|
|
41
40
|
require('@bigbinary/neeto-molecules/Header');
|
|
42
41
|
require('i18next');
|
|
43
42
|
require('@bigbinary/neeto-editor/utils');
|
|
@@ -50,7 +49,7 @@ require('@bigbinary/neeto-commons-frontend/utils');
|
|
|
50
49
|
require('./index-BeYCcFRQ.js');
|
|
51
50
|
require('./query.js');
|
|
52
51
|
|
|
53
|
-
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-
|
|
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))}";
|
|
54
53
|
SocialShare.n(css,{});
|
|
55
54
|
|
|
56
55
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { default as ConfigureThankYou } from './ConfigureThankYou.js';
|
|
|
2
2
|
export { default as ShowThankYou } from './ShowThankYou.js';
|
|
3
3
|
export { a as useCreateThankYouConfiguration, d as useDeleteThankYouConfiguration, u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
|
|
4
4
|
export { u as useShowThankYouPage } from './useThankYouPageApi-D61bhK5l.js';
|
|
5
|
-
import { n } from './SocialShare-
|
|
5
|
+
import { n } from './SocialShare-SyR23dOh.js';
|
|
6
6
|
import '@bigbinary/neeto-cist';
|
|
7
7
|
import '@babel/runtime/helpers/defineProperty';
|
|
8
8
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -17,16 +17,14 @@ import '@bigbinary/neetoui/formik/Radio';
|
|
|
17
17
|
import 'ramda';
|
|
18
18
|
import 'formik';
|
|
19
19
|
import '@bigbinary/neeto-editor/FormikEditor';
|
|
20
|
-
import '@bigbinary/neetoui/Label';
|
|
21
20
|
import '@bigbinary/neetoui/formik/Input';
|
|
22
21
|
import '@bigbinary/neetoui/formik/Switch';
|
|
23
22
|
import 'react-i18next';
|
|
24
|
-
import '@bigbinary/neeto-image-uploader-frontend/ImageUploader';
|
|
25
|
-
import 'react/jsx-runtime';
|
|
26
23
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
27
24
|
import '@bigbinary/neetoui/Button';
|
|
28
25
|
import '@bigbinary/neetoui/Typography';
|
|
29
26
|
import '@bigbinary/neetoui/Modal';
|
|
27
|
+
import 'react/jsx-runtime';
|
|
30
28
|
import '@bigbinary/neeto-molecules/BrowserPreview';
|
|
31
29
|
import './BrandingInfo-CVoR92MO.js';
|
|
32
30
|
import '@bigbinary/neeto-molecules/MadeWith';
|
|
@@ -36,6 +34,7 @@ import '@bigbinary/neeto-editor/EditorContent';
|
|
|
36
34
|
import '@bigbinary/neeto-icons/Link';
|
|
37
35
|
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
38
36
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
37
|
+
import '@bigbinary/neetoui/Label';
|
|
39
38
|
import '@bigbinary/neeto-molecules/Header';
|
|
40
39
|
import 'i18next';
|
|
41
40
|
import '@bigbinary/neeto-editor/utils';
|
|
@@ -48,6 +47,6 @@ import '@bigbinary/neeto-commons-frontend/utils';
|
|
|
48
47
|
import './index-CGjGDIfp.js';
|
|
49
48
|
import './query.js';
|
|
50
49
|
|
|
51
|
-
var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.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-
|
|
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))}";
|
|
52
51
|
n(css,{});
|
|
53
52
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-thank-you-frontend",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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,13 +60,12 @@
|
|
|
60
60
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
61
61
|
"@bigbinary/eslint-plugin-neeto": "1.6.4",
|
|
62
62
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
63
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
64
|
-
"@bigbinary/neeto-editor": "1.47.
|
|
65
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
63
|
+
"@bigbinary/neeto-commons-frontend": "4.13.47",
|
|
64
|
+
"@bigbinary/neeto-editor": "1.47.21",
|
|
65
|
+
"@bigbinary/neeto-filters-frontend": "4.3.23",
|
|
66
66
|
"@bigbinary/neeto-icons": "1.20.53",
|
|
67
|
-
"@bigbinary/neeto-
|
|
68
|
-
"@bigbinary/
|
|
69
|
-
"@bigbinary/neetoui": "8.3.13",
|
|
67
|
+
"@bigbinary/neeto-molecules": "3.16.84",
|
|
68
|
+
"@bigbinary/neetoui": "8.3.14",
|
|
70
69
|
"@emotion/is-prop-valid": "1.2.0",
|
|
71
70
|
"@faker-js/faker": "8.2.0",
|
|
72
71
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -173,13 +172,12 @@
|
|
|
173
172
|
"peerDependencies": {
|
|
174
173
|
"@babel/runtime": "7.26.10",
|
|
175
174
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
176
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
177
|
-
"@bigbinary/neeto-editor": "1.47.
|
|
178
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
175
|
+
"@bigbinary/neeto-commons-frontend": "4.13.47",
|
|
176
|
+
"@bigbinary/neeto-editor": "1.47.21",
|
|
177
|
+
"@bigbinary/neeto-filters-frontend": "4.3.23",
|
|
179
178
|
"@bigbinary/neeto-icons": "1.20.53",
|
|
180
|
-
"@bigbinary/neeto-
|
|
181
|
-
"@bigbinary/
|
|
182
|
-
"@bigbinary/neetoui": "8.3.13",
|
|
179
|
+
"@bigbinary/neeto-molecules": "3.16.84",
|
|
180
|
+
"@bigbinary/neetoui": "8.3.14",
|
|
183
181
|
"@honeybadger-io/js": "6.10.1",
|
|
184
182
|
"@honeybadger-io/react": "6.1.25",
|
|
185
183
|
"@tailwindcss/container-queries": "^0.1.1",
|