@easy-cms/plugin-ecommerce 1.7.1 → 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.
@@ -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.7.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 { type Address, type Adjustment, CURRENCIES, type CartLine, type CartView, type CheckoutResult, type ConfirmResult, type Currency, ORDER_STATUSES, type OrderStatus, type ShopClient, type ShopClientOptions, ShopError, type ShopSettings, type ShopState, type ShopUser, TRANSACTION_STATUSES, type TransactionStatus, createShopClient, formatPrice, priceField };
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-CyvXJbyX.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-CyvXJbyX.js';
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, type CartRef, CartView, Currency, type EcommercePluginOptions, type EcommercePluginTypes, ORDER_EVENTS, ORDER_STATUSES, type OrderDoc, type OrderEmail, type OrderEmailArgs, type OrderEmailFn, type OrderEvent, OrderStatus, PaymentAdapter, SHOP_COLLECTIONS, STATUS_LABELS, type ShopCollection, type TotalsArgs, type TotalsFn, addressFields, ecommercePlugin, paymentFailed, paymentSucceeded, price };
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
@@ -12,7 +12,7 @@ import {
12
12
  paymentSucceeded,
13
13
  price,
14
14
  priceField
15
- } from "./chunk-YHRSNQU2.js";
15
+ } from "./chunk-TKMUWTIK.js";
16
16
 
17
17
  // src/payments.ts
18
18
  var definePaymentAdapter = (adapter) => adapter;
@@ -224,4 +224,5 @@ interface ManualAdapterOptions {
224
224
  */
225
225
  declare function manualAdapter(options?: ManualAdapterOptions): PaymentAdapter;
226
226
 
227
- export { type Address as A, type CartView as C, type InitiateResult as I, type ManualAdapterOptions as M, ORDER_STATUSES as O, type PaymentAdapter as P, type ShopSettings as S, TRANSACTION_STATUSES as T, type Currency as a, type Adjustment as b, type OrderStatus as c, CURRENCIES as d, type CartLine as e, type CheckoutResult as f, type ConfirmResult as g, type PaymentTransaction as h, type TransactionStatus as i, definePaymentAdapter as j, formatPrice as k, manualAdapter as m, priceField as p };
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, type ShopProviderProps, ShopUser, useAddresses, useCart, useCurrency, useCustomer, useOrders, usePayments, useShop };
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 { P as PaymentAdapter } from './payments-CyvXJbyX.js';
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, type StripeAdapterOptions, type StripeClient, stripeAdapter };
71
+ export { STRIPE_API_VERSION, stripeAdapter };
72
+ export type { StripeAdapterOptions, StripeClient };
package/dist/stripe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paymentFailed,
3
3
  paymentSucceeded
4
- } from "./chunk-YHRSNQU2.js";
4
+ } from "./chunk-TKMUWTIK.js";
5
5
 
6
6
  // src/stripe-client.ts
7
7
  var STRIPE_API_VERSION = "2026-09-30.endive";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/plugin-ecommerce",
3
- "version": "1.7.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.7.1"
39
+ "@easy-cms/core": "^1.8.0"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "react": {
@@ -58,9 +58,9 @@
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.7.1",
62
- "@easy-cms/db-sqlite": "^1.7.1",
63
- "@easy-cms/plugin-multi-tenant": "^1.7.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"