@cimplify/sdk 0.85.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-DU4IX2I2.mjs → chunk-A2GXDCSI.mjs} +2 -2
- package/dist/{chunk-XA3ZNR75.js → chunk-AETVRBKI.js} +1 -1
- package/dist/{chunk-GIFVSWYJ.mjs → chunk-D6JWYYTG.mjs} +2 -2
- package/dist/{chunk-A6J7W6DH.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-NWTCBGJ2.js → chunk-X4UNISYG.js} +4 -4
- package/dist/{client-WKKxIiF1.d.ts → client-BQSRj4iK.d.mts} +528 -539
- package/dist/{client-DLtwQ-jI.d.mts → client-BdI24jUT.d.ts} +528 -539
- package/dist/{client-BT5gaiGR.d.ts → client-CMJO_8zo.d.ts} +2 -2
- package/dist/{client-BEhIE0Dm.d.mts → client-DowGNrTh.d.mts} +2 -2
- package/dist/{index-BrC1x2kK.d.ts → index-BRwHpMY-.d.ts} +3 -3
- package/dist/{index-DZz6hdrT.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 +2 -2
- package/dist/mock/library.js +2 -2
- package/dist/mock/library.mjs +2 -2
- package/dist/mock/msw.js +2 -2
- package/dist/mock/msw.mjs +2 -2
- package/dist/{payment-D1f3ZQPC.d.ts → payment-BA7KNBxg.d.ts} +3 -3
- package/dist/{payment-Dh-6cRcV.d.mts → payment-CFev-fOE.d.mts} +3 -3
- package/dist/{price-CQdOJoX-.d.ts → price-BNhGVB5q.d.ts} +1 -1
- package/dist/{price-4T7dlhxM.d.mts → price-nRxqVNGq.d.mts} +1 -1
- package/dist/product-BGxIfTqJ.d.mts +5400 -0
- package/dist/product-BGxIfTqJ.d.ts +5400 -0
- package/dist/react.d.mts +6 -6
- package/dist/react.d.ts +6 -6
- package/dist/react.js +139 -139
- package/dist/react.mjs +19 -19
- package/dist/{server-DjK98UW-.d.mts → server-9u0LiG5U.d.mts} +1 -1
- package/dist/{server-DvThXldo.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/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 +5 -2
- 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-RJMIdCAf.d.mts +0 -1582
- package/dist/product-RJMIdCAf.d.ts +0 -1582
package/dist/mock/library.mjs
CHANGED
|
@@ -2107,7 +2107,7 @@ var ERROR_SUGGESTIONS = {
|
|
|
2107
2107
|
INSUFFICIENT_QUANTITY: "Requested quantity exceeds available inventory. Reduce quantity and retry.",
|
|
2108
2108
|
BUSINESS_ID_REQUIRED: "Business context could not be resolved. Verify the public key and business bootstrap call.",
|
|
2109
2109
|
INVALID_CART: "Cart is invalid for checkout. Sync cart state, ensure items exist, then retry.",
|
|
2110
|
-
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or
|
|
2110
|
+
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or dine-in before checkout.",
|
|
2111
2111
|
NO_PAYMENT_ELEMENT: "PaymentElement is required for processCheckout(). Mount it before triggering checkout.",
|
|
2112
2112
|
PAYMENT_NOT_MOUNTED: "PaymentElement iframe is not mounted. Mount it in the DOM before processCheckout().",
|
|
2113
2113
|
AUTH_INCOMPLETE: "AuthElement has not completed authentication. Wait for AUTHENTICATED before checkout.",
|
|
@@ -2893,7 +2893,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
|
|
|
2893
2893
|
'<select id="order-type">' +
|
|
2894
2894
|
' <option value="delivery">Delivery</option>' +
|
|
2895
2895
|
' <option value="pickup">Pickup</option>' +
|
|
2896
|
-
' <option value="
|
|
2896
|
+
' <option value="dine-in">Dine-in</option>' +
|
|
2897
2897
|
'</select>' +
|
|
2898
2898
|
'<label>Customer name</label>' +
|
|
2899
2899
|
'<input id="cust-name" value="' + (qs.get("name") || "Test Customer") + '">' +
|
package/dist/mock/msw.js
CHANGED
|
@@ -2107,7 +2107,7 @@ var ERROR_SUGGESTIONS = {
|
|
|
2107
2107
|
INSUFFICIENT_QUANTITY: "Requested quantity exceeds available inventory. Reduce quantity and retry.",
|
|
2108
2108
|
BUSINESS_ID_REQUIRED: "Business context could not be resolved. Verify the public key and business bootstrap call.",
|
|
2109
2109
|
INVALID_CART: "Cart is invalid for checkout. Sync cart state, ensure items exist, then retry.",
|
|
2110
|
-
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or
|
|
2110
|
+
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or dine-in before checkout.",
|
|
2111
2111
|
NO_PAYMENT_ELEMENT: "PaymentElement is required for processCheckout(). Mount it before triggering checkout.",
|
|
2112
2112
|
PAYMENT_NOT_MOUNTED: "PaymentElement iframe is not mounted. Mount it in the DOM before processCheckout().",
|
|
2113
2113
|
AUTH_INCOMPLETE: "AuthElement has not completed authentication. Wait for AUTHENTICATED before checkout.",
|
|
@@ -2893,7 +2893,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
|
|
|
2893
2893
|
'<select id="order-type">' +
|
|
2894
2894
|
' <option value="delivery">Delivery</option>' +
|
|
2895
2895
|
' <option value="pickup">Pickup</option>' +
|
|
2896
|
-
' <option value="
|
|
2896
|
+
' <option value="dine-in">Dine-in</option>' +
|
|
2897
2897
|
'</select>' +
|
|
2898
2898
|
'<label>Customer name</label>' +
|
|
2899
2899
|
'<input id="cust-name" value="' + (qs.get("name") || "Test Customer") + '">' +
|
package/dist/mock/msw.mjs
CHANGED
|
@@ -2105,7 +2105,7 @@ var ERROR_SUGGESTIONS = {
|
|
|
2105
2105
|
INSUFFICIENT_QUANTITY: "Requested quantity exceeds available inventory. Reduce quantity and retry.",
|
|
2106
2106
|
BUSINESS_ID_REQUIRED: "Business context could not be resolved. Verify the public key and business bootstrap call.",
|
|
2107
2107
|
INVALID_CART: "Cart is invalid for checkout. Sync cart state, ensure items exist, then retry.",
|
|
2108
|
-
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or
|
|
2108
|
+
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or dine-in before checkout.",
|
|
2109
2109
|
NO_PAYMENT_ELEMENT: "PaymentElement is required for processCheckout(). Mount it before triggering checkout.",
|
|
2110
2110
|
PAYMENT_NOT_MOUNTED: "PaymentElement iframe is not mounted. Mount it in the DOM before processCheckout().",
|
|
2111
2111
|
AUTH_INCOMPLETE: "AuthElement has not completed authentication. Wait for AUTHENTICATED before checkout.",
|
|
@@ -2891,7 +2891,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
|
|
|
2891
2891
|
'<select id="order-type">' +
|
|
2892
2892
|
' <option value="delivery">Delivery</option>' +
|
|
2893
2893
|
' <option value="pickup">Pickup</option>' +
|
|
2894
|
-
' <option value="
|
|
2894
|
+
' <option value="dine-in">Dine-in</option>' +
|
|
2895
2895
|
'</select>' +
|
|
2896
2896
|
'<label>Customer name</label>' +
|
|
2897
2897
|
'<input id="cust-name" value="' + (qs.get("name") || "Test Customer") + '">' +
|
|
@@ -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, bB as UpcomingSale } 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ab as CurrencyCode, S as ChosenPrice, bg as SaleInfo, bB as UpcomingSale } 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;
|