@qonto/embed-sdk 0.41.0 → 0.41.1

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.
@@ -1,11 +1,20 @@
1
1
  import { LitElement } from 'lit';
2
2
  import '../styles/styles.css';
3
- import type { SepaTransfer } from '@types';
3
+ import type { OperationSettings } from '@validation/operation-settings-validation';
4
+ import '../button/qonto-button.ts';
4
5
  export declare class TransferList extends LitElement {
5
6
  static styles: import("lit").CSSResult;
6
- transfers: SepaTransfer[];
7
+ operationSettings: OperationSettings | undefined;
7
8
  locale: string;
9
+ private transfers;
10
+ private paginationState;
11
+ private isLoading;
12
+ private error;
13
+ connectedCallback(): void;
14
+ private fetchTransfers;
8
15
  private handleRowClick;
16
+ private handlePreviousPage;
17
+ private handleNextPage;
9
18
  render(): import("lit").TemplateResult<1>;
10
19
  }
11
20
  //# sourceMappingURL=transfer-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,QAAQ,CAAC;AAwC/D,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAsB;IAGnC,SAAS,EAAE,YAAY,EAAE,CAAM;IAG/B,MAAM,EAAE,MAAM,CAAQ;IAEtB,OAAO,CAAC,cAAc;IAItB,MAAM;CAgDP"}
1
+ {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAGnF,OAAO,2BAA2B,CAAC;AACnC,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAsB;IAGnC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,SAAS,CAA6B;IAG9C,OAAO,CAAC,eAAe,CAA8B;IAGrD,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAElC,iBAAiB;YAKH,cAAc;IA+B5B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,cAAc;IAMtB,MAAM;CA6EP"}
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBAyI9B,CAAC"}
1
+ {"version":3,"file":"transfer-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBAwJ9B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { SepaTransferStatus } from '@types';
2
+ import { type Level } from '../badge-status/qonto-badge-status.ts';
3
+ import type { DirectiveResult } from 'lit/directive.js';
4
+ export declare function mapTransferStatusToBadgeLevel(transferStatus: SepaTransferStatus): Level;
5
+ export declare function renderLoadingTableRowsMarkup(): DirectiveResult;
6
+ //# sourceMappingURL=transfer-list.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-list.utils.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAEL,KAAK,KAAK,EACX,MAAM,uCAAuC,CAAC;AAG/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,wBAAgB,6BAA6B,CAC3C,cAAc,EAAE,kBAAkB,GACjC,KAAK,CAeP;AAED,wBAAgB,4BAA4B,IAAI,eAAe,CAc9D"}
@@ -1,13 +1,12 @@
1
1
  import type { UIElementCreatorParams } from '@ui/ui-elements.types';
2
2
  /**
3
3
  * Creates and renders a transfer list UI element.
4
- * Fetches SEPA transfers from the API and displays them in a table.
4
+ * The component handles its own data fetching and pagination internally.
5
5
  *
6
6
  * @param params - Object containing:
7
7
  * - containerElement: The DOM element where the component will be appended
8
- * - operationSettings: Settings passed to getSepaTransfers (accessToken, proxyRequestFunction, paginationSettings, etc.)
9
- *
10
- * @throws Error if the API call fails
8
+ * - operationSettings: Settings passed to the component (accessToken, proxyRequestFunction, paginationSettings, etc.)
9
+ * - uiElementSettings: Optional settings including event listeners
11
10
  */
12
- export declare function createTransferListElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<never>): Promise<void>;
11
+ export declare function createTransferListElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<never>): void;
13
12
  //# sourceMappingURL=transfer-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../src/ui/ui-elements/transfer-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;;;;;;GASG;AACH,wBAAsB,yBAAyB,CAAC,EAC9C,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAyB/C"}
1
+ {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../src/ui/ui-elements/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGpE;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,IAAI,CAiBtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qonto/embed-sdk",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "Library to embed Qonto features in your application",
5
5
  "type": "module",
6
6
  "exports": {
@@ -108,6 +108,7 @@
108
108
  "jsdom": "^26.1.0",
109
109
  "lint-staged": "^15.5.0",
110
110
  "msw": "^2.7.5",
111
+ "postcss-import": "^16.1.1",
111
112
  "prettier": "3.5.3",
112
113
  "prettier-plugin-packagejson": "^2.5.10",
113
114
  "rollup": "^4.39.0",