@cimplify/sdk 0.8.14 → 0.9.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/utils.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-DKLWJwJd.mjs';
2
- import './payment-BKjX2fAs.mjs';
1
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-DWl8VbnB.mjs';
2
+ import './payment-BNlyzm_Q.mjs';
package/dist/utils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-DQp1xkcl.js';
2
- import './payment-BKjX2fAs.js';
1
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-UNwoWldH.js';
2
+ import './payment-BNlyzm_Q.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.8.14",
3
+ "version": "0.9.0",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -50,7 +50,7 @@
50
50
  "test:coverage": "vitest run --coverage"
51
51
  },
52
52
  "peerDependencies": {
53
- "@paystack/inline-js": ">=2.0.0",
53
+ "@paystack/inline-js": "^2.22.8",
54
54
  "react": ">=17.0.0"
55
55
  },
56
56
  "peerDependenciesMeta": {
@@ -62,14 +62,15 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@testing-library/dom": "^10.0.0",
66
- "@testing-library/react": "^16.0.0",
65
+ "@testing-library/dom": "^10.4.1",
66
+ "@testing-library/react": "^16.3.2",
67
+ "@types/node": "^25.3.2",
67
68
  "@types/react": "^19.2.7",
68
- "@typescript/native-preview": "^7.0.0-dev.20260109.1",
69
- "jsdom": "^25.0.0",
70
- "react": "^19.2.3",
69
+ "@typescript/native-preview": "^7.0.0-dev.20260228.1",
70
+ "jsdom": "^28.1.0",
71
+ "react": "^19.2.4",
71
72
  "tsup": "^8.5.1",
72
73
  "typescript": "5.9.3",
73
- "vitest": "^2.1.0"
74
+ "vitest": "^4.0.18"
74
75
  }
75
76
  }
@@ -1,20 +0,0 @@
1
- type AdSlot = "banner" | "sidebar" | "in-content" | "native" | "footer";
2
- type AdPosition = "static" | "sticky" | "fixed";
3
- type AdTheme = "light" | "dark" | "auto";
4
- interface AdConfig {
5
- enabled: boolean;
6
- theme: AdTheme;
7
- excludePaths?: string[];
8
- }
9
- interface AdCreative {
10
- id: string;
11
- html: string;
12
- clickUrl: string;
13
- }
14
- interface AdContextValue {
15
- siteId: string | null;
16
- config: AdConfig | null;
17
- isLoading: boolean;
18
- }
19
-
20
- export type { AdSlot as A, AdPosition as a, AdTheme as b, AdConfig as c, AdCreative as d, AdContextValue as e };
@@ -1,20 +0,0 @@
1
- type AdSlot = "banner" | "sidebar" | "in-content" | "native" | "footer";
2
- type AdPosition = "static" | "sticky" | "fixed";
3
- type AdTheme = "light" | "dark" | "auto";
4
- interface AdConfig {
5
- enabled: boolean;
6
- theme: AdTheme;
7
- excludePaths?: string[];
8
- }
9
- interface AdCreative {
10
- id: string;
11
- html: string;
12
- clickUrl: string;
13
- }
14
- interface AdContextValue {
15
- siteId: string | null;
16
- config: AdConfig | null;
17
- isLoading: boolean;
18
- }
19
-
20
- export type { AdSlot as A, AdPosition as a, AdTheme as b, AdConfig as c, AdCreative as d, AdContextValue as e };