@pisell/pisellos 0.0.235 → 0.0.237

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.
@@ -391,7 +391,9 @@ export declare enum CheckoutHooks {
391
391
  /** 商店折扣变更 */
392
392
  OnShopDiscountChanged = "checkout:onShopDiscountChanged",
393
393
  /** 订单取消 */
394
- OnOrderCancelled = "checkout:onOrderCancelled"
394
+ OnOrderCancelled = "checkout:onOrderCancelled",
395
+ /** 订单状态已清理 */
396
+ OnOrderCleared = "checkout:onOrderCleared"
395
397
  }
396
398
  /**
397
399
  * 结账状态数据
@@ -814,4 +816,12 @@ export interface CheckoutEventData {
814
816
  wasSynced: boolean;
815
817
  timestamp: number;
816
818
  };
819
+ /** 订单状态清理事件 */
820
+ orderCleared: {
821
+ previousOrder?: {
822
+ uuid: string;
823
+ orderId: string;
824
+ } | null;
825
+ timestamp: number;
826
+ };
817
827
  }
@@ -70,6 +70,7 @@ var CheckoutHooks = /* @__PURE__ */ ((CheckoutHooks2) => {
70
70
  CheckoutHooks2["OnOrderNoteChanged"] = "checkout:onOrderNoteChanged";
71
71
  CheckoutHooks2["OnShopDiscountChanged"] = "checkout:onShopDiscountChanged";
72
72
  CheckoutHooks2["OnOrderCancelled"] = "checkout:onOrderCancelled";
73
+ CheckoutHooks2["OnOrderCleared"] = "checkout:onOrderCleared";
73
74
  return CheckoutHooks2;
74
75
  })(CheckoutHooks || {});
75
76
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.235",
4
+ "version": "0.0.237",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",