@easy-cms/plugin-ecommerce 1.7.0 → 1.8.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/{chunk-BJQYQWUH.js → chunk-TKMUWTIK.js} +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/{payments-CyvXJbyX.d.ts → payments-pgowlh6P.d.ts} +2 -1
- package/dist/react.d.ts +2 -1
- package/dist/stripe.d.ts +3 -2
- package/dist/stripe.js +1 -1
- package/package.json +6 -6
|
@@ -783,7 +783,7 @@ var INFO = {
|
|
|
783
783
|
name: "@easy-cms/plugin-ecommerce",
|
|
784
784
|
// The plugin API it is written for (`PLUGIN_API_VERSION` of @easy-cms/core).
|
|
785
785
|
apiVersion: 1,
|
|
786
|
-
...true ? { version: "1.
|
|
786
|
+
...true ? { version: "1.8.0" } : {}
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
// src/shop.ts
|
package/dist/client.d.ts
CHANGED
|
@@ -247,4 +247,5 @@ interface ShopClient {
|
|
|
247
247
|
}
|
|
248
248
|
declare function createShopClient(options?: ShopClientOptions): ShopClient;
|
|
249
249
|
|
|
250
|
-
export {
|
|
250
|
+
export { CURRENCIES, ORDER_STATUSES, ShopError, TRANSACTION_STATUSES, createShopClient, formatPrice, priceField };
|
|
251
|
+
export type { Address, Adjustment, CartLine, CartView, CheckoutResult, ConfirmResult, Currency, OrderStatus, ShopClient, ShopClientOptions, ShopSettings, ShopState, ShopUser, TransactionStatus };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Label, Field, FieldTypeDefinition, ID, AuthUser, RequestContext, EasyCMS, MembersSignup, MembersConfig, CollectionConfig, TypedPlugin } from '@easy-cms/core';
|
|
2
|
-
import { O as ORDER_STATUSES, C as CartView, a as Currency, A as Address, b as Adjustment, c as OrderStatus, P as PaymentAdapter } from './payments-
|
|
3
|
-
export { d as CURRENCIES, e as CartLine, f as CheckoutResult, g as ConfirmResult, I as InitiateResult, M as ManualAdapterOptions, h as PaymentTransaction, S as ShopSettings, T as TRANSACTION_STATUSES, i as TransactionStatus, j as definePaymentAdapter, k as formatPrice, m as manualAdapter, p as priceField } from './payments-
|
|
2
|
+
import { O as ORDER_STATUSES, C as CartView, a as Currency, A as Address, b as Adjustment, c as OrderStatus, P as PaymentAdapter } from './payments-pgowlh6P.js';
|
|
3
|
+
export { d as CURRENCIES, e as CartLine, f as CheckoutResult, g as ConfirmResult, I as InitiateResult, M as ManualAdapterOptions, h as PaymentTransaction, S as ShopSettings, T as TRANSACTION_STATUSES, i as TransactionStatus, j as definePaymentAdapter, k as formatPrice, m as manualAdapter, p as priceField } from './payments-pgowlh6P.js';
|
|
4
4
|
|
|
5
5
|
declare module '@easy-cms/core' {
|
|
6
6
|
interface CustomFieldTypes {
|
|
@@ -527,4 +527,5 @@ declare function paymentFailed(reference: string, error: string): Promise<void>;
|
|
|
527
527
|
*/
|
|
528
528
|
declare function ecommercePlugin<const Cur extends string = 'THB'>(options: EcommercePluginOptions<Cur>): TypedPlugin<EcommercePluginTypes<Cur>>;
|
|
529
529
|
|
|
530
|
-
export { Address, Adjustment,
|
|
530
|
+
export { Address, Adjustment, CartView, Currency, ORDER_EVENTS, ORDER_STATUSES, OrderStatus, PaymentAdapter, SHOP_COLLECTIONS, STATUS_LABELS, addressFields, ecommercePlugin, paymentFailed, paymentSucceeded, price };
|
|
531
|
+
export type { CartRef, EcommercePluginOptions, EcommercePluginTypes, OrderDoc, OrderEmail, OrderEmailArgs, OrderEmailFn, OrderEvent, ShopCollection, TotalsArgs, TotalsFn };
|
package/dist/index.js
CHANGED
|
@@ -224,4 +224,5 @@ interface ManualAdapterOptions {
|
|
|
224
224
|
*/
|
|
225
225
|
declare function manualAdapter(options?: ManualAdapterOptions): PaymentAdapter;
|
|
226
226
|
|
|
227
|
-
export {
|
|
227
|
+
export { ORDER_STATUSES as O, TRANSACTION_STATUSES as T, CURRENCIES as d, definePaymentAdapter as j, formatPrice as k, manualAdapter as m, priceField as p };
|
|
228
|
+
export type { Address as A, CartView as C, InitiateResult as I, ManualAdapterOptions as M, PaymentAdapter as P, ShopSettings as S, Currency as a, Adjustment as b, OrderStatus as c, CartLine as e, CheckoutResult as f, ConfirmResult as g, PaymentTransaction as h, TransactionStatus as i };
|
package/dist/react.d.ts
CHANGED
|
@@ -92,4 +92,5 @@ declare function useOrders(options?: {
|
|
|
92
92
|
loading: boolean;
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
export { Address, CartView, CheckoutResult, ConfirmResult, Currency, ShopClient, ShopClientOptions, ShopProvider,
|
|
95
|
+
export { Address, CartView, CheckoutResult, ConfirmResult, Currency, ShopClient, ShopClientOptions, ShopProvider, ShopUser, useAddresses, useCart, useCurrency, useCustomer, useOrders, usePayments, useShop };
|
|
96
|
+
export type { ShopProviderProps };
|
package/dist/stripe.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Label } from '@easy-cms/core';
|
|
2
|
-
import {
|
|
2
|
+
import { PaymentAdapter } from './index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The Stripe API version the adapter asks for and is tested with, whichever `stripe` package
|
|
@@ -68,4 +68,5 @@ interface StripeAdapterOptions {
|
|
|
68
68
|
*/
|
|
69
69
|
declare function stripeAdapter(options: StripeAdapterOptions): PaymentAdapter;
|
|
70
70
|
|
|
71
|
-
export { STRIPE_API_VERSION,
|
|
71
|
+
export { STRIPE_API_VERSION, stripeAdapter };
|
|
72
|
+
export type { StripeAdapterOptions, StripeClient };
|
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/plugin-ecommerce",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "A shop for Easy CMS: products and variants, prices in several currencies, carts (guests too), checkout with Stripe or bank transfer, orders, stock, customer accounts, and React and Vue hooks (experimental)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react": ">=18.0.0",
|
|
37
37
|
"stripe": ">=17.0.0 <24.0.0",
|
|
38
38
|
"vue": "^3.4.0",
|
|
39
|
-
"@easy-cms/core": "^1.
|
|
39
|
+
"@easy-cms/core": "^1.8.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"react": {
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.2.0",
|
|
54
54
|
"@types/react-dom": "^19.3.0",
|
|
55
|
-
"happy-dom": "^
|
|
55
|
+
"happy-dom": "^21.0.4",
|
|
56
56
|
"react": "^19.2.0",
|
|
57
57
|
"react-dom": "^19.3.0",
|
|
58
58
|
"stripe": "^23.0.0",
|
|
59
59
|
"stripe-17": "npm:stripe@^17.7.0",
|
|
60
60
|
"vue": "^3.5.43",
|
|
61
|
-
"@easy-cms/core": "^1.
|
|
62
|
-
"@easy-cms/db-sqlite": "^1.
|
|
63
|
-
"@easy-cms/plugin-multi-tenant": "^1.
|
|
61
|
+
"@easy-cms/core": "^1.8.0",
|
|
62
|
+
"@easy-cms/db-sqlite": "^1.8.0",
|
|
63
|
+
"@easy-cms/plugin-multi-tenant": "^1.8.0"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=22.12"
|