@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.
- package/dist/{chunk-AI3K2MST.js → chunk-ONDEOXMY.js} +4 -2
- package/dist/index.js +1 -1
- package/dist/server/index.d.ts +588 -588
- package/dist/server/index.js +1 -1
- package/package.json +5 -5
- package/src/server/cards/promotion-entitlement-list/samples.ts +1 -0
- package/src/server/cards/promotion-offer-list/samples.ts +1 -0
- package/tests/samples.test.ts +9 -0
package/dist/server/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-promotion",
|
|
3
|
-
"version": "0.10.
|
|
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.
|
|
22
|
-
"@tbox.cn/app-contracts-mall": "0.12.
|
|
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.
|
|
26
|
-
"@tbox.cn/app-agent-sdk-server": "0.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: '我的券·空态',
|
package/tests/samples.test.ts
CHANGED
|
@@ -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
|
});
|