@saasquatch/mint-components 2.1.9-11 → 2.1.9-13
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +33 -20
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +7 -11
- package/dist/cjs/{sqm-partner-info-modal-view-98e2975d.js → sqm-partner-info-modal-view-2d6e89a4.js} +24 -21
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +23 -20
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +9 -14
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +1 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +42 -15
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_46.entry.js +29 -16
- package/dist/esm/sqm-email-verification_2.entry.js +7 -11
- package/dist/esm/{sqm-partner-info-modal-view-74328f70.js → sqm-partner-info-modal-view-f85b5a08.js} +24 -21
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-f85b5a08.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-05fb44b6.system.entry.js +1 -0
- package/dist/mint-components/p-1c413a06.system.js +1 -1
- package/dist/mint-components/{p-8d5db0d5.entry.js → p-44071410.entry.js} +9 -8
- package/dist/mint-components/{p-fa3d7e53.entry.js → p-526332c3.entry.js} +15 -15
- package/dist/mint-components/p-5a71d63c.js +1 -0
- package/dist/mint-components/{p-0a60980a.system.entry.js → p-65e4ba6f.system.entry.js} +1 -1
- package/dist/mint-components/p-67792584.system.js +1 -0
- package/dist/mint-components/p-bb86bb46.system.entry.js +1 -0
- package/dist/mint-components/{p-0a1669f8.entry.js → p-d111584d.entry.js} +1 -1
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +1 -1
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +2 -3
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
- package/dist/types/components.d.ts +14 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -360
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-widget-verification.entry.js +0 -356
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-74328f70.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-278897bd.system.entry.js +0 -1
- package/dist/mint-components/p-53f22cc0.system.entry.js +0 -1
- package/dist/mint-components/p-99b17bca.system.js +0 -1
- package/dist/mint-components/p-c68c2331.js +0 -1
- package/dist/mint-components/sqm-widget-verification.entry.js +0 -356
- package/dist/mint-components/sqm-widget-verification.system.entry.js +0 -1
|
@@ -6,10 +6,9 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { T as TextSpanView } from './sqm-text-span-view-738acfb3.js';
|
|
9
|
-
import { a as
|
|
9
|
+
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-f85b5a08.js';
|
|
10
10
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
|
|
11
11
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
12
|
-
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
13
12
|
import { u as useVerificationEmail } from './useVerificationEmail-cb3d51e3.js';
|
|
14
13
|
|
|
15
14
|
const UpsertUserEmailMutation = dist.gql `
|
|
@@ -427,6 +426,7 @@ const GET_USER_PARTNER_INFO = dist.gql `
|
|
|
427
426
|
impactConnection {
|
|
428
427
|
connected
|
|
429
428
|
publisher {
|
|
429
|
+
id
|
|
430
430
|
phoneNumber
|
|
431
431
|
phoneNumberCountryCode
|
|
432
432
|
countryCode
|
|
@@ -719,11 +719,10 @@ const PartnerInfoModal = class {
|
|
|
719
719
|
*/
|
|
720
720
|
this.missingFieldsErrorText = "Please select both a country and currency.";
|
|
721
721
|
/**
|
|
722
|
-
*
|
|
723
|
-
* Used when embedded inside another dialog (e.g. sqm-widget-verification).
|
|
722
|
+
* Used to render in another modal.
|
|
724
723
|
* @undocumented
|
|
725
724
|
*/
|
|
726
|
-
this.
|
|
725
|
+
this.inModal = false;
|
|
727
726
|
/**
|
|
728
727
|
* @undocumented
|
|
729
728
|
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
@@ -738,12 +737,11 @@ const PartnerInfoModal = class {
|
|
|
738
737
|
return getProps(this);
|
|
739
738
|
}
|
|
740
739
|
render() {
|
|
741
|
-
// AL: TODO add usePartnerInfoModal
|
|
742
740
|
const props = isDemo()
|
|
743
741
|
? useDemoPartnerInfoModal(this)
|
|
744
742
|
: usePartnerInfoModal(this);
|
|
745
|
-
if (this.
|
|
746
|
-
return h(
|
|
743
|
+
if (this.inModal) {
|
|
744
|
+
return h(PartnerInfoModalContentView, Object.assign({}, props));
|
|
747
745
|
}
|
|
748
746
|
return h(PartnerInfoModalView, Object.assign({}, props));
|
|
749
747
|
}
|
|
@@ -752,8 +750,6 @@ function useDemoPartnerInfoModal(props) {
|
|
|
752
750
|
const [countryCode, setCountryCode] = useState("US");
|
|
753
751
|
const [currency, setCurrency] = useState("");
|
|
754
752
|
const [error, setError] = useState("");
|
|
755
|
-
const parsed = parseStates(props.stateController);
|
|
756
|
-
const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
|
|
757
753
|
// @ts-ignore
|
|
758
754
|
return cjs({
|
|
759
755
|
states: {
|
|
@@ -808,7 +804,7 @@ function useDemoPartnerInfoModal(props) {
|
|
|
808
804
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
809
805
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
810
806
|
},
|
|
811
|
-
}, props.demoData ||
|
|
807
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
812
808
|
}
|
|
813
809
|
|
|
814
810
|
export { WidgetEmailVerification as sqm_email_verification, PartnerInfoModal as sqm_partner_info_modal };
|
package/dist/esm/{sqm-partner-info-modal-view-74328f70.js → sqm-partner-info-modal-view-f85b5a08.js}
RENAMED
|
@@ -6,11 +6,6 @@ const style = {
|
|
|
6
6
|
"&::part(panel)": {
|
|
7
7
|
maxWidth: "480px",
|
|
8
8
|
},
|
|
9
|
-
"&::part(title)": {
|
|
10
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
11
|
-
fontWeight: "600",
|
|
12
|
-
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
13
|
-
},
|
|
14
9
|
"&::part(body)": {
|
|
15
10
|
padding: "0 var(--sl-spacing-x-large)",
|
|
16
11
|
fontSize: "var(--sl-font-size-small)",
|
|
@@ -19,14 +14,17 @@ const style = {
|
|
|
19
14
|
"&::part(footer)": {
|
|
20
15
|
display: "flex",
|
|
21
16
|
flexDirection: "column",
|
|
22
|
-
|
|
17
|
+
padding: "0 var(--sl-spacing-large) var(--sl-spacing-large) var(--sl-spacing-large)",
|
|
23
18
|
},
|
|
24
19
|
"&::part(overlay)": {
|
|
25
20
|
background: "rgba(0, 0, 0, 0.5)",
|
|
26
21
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
},
|
|
23
|
+
DialogTitle: {
|
|
24
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
25
|
+
fontWeight: "600",
|
|
26
|
+
padding: "var(--sl-spacing-x-large) 0 0 0",
|
|
27
|
+
margin: "0",
|
|
30
28
|
},
|
|
31
29
|
FormFields: {
|
|
32
30
|
display: "flex",
|
|
@@ -53,22 +51,24 @@ const style = {
|
|
|
53
51
|
display: "flex",
|
|
54
52
|
flexDirection: "column",
|
|
55
53
|
gap: "var(--sl-spacing-medium)",
|
|
56
|
-
|
|
54
|
+
margin: "0",
|
|
57
55
|
"& > p": {
|
|
58
56
|
margin: "0",
|
|
59
57
|
},
|
|
60
58
|
},
|
|
59
|
+
SubmitButton: {
|
|
60
|
+
width: "100%",
|
|
61
|
+
marginTop: "var(--sl-spacing-small)",
|
|
62
|
+
},
|
|
61
63
|
};
|
|
62
|
-
function
|
|
64
|
+
function PartnerInfoModalContentView(props) {
|
|
63
65
|
var _a, _b;
|
|
64
66
|
const { states, callbacks, text } = props;
|
|
65
67
|
const sheet = createStyleSheet(style);
|
|
66
68
|
const styleString = sheet.toString();
|
|
67
|
-
const description = states.isExistingPartner ? (h("
|
|
69
|
+
const description = states.isExistingPartner ? (h("span", { class: sheet.classes.DescriptionContainer },
|
|
68
70
|
h("p", null, text.descriptionExistingPartner),
|
|
69
|
-
h("p", null, text.supportDescriptionExistingPartner))) : (h("p",
|
|
70
|
-
" ",
|
|
71
|
-
text.descriptionNewPartner));
|
|
71
|
+
h("p", null, text.supportDescriptionExistingPartner))) : (h("p", { class: sheet.classes.DescriptionContainer }, text.descriptionNewPartner));
|
|
72
72
|
const buttonLabel = states.isExistingPartner
|
|
73
73
|
? text.confirmButtonLabel
|
|
74
74
|
: text.submitButtonLabel;
|
|
@@ -76,17 +76,17 @@ function PartnerInfoModalContent(props) {
|
|
|
76
76
|
h("style", { type: "text/css" }, styleString),
|
|
77
77
|
description,
|
|
78
78
|
h("div", { class: sheet.classes.FormFields },
|
|
79
|
-
h("sl-select", { key: `country-${states.countryCode}`, exportparts: "label: input-label, base: input-base", label: text.countryLabel, value: states.countryCode, disabled: states.submitting || !!states.isExistingPartner, required: true, "onSl-select": callbacks.onCountryChange },
|
|
79
|
+
h("sl-select", { key: `country-${states.countryCode}`, exportparts: "label: input-label, base: input-base", label: text.countryLabel, value: states.countryCode, disabled: states.submitting || !!states.isExistingPartner, required: true, hoist: true, "onSl-select": callbacks.onCountryChange },
|
|
80
80
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => {
|
|
81
81
|
var _a;
|
|
82
82
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
83
83
|
} }), (_a = states.filteredCountries) === null || _a === void 0 ? void 0 :
|
|
84
84
|
_a.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
|
|
85
|
-
h("sl-select", { key: `currency-${states.currency}`, exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.isExistingPartner, required: true, "onSl-select": callbacks.onCurrencyChange },
|
|
85
|
+
h("sl-select", { key: `currency-${states.currency}`, exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.isExistingPartner, required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
86
86
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }), (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 :
|
|
87
87
|
_b.map((c) => (h("sl-menu-item", { value: c.currencyCode }, c.currencyCode))))),
|
|
88
88
|
states.error && h("p", { class: sheet.classes.ErrorMessage }, states.error),
|
|
89
|
-
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit,
|
|
89
|
+
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit, class: sheet.classes.SubmitButton, exportparts: "base: primarybutton-base" }, buttonLabel),
|
|
90
90
|
];
|
|
91
91
|
}
|
|
92
92
|
function PartnerInfoModalView(props) {
|
|
@@ -95,7 +95,7 @@ function PartnerInfoModalView(props) {
|
|
|
95
95
|
console.log(states, "partner info modal states"); // TEMP
|
|
96
96
|
if (!states.open)
|
|
97
97
|
return h("div", null);
|
|
98
|
-
return (h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader:
|
|
98
|
+
return (h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label: states.isExistingPartner
|
|
99
99
|
? text.modalHeaderExistingPartner
|
|
100
100
|
: text.modalHeader, "onSl-request-close": (e) => {
|
|
101
101
|
e.preventDefault();
|
|
@@ -105,7 +105,10 @@ function PartnerInfoModalView(props) {
|
|
|
105
105
|
e.preventDefault();
|
|
106
106
|
}
|
|
107
107
|
} },
|
|
108
|
-
h(
|
|
108
|
+
h("h2", { class: sheet.classes.DialogTitle }, states.isExistingPartner
|
|
109
|
+
? text.modalHeaderExistingPartner
|
|
110
|
+
: text.modalHeader),
|
|
111
|
+
h(PartnerInfoModalContentView, Object.assign({}, props))));
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
export { PartnerInfoModalView as P,
|
|
114
|
+
export { PartnerInfoModalView as P, PartnerInfoModalContentView as a };
|
|
@@ -34,7 +34,7 @@ import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-c
|
|
|
34
34
|
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-f9026468.js';
|
|
35
35
|
import { t as taxTypeToName, L as LoadingView } from './data-2b0feb3f.js';
|
|
36
36
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-11a4f9a9.js';
|
|
37
|
-
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
37
|
+
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-f85b5a08.js';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* lodash (Custom Build) <https://lodash.com/>
|