@qonto/embed-sdk 0.46.0 → 0.47.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/dist/beneficiaries/beneficiaries.d.ts.map +1 -1
- package/dist/cards/cards.d.ts.map +1 -1
- package/dist/cards/cards.helper.d.ts.map +1 -1
- package/dist/common/common.test.d.ts +2 -0
- package/dist/common/common.test.d.ts.map +1 -0
- package/dist/common/common.utils.d.ts +3 -0
- package/dist/common/common.utils.d.ts.map +1 -0
- package/dist/common/environment/environment-manager.d.ts +2 -2
- package/dist/common/environment/environment-manager.d.ts.map +1 -1
- package/dist/common/network/network.d.ts.map +1 -1
- package/dist/common/operation-settings/operation-settings.d.ts +2 -2
- package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
- package/dist/errors/EmbedApiError.d.ts +9 -1
- package/dist/errors/EmbedApiError.d.ts.map +1 -1
- package/dist/iframe/embed-iframe.d.ts +2 -1
- package/dist/iframe/embed-iframe.d.ts.map +1 -1
- package/dist/iframe/iframe-manager.d.ts +2 -1
- package/dist/iframe/iframe-manager.d.ts.map +1 -1
- package/dist/index.umd.js +47 -47
- package/dist/mocks/node.d.ts +1 -1
- package/dist/mocks/node.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -1
- package/dist/src/common/common.utils.js +1 -0
- package/dist/src/common/environment/environment-manager.js +1 -1
- package/dist/src/common/network/network.js +1 -1
- package/dist/src/errors/EmbedApiError.js +1 -1
- package/dist/src/iframe/embed-iframe.js +1 -1
- package/dist/src/iframe/iframe-manager.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.api.js +1 -1
- package/dist/src/ui/ui-elements.js +1 -1
- package/dist/src/validation/operation-settings-validation.js +1 -1
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.d.ts +46 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts +32 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts.map +1 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts +14 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts.map +1 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts +2 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/index.d.ts +3 -0
- package/dist/ui/customizable-components/lottie-player/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts +17 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts +2 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts +6 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/index.d.ts +3 -0
- package/dist/ui/customizable-components/select-field/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-option.d.ts +48 -0
- package/dist/ui/customizable-components/select-field/qonto-option.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.d.ts +111 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/index.d.ts +2 -0
- package/dist/ui/customizable-components/text-field/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.d.ts +31 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts +14 -0
- package/dist/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts +13 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts +25 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts +4 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +53 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts +11 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts +12 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +25 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts +53 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts +41 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts +7 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements.d.ts.map +1 -1
- package/dist/validation/operation-settings-validation.d.ts +2 -1
- package/dist/validation/operation-settings-validation.d.ts.map +1 -1
- package/package.json +14 -1
- package/dist/src/errors/EmbedUIElementError.js +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../../../customizable-components/styles/styles.css';
|
|
3
|
+
import '../../../customizable-components/text/qonto-text-heading.ts';
|
|
4
|
+
import '../../../customizable-components/button/qonto-button.ts';
|
|
5
|
+
import '../../../customizable-components/skeleton-loader/qonto-skeleton-loader-line.ts';
|
|
6
|
+
import '../../../customizable-components/beneficiary-card/qonto-beneficiary-card.ts';
|
|
7
|
+
import '../../../customizable-components/text-field/qonto-text-field.ts';
|
|
8
|
+
import '../../../customizable-components/select-field/qonto-select-field.ts';
|
|
9
|
+
import '../../../customizable-components/select-field/qonto-option.ts';
|
|
10
|
+
import '../../../customizable-components/amount-field/qonto-amount-field.ts';
|
|
11
|
+
import type { OperationSettings } from '@validation/operation-settings-validation.ts';
|
|
12
|
+
import type { BankAccount } from '@organizations/organizations.types.ts';
|
|
13
|
+
import type { VopVerificationResult } from '@sepa-transfers/sepa-transfers.types';
|
|
14
|
+
import type { Beneficiary } from '@beneficiaries/beneficiaries.types.ts';
|
|
15
|
+
/**
|
|
16
|
+
* Step 2: Transfer Details
|
|
17
|
+
* Collects transfer amount and reference for the SEPA transfer.
|
|
18
|
+
*/
|
|
19
|
+
export declare class TransferDetailsPage extends LitElement {
|
|
20
|
+
static styles: import("lit").CSSResult;
|
|
21
|
+
operationSettings: OperationSettings | undefined;
|
|
22
|
+
locale: string;
|
|
23
|
+
beneficiary: Beneficiary | undefined;
|
|
24
|
+
accountToDebit: BankAccount | undefined;
|
|
25
|
+
transferAmount: number;
|
|
26
|
+
transferReference: string;
|
|
27
|
+
vopResult: VopVerificationResult | undefined;
|
|
28
|
+
isLoadingVop: boolean;
|
|
29
|
+
private bankAccounts;
|
|
30
|
+
private isLoading;
|
|
31
|
+
private error;
|
|
32
|
+
private amountTouched;
|
|
33
|
+
private referenceTouched;
|
|
34
|
+
connectedCallback(): void;
|
|
35
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
36
|
+
/**
|
|
37
|
+
* Returns error message for amount field if validation fails
|
|
38
|
+
*/
|
|
39
|
+
private get amountErrorMessage();
|
|
40
|
+
/**
|
|
41
|
+
* Returns error message for reference field if validation fails
|
|
42
|
+
*/
|
|
43
|
+
private get referenceErrorMessage();
|
|
44
|
+
private fetchBankAccounts;
|
|
45
|
+
private handleAmountChange;
|
|
46
|
+
private handleAmountBlur;
|
|
47
|
+
private handleReferenceChange;
|
|
48
|
+
private handleReferenceBlur;
|
|
49
|
+
private handlePrevious;
|
|
50
|
+
private handleSubmit;
|
|
51
|
+
render(): import("lit").TemplateResult<1>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=transfer-details-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-details-page.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAQvC,OAAO,oDAAoD,CAAC;AAC5D,OAAO,6DAA6D,CAAC;AACrE,OAAO,yDAAyD,CAAC;AACjE,OAAO,gFAAgF,CAAC;AACxF,OAAO,6EAA6E,CAAC;AACrF,OAAO,iEAAiE,CAAC;AACzE,OAAO,qEAAqE,CAAC;AAC7E,OAAO,+DAA+D,CAAC;AACvE,OAAO,qEAAqE,CAAC;AAI7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE;;;GAGG;AACH,qBAEa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAA6B;IAG1C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAGrC,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IAGxC,cAAc,EAAE,MAAM,CAAK;IAG3B,iBAAiB,EAAE,MAAM,CAAM;IAG/B,SAAS,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAG7C,YAAY,EAAE,OAAO,CAAS;IAG9B,OAAO,CAAC,YAAY,CAAqB;IAGzC,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAGlC,OAAO,CAAC,aAAa,CAAkB;IAGvC,OAAO,CAAC,gBAAgB,CAAkB;IAE1C,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C;;OAEG;IACH,OAAO,KAAK,kBAAkB,GAiB7B;IAED;;OAEG;IACH,OAAO,KAAK,qBAAqB,GAUhC;YAEa,iBAAiB;IAwB/B,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,YAAY;IAYpB,MAAM;CAmIP"}
|
package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-details-page.styles.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,yBA6GrC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../../../customizable-components/text/qonto-text-heading.ts';
|
|
3
|
+
import '../../../customizable-components/lottie-player/qonto-lottie-player.ts';
|
|
4
|
+
export declare class TransferErrorPage extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
locale: string;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
private handleFinishButtonPress;
|
|
9
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=transfer-error-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-error-page.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAOvC,OAAO,6DAA6D,CAAC;AACrE,OAAO,uEAAuE,CAAC;AAE/E,qBAEa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,0BAA2B;IAGxC,MAAM,EAAE,MAAM,CAAQ;IAEtB,iBAAiB;IAKjB,OAAO,CAAC,uBAAuB;IAQ/B,SAAS,CAAC,MAAM;CAajB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-error-page.styles.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,yBAanC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../../../customizable-components/text/qonto-text-heading.ts';
|
|
3
|
+
import '../../../customizable-components/lottie-player';
|
|
4
|
+
export declare class TransferSuccessPage extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
locale: string;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
private handleOkButtonPress;
|
|
9
|
+
private handleCreateAnotherTransferButtonPress;
|
|
10
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=transfer-success-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-success-page.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAQvC,OAAO,6DAA6D,CAAC;AACrE,OAAO,gDAAgD,CAAC;AAExD,qBAEa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAA6B;IAG1C,MAAM,EAAE,MAAM,CAAQ;IAEtB,iBAAiB;IAKjB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,sCAAsC;IAU9C,SAAS,CAAC,MAAM;CAkBjB"}
|
package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-success-page.styles.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,yBAoBrC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../../../customizable-components/styles/styles.css';
|
|
3
|
+
import '../../../customizable-components/button/qonto-button.ts';
|
|
4
|
+
import type { OperationSettings } from '@validation/operation-settings-validation.ts';
|
|
5
|
+
import type { BankAccount } from '@organizations/organizations.types.ts';
|
|
6
|
+
import type { Beneficiary } from '@beneficiaries/beneficiaries.types';
|
|
7
|
+
import type { VopVerificationResult } from '@sepa-transfers/sepa-transfers.types';
|
|
8
|
+
export declare class TransferSummaryPage extends LitElement {
|
|
9
|
+
static styles: import("lit").CSSResult;
|
|
10
|
+
operationSettings: OperationSettings | undefined;
|
|
11
|
+
locale: string;
|
|
12
|
+
beneficiary: Beneficiary | undefined;
|
|
13
|
+
accountToDebit: BankAccount | undefined;
|
|
14
|
+
transferAmount: string;
|
|
15
|
+
transferReference: string;
|
|
16
|
+
vopResult: VopVerificationResult | undefined;
|
|
17
|
+
isConfirming: boolean;
|
|
18
|
+
error: string | undefined;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
21
|
+
private handlePrevious;
|
|
22
|
+
private handleConfirm;
|
|
23
|
+
render(): import("lit").TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=transfer-summary-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-summary-page.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC,OAAO,oDAAoD,CAAC;AAC5D,OAAO,yDAAyD,CAAC;AAGjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAKlF,qBAEa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAA6B;IAG1C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAa;IAGjD,cAAc,EAAE,WAAW,GAAG,SAAS,CAAa;IAGpD,cAAc,EAAE,MAAM,CAAM;IAG5B,iBAAiB,EAAE,MAAM,CAAM;IAG/B,SAAS,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAG7C,YAAY,EAAE,OAAO,CAAS;IAG9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,iBAAiB;IAKjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;IAcrB,MAAM;CAwHP"}
|
package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-summary-page.styles.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,yBAwKrC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { OperationSettings } from '@validation/operation-settings-validation';
|
|
3
|
+
import './pages/beneficiary-selection-page.ts';
|
|
4
|
+
import './pages/transfer-details-page.ts';
|
|
5
|
+
import './pages/transfer-summary-page.ts';
|
|
6
|
+
import './pages/transfer-success-page.ts';
|
|
7
|
+
import './pages/transfer-error-page.ts';
|
|
8
|
+
import '../../customizable-components/styles/styles.css';
|
|
9
|
+
/**
|
|
10
|
+
* Valid page names for SEPA Transfer Creation component
|
|
11
|
+
*/
|
|
12
|
+
export declare const SEPA_TRANSFER_PAGES: {
|
|
13
|
+
readonly BENEFICIARY_SELECTION: "beneficiary-selection";
|
|
14
|
+
readonly TRANSFER_DETAILS: "transfer-details";
|
|
15
|
+
readonly TRANSFER_SUMMARY: "transfer-summary";
|
|
16
|
+
readonly TRANSFER_SUCCESS: "transfer-success";
|
|
17
|
+
readonly TRANSFER_ERROR: "transfer-error";
|
|
18
|
+
};
|
|
19
|
+
export type SepaTransferPages = (typeof SEPA_TRANSFER_PAGES)[keyof typeof SEPA_TRANSFER_PAGES];
|
|
20
|
+
/**
|
|
21
|
+
* SEPA Transfer Creation component with multi-page navigation.
|
|
22
|
+
* This component provides a 3-page form interface for users to create new SEPA transfers:
|
|
23
|
+
* - step-1: Recipient information (name and IBAN)
|
|
24
|
+
* - step-2: Transfer details (amount and reference)
|
|
25
|
+
* - step-3: Transfer summary (review and confirm)
|
|
26
|
+
*
|
|
27
|
+
* Uses generic page-based navigation for flexibility and reusability.
|
|
28
|
+
* Pages are defined as string literals, making the component more extensible
|
|
29
|
+
* for different navigation flows.
|
|
30
|
+
*
|
|
31
|
+
* Uses internal state management for page navigation, making it fully reusable
|
|
32
|
+
* at any URL without interfering with browser routing.
|
|
33
|
+
*/
|
|
34
|
+
export declare class SepaTransferCreation extends LitElement {
|
|
35
|
+
static styles: import("lit").CSSResult;
|
|
36
|
+
operationSettings: OperationSettings | undefined;
|
|
37
|
+
locale: string;
|
|
38
|
+
private currentPage;
|
|
39
|
+
private formData;
|
|
40
|
+
private transferCreationProcess;
|
|
41
|
+
private vopResult;
|
|
42
|
+
private isCreatingTransfer;
|
|
43
|
+
private transferError;
|
|
44
|
+
connectedCallback(): void;
|
|
45
|
+
disconnectedCallback(): void;
|
|
46
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
47
|
+
private handleRecipientInfoSubmitted;
|
|
48
|
+
private handleTransferDetailsSubmitted;
|
|
49
|
+
private handleGoToStep;
|
|
50
|
+
private handleTransferConfirmed;
|
|
51
|
+
render(): import("lit").TemplateResult<1>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=sepa-transfer-creation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sepa-transfer-creation.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAQnF,OAAO,uCAAuC,CAAC;AAC/C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AACxC,OAAO,iDAAiD,CAAC;AAiBzD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;;;;;;;;;;;;GAaG;AACH,qBAEa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAA8B;IAG3C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,WAAW,CACyB;IAG5C,OAAO,CAAC,QAAQ,CAKd;IAGF,OAAO,CAAC,uBAAuB,CAEjB;IAGd,OAAO,CAAC,SAAS,CAAoC;IAGrD,OAAO,CAAC,kBAAkB,CAAkB;IAG5C,OAAO,CAAC,aAAa,CAAqB;IAE1C,iBAAiB;IAkBjB,oBAAoB;IAoBpB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,OAAO,CAAC,4BAA4B,CA4ClC;IAEF,OAAO,CAAC,8BAA8B,CAYpC;IAEF,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,uBAAuB,CAmD7B;IAEF,MAAM;CA8CP"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { BankAccount } from '@organizations/organizations.types.ts';
|
|
2
|
+
import type { Beneficiary } from '@beneficiaries/beneficiaries.types';
|
|
3
|
+
/**
|
|
4
|
+
* Event detail for recipient info submitted (Step 1)
|
|
5
|
+
*/
|
|
6
|
+
export interface RecipientInfoSubmittedEventDetail {
|
|
7
|
+
beneficiary: Beneficiary;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Custom event emitted when recipient info is submitted in Step 1
|
|
11
|
+
*/
|
|
12
|
+
export declare class RecipientInfoSubmittedEvent extends CustomEvent<RecipientInfoSubmittedEventDetail> {
|
|
13
|
+
constructor(detail: RecipientInfoSubmittedEventDetail);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Event detail for transfer details submitted (Step 2)
|
|
17
|
+
*/
|
|
18
|
+
export interface TransferDetailsSubmittedEventDetail {
|
|
19
|
+
accountToDebit: BankAccount;
|
|
20
|
+
amount: string;
|
|
21
|
+
reference: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Custom event emitted when transfer details are submitted in Step 2
|
|
25
|
+
*/
|
|
26
|
+
export declare class TransferDetailsSubmittedEvent extends CustomEvent<TransferDetailsSubmittedEventDetail> {
|
|
27
|
+
constructor(detail: TransferDetailsSubmittedEventDetail);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Event detail for SEPA transfer creation
|
|
31
|
+
*/
|
|
32
|
+
export interface SepaTransferCreationEventDetail {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Custom event emitted when a SEPA transfer is created
|
|
37
|
+
*/
|
|
38
|
+
export declare class SepaTransferCreationEvent extends CustomEvent<SepaTransferCreationEventDetail> {
|
|
39
|
+
constructor(detail: SepaTransferCreationEventDetail);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=sepa-transfer-creation.events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sepa-transfer-creation.events.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW,CAAC,iCAAiC,CAAC;gBACjF,MAAM,EAAE,iCAAiC;CAOtD;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,cAAc,EAAE,WAAW,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,WAAW,CAAC,mCAAmC,CAAC;gBACrF,MAAM,EAAE,mCAAmC;CAOxD;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,WAAW,CAAC,+BAA+B,CAAC;gBAC7E,MAAM,EAAE,+BAA+B;CAOpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sepa-transfer-creation.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,yBAYtC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats an IBAN for display purposes
|
|
3
|
+
* @param iban - The IBAN to format
|
|
4
|
+
* @returns The formatted IBAN with spaces every 4 characters
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatIBAN(iban: string): string;
|
|
7
|
+
//# sourceMappingURL=sepa-transfer-creation.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sepa-transfer-creation.utils.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-elements.d.ts","sourceRoot":"","sources":["../../src/ui/ui-elements.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ui-elements.d.ts","sourceRoot":"","sources":["../../src/ui/ui-elements.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,uBAAuB,CAAC;AAShF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,uBAAuB,eAAe,CAAC,OAAO,CAAC,KAC9C,OAAO,CAAC,IAAI,CA2Bd,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { MfaMethod } from '@common/operation-settings/operation-settings.types';
|
|
2
2
|
import type { Locale } from '@common/locale/locale.types';
|
|
3
3
|
import type { PaginationSettings } from '@common/api-pagination/api-pagination.types';
|
|
4
|
+
export type UIParentElementId = string | (() => HTMLElement);
|
|
4
5
|
/**
|
|
5
6
|
* Optional settings to configure the SDK's operations that will be performed
|
|
6
7
|
* after the initialization. This can be also provided when calling the
|
|
@@ -11,7 +12,7 @@ export interface OperationSettings {
|
|
|
11
12
|
* The id of the element where the SDK UI for sensitive operations will be
|
|
12
13
|
* rendered.
|
|
13
14
|
*/
|
|
14
|
-
uiParentElementId?:
|
|
15
|
+
uiParentElementId?: UIParentElementId;
|
|
15
16
|
/**
|
|
16
17
|
* The Multifactor Authentication (MFA) preference to use for the operations.
|
|
17
18
|
* This can be either `MFA_METHODS.PASSKEY`, `MFA_METHODS.PAIRED_DEVICE` or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEtF;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IAEH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAAoB,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrE;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wCAAwC;IACvD;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAMD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,EACE,UAAU,GACX,GAAE,wCAA0F,GAC5F,iBAAiB,CA6DnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qonto/embed-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Library to embed Qonto features in your application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"prebuild": "pnpm run clean",
|
|
62
62
|
"build": "rollup -c && pnpm run build:types",
|
|
63
|
+
"build:storybook": "storybook build",
|
|
63
64
|
"build:types": "tsc -p tsconfig.types.json",
|
|
64
65
|
"build:watch": "rollup -c -w",
|
|
65
66
|
"clean": "rm -rf dist",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"lint:fix": "eslint . --fix",
|
|
72
73
|
"prepare": "husky",
|
|
73
74
|
"semantic-release": "semantic-release",
|
|
75
|
+
"storybook": "storybook dev -p 6006",
|
|
74
76
|
"test": "vitest run",
|
|
75
77
|
"test:coverage": "vitest run --coverage",
|
|
76
78
|
"test:watch": "vitest",
|
|
@@ -88,36 +90,47 @@
|
|
|
88
90
|
"dependencies": {
|
|
89
91
|
"@lit/localize": "^0.12.2",
|
|
90
92
|
"lit": "^3.3.1",
|
|
93
|
+
"lottie-web": "^5.13.0",
|
|
91
94
|
"uuid": "^11.1.0"
|
|
92
95
|
},
|
|
93
96
|
"devDependencies": {
|
|
97
|
+
"@chromatic-com/storybook": "^4.1.2",
|
|
94
98
|
"@commitlint/cli": "^19.8.0",
|
|
95
99
|
"@commitlint/config-conventional": "^19.8.0",
|
|
96
100
|
"@eslint/js": "^9.24.0",
|
|
97
101
|
"@lit/localize-tools": "^0.8.0",
|
|
98
102
|
"@rollup/plugin-alias": "^5.1.1",
|
|
99
103
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
104
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
100
105
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
101
106
|
"@rollup/plugin-terser": "^0.4.4",
|
|
102
107
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
108
|
+
"@storybook/addon-a11y": "^10.0.8",
|
|
109
|
+
"@storybook/addon-docs": "^10.0.8",
|
|
110
|
+
"@storybook/addon-vitest": "^10.0.8",
|
|
111
|
+
"@storybook/web-components-vite": "^10.0.8",
|
|
103
112
|
"@types/jsdom": "^21.1.7",
|
|
104
113
|
"@types/node": "^22.14.0",
|
|
114
|
+
"@vitest/browser": "3.1.1",
|
|
105
115
|
"@vitest/coverage-v8": "3.1.1",
|
|
106
116
|
"commitizen": "^4.3.1",
|
|
107
117
|
"cz-conventional-changelog": "^3.3.0",
|
|
108
118
|
"eslint": "^9.24.0",
|
|
119
|
+
"eslint-plugin-storybook": "^10.0.8",
|
|
109
120
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
110
121
|
"globals": "^16.0.0",
|
|
111
122
|
"husky": "^9.1.7",
|
|
112
123
|
"jsdom": "^26.1.0",
|
|
113
124
|
"lint-staged": "^15.5.0",
|
|
114
125
|
"msw": "^2.7.5",
|
|
126
|
+
"playwright": "^1.56.1",
|
|
115
127
|
"postcss-import": "^16.1.1",
|
|
116
128
|
"prettier": "3.5.3",
|
|
117
129
|
"prettier-plugin-packagejson": "^2.5.10",
|
|
118
130
|
"rollup": "^4.39.0",
|
|
119
131
|
"rollup-plugin-postcss": "^4.0.2",
|
|
120
132
|
"semantic-release": "^25.0.1",
|
|
133
|
+
"storybook": "^10.0.8",
|
|
121
134
|
"typedoc": "^0.28.2",
|
|
122
135
|
"typedoc-plugin-markdown": "^4.6.2",
|
|
123
136
|
"typedoc-plugin-missing-exports": "^4.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{QontoEmbedSdkError as r}from"./QontoEmbedSdkError.js";class e extends r{constructor(r){super(),this.name="EmbedUIElementError",this.message=r}}export{e as EmbedUIElementError};
|