@cimplify/sdk 0.84.0 → 0.86.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/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{chunk-I6RE4BKH.mjs → chunk-A2GXDCSI.mjs} +2 -2
- package/dist/{chunk-XA3ZNR75.js → chunk-AETVRBKI.js} +1 -1
- package/dist/{chunk-PLTP6HWW.mjs → chunk-D6JWYYTG.mjs} +20 -20
- package/dist/{chunk-ODEPW244.js → chunk-ESGKWRQS.js} +4 -4
- package/dist/{chunk-GFM5JW45.js → chunk-HJEKXCG2.js} +62 -62
- package/dist/{chunk-AMZXALF6.mjs → chunk-K5EN2W2Q.mjs} +1 -1
- package/dist/{chunk-TD3AY34U.mjs → chunk-KFLGQGMC.mjs} +3 -3
- package/dist/{chunk-NWUEWUX2.mjs → chunk-MRL53WP6.mjs} +2 -2
- package/dist/{chunk-7BM56JET.mjs → chunk-NN3WC7XZ.mjs} +3 -3
- package/dist/{chunk-7Y2O3E4D.js → chunk-PTPOQVXS.js} +5 -5
- package/dist/{chunk-HPN5R3K2.js → chunk-VUG4HTUM.js} +23 -23
- package/dist/{chunk-FKBXZ2A6.js → chunk-X4UNISYG.js} +22 -22
- package/dist/{client-CINi3Dw3.d.ts → client-BQSRj4iK.d.mts} +528 -539
- package/dist/{client-Ba4Hng9i.d.mts → client-BdI24jUT.d.ts} +528 -539
- package/dist/{client-D8AjO8jb.d.ts → client-CMJO_8zo.d.ts} +2 -2
- package/dist/{client-BjUJapti.d.mts → client-DowGNrTh.d.mts} +2 -2
- package/dist/{index-DCPxHjbj.d.ts → index-BRwHpMY-.d.ts} +3 -3
- package/dist/{index-9Bl-zBAI.d.mts → index-DLb_Ldl6.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +117 -117
- package/dist/index.mjs +5 -5
- package/dist/mock/cli.mjs +659 -355
- package/dist/mock/library.js +20 -20
- package/dist/mock/library.mjs +20 -20
- package/dist/mock/msw.js +20 -20
- package/dist/mock/msw.mjs +20 -20
- package/dist/{payment-BVv9leS_.d.ts → payment-BA7KNBxg.d.ts} +3 -3
- package/dist/{payment-D61iGd0o.d.mts → payment-CFev-fOE.d.mts} +3 -3
- package/dist/{price-BYWCHYO5.d.ts → price-BNhGVB5q.d.ts} +3 -1
- package/dist/{price-Cthq6nPb.d.mts → price-nRxqVNGq.d.mts} +3 -1
- package/dist/product-BGxIfTqJ.d.mts +5400 -0
- package/dist/product-BGxIfTqJ.d.ts +5400 -0
- package/dist/react.d.mts +22 -7
- package/dist/react.d.ts +22 -7
- package/dist/react.js +177 -155
- package/dist/react.mjs +57 -36
- package/dist/{server-BjQ0xWmc.d.mts → server-9u0LiG5U.d.mts} +1 -1
- package/dist/{server-DDaQIYLa.d.ts → server-BH7DTaaz.d.ts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +81 -81
- package/dist/testing.mjs +7 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +29 -29
- package/dist/utils.mjs +2 -2
- package/package.json +25 -22
- package/registry/currency-selector.json +1 -1
- package/registry/digital-product-card.json +1 -1
- package/registry/digital-product-layout.json +1 -1
- package/dist/product-2MAoE0kZ.d.mts +0 -1570
- package/dist/product-2MAoE0kZ.d.ts +0 -1570
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode } from './product-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode } from './product-BGxIfTqJ.js';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
|
-
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "
|
|
4
|
+
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
5
5
|
type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
|
|
6
6
|
mobile_money: {
|
|
7
7
|
provider: string;
|
|
@@ -39,7 +39,7 @@ interface AddressAuthorizationData {
|
|
|
39
39
|
state: string;
|
|
40
40
|
zip_code: string;
|
|
41
41
|
}
|
|
42
|
-
type AuthorizationType = "otp" | "pin" | "phone" | "birthday" |
|
|
42
|
+
type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | {
|
|
43
43
|
address: AddressAuthorizationData;
|
|
44
44
|
};
|
|
45
45
|
type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode } from './product-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode } from './product-BGxIfTqJ.mjs';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
|
-
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "
|
|
4
|
+
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
5
5
|
type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
|
|
6
6
|
mobile_money: {
|
|
7
7
|
provider: string;
|
|
@@ -39,7 +39,7 @@ interface AddressAuthorizationData {
|
|
|
39
39
|
state: string;
|
|
40
40
|
zip_code: string;
|
|
41
41
|
}
|
|
42
|
-
type AuthorizationType = "otp" | "pin" | "phone" | "birthday" |
|
|
42
|
+
type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | {
|
|
43
43
|
address: AddressAuthorizationData;
|
|
44
44
|
};
|
|
45
45
|
type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ab as CurrencyCode, S as ChosenPrice, bg as SaleInfo } from './product-
|
|
1
|
+
import { ab as CurrencyCode, S as ChosenPrice, bg as SaleInfo, bB as UpcomingSale } from './product-BGxIfTqJ.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -8,6 +8,8 @@ interface ProductWithPrice {
|
|
|
8
8
|
currency?: CurrencyCode | null;
|
|
9
9
|
/** Sales-engine overlay from the pricing API, when the product is on sale. */
|
|
10
10
|
sale?: SaleInfo | null;
|
|
11
|
+
/** A recurring sale that returns soon — present only when there's no live `sale`. */
|
|
12
|
+
upcoming_sale?: UpcomingSale | null;
|
|
11
13
|
}
|
|
12
14
|
interface FormatPriceOptions {
|
|
13
15
|
currency?: CurrencyCode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ab as CurrencyCode, S as ChosenPrice, bg as SaleInfo } from './product-
|
|
1
|
+
import { ab as CurrencyCode, S as ChosenPrice, bg as SaleInfo, bB as UpcomingSale } from './product-BGxIfTqJ.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -8,6 +8,8 @@ interface ProductWithPrice {
|
|
|
8
8
|
currency?: CurrencyCode | null;
|
|
9
9
|
/** Sales-engine overlay from the pricing API, when the product is on sale. */
|
|
10
10
|
sale?: SaleInfo | null;
|
|
11
|
+
/** A recurring sale that returns soon — present only when there's no live `sale`. */
|
|
12
|
+
upcoming_sale?: UpcomingSale | null;
|
|
11
13
|
}
|
|
12
14
|
interface FormatPriceOptions {
|
|
13
15
|
currency?: CurrencyCode;
|