@sentecacommerce-theme/lib 0.14.3 → 0.14.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,18 @@ Object.keys(_hooks).forEach(function(key) {
26
26
  }
27
27
  });
28
28
  });
29
+ var _types = _interopRequireWildcard(require("./types"));
30
+ Object.keys(_types).forEach(function(key) {
31
+ if (key === "default" || key === "__esModule") return;
32
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
33
+ if (key in exports && exports[key] === _types[key]) return;
34
+ Object.defineProperty(exports, key, {
35
+ enumerable: true,
36
+ get: function() {
37
+ return _types[key];
38
+ }
39
+ });
40
+ });
29
41
  function _interopRequireWildcard(obj) {
30
42
  if (obj && obj.__esModule) {
31
43
  return obj;
@@ -0,0 +1,3 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
@@ -1,2 +1,3 @@
1
1
  export * from './api';
2
2
  export * from './hooks';
3
+ export * from './types';
@@ -0,0 +1 @@
1
+ export { };
@@ -1,3 +1,4 @@
1
+ import { MappedLeasingOffer } from '../types';
1
2
  export declare const useBnpOffers: (props: {
2
3
  sku: string;
3
4
  preferredInstallmentCentAmount?: number;
@@ -6,16 +7,7 @@ export declare const useBnpOffers: (props: {
6
7
  data: {
7
8
  name: string;
8
9
  scheme: import("@sentecacommerce/sdk").PricingSchemesDTO;
9
- offers: {
10
- totalRepaymentAmount: import("../../index").FormattedPriceType;
11
- correctDownPaymentAmount: import("../../index").FormattedPriceType;
12
- installmentAmount: import("../../index").FormattedPriceType;
13
- processingFeeAmount: import("../../index").FormattedPriceType;
14
- apr: string;
15
- maturity: string;
16
- nir: string;
17
- variantId: string;
18
- }[];
10
+ offers: MappedLeasingOffer[];
19
11
  }[] | undefined;
20
12
  canFetchMore: boolean | undefined;
21
13
  clear: () => void;
@@ -1,17 +1,9 @@
1
+ import { MappedLeasingOffer } from '../types';
1
2
  export declare const useUniCreditOffers: (props: {
2
3
  sku: string;
3
4
  downPaymentCentAmount?: number;
4
5
  }) => {
5
- data: {
6
- totalRepaymentAmount: import("../../index").FormattedPriceType;
7
- correctDownPaymentAmount: import("../../index").FormattedPriceType;
8
- installmentAmount: import("../../index").FormattedPriceType;
9
- processingFeeAmount: import("../../index").FormattedPriceType;
10
- apr: string;
11
- maturity: string;
12
- nir: string;
13
- variantId: string;
14
- }[] | undefined;
6
+ data: MappedLeasingOffer[];
15
7
  canFetchMore: boolean | undefined;
16
8
  clear: () => void;
17
9
  error: unknown;
@@ -1,2 +1,3 @@
1
1
  export * from './api';
2
2
  export * from './hooks';
3
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ import { FormattedPriceType } from '../utils';
2
+ export interface MappedLeasingOffer {
3
+ apr: string;
4
+ correctDownPaymentAmount: FormattedPriceType;
5
+ installmentAmount: FormattedPriceType;
6
+ maturity: string;
7
+ nir: string;
8
+ processingFeeAmount: FormattedPriceType;
9
+ totalRepaymentAmount: FormattedPriceType;
10
+ variantId: string;
11
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentecacommerce-theme/lib",
3
3
  "sideEffects": false,
4
- "version": "0.14.3",
4
+ "version": "0.14.4",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -31,13 +31,13 @@
31
31
  "watch:cjs": "swc src --out-dir dist/cjs -w",
32
32
  "watch:esm": "swc src --out-dir dist/esm --no-swcrc -w"
33
33
  },
34
- "gitHead": "c4764c05a45c722aba89d07075d152e9567bf7e3",
34
+ "gitHead": "d12a4f7247f20f26a42e09061a153f31734a7c1b",
35
35
  "peerDependencies": {
36
36
  "react-query": "^2.26.2"
37
37
  },
38
38
  "dependencies": {
39
- "@sentecacommerce-theme/base": "^0.14.3",
40
- "@sentecacommerce-theme/cms": "^0.14.3",
39
+ "@sentecacommerce-theme/base": "^0.14.4",
40
+ "@sentecacommerce-theme/cms": "^0.14.4",
41
41
  "@sentecacommerce/sdk": "2.0.175",
42
42
  "body-scroll-lock": "^3.1.5",
43
43
  "copy-to-clipboard": "^3.3.1",