@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/ads-DeL3PGzf.d.mts +33 -0
- package/dist/ads-DeL3PGzf.d.ts +33 -0
- package/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +6 -0
- package/dist/advanced.mjs +6 -0
- package/dist/{client-BYpHOPXm.d.mts → client-CmnVngkm.d.mts} +1 -1
- package/dist/{client-9gpFQIeG.d.ts → client-vi6GsbUP.d.ts} +1 -1
- package/dist/{index-DKLWJwJd.d.mts → index-DWl8VbnB.d.mts} +1 -1
- package/dist/{index-DQp1xkcl.d.ts → index-UNwoWldH.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +16 -0
- package/dist/index.mjs +16 -1
- package/dist/{payment-BKjX2fAs.d.mts → payment-BNlyzm_Q.d.mts} +1 -1
- package/dist/{payment-BKjX2fAs.d.ts → payment-BNlyzm_Q.d.ts} +1 -1
- package/dist/react.d.mts +120 -5
- package/dist/react.d.ts +120 -5
- package/dist/react.js +930 -0
- package/dist/react.mjs +922 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +9 -8
- package/dist/ads-t3FBTU8p.d.mts +0 -20
- package/dist/ads-t3FBTU8p.d.ts +0 -20
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-
|
|
2
|
-
import './payment-
|
|
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-
|
|
2
|
-
import './payment-
|
|
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.
|
|
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": "
|
|
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.
|
|
66
|
-
"@testing-library/react": "^16.
|
|
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.
|
|
69
|
-
"jsdom": "^
|
|
70
|
-
"react": "^19.2.
|
|
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": "^
|
|
74
|
+
"vitest": "^4.0.18"
|
|
74
75
|
}
|
|
75
76
|
}
|
package/dist/ads-t3FBTU8p.d.mts
DELETED
|
@@ -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 };
|
package/dist/ads-t3FBTU8p.d.ts
DELETED
|
@@ -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 };
|