@saasquatch/mint-components 2.4.1-1 → 2.4.1-11
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/sqm-big-stat_47.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +8 -7
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +11 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4 -4
- package/dist/esm/sqm-big-stat_47.entry.js +2 -2
- package/dist/esm/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm/sqm-widget-verification-controller.entry.js +8 -7
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-03d9362e.system.entry.js +1 -0
- package/dist/mint-components/p-0f1aaee1.entry.js +1 -0
- package/dist/mint-components/{p-ede41e5e.system.entry.js → p-20abdb56.system.entry.js} +1 -1
- package/dist/mint-components/{p-b1dcabb0.entry.js → p-3b1a496e.entry.js} +1 -1
- package/dist/mint-components/{p-c3025801.entry.js → p-7468e5b8.entry.js} +1 -1
- package/dist/mint-components/{p-f8ec1f37.system.entry.js → p-93f1e26a.system.entry.js} +1 -1
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +1 -1
- package/dist/types/components.d.ts +4 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-27daf264.entry.js +0 -1
- package/dist/mint-components/p-e6de31a7.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -7981,13 +7981,13 @@ const TaxAndCashMonolith = class {
|
|
|
7981
7981
|
/**
|
|
7982
7982
|
*
|
|
7983
7983
|
* @undocumented
|
|
7984
|
-
* @componentState { "title": "Step 1: Personal information", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
7984
|
+
* @componentState { "title": "Step 1: Personal information", "default": true, "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
7985
7985
|
* @componentState { "title": "Step 2: Indirect tax", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"], "uiGroup": "Step 2 Properties" }
|
|
7986
7986
|
* @componentState { "title": "Step 3: Tax form", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"], "uiGroup": "Step 3 Properties" }
|
|
7987
7987
|
* @componentState { "title": "Step 4: Payment method", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"], "uiGroup": "Step 4 Properties" }
|
|
7988
7988
|
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
|
|
7989
7989
|
*/
|
|
7990
|
-
this.stateController = "{}
|
|
7990
|
+
this.stateController = '{"sqm-tax-and-cash":{"step":"/1"}}';
|
|
7991
7991
|
domContextHooks_module.h$1(this);
|
|
7992
7992
|
}
|
|
7993
7993
|
disconnectedCallback() { }
|
|
@@ -40,25 +40,26 @@ const WidgetVerificationController = class {
|
|
|
40
40
|
/**
|
|
41
41
|
* @undocumented
|
|
42
42
|
* @componentState { "title": "Verify email", "slot": "not-verified", "props": { "isAuth": false }, "disabled": "true" }
|
|
43
|
-
* @componentState { "title": "Tax and cash", "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
43
|
+
* @componentState { "title": "Tax and cash", "default": true, "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
44
44
|
*/
|
|
45
|
-
this.stateController = "{}
|
|
45
|
+
this.stateController = '{"sqm-widget-verification-controller":{"isAuth":true}}';
|
|
46
46
|
domContextHooks_module.h$1(this);
|
|
47
47
|
}
|
|
48
48
|
disconnectedCallback() { }
|
|
49
49
|
render() {
|
|
50
|
-
var _a;
|
|
51
50
|
const [context, setContext] = index_module.In({
|
|
52
51
|
namespace: keys.VERIFICATION_PARENT_NAMESPACE,
|
|
53
52
|
initialValue: false,
|
|
54
53
|
});
|
|
55
54
|
const props = JSON.parse(this.stateController);
|
|
56
|
-
|
|
55
|
+
// raisins sends state props flat; the @Prop default nests them under the tag
|
|
56
|
+
const stateOverride = (props === null || props === void 0 ? void 0 : props["sqm-widget-verification-controller"]) || props || {};
|
|
57
|
+
const demoIsAuth = index_module.isDemo() && (stateOverride === null || stateOverride === void 0 ? void 0 : stateOverride.isAuth);
|
|
57
58
|
const [container, setContainer] = domContextHooks_module.useState(undefined);
|
|
58
59
|
const [slot, setSlot] = domContextHooks_module.useState(undefined);
|
|
59
60
|
const updateTemplates = index_module.useCallback(() => {
|
|
60
|
-
const isAuth = demoIsAuth || context;
|
|
61
61
|
const templates = slot.querySelectorAll(`template`);
|
|
62
|
+
const isAuth = demoIsAuth || context;
|
|
62
63
|
const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
|
|
63
64
|
if (template) {
|
|
64
65
|
// use outerHTML if template's innerHTML is unset (only happens in Stencilbook)
|
|
@@ -105,7 +106,7 @@ const WidgetVerificationController = class {
|
|
|
105
106
|
target.style.height = "25px";
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
|
-
}, [container, slot, context, demoIsAuth]);
|
|
109
|
+
}, [container, slot, context, demoIsAuth, this.stateController]);
|
|
109
110
|
domContextHooks_module.useEffect(() => {
|
|
110
111
|
if (!container || !slot) {
|
|
111
112
|
debug("DOM not ready:");
|
|
@@ -114,7 +115,7 @@ const WidgetVerificationController = class {
|
|
|
114
115
|
// Run on first render
|
|
115
116
|
updateTemplates();
|
|
116
117
|
return useTemplateChildren({ parent: slot, callback: updateTemplates });
|
|
117
|
-
}, [slot, container, context, demoIsAuth]);
|
|
118
|
+
}, [slot, container, context, demoIsAuth, this.stateController]);
|
|
118
119
|
return (index.h(index.Host, null, index.h("div", { ref: setSlot, style: { display: "contents" } }, index.h("slot", { name: "not-verified" }), index.h("slot", { name: "verified" })), index.h("div", { ref: setContainer }, index.h("slot", { name: "shown" }))));
|
|
119
120
|
}
|
|
120
121
|
};
|
package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js
CHANGED
|
@@ -33,7 +33,7 @@ function useTemplateChildren({ parent, callback }) {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @uiName Widget Verification Controller
|
|
36
|
-
* @slots [{"name":"
|
|
36
|
+
* @slots [{"name":"verified","title":"Verified template"},{"name":"not-verified","title":"Not Verified template"}]
|
|
37
37
|
* @exampleGroup Tax and Cash
|
|
38
38
|
* @example Widget Cash Payout Form - <sqm-widget-verification-controller><template slot="not-verified"><sqm-widget-verification></sqm-widget-verification></template><template slot="verified"><sqm-tax-and-cash></sqm-tax-and-cash></template></sqm-widget-verification-controller>
|
|
39
39
|
* @canvasRenderer always-replace
|
|
@@ -43,25 +43,26 @@ export class WidgetVerificationController {
|
|
|
43
43
|
/**
|
|
44
44
|
* @undocumented
|
|
45
45
|
* @componentState { "title": "Verify email", "slot": "not-verified", "props": { "isAuth": false }, "disabled": "true" }
|
|
46
|
-
* @componentState { "title": "Tax and cash", "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
46
|
+
* @componentState { "title": "Tax and cash", "default": true, "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
47
47
|
*/
|
|
48
|
-
this.stateController = "{}
|
|
48
|
+
this.stateController = '{"sqm-widget-verification-controller":{"isAuth":true}}';
|
|
49
49
|
withHooks(this);
|
|
50
50
|
}
|
|
51
51
|
disconnectedCallback() { }
|
|
52
52
|
render() {
|
|
53
|
-
var _a;
|
|
54
53
|
const [context, setContext] = useParentState({
|
|
55
54
|
namespace: VERIFICATION_PARENT_NAMESPACE,
|
|
56
55
|
initialValue: false,
|
|
57
56
|
});
|
|
58
57
|
const props = JSON.parse(this.stateController);
|
|
59
|
-
|
|
58
|
+
// raisins sends state props flat; the @Prop default nests them under the tag
|
|
59
|
+
const stateOverride = (props === null || props === void 0 ? void 0 : props["sqm-widget-verification-controller"]) || props || {};
|
|
60
|
+
const demoIsAuth = isDemo() && (stateOverride === null || stateOverride === void 0 ? void 0 : stateOverride.isAuth);
|
|
60
61
|
const [container, setContainer] = useState(undefined);
|
|
61
62
|
const [slot, setSlot] = useState(undefined);
|
|
62
63
|
const updateTemplates = useCallback(() => {
|
|
63
|
-
const isAuth = demoIsAuth || context;
|
|
64
64
|
const templates = slot.querySelectorAll(`template`);
|
|
65
|
+
const isAuth = demoIsAuth || context;
|
|
65
66
|
const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
|
|
66
67
|
if (template) {
|
|
67
68
|
// use outerHTML if template's innerHTML is unset (only happens in Stencilbook)
|
|
@@ -108,7 +109,7 @@ export class WidgetVerificationController {
|
|
|
108
109
|
target.style.height = "25px";
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
|
-
}, [container, slot, context, demoIsAuth]);
|
|
112
|
+
}, [container, slot, context, demoIsAuth, this.stateController]);
|
|
112
113
|
useEffect(() => {
|
|
113
114
|
if (!container || !slot) {
|
|
114
115
|
debug("DOM not ready:");
|
|
@@ -117,7 +118,7 @@ export class WidgetVerificationController {
|
|
|
117
118
|
// Run on first render
|
|
118
119
|
updateTemplates();
|
|
119
120
|
return useTemplateChildren({ parent: slot, callback: updateTemplates });
|
|
120
|
-
}, [slot, container, context, demoIsAuth]);
|
|
121
|
+
}, [slot, container, context, demoIsAuth, this.stateController]);
|
|
121
122
|
return (h(Host, null,
|
|
122
123
|
h("div", { ref: setSlot, style: { display: "contents" } },
|
|
123
124
|
h("slot", { name: "not-verified" }),
|
|
@@ -145,14 +146,14 @@ export class WidgetVerificationController {
|
|
|
145
146
|
"text": "{ \"title\": \"Verify email\", \"slot\": \"not-verified\", \"props\": { \"isAuth\": false }, \"disabled\": \"true\" }",
|
|
146
147
|
"name": "componentState"
|
|
147
148
|
}, {
|
|
148
|
-
"text": "{ \"title\": \"Tax and cash\", \"slot\": \"verified\", \"props\": { \"isAuth\": true }, \"disabled\": \"true\" }",
|
|
149
|
+
"text": "{ \"title\": \"Tax and cash\", \"default\": true, \"slot\": \"verified\", \"props\": { \"isAuth\": true }, \"disabled\": \"true\" }",
|
|
149
150
|
"name": "componentState"
|
|
150
151
|
}],
|
|
151
152
|
"text": ""
|
|
152
153
|
},
|
|
153
154
|
"attribute": "state-controller",
|
|
154
155
|
"reflect": false,
|
|
155
|
-
"defaultValue": "\"{
|
|
156
|
+
"defaultValue": "'{\"sqm-widget-verification-controller\":{\"isAuth\":true}}'"
|
|
156
157
|
}
|
|
157
158
|
}; }
|
|
158
159
|
}
|
|
@@ -1116,13 +1116,13 @@ export class TaxAndCashMonolith {
|
|
|
1116
1116
|
/**
|
|
1117
1117
|
*
|
|
1118
1118
|
* @undocumented
|
|
1119
|
-
* @componentState { "title": "Step 1: Personal information", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
1119
|
+
* @componentState { "title": "Step 1: Personal information", "default": true, "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
1120
1120
|
* @componentState { "title": "Step 2: Indirect tax", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"], "uiGroup": "Step 2 Properties" }
|
|
1121
1121
|
* @componentState { "title": "Step 3: Tax form", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"], "uiGroup": "Step 3 Properties" }
|
|
1122
1122
|
* @componentState { "title": "Step 4: Payment method", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"], "uiGroup": "Step 4 Properties" }
|
|
1123
1123
|
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
|
|
1124
1124
|
*/
|
|
1125
|
-
this.stateController = "{}
|
|
1125
|
+
this.stateController = '{"sqm-tax-and-cash":{"step":"/1"}}';
|
|
1126
1126
|
withHooks(this);
|
|
1127
1127
|
}
|
|
1128
1128
|
disconnectedCallback() { }
|
|
@@ -5841,7 +5841,7 @@ export class TaxAndCashMonolith {
|
|
|
5841
5841
|
"text": undefined,
|
|
5842
5842
|
"name": "undocumented"
|
|
5843
5843
|
}, {
|
|
5844
|
-
"text": "{ \"title\": \"Step 1: Personal information\", \"props\": { \"step\": \"/1\" }, \"dependencies\": [\"sqm-user-info-form\"], \"uiGroup\": \"Step 1 Properties\" }",
|
|
5844
|
+
"text": "{ \"title\": \"Step 1: Personal information\", \"default\": true, \"props\": { \"step\": \"/1\" }, \"dependencies\": [\"sqm-user-info-form\"], \"uiGroup\": \"Step 1 Properties\" }",
|
|
5845
5845
|
"name": "componentState"
|
|
5846
5846
|
}, {
|
|
5847
5847
|
"text": "{ \"title\": \"Step 2: Indirect tax\", \"props\": { \"step\": \"/2\" }, \"dependencies\": [\"sqm-indirect-tax-form\"], \"uiGroup\": \"Step 2 Properties\" }",
|
|
@@ -5860,7 +5860,7 @@ export class TaxAndCashMonolith {
|
|
|
5860
5860
|
},
|
|
5861
5861
|
"attribute": "state-controller",
|
|
5862
5862
|
"reflect": false,
|
|
5863
|
-
"defaultValue": "\"{
|
|
5863
|
+
"defaultValue": "'{\"sqm-tax-and-cash\":{\"step\":\"/1\"}}'"
|
|
5864
5864
|
},
|
|
5865
5865
|
"demoData": {
|
|
5866
5866
|
"type": "unknown",
|
|
@@ -7977,13 +7977,13 @@ const TaxAndCashMonolith = class {
|
|
|
7977
7977
|
/**
|
|
7978
7978
|
*
|
|
7979
7979
|
* @undocumented
|
|
7980
|
-
* @componentState { "title": "Step 1: Personal information", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
7980
|
+
* @componentState { "title": "Step 1: Personal information", "default": true, "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
7981
7981
|
* @componentState { "title": "Step 2: Indirect tax", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"], "uiGroup": "Step 2 Properties" }
|
|
7982
7982
|
* @componentState { "title": "Step 3: Tax form", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"], "uiGroup": "Step 3 Properties" }
|
|
7983
7983
|
* @componentState { "title": "Step 4: Payment method", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"], "uiGroup": "Step 4 Properties" }
|
|
7984
7984
|
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
|
|
7985
7985
|
*/
|
|
7986
|
-
this.stateController = "{}
|
|
7986
|
+
this.stateController = '{"sqm-tax-and-cash":{"step":"/1"}}';
|
|
7987
7987
|
h(this);
|
|
7988
7988
|
}
|
|
7989
7989
|
disconnectedCallback() { }
|
|
@@ -36,25 +36,26 @@ const WidgetVerificationController = class {
|
|
|
36
36
|
/**
|
|
37
37
|
* @undocumented
|
|
38
38
|
* @componentState { "title": "Verify email", "slot": "not-verified", "props": { "isAuth": false }, "disabled": "true" }
|
|
39
|
-
* @componentState { "title": "Tax and cash", "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
39
|
+
* @componentState { "title": "Tax and cash", "default": true, "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
40
40
|
*/
|
|
41
|
-
this.stateController = "{}
|
|
41
|
+
this.stateController = '{"sqm-widget-verification-controller":{"isAuth":true}}';
|
|
42
42
|
h(this);
|
|
43
43
|
}
|
|
44
44
|
disconnectedCallback() { }
|
|
45
45
|
render() {
|
|
46
|
-
var _a;
|
|
47
46
|
const [context, setContext] = In({
|
|
48
47
|
namespace: VERIFICATION_PARENT_NAMESPACE,
|
|
49
48
|
initialValue: false,
|
|
50
49
|
});
|
|
51
50
|
const props = JSON.parse(this.stateController);
|
|
52
|
-
|
|
51
|
+
// raisins sends state props flat; the @Prop default nests them under the tag
|
|
52
|
+
const stateOverride = (props === null || props === void 0 ? void 0 : props["sqm-widget-verification-controller"]) || props || {};
|
|
53
|
+
const demoIsAuth = isDemo() && (stateOverride === null || stateOverride === void 0 ? void 0 : stateOverride.isAuth);
|
|
53
54
|
const [container, setContainer] = useState(undefined);
|
|
54
55
|
const [slot, setSlot] = useState(undefined);
|
|
55
56
|
const updateTemplates = useCallback(() => {
|
|
56
|
-
const isAuth = demoIsAuth || context;
|
|
57
57
|
const templates = slot.querySelectorAll(`template`);
|
|
58
|
+
const isAuth = demoIsAuth || context;
|
|
58
59
|
const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
|
|
59
60
|
if (template) {
|
|
60
61
|
// use outerHTML if template's innerHTML is unset (only happens in Stencilbook)
|
|
@@ -101,7 +102,7 @@ const WidgetVerificationController = class {
|
|
|
101
102
|
target.style.height = "25px";
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
|
-
}, [container, slot, context, demoIsAuth]);
|
|
105
|
+
}, [container, slot, context, demoIsAuth, this.stateController]);
|
|
105
106
|
useEffect(() => {
|
|
106
107
|
if (!container || !slot) {
|
|
107
108
|
debug("DOM not ready:");
|
|
@@ -110,7 +111,7 @@ const WidgetVerificationController = class {
|
|
|
110
111
|
// Run on first render
|
|
111
112
|
updateTemplates();
|
|
112
113
|
return useTemplateChildren({ parent: slot, callback: updateTemplates });
|
|
113
|
-
}, [slot, container, context, demoIsAuth]);
|
|
114
|
+
}, [slot, container, context, demoIsAuth, this.stateController]);
|
|
114
115
|
return (h$1(Host, null, h$1("div", { ref: setSlot, style: { display: "contents" } }, h$1("slot", { name: "not-verified" }), h$1("slot", { name: "verified" })), h$1("div", { ref: setContainer }, h$1("slot", { name: "shown" }))));
|
|
115
116
|
}
|
|
116
117
|
};
|