@tbox.cn/app-module-promotion 0.10.3 → 0.10.4

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.
@@ -7,7 +7,7 @@ import {
7
7
  resolvePromotionEntitlementsPort,
8
8
  resolvePromotionOffersPort,
9
9
  serverModule
10
- } from "../chunk-AI3K2MST.js";
10
+ } from "../chunk-ONDEOXMY.js";
11
11
  export {
12
12
  InMemoryPromotionService,
13
13
  inMemoryPromotion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-promotion",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "type": "module",
5
5
  "description": "商圈营销模块:资格校验、推荐降级链、券卡(codegen 源)。",
6
6
  "exports": {
@@ -18,12 +18,12 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@tbox.cn/app-contracts": "0.12.0",
22
- "@tbox.cn/app-contracts-mall": "0.12.1",
21
+ "@tbox.cn/app-contracts": "0.12.3",
22
+ "@tbox.cn/app-contracts-mall": "0.12.3",
23
23
  "jsbarcode": "^3.12.3",
24
24
  "qrcode": "^1.5.4",
25
- "@tbox.cn/app-agent-sdk-client": "0.1.1",
26
- "@tbox.cn/app-agent-sdk-server": "0.1.1"
25
+ "@tbox.cn/app-agent-sdk-client": "0.1.3",
26
+ "@tbox.cn/app-agent-sdk-server": "0.1.4"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@phosphor-icons/react": "2.1.10",
@@ -41,6 +41,7 @@ export const samples: CardSample<PromotionEntitlementListCardData>[] = [
41
41
  note: '无图片、长标题和 UNKNOWN 状态的容错形态',
42
42
  group: '我的券',
43
43
  data: { items: [{ entitlementRef: 'ent:unknown', title: '会员限定超长名称测试|指定商户周末到店消费专享权益', entitlementType: 'COUPON', status: 'UNKNOWN', codeMasked: '**** 0000', benefitText: '满100减20', usageNotice: '使用门店和适用商品请以券详情说明为准', validUntilText: '有效期待品牌方确认' }] },
44
+ hidden: true,
44
45
  },
45
46
  {
46
47
  label: '我的券·空态',
@@ -120,6 +120,7 @@ export const samples: CardSample<PromotionOfferListCardData>[] = [
120
120
  itemActions: claimAction('领取', '会员限定满减优惠券'),
121
121
  }],
122
122
  },
123
+ hidden: true,
123
124
  },
124
125
  {
125
126
  label: '领券·滤掉不可领',
@@ -39,4 +39,13 @@ describe('promotion samples 双断言(样本即契约)', () => {
39
39
  }
40
40
  }
41
41
  });
42
+
43
+ it('缺图与 UNKNOWN 降级样本保留质量检查但不进入 Preview', () => {
44
+ expect(
45
+ offerListMeta.samples?.find((sample) => sample.label === '领券·缺图与长文案')?.hidden,
46
+ ).toBe(true);
47
+ expect(
48
+ entitlementListMeta.samples?.find((sample) => sample.label === '我的券·缺图长文案')?.hidden,
49
+ ).toBe(true);
50
+ });
42
51
  });