@tbox.cn/app-module-alipay-activity 1.0.0-alpha.18 → 1.0.0-alpha.20

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.
@@ -1,10 +1,13 @@
1
1
  // src/client/cards/bumpin-activity/index.tsx
2
2
  import { useState as useState2 } from "react";
3
- import { CaretDown, CaretUp, Lock, Trophy } from "@phosphor-icons/react";
3
+ import { CaretDownIcon as CaretDown } from "@phosphor-icons/react/CaretDown";
4
+ import { CaretUpIcon as CaretUp } from "@phosphor-icons/react/CaretUp";
5
+ import { LockIcon as Lock } from "@phosphor-icons/react/Lock";
6
+ import { TrophyIcon as Trophy } from "@phosphor-icons/react/Trophy";
4
7
 
5
8
  // src/client/components/ImageWithFallback.tsx
6
9
  import { useState } from "react";
7
- import { ImageSquare } from "@phosphor-icons/react";
10
+ import { ImageSquareIcon as ImageSquare } from "@phosphor-icons/react/ImageSquare";
8
11
  import { jsx } from "react/jsx-runtime";
9
12
  function ImageWithFallback(props) {
10
13
  const { src, alt, className, size = 40 } = props;
@@ -115,23 +115,23 @@ declare const serverModule: {
115
115
  merchantLogo: zod.ZodOptional<zod.ZodString>;
116
116
  itemLogo: zod.ZodOptional<zod.ZodString>;
117
117
  }, "strip", zod.ZodTypeAny, {
118
- unit: string;
119
- merchantName: string;
120
118
  prizeId: string;
121
119
  voucherName: string;
122
120
  voucherType: string;
123
121
  reductionAmount: string;
124
122
  thresholdAmountText: string;
123
+ unit: string;
124
+ merchantName: string;
125
125
  merchantLogo?: string | undefined;
126
126
  itemLogo?: string | undefined;
127
127
  }, {
128
- unit: string;
129
- merchantName: string;
130
128
  prizeId: string;
131
129
  voucherName: string;
132
130
  voucherType: string;
133
131
  reductionAmount: string;
134
132
  thresholdAmountText: string;
133
+ unit: string;
134
+ merchantName: string;
135
135
  merchantLogo?: string | undefined;
136
136
  itemLogo?: string | undefined;
137
137
  }>, "many">;
@@ -148,29 +148,25 @@ declare const serverModule: {
148
148
  description?: string | undefined;
149
149
  }>, "many">>;
150
150
  }, "strip", zod.ZodTypeAny, {
151
- title: string;
152
- mode: "detail" | "banner";
153
151
  activityRef: string;
152
+ title: string;
154
153
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
155
154
  vouchers: {
156
- unit: string;
157
- merchantName: string;
158
155
  prizeId: string;
159
156
  voucherName: string;
160
157
  voucherType: string;
161
158
  reductionAmount: string;
162
159
  thresholdAmountText: string;
160
+ unit: string;
161
+ merchantName: string;
163
162
  merchantLogo?: string | undefined;
164
163
  itemLogo?: string | undefined;
165
164
  }[];
166
- progressStyle: "steps" | "bar";
165
+ mode: "detail" | "banner";
166
+ progressStyle: "bar" | "steps";
167
167
  description?: string | undefined;
168
- steps?: {
169
- title: string;
170
- description?: string | undefined;
171
- }[] | undefined;
172
- coverUrl?: string | undefined;
173
168
  mainTitle?: string | undefined;
169
+ coverUrl?: string | undefined;
174
170
  backgroundUrl?: string | undefined;
175
171
  tagLabel?: string | undefined;
176
172
  cardLogoUrl?: string | undefined;
@@ -179,29 +175,28 @@ declare const serverModule: {
179
175
  progressUnit?: string | undefined;
180
176
  startAtText?: string | undefined;
181
177
  endAtText?: string | undefined;
178
+ steps?: {
179
+ title: string;
180
+ description?: string | undefined;
181
+ }[] | undefined;
182
182
  }, {
183
- title: string;
184
183
  activityRef: string;
184
+ title: string;
185
185
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
186
186
  vouchers: {
187
- unit: string;
188
- merchantName: string;
189
187
  prizeId: string;
190
188
  voucherName: string;
191
189
  voucherType: string;
192
190
  reductionAmount: string;
193
191
  thresholdAmountText: string;
192
+ unit: string;
193
+ merchantName: string;
194
194
  merchantLogo?: string | undefined;
195
195
  itemLogo?: string | undefined;
196
196
  }[];
197
197
  description?: string | undefined;
198
- steps?: {
199
- title: string;
200
- description?: string | undefined;
201
- }[] | undefined;
202
- mode?: "detail" | "banner" | undefined;
203
- coverUrl?: string | undefined;
204
198
  mainTitle?: string | undefined;
199
+ coverUrl?: string | undefined;
205
200
  backgroundUrl?: string | undefined;
206
201
  tagLabel?: string | undefined;
207
202
  cardLogoUrl?: string | undefined;
@@ -210,7 +205,12 @@ declare const serverModule: {
210
205
  progressUnit?: string | undefined;
211
206
  startAtText?: string | undefined;
212
207
  endAtText?: string | undefined;
213
- progressStyle?: "steps" | "bar" | undefined;
208
+ mode?: "detail" | "banner" | undefined;
209
+ steps?: {
210
+ title: string;
211
+ description?: string | undefined;
212
+ }[] | undefined;
213
+ progressStyle?: "bar" | "steps" | undefined;
214
214
  }>>;
215
215
  };
216
216
  skills: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-alipay-activity",
3
- "version": "1.0.0-alpha.18",
3
+ "version": "1.0.0-alpha.20",
4
4
  "type": "module",
5
5
  "description": "支付宝互动营销活动模块:碰出惊喜(碰一下)活动查询与展示(codegen 源)。",
6
6
  "exports": {
@@ -19,10 +19,10 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "alipay-sdk": "4.14.0",
22
- "@tbox.cn/app-contracts-mall": "1.0.0-alpha.18",
23
- "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.18",
24
- "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.18",
25
- "@tbox.cn/app-contracts": "1.0.0-alpha.18"
22
+ "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.20",
23
+ "@tbox.cn/app-contracts-mall": "1.0.0-alpha.20",
24
+ "@tbox.cn/app-contracts": "1.0.0-alpha.20",
25
+ "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.20"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "zod": "3.25.76",
@@ -1,5 +1,8 @@
1
1
  import { useState } from 'react';
2
- import { CaretDown, CaretUp, Lock, Trophy } from '@phosphor-icons/react';
2
+ import { CaretDownIcon as CaretDown } from '@phosphor-icons/react/CaretDown';
3
+ import { CaretUpIcon as CaretUp } from '@phosphor-icons/react/CaretUp';
4
+ import { LockIcon as Lock } from '@phosphor-icons/react/Lock';
5
+ import { TrophyIcon as Trophy } from '@phosphor-icons/react/Trophy';
3
6
  import type { AlipayActivityBumpInCardData } from '../../../server/cards/bumpin-activity/meta';
4
7
  import { ImageWithFallback } from '../../components/ImageWithFallback';
5
8
  import { sanitizeActivityHtml } from '../../utils/sanitize-activity-html';
@@ -2,7 +2,7 @@
2
2
  * 图片 + 加载失败占位(模块自持,禁跨模块依赖)。
3
3
  */
4
4
  import { useState } from 'react';
5
- import { ImageSquare } from '@phosphor-icons/react';
5
+ import { ImageSquareIcon as ImageSquare } from '@phosphor-icons/react/ImageSquare';
6
6
 
7
7
  export function ImageWithFallback(props: {
8
8
  src?: string;