@qonto/embed-sdk 0.41.0 → 0.42.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 (85) hide show
  1. package/README.md +13 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.umd.js +658 -1
  5. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js +1 -0
  6. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js +6 -0
  7. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/default-msg.js +6 -0
  8. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/deferred.js +6 -0
  9. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/fnv1a64.js +6 -0
  10. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/id-generation.js +6 -0
  11. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/locale-status-event.js +6 -0
  12. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-controller.js +6 -0
  13. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js +6 -0
  14. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/runtime-msg.js +6 -0
  15. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js +6 -0
  16. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +6 -0
  17. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js +6 -0
  18. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +6 -0
  19. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +6 -0
  20. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +6 -0
  21. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +1 -0
  22. package/dist/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +6 -0
  23. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +6 -0
  24. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +6 -0
  25. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +6 -0
  26. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +1 -0
  27. package/dist/src/beneficiaries/beneficiaries.js +1 -1
  28. package/dist/src/index.js +1 -1
  29. package/dist/src/organizations/organizations.js +1 -1
  30. package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
  31. package/dist/src/transactions/transactions.js +1 -1
  32. package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.js +4 -0
  33. package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.styles.js +130 -0
  34. package/dist/src/ui/customizable-components/button/qonto-button.js +6 -0
  35. package/dist/src/ui/customizable-components/button/qonto-button.styles.js +153 -0
  36. package/dist/src/ui/customizable-components/icons/icon-checkmark-rounded-filled.js +15 -0
  37. package/dist/src/ui/customizable-components/icons/icon-clock-filled.js +9 -0
  38. package/dist/src/ui/customizable-components/icons/icon-declined.js +12 -0
  39. package/dist/src/ui/customizable-components/icons/icon-error-filled.js +10 -0
  40. package/dist/src/ui/customizable-components/icons/icon-in-progress.js +13 -0
  41. package/dist/src/ui/customizable-components/icons/icon-warning.js +15 -0
  42. package/dist/src/ui/customizable-components/localize/configure-localization.js +1 -0
  43. package/dist/src/ui/customizable-components/localize/generated/locale-codes.js +1 -0
  44. package/dist/src/ui/customizable-components/localize/generated/locales/de.js +1 -0
  45. package/dist/src/ui/customizable-components/localize/generated/locales/es.js +1 -0
  46. package/dist/src/ui/customizable-components/localize/generated/locales/fr.js +1 -0
  47. package/dist/src/ui/customizable-components/localize/generated/locales/it.js +1 -0
  48. package/dist/src/ui/customizable-components/localize/generated/locales/nl.js +1 -0
  49. package/dist/src/ui/customizable-components/localize/generated/locales/pt.js +1 -0
  50. package/dist/src/ui/customizable-components/styles/styles.css.js +1 -0
  51. package/dist/src/ui/customizable-components/transfer-list/transfer-list.events.js +1 -0
  52. package/dist/src/ui/customizable-components/transfer-list/transfer-list.js +51 -0
  53. package/dist/src/ui/customizable-components/transfer-list/transfer-list.styles.js +160 -0
  54. package/dist/src/ui/customizable-components/transfer-list/transfer-list.utils.js +1 -0
  55. package/dist/src/ui/customizable-components/utils/format-date.js +1 -0
  56. package/dist/src/ui/customizable-components/utils/format-money.js +1 -0
  57. package/dist/src/ui/customizable-components/utils/locales.js +1 -0
  58. package/dist/src/ui/index.js +1 -0
  59. package/dist/src/ui/ui-elements/transfer-list.js +1 -0
  60. package/dist/src/ui/ui-elements.constants.js +1 -0
  61. package/dist/src/ui/ui-elements.validation.js +1 -0
  62. package/dist/ui/customizable-components/localize/configure-localization.d.ts +6 -0
  63. package/dist/ui/customizable-components/localize/configure-localization.d.ts.map +1 -0
  64. package/dist/ui/customizable-components/localize/generated/locale-codes.d.ts +14 -0
  65. package/dist/ui/customizable-components/localize/generated/locale-codes.d.ts.map +1 -0
  66. package/dist/ui/customizable-components/localize/generated/locales/de.d.ts +18 -0
  67. package/dist/ui/customizable-components/localize/generated/locales/de.d.ts.map +1 -0
  68. package/dist/ui/customizable-components/localize/generated/locales/es.d.ts +18 -0
  69. package/dist/ui/customizable-components/localize/generated/locales/es.d.ts.map +1 -0
  70. package/dist/ui/customizable-components/localize/generated/locales/fr.d.ts +18 -0
  71. package/dist/ui/customizable-components/localize/generated/locales/fr.d.ts.map +1 -0
  72. package/dist/ui/customizable-components/localize/generated/locales/it.d.ts +18 -0
  73. package/dist/ui/customizable-components/localize/generated/locales/it.d.ts.map +1 -0
  74. package/dist/ui/customizable-components/localize/generated/locales/nl.d.ts +18 -0
  75. package/dist/ui/customizable-components/localize/generated/locales/nl.d.ts.map +1 -0
  76. package/dist/ui/customizable-components/localize/generated/locales/pt.d.ts +18 -0
  77. package/dist/ui/customizable-components/localize/generated/locales/pt.d.ts.map +1 -0
  78. package/dist/ui/customizable-components/transfer-list/transfer-list.d.ts +12 -2
  79. package/dist/ui/customizable-components/transfer-list/transfer-list.d.ts.map +1 -1
  80. package/dist/ui/customizable-components/transfer-list/transfer-list.styles.d.ts.map +1 -1
  81. package/dist/ui/customizable-components/transfer-list/transfer-list.utils.d.ts +6 -0
  82. package/dist/ui/customizable-components/transfer-list/transfer-list.utils.d.ts.map +1 -0
  83. package/dist/ui/ui-elements/transfer-list.d.ts +4 -5
  84. package/dist/ui/ui-elements/transfer-list.d.ts.map +1 -1
  85. package/package.json +7 -2
package/README.md CHANGED
@@ -50,6 +50,19 @@ breaking changes, we may need to make some in the future. Note that while the SD
50
50
  stage, breaking changes might happen.
51
51
  Once we reach v1.0.0, we will follow [semantic versioning](https://semver.org/) strictly.
52
52
 
53
+ ## Programmatic features
54
+
55
+ This SDK exposes a set of programmatic features that you can use to interact with Qonto services. These features are
56
+ grouped into namespaces under `src` (cards, sepa-transfers, beneficiaries...) and they mainly export functions that can
57
+ be called by SDK users. Most of those functions are wrappers around Qonto's third party REST API, but some have more
58
+ complex logic, like opening iframes to perform sensitive actions.
59
+
60
+ ## UI Elements
61
+
62
+ The SDK exposes a set of UI Elements that can be embedded in partners' web applications. These elements are standard Web
63
+ Components that can be used in any front-end framework or vanilla JavaScript app. The implementation is done using Lit,
64
+ and the components are available under the `ui` namespace under `src`.
65
+
53
66
  ## Next steps
54
67
 
55
68
  Now that you have the SDK installed and initialized, you can start using it. Check
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { organizations } from '@organizations';
7
7
  import { transactions } from '@transactions';
8
8
  import { authLinks } from '@auth-links';
9
9
  import type { Card, VirtualCardOrderSettings, PhysicalCardOrderSettings, CardOrderSettings, Beneficiary, SepaTransfer, Transaction, Item, CreatePaymentLinkSettings, PaymentLinkParams, AuthLinkRequestParams, AuthLinkRequestResult, AuthLinkRequestSettings, PostAuthAction } from '@types';
10
- export { initialize, logout, cards, sepaTransfers, beneficiaries, constants, paymentLinks, organizations, transactions, authLinks, };
10
+ import { createUIElement } from '@ui';
11
+ export { initialize, logout, cards, sepaTransfers, beneficiaries, constants, paymentLinks, organizations, transactions, authLinks, createUIElement, };
11
12
  export type { Card, VirtualCardOrderSettings, PhysicalCardOrderSettings, CardOrderSettings, Beneficiary, SepaTransfer, Transaction, Item, CreatePaymentLinkSettings, PaymentLinkParams, AuthLinkRequestParams, AuthLinkRequestResult, AuthLinkRequestSettings, PostAuthAction, };
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EACV,IAAI,EACJ,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,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