@saasquatch/mint-components 1.12.0-3 → 1.12.0-5
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/extractProps-fd93ba62.js +21 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +2 -20
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +0 -1
- package/dist/cjs/sqm-code-verification.cjs.entry.js +8 -4
- package/dist/cjs/sqm-email-verification.cjs.entry.js +7 -6
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +34 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +87 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +11 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +8 -6
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +276 -13
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +428 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +5 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -1
- package/dist/esm/extractProps-ae1afbb3.js +19 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +1 -19
- package/dist/esm/sqm-big-stat_39.entry.js +0 -1
- package/dist/esm/sqm-code-verification.entry.js +10 -6
- package/dist/esm/sqm-email-verification.entry.js +8 -7
- package/dist/esm/sqm-widget-verification-internal.entry.js +35 -12
- package/dist/esm/sqm-widget-verification.entry.js +87 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-158e9d3a.entry.js +1 -0
- package/dist/mint-components/p-20c5ce3d.system.entry.js +1 -0
- package/dist/mint-components/p-219be817.system.entry.js +1 -0
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/p-2c03096f.system.entry.js +1 -0
- package/dist/mint-components/p-53d9df5e.entry.js +189 -0
- package/dist/mint-components/p-5810e318.entry.js +1 -0
- package/dist/mint-components/p-6029c42d.entry.js +8 -0
- package/dist/mint-components/p-80a32fe9.system.entry.js +1 -0
- package/dist/mint-components/p-a2baff3e.entry.js +1 -0
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/p-b52b7e60.system.entry.js +1 -0
- package/dist/mint-components/p-e05ff098.system.js +1 -1
- package/dist/mint-components/p-f4dff47a.system.entry.js +1 -0
- package/dist/mint-components/{p-8da20810.entry.js → p-ff77d11f.entry.js} +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +15 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +77 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +5 -0
- package/dist/types/components.d.ts +178 -0
- 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/mint-components/p-18399da0.system.entry.js +0 -1
- package/dist/mint-components/p-25a70095.system.entry.js +0 -1
- package/dist/mint-components/p-6eede6e5.system.entry.js +0 -1
- package/dist/mint-components/p-7e5f0292.system.entry.js +0 -1
- package/dist/mint-components/p-832eba3a.entry.js +0 -1
- package/dist/mint-components/p-8d696fc9.entry.js +0 -189
- package/dist/mint-components/p-a9487844.system.entry.js +0 -1
- package/dist/mint-components/p-d70bfe30.entry.js +0 -8
- package/dist/mint-components/p-d90ef1da.system.entry.js +0 -1
- package/dist/mint-components/p-e810da97.entry.js +0 -1
- package/dist/mint-components/p-fe8e1071.entry.js +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useParentState } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useHost, withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { useCallback, useEffect, useState } from "@saasquatch/universal-hooks";
|
|
4
|
-
import { Component, h, Host } from "@stencil/core";
|
|
4
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
5
5
|
import debugFn from "debug";
|
|
6
6
|
import { VERIFICATION_EVENT_KEY, VERIFICATION_PARENT_NAMESPACE } from "./keys";
|
|
7
|
+
import { getProps } from "../../utils/utils";
|
|
7
8
|
const debug = debugFn("sq:widget-verification");
|
|
8
9
|
function useTemplateChildren({ parent, callback }) {
|
|
9
10
|
const parentObserver = new MutationObserver(listenForTemplateChanges);
|
|
@@ -35,9 +36,96 @@ function useTemplateChildren({ parent, callback }) {
|
|
|
35
36
|
* @uiName Widget Verification Gate
|
|
36
37
|
* @slots [{"name":"not-verified","title":"Not verified template"},{"name":"verified","title":"Verified template"}]
|
|
37
38
|
* @canvasRenderer always-replace
|
|
39
|
+
* @exampleGroup Widget Verification
|
|
40
|
+
* @example Widget Verification Gate - <sqm-widget-verification><template slot="verified"><sqm-tax-and-cash></sqm-tax-and-cash></template></sqm-widget-verification>
|
|
38
41
|
*/
|
|
39
42
|
export class WidgetVerification {
|
|
43
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
44
|
+
CODE STEP PROPS
|
|
45
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
40
46
|
constructor() {
|
|
47
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification
|
|
48
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
49
|
+
EMAIL STEP PROPS
|
|
50
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
51
|
+
/**
|
|
52
|
+
* @uiName Verify email widget header text
|
|
53
|
+
* @uiGroup Email Verification Step
|
|
54
|
+
*/
|
|
55
|
+
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
56
|
+
/**
|
|
57
|
+
* @uiName Send code to email alert header
|
|
58
|
+
* @uiGroup Email Verification Step
|
|
59
|
+
*/
|
|
60
|
+
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
61
|
+
/**
|
|
62
|
+
* @uiName Send code to email alert description
|
|
63
|
+
* @uiGroup Email Verification Step
|
|
64
|
+
*/
|
|
65
|
+
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
66
|
+
/**
|
|
67
|
+
* @uiName Email input label
|
|
68
|
+
* @uiGroup Email Verification Step
|
|
69
|
+
*/
|
|
70
|
+
this.emailStep_emailLabel = "Email";
|
|
71
|
+
/**
|
|
72
|
+
* @uiName Send code button text
|
|
73
|
+
* @uiGroup Email Verification Step
|
|
74
|
+
*/
|
|
75
|
+
this.emailStep_sendCodeText = "Send code";
|
|
76
|
+
/**
|
|
77
|
+
* @uiName Send code button text
|
|
78
|
+
* @uiGroup Email Verification Step
|
|
79
|
+
*/
|
|
80
|
+
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
81
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
82
|
+
EMAIL STEP PROPS
|
|
83
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
84
|
+
/**
|
|
85
|
+
* @uiName Verify code widget header text
|
|
86
|
+
* @uiGroup Code Verification Step
|
|
87
|
+
*/
|
|
88
|
+
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
89
|
+
/**
|
|
90
|
+
* @uiName Reverify code widget header text
|
|
91
|
+
* @uiGroup Code Verification Step
|
|
92
|
+
*/
|
|
93
|
+
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
94
|
+
/**
|
|
95
|
+
* Text displayed under verify button
|
|
96
|
+
* @uiName Resend code text
|
|
97
|
+
* @uiGroup Code Verification Step
|
|
98
|
+
*/
|
|
99
|
+
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
100
|
+
/**
|
|
101
|
+
* The link that appears in the resend code link
|
|
102
|
+
* @uiName Resend code label
|
|
103
|
+
* @uiGroup Code Verification Step
|
|
104
|
+
*/
|
|
105
|
+
this.codeStep_resendCodeLabel = "Resend code";
|
|
106
|
+
/**
|
|
107
|
+
* Link text displayed under verify button
|
|
108
|
+
* @uiName Resend code text
|
|
109
|
+
* @uiGroup Code Verification Step
|
|
110
|
+
*/
|
|
111
|
+
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
112
|
+
/**
|
|
113
|
+
* Error text displayed under verification input
|
|
114
|
+
* @uiName Invalid code text
|
|
115
|
+
* @uiGroup Code Verification Step
|
|
116
|
+
*/
|
|
117
|
+
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
118
|
+
/**
|
|
119
|
+
* @uiName Verify code button text
|
|
120
|
+
* @uiGroup Code Verification Step
|
|
121
|
+
*/
|
|
122
|
+
this.codeStep_verifyText = "Verify";
|
|
123
|
+
/**
|
|
124
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
125
|
+
* @uiName Network error message
|
|
126
|
+
* @uiGroup Code Verification Step
|
|
127
|
+
*/
|
|
128
|
+
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
41
129
|
withHooks(this);
|
|
42
130
|
}
|
|
43
131
|
disconnectedCallback() { }
|
|
@@ -124,11 +212,349 @@ export class WidgetVerification {
|
|
|
124
212
|
return (h(Host, null,
|
|
125
213
|
h("div", { ref: setSlot, style: { display: "contents" } },
|
|
126
214
|
h("template", { slot: "not-verified" },
|
|
127
|
-
h("sqm-widget-verification-internal",
|
|
215
|
+
h("sqm-widget-verification-internal", Object.assign({}, getProps(this)))),
|
|
128
216
|
h("slot", { name: "not-verified" }),
|
|
129
217
|
h("slot", { name: "verified" })),
|
|
130
218
|
h("div", { ref: setContainer },
|
|
131
219
|
h("slot", { name: "shown" }))));
|
|
132
220
|
}
|
|
133
221
|
static get is() { return "sqm-widget-verification"; }
|
|
222
|
+
static get properties() { return {
|
|
223
|
+
"emailStep_verifyEmailHeaderText": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "string",
|
|
228
|
+
"resolved": "string",
|
|
229
|
+
"references": {}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [{
|
|
235
|
+
"text": "Verify email widget header text",
|
|
236
|
+
"name": "uiName"
|
|
237
|
+
}, {
|
|
238
|
+
"text": "Email Verification Step",
|
|
239
|
+
"name": "uiGroup"
|
|
240
|
+
}],
|
|
241
|
+
"text": ""
|
|
242
|
+
},
|
|
243
|
+
"attribute": "email-step_verify-email-header-text",
|
|
244
|
+
"reflect": false,
|
|
245
|
+
"defaultValue": "\"Start by verifying your email. We\u2019ll send you a code through our referral provider, impact.com.\""
|
|
246
|
+
},
|
|
247
|
+
"emailStep_sendCodeErrorHeader": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "string",
|
|
252
|
+
"resolved": "string",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [{
|
|
259
|
+
"text": "Send code to email alert header",
|
|
260
|
+
"name": "uiName"
|
|
261
|
+
}, {
|
|
262
|
+
"text": "Email Verification Step",
|
|
263
|
+
"name": "uiGroup"
|
|
264
|
+
}],
|
|
265
|
+
"text": ""
|
|
266
|
+
},
|
|
267
|
+
"attribute": "email-step_send-code-error-header",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "\"There was an error sending your code.\""
|
|
270
|
+
},
|
|
271
|
+
"emailStep_sendCodeErrorDescription": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "string",
|
|
276
|
+
"resolved": "string",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [{
|
|
283
|
+
"text": "Send code to email alert description",
|
|
284
|
+
"name": "uiName"
|
|
285
|
+
}, {
|
|
286
|
+
"text": "Email Verification Step",
|
|
287
|
+
"name": "uiGroup"
|
|
288
|
+
}],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"attribute": "email-step_send-code-error-description",
|
|
292
|
+
"reflect": false,
|
|
293
|
+
"defaultValue": "\"Please try again. If this problem continues, contact our program support team.\""
|
|
294
|
+
},
|
|
295
|
+
"emailStep_emailLabel": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "string",
|
|
300
|
+
"resolved": "string",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [{
|
|
307
|
+
"text": "Email input label",
|
|
308
|
+
"name": "uiName"
|
|
309
|
+
}, {
|
|
310
|
+
"text": "Email Verification Step",
|
|
311
|
+
"name": "uiGroup"
|
|
312
|
+
}],
|
|
313
|
+
"text": ""
|
|
314
|
+
},
|
|
315
|
+
"attribute": "email-step_email-label",
|
|
316
|
+
"reflect": false,
|
|
317
|
+
"defaultValue": "\"Email\""
|
|
318
|
+
},
|
|
319
|
+
"emailStep_sendCodeText": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"mutable": false,
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "string",
|
|
324
|
+
"resolved": "string",
|
|
325
|
+
"references": {}
|
|
326
|
+
},
|
|
327
|
+
"required": false,
|
|
328
|
+
"optional": false,
|
|
329
|
+
"docs": {
|
|
330
|
+
"tags": [{
|
|
331
|
+
"text": "Send code button text",
|
|
332
|
+
"name": "uiName"
|
|
333
|
+
}, {
|
|
334
|
+
"text": "Email Verification Step",
|
|
335
|
+
"name": "uiGroup"
|
|
336
|
+
}],
|
|
337
|
+
"text": ""
|
|
338
|
+
},
|
|
339
|
+
"attribute": "email-step_send-code-text",
|
|
340
|
+
"reflect": false,
|
|
341
|
+
"defaultValue": "\"Send code\""
|
|
342
|
+
},
|
|
343
|
+
"emailStep_emailValidationErrorText": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "string",
|
|
348
|
+
"resolved": "string",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [{
|
|
355
|
+
"text": "Send code button text",
|
|
356
|
+
"name": "uiName"
|
|
357
|
+
}, {
|
|
358
|
+
"text": "Email Verification Step",
|
|
359
|
+
"name": "uiGroup"
|
|
360
|
+
}],
|
|
361
|
+
"text": ""
|
|
362
|
+
},
|
|
363
|
+
"attribute": "email-step_email-validation-error-text",
|
|
364
|
+
"reflect": false,
|
|
365
|
+
"defaultValue": "\"Please enter a valid email\""
|
|
366
|
+
},
|
|
367
|
+
"codeStep_verifyCodeHeaderText": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"mutable": false,
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "string",
|
|
372
|
+
"resolved": "string",
|
|
373
|
+
"references": {}
|
|
374
|
+
},
|
|
375
|
+
"required": false,
|
|
376
|
+
"optional": false,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [{
|
|
379
|
+
"text": "Verify code widget header text",
|
|
380
|
+
"name": "uiName"
|
|
381
|
+
}, {
|
|
382
|
+
"text": "Code Verification Step",
|
|
383
|
+
"name": "uiGroup"
|
|
384
|
+
}],
|
|
385
|
+
"text": ""
|
|
386
|
+
},
|
|
387
|
+
"attribute": "code-step_verify-code-header-text",
|
|
388
|
+
"reflect": false,
|
|
389
|
+
"defaultValue": "\"Enter the code sent to {email} from our referral provider, impact.com.\""
|
|
390
|
+
},
|
|
391
|
+
"codeStep_reverifyCodeHeaderText": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"mutable": false,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "string",
|
|
396
|
+
"resolved": "string",
|
|
397
|
+
"references": {}
|
|
398
|
+
},
|
|
399
|
+
"required": false,
|
|
400
|
+
"optional": false,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [{
|
|
403
|
+
"text": "Reverify code widget header text",
|
|
404
|
+
"name": "uiName"
|
|
405
|
+
}, {
|
|
406
|
+
"text": "Code Verification Step",
|
|
407
|
+
"name": "uiGroup"
|
|
408
|
+
}],
|
|
409
|
+
"text": ""
|
|
410
|
+
},
|
|
411
|
+
"attribute": "code-step_reverify-code-header-text",
|
|
412
|
+
"reflect": false,
|
|
413
|
+
"defaultValue": "\"Enter the code sent to {email} from our referral provider, impact.com.\""
|
|
414
|
+
},
|
|
415
|
+
"codeStep_resendCodeText": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"mutable": false,
|
|
418
|
+
"complexType": {
|
|
419
|
+
"original": "string",
|
|
420
|
+
"resolved": "string",
|
|
421
|
+
"references": {}
|
|
422
|
+
},
|
|
423
|
+
"required": false,
|
|
424
|
+
"optional": false,
|
|
425
|
+
"docs": {
|
|
426
|
+
"tags": [{
|
|
427
|
+
"text": "Resend code text",
|
|
428
|
+
"name": "uiName"
|
|
429
|
+
}, {
|
|
430
|
+
"text": "Code Verification Step",
|
|
431
|
+
"name": "uiGroup"
|
|
432
|
+
}],
|
|
433
|
+
"text": "Text displayed under verify button"
|
|
434
|
+
},
|
|
435
|
+
"attribute": "code-step_resend-code-text",
|
|
436
|
+
"reflect": false,
|
|
437
|
+
"defaultValue": "\"Didn't receive your code? {resendCodeLink}\""
|
|
438
|
+
},
|
|
439
|
+
"codeStep_resendCodeLabel": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "string",
|
|
444
|
+
"resolved": "string",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": false,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [{
|
|
451
|
+
"text": "Resend code label",
|
|
452
|
+
"name": "uiName"
|
|
453
|
+
}, {
|
|
454
|
+
"text": "Code Verification Step",
|
|
455
|
+
"name": "uiGroup"
|
|
456
|
+
}],
|
|
457
|
+
"text": "The link that appears in the resend code link"
|
|
458
|
+
},
|
|
459
|
+
"attribute": "code-step_resend-code-label",
|
|
460
|
+
"reflect": false,
|
|
461
|
+
"defaultValue": "\"Resend code\""
|
|
462
|
+
},
|
|
463
|
+
"codeStep_codeResentSuccessfullyText": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"mutable": false,
|
|
466
|
+
"complexType": {
|
|
467
|
+
"original": "string",
|
|
468
|
+
"resolved": "string",
|
|
469
|
+
"references": {}
|
|
470
|
+
},
|
|
471
|
+
"required": false,
|
|
472
|
+
"optional": false,
|
|
473
|
+
"docs": {
|
|
474
|
+
"tags": [{
|
|
475
|
+
"text": "Resend code text",
|
|
476
|
+
"name": "uiName"
|
|
477
|
+
}, {
|
|
478
|
+
"text": "Code Verification Step",
|
|
479
|
+
"name": "uiGroup"
|
|
480
|
+
}],
|
|
481
|
+
"text": "Link text displayed under verify button"
|
|
482
|
+
},
|
|
483
|
+
"attribute": "code-step_code-resent-successfully-text",
|
|
484
|
+
"reflect": false,
|
|
485
|
+
"defaultValue": "\"Another code has been sent to {email}\""
|
|
486
|
+
},
|
|
487
|
+
"codeStep_invalidCodeText": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"mutable": false,
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "string",
|
|
492
|
+
"resolved": "string",
|
|
493
|
+
"references": {}
|
|
494
|
+
},
|
|
495
|
+
"required": false,
|
|
496
|
+
"optional": false,
|
|
497
|
+
"docs": {
|
|
498
|
+
"tags": [{
|
|
499
|
+
"text": "Invalid code text",
|
|
500
|
+
"name": "uiName"
|
|
501
|
+
}, {
|
|
502
|
+
"text": "Code Verification Step",
|
|
503
|
+
"name": "uiGroup"
|
|
504
|
+
}],
|
|
505
|
+
"text": "Error text displayed under verification input"
|
|
506
|
+
},
|
|
507
|
+
"attribute": "code-step_invalid-code-text",
|
|
508
|
+
"reflect": false,
|
|
509
|
+
"defaultValue": "\"Please check your code and try again. If you\u2019re still having trouble, try resending your code.\""
|
|
510
|
+
},
|
|
511
|
+
"codeStep_verifyText": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"mutable": false,
|
|
514
|
+
"complexType": {
|
|
515
|
+
"original": "string",
|
|
516
|
+
"resolved": "string",
|
|
517
|
+
"references": {}
|
|
518
|
+
},
|
|
519
|
+
"required": false,
|
|
520
|
+
"optional": false,
|
|
521
|
+
"docs": {
|
|
522
|
+
"tags": [{
|
|
523
|
+
"text": "Verify code button text",
|
|
524
|
+
"name": "uiName"
|
|
525
|
+
}, {
|
|
526
|
+
"text": "Code Verification Step",
|
|
527
|
+
"name": "uiGroup"
|
|
528
|
+
}],
|
|
529
|
+
"text": ""
|
|
530
|
+
},
|
|
531
|
+
"attribute": "code-step_verify-text",
|
|
532
|
+
"reflect": false,
|
|
533
|
+
"defaultValue": "\"Verify\""
|
|
534
|
+
},
|
|
535
|
+
"codeStep_networkErrorMessage": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"mutable": false,
|
|
538
|
+
"complexType": {
|
|
539
|
+
"original": "string",
|
|
540
|
+
"resolved": "string",
|
|
541
|
+
"references": {}
|
|
542
|
+
},
|
|
543
|
+
"required": false,
|
|
544
|
+
"optional": false,
|
|
545
|
+
"docs": {
|
|
546
|
+
"tags": [{
|
|
547
|
+
"text": "Network error message",
|
|
548
|
+
"name": "uiName"
|
|
549
|
+
}, {
|
|
550
|
+
"text": "Code Verification Step",
|
|
551
|
+
"name": "uiGroup"
|
|
552
|
+
}],
|
|
553
|
+
"text": "Displayed when the email verification fails due to a network error. The participant can try refreshing the page."
|
|
554
|
+
},
|
|
555
|
+
"attribute": "code-step_network-error-message",
|
|
556
|
+
"reflect": false,
|
|
557
|
+
"defaultValue": "\"An error occurred while verifying your email. Please refresh the page and try again.\""
|
|
558
|
+
}
|
|
559
|
+
}; }
|
|
134
560
|
}
|
package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js
CHANGED
|
@@ -80,7 +80,6 @@ export const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
80
80
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
81
81
|
if (!allowed)
|
|
82
82
|
return;
|
|
83
|
-
console.log(e);
|
|
84
83
|
if (typeof e.data === "number") {
|
|
85
84
|
setiFrameHeight(e.data + "px");
|
|
86
85
|
}
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -5,6 +5,11 @@ import { getProps } from "../../../utils/utils";
|
|
|
5
5
|
import { PayoutStatusAlertView, } from "./sqm-payout-status-alert-view";
|
|
6
6
|
import { usePayoutStatus } from "./usePayoutStatus";
|
|
7
7
|
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
8
|
+
/**
|
|
9
|
+
* @uiName Payout Status Alert
|
|
10
|
+
* @exampleGroup Tax and Cash
|
|
11
|
+
* @example Payout Status Alert - <sqm-payout-status-alert></sqm-payout-status-alert>
|
|
12
|
+
*/
|
|
8
13
|
export class PayoutStatusAlert {
|
|
9
14
|
constructor() {
|
|
10
15
|
/**
|
|
@@ -45,6 +45,5 @@ export function usePayoutStatus(props) {
|
|
|
45
45
|
window.addEventListener("sqm:tax-form-updated", cb);
|
|
46
46
|
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
47
47
|
}, []);
|
|
48
|
-
console.log({ data });
|
|
49
48
|
return { states: { loading, status }, text: props.getTextProps() };
|
|
50
49
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Util function for getting just the props with a certain prefix.
|
|
3
|
+
* @param props Text props on stencil component
|
|
4
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
5
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6
|
+
*/
|
|
7
|
+
function extractProps(props, prefix) {
|
|
8
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
9
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
10
|
+
const key = k.replace(prefix, "");
|
|
11
|
+
return {
|
|
12
|
+
...prev,
|
|
13
|
+
[key]: props[k],
|
|
14
|
+
};
|
|
15
|
+
}, {});
|
|
16
|
+
return formattedProps;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { extractProps as e };
|