@qonto/embed-sdk 0.49.1 → 0.50.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.
Files changed (73) hide show
  1. package/dist/auth-links/auth-links.d.ts.map +1 -1
  2. package/dist/beneficiaries/beneficiaries.d.ts.map +1 -1
  3. package/dist/cards/cards.d.ts.map +1 -1
  4. package/dist/common/common.types.d.ts +9 -0
  5. package/dist/common/common.types.d.ts.map +1 -0
  6. package/dist/common/common.utils.d.ts +9 -0
  7. package/dist/common/common.utils.d.ts.map +1 -1
  8. package/dist/common/network/network.d.ts +7 -2
  9. package/dist/common/network/network.d.ts.map +1 -1
  10. package/dist/common/operation-settings/operation-settings.d.ts +3 -0
  11. package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
  12. package/dist/index.umd.js +1632 -18
  13. package/dist/mocks/handlers.d.ts.map +1 -1
  14. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +6 -0
  15. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +6 -0
  16. package/dist/organizations/organizations.d.ts.map +1 -1
  17. package/dist/sca/sca.d.ts.map +1 -1
  18. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -1
  19. package/dist/sepa-transfers/sepa-transfers.d.ts.map +1 -1
  20. package/dist/src/auth-links/auth-links.js +1 -1
  21. package/dist/src/beneficiaries/beneficiaries.js +1 -1
  22. package/dist/src/cards/cards.js +1 -1
  23. package/dist/src/common/common.utils.js +1 -1
  24. package/dist/src/common/operation-settings/operation-settings.js +1 -1
  25. package/dist/src/organizations/organizations.js +1 -1
  26. package/dist/src/sca/sca.js +1 -1
  27. package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.js +1 -1
  28. package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
  29. package/dist/src/sepa-transfers/sepa-transfers.public-api.js +1 -1
  30. package/dist/src/transactions/transactions.js +1 -1
  31. package/dist/src/ui/animations/general_success.json.js +1 -0
  32. package/dist/src/ui/animations/generic_error.json.js +1 -0
  33. package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.js +29 -0
  34. package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.styles.js +178 -0
  35. package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.utils.js +1 -0
  36. package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.js +10 -0
  37. package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.js +140 -0
  38. package/dist/src/ui/customizable-components/select-field/qonto-option.js +5 -0
  39. package/dist/src/ui/customizable-components/select-field/qonto-select-field.js +73 -0
  40. package/dist/src/ui/customizable-components/select-field/qonto-select-field.styles.js +307 -0
  41. package/dist/src/ui/customizable-components/text-field/qonto-text-field.js +24 -0
  42. package/dist/src/ui/customizable-components/text-field/qonto-text-field.styles.js +139 -0
  43. package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js +3 -3
  44. package/dist/src/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.js +1 -0
  45. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.js +20 -0
  46. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.js +70 -0
  47. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.js +16 -0
  48. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.js +1 -0
  49. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.js +106 -0
  50. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.js +110 -0
  51. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.js +11 -0
  52. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.js +14 -0
  53. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.js +16 -0
  54. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.js +21 -0
  55. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.js +89 -0
  56. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.js +169 -0
  57. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.js +15 -0
  58. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.js +1 -0
  59. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.js +32 -0
  60. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.js +33 -0
  61. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.js +1 -0
  62. package/dist/src/ui/ui-elements.constants.js +1 -1
  63. package/dist/src/ui/ui-elements.js +1 -1
  64. package/dist/src/validation/operation-settings-validation.js +1 -1
  65. package/dist/transactions/transactions.d.ts.map +1 -1
  66. package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts.map +1 -1
  67. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -1
  68. package/dist/ui/ui-elements.constants.d.ts +1 -0
  69. package/dist/ui/ui-elements.constants.d.ts.map +1 -1
  70. package/dist/ui/ui-elements.d.ts.map +1 -1
  71. package/dist/validation/operation-settings-validation.d.ts +27 -1
  72. package/dist/validation/operation-settings-validation.d.ts.map +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";const t=e`
2
+ :host {
3
+ display: block;
4
+ width: 100%;
5
+ font-family: var(--qonto-embed-font-family, 'PolySans Qonto', sans-serif);
6
+ }
7
+
8
+ [data-router-outlet] {
9
+ display: flex;
10
+ flex-direction: column;
11
+ width: 100%;
12
+ }
13
+
14
+ [data-sca-modal]:not(:empty) {
15
+ position: fixed;
16
+ inset: 0;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ background: rgba(0, 0, 0, 0.3);
21
+ z-index: 10000;
22
+ }
23
+
24
+ [data-sca-modal]:not(:empty) > * {
25
+ background: #fff;
26
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
27
+ border-radius: 8px;
28
+ padding: 2rem;
29
+ width: 500px;
30
+ max-height: 90vh;
31
+ overflow: auto;
32
+ }
33
+ `;export{t as sepaTransferCreationStyles};
@@ -0,0 +1 @@
1
+ function e(e){return e.replace(/\s/g,"").toUpperCase().replace(/(.{4})/g,"$1 ").trim()}export{e as formatIBAN};
@@ -1 +1 @@
1
- const t={TRANSFER_LIST:"transfer-list"};export{t as UI_ELEMENT_NAMES};
1
+ const r={TRANSFER_LIST:"transfer-list",SEPA_TRANSFER_CREATION:"sepa-transfer-creation"};export{r as UI_ELEMENT_NAMES};
@@ -1 +1 @@
1
- import{isRunningInServer as t}from"../common/runtime/runtime.validation.js";import{validateCreateUIElementParams as e}from"./ui-elements.validation.js";import{validateOperationSettingsParams as n}from"../validation/operation-settings-validation.js";import{UI_ELEMENT_NAMES as i}from"./ui-elements.constants.js";import{createTransferListElement as o}from"./ui-elements/transfer-list/create-transfer-list-element.js";import{getUIParentElement as m}from"../common/common.utils.js";const r=async r=>{if(t())return;const{uiElementSettings:s,operationSettings:a={}}=r,{uiElementName:l}=e(s),{uiParentElementId:u}=n(a,{requiresUI:!0}),c=m(u);if(l===i.TRANSFER_LIST)return void o({containerElement:c,uiElementSettings:s,operationSettings:a});const p=document.createElement(`qonto-${l}`);c.appendChild(p)};export{r as createUIElement};
1
+ import{isRunningInServer as e}from"../common/runtime/runtime.validation.js";import{validateCreateUIElementParams as t}from"./ui-elements.validation.js";import{validateOperationSettingsParams as n}from"../validation/operation-settings-validation.js";import{UI_ELEMENT_NAMES as i}from"./ui-elements.constants.js";import{createTransferListElement as o}from"./ui-elements/transfer-list/create-transfer-list-element.js";import{createSepaTransferCreationElement as r}from"./ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.js";import{getUIParentElement as m}from"../common/common.utils.js";const s=async s=>{if(e())return;const{uiElementSettings:a,operationSettings:l={}}=s,{uiElementName:u}=t(a),{uiParentElementId:c}=n(l,{requiresUI:!0}),p=m(c);if(u===i.TRANSFER_LIST)return void o({containerElement:p,uiElementSettings:a,operationSettings:l});if(u===i.SEPA_TRANSFER_CREATION)return void r({containerElement:p,uiElementSettings:a,operationSettings:l});const f=document.createElement(`qonto-${u}`);p.appendChild(f)};export{s as createUIElement};
@@ -1 +1 @@
1
- import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{MFA_METHODS as t}from"../common/constants.js";import{environmentManager as o}from"../common/environment/environment-manager.js";const r={requiresUI:!1};function i(i,{requiresUI:s}=r){const a=i?.uiParentElementId||n.getUIParentElementId();if(s){if(!a)throw new e("operationSettings parameter must have a uiParentElementId for the called function.\nYou can pass it either to the initialize function or in a per function basis.");if(!["string","function"].includes(typeof a))throw new e("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const u=i?.mfaPreference||n.getMFAPreference();if(u){const n=(m=Object.values(t),o.isProductionEnvironment()?m.filter((e=>e!==t.MOCK)):m);if(!n.includes(u))throw new e(`operationSettings.mfaPreference must be one of ${n.join(", ")}`);if(o.isProductionEnvironment()&&u===t.MOCK)throw new e("operationSettings.mfaPreference cannot be set to mock in production environment.")}var m;const c=i?.debugMode||n.getDebugMode();if(void 0!==c&&"boolean"!=typeof c)throw new e("operationSettings.debugMode must be a boolean.");const f=i?.proxyRequestFunction||n.getProxyRequestFunction();if(f&&"function"!=typeof f)throw new e("operationSettings.proxyRequestFunction must be a function.");return{...i,uiParentElementId:a,mfaPreference:u,debugMode:c,proxyRequestFunction:f}}export{i as validateOperationSettingsParams};
1
+ import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{operationSettingsManager as t}from"../common/operation-settings/operation-settings.js";import{MFA_METHODS as n}from"../common/constants.js";import{environmentManager as o}from"../common/environment/environment-manager.js";const r={requiresUI:!1};function i(i,{requiresUI:s}=r){const a=i?.uiParentElementId||t.getUIParentElementId();if(s){if(!a)throw new e("operationSettings parameter must have a uiParentElementId for the called function.\nYou can pass it either to the initialize function or in a per function basis.");if(!["string","function"].includes(typeof a))throw new e("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const c=i?.mfaPreference||t.getMFAPreference();if(c){const t=(u=Object.values(n),o.isProductionEnvironment()?u.filter((e=>e!==n.MOCK)):u);if(!t.includes(c))throw new e(`operationSettings.mfaPreference must be one of ${t.join(", ")}`);if(o.isProductionEnvironment()&&c===n.MOCK)throw new e("operationSettings.mfaPreference cannot be set to mock in production environment.")}var u;const m=i?.debugMode||t.getDebugMode();if(void 0!==m&&"boolean"!=typeof m)throw new e("operationSettings.debugMode must be a boolean.");const p=i?.proxyRequestFunction||t.getProxyRequestFunction();if(p&&"function"!=typeof p)throw new e("operationSettings.proxyRequestFunction must be a function.");const f=i?.proxyEndpointDescriptor||t.getProxyEndpointDescriptor();if(f&&!f.path)throw new e("operationSettings.proxyEndpointDescriptor must have at least a string-formatted path property.");return{...i,uiParentElementId:a,mfaPreference:c,debugMode:m,proxyRequestFunction:p,proxyEndpointDescriptor:f}}export{i as validateOperationSettingsParams};
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/transactions/transactions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EAEX,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAUnF;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,eAAe,CACnC,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,uBAAuB,CAAC,GACjE,OAAO,CAAC,uBAAuB,CAAC,CAwClC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,cAAc,CAAC,EACnC,mBAAmB,EACnB,iBAAiB,GAClB,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAyBlE"}
1
+ {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/transactions/transactions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EAEX,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAOnF;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,eAAe,CACnC,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,uBAAuB,CAAC,GACjE,OAAO,CAAC,uBAAuB,CAAC,CAyClC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,cAAc,CAAC,EACnC,mBAAmB,EACnB,iBAAiB,GAClB,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CA0BlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"qonto-sca-passkey-waiting.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,OAAO,oEAAoE,CAAC;AAC5E,OAAO,sDAAsD,CAAC;AAC9D,OAAO,0DAA0D,CAAC;AAClE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,iDAAiD,CAAC;AAKzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAMtF,qBAEa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,0BAAgC;IAG7C,gBAAgB,EAAE,MAAM,CAAM;IAG9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAG9C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAGtC,OAAO,CAAC,WAAW,CAAkB;IAGrC,OAAO,CAAC,YAAY,CAAkB;IAEtC,OAAO,CAAC,gBAAgB,CAEV;IAEd,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;YAKd,YAAY;IAkC1B,OAAO,CAAC,WAAW;YAOL,kBAAkB;YA0BlB,iBAAiB;IAsB/B,OAAO,CAAC,gBAAgB;IAWxB,MAAM;CA4CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,sBAAsB,CAAC;KACrD;CACF"}
1
+ {"version":3,"file":"qonto-sca-passkey-waiting.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,OAAO,oEAAoE,CAAC;AAC5E,OAAO,sDAAsD,CAAC;AAC9D,OAAO,0DAA0D,CAAC;AAClE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,iDAAiD,CAAC;AAKzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAOtF,qBAEa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,0BAAgC;IAG7C,gBAAgB,EAAE,MAAM,CAAM;IAG9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAG9C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAGtC,OAAO,CAAC,WAAW,CAAkB;IAGrC,OAAO,CAAC,YAAY,CAAkB;IAEtC,OAAO,CAAC,gBAAgB,CAEV;IAEd,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;YAKd,YAAY;IAkC1B,OAAO,CAAC,WAAW;YAOL,kBAAkB;YAwClB,iBAAiB;IAsB/B,OAAO,CAAC,gBAAgB;IAWxB,MAAM;CA4CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,sBAAsB,CAAC;KACrD;CACF"}
@@ -1 +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;AACjE,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;CAqGP"}
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;AACjE,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;CAuGP"}
@@ -1,4 +1,5 @@
1
1
  export declare const UI_ELEMENT_NAMES: {
2
2
  TRANSFER_LIST: string;
3
+ SEPA_TRANSFER_CREATION: string;
3
4
  };
4
5
  //# sourceMappingURL=ui-elements.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-elements.constants.d.ts","sourceRoot":"","sources":["../../src/ui/ui-elements.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;CAE5B,CAAC"}
1
+ {"version":3,"file":"ui-elements.constants.d.ts","sourceRoot":"","sources":["../../src/ui/ui-elements.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC"}
@@ -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;AAShF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,uBAAuB,eAAe,CAAC,OAAO,CAAC,KAC9C,OAAO,CAAC,IAAI,CA2Bd,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;AAUhF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,uBAAuB,eAAe,CAAC,OAAO,CAAC,KAC9C,OAAO,CAAC,IAAI,CAkCd,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
+ import type { ProxyEndpointDescriptor, ProxyRequestFunction } from '@common/common.types.ts';
4
5
  export type UIParentElementId = string | (() => HTMLElement);
5
6
  /**
6
7
  * Optional settings to configure the SDK's operations that will be performed
@@ -67,7 +68,32 @@ export interface OperationSettings {
67
68
  * value to the called function. Read more about implementing the whole flow in
68
69
  * [the Proxy Endpoint Implementation guide](https://docs.qonto.com/api-reference/embed-sdk-api/variables/overview-common).
69
70
  */
70
- proxyRequestFunction?: (operationPayload: string) => Promise<string>;
71
+ proxyRequestFunction?: ProxyRequestFunction;
72
+ /**
73
+ * `proxyEndpointDescriptor` is a mechanism to avoid operating with sensitive
74
+ * information, like the access token and the staging token, in client side
75
+ * environments. Using them in client side could lead to data leak. It works as
76
+ * follows:
77
+ *
78
+ * Qonto Embed exposes a proxy endpoint in its API that is capable of getting
79
+ * requests prepared by the SDK. In your web application, you must implement a
80
+ * backend endpoint that receives a string value in the body,
81
+ * adds the access token in the `Authorization` header and calls the Qonto
82
+ * Embed proxy endpoint with the string payload you received. The `proxyEndpointDescriptor`
83
+ * the SDK expects is an object in which you will describe the call to your
84
+ * backend endpoint.
85
+ *
86
+ * When the SDK needs to perform an operation that involves a call to the Embed
87
+ * API which needs to include the access token, it will use the `proxyEndpointDescriptor`
88
+ * to call your backend endpoint.
89
+ *
90
+ * The `proxyEndpointDescriptor` must at least include:
91
+ * - `path`: A string representing the endpoint in your web app the SDK will call.
92
+ * - `method`: (optional) The HTTP method to use when calling your endpoint. Defaults to 'POST'.
93
+ * - `options.headers`: (optional) An object including a set of key value pairs
94
+ * which will be sent as headers to your web app's endpoint.
95
+ */
96
+ proxyEndpointDescriptor?: ProxyEndpointDescriptor;
71
97
  /**
72
98
  * The locale to use for the SDK. This is optional, and if not provided, it will
73
99
  * default to English. Setting the locale will make the SDK render its UI in the
@@ -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,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;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG;IACxD,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC;AAMF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,EAAE,wCAAwC,GAAG;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE,GACtE,uBAAuB,CAAC;AAC3B,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,CAAC,EAAE,wCAAwC,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,GACzE,iBAAiB,CAAC"}
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;AACtF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,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,oBAAoB,CAAC;IAC5C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wCAAwC;IACvD;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG;IACxD,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC;AAMF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,EAAE,wCAAwC,GAAG;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE,GACtE,uBAAuB,CAAC;AAC3B,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,CAAC,EAAE,wCAAwC,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,GACzE,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qonto/embed-sdk",
3
- "version": "0.49.1",
3
+ "version": "0.50.0",
4
4
  "description": "Library to embed Qonto features in your application",
5
5
  "type": "module",
6
6
  "exports": {