@tbox.cn/app-module-alipay-activity 1.0.0-alpha.13 → 1.0.0-alpha.14
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/client/index.js
CHANGED
|
@@ -96,17 +96,17 @@ function StepsProgress({
|
|
|
96
96
|
index > 0 && /* @__PURE__ */ jsx2(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
|
-
className: `promotion-bumpin__step-line absolute left-[-50%] right-1/2 top-2.5 h-0.75 -translate-y-1/2 ${isDone && steps[index - 1] <= current ? "bg-warning shadow-sm promotion-bumpin__step-line--done" : "bg-
|
|
99
|
+
className: `promotion-bumpin__step-line absolute left-[-50%] right-1/2 top-2.5 h-0.75 -translate-y-1/2 ${isDone && steps[index - 1] <= current ? "bg-warning shadow-sm promotion-bumpin__step-line--done" : "bg-border-strong"}`
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
102
|
/* @__PURE__ */ jsx2(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
|
-
className: `promotion-bumpin__step-node relative z-10 flex size-5.5 items-center justify-center rounded-full border-2 text-xs font-bold leading-none ${isLocked ? "border-warning bg-warn-surface text-warn-ink promotion-bumpin__step-node--locked" : isDone ? "border-warning bg-white text-primary promotion-bumpin__step-node--done" : "border-
|
|
105
|
+
className: `promotion-bumpin__step-node relative z-10 flex size-5.5 items-center justify-center rounded-full border-2 text-xs font-bold leading-none ${isLocked ? "border-warning bg-warn-surface text-warn-ink promotion-bumpin__step-node--locked" : isDone ? "border-warning bg-white text-primary promotion-bumpin__step-node--done" : "border-border-strong bg-card text-secondary-foreground"}`,
|
|
106
106
|
children: isLocked ? /* @__PURE__ */ jsx2(Lock, { weight: "fill", size: 20 }) : /* @__PURE__ */ jsx2("span", { children: stepNumber })
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ jsxs("span", { className: "promotion-bumpin__step-label whitespace-nowrap text-xs leading-tight text-
|
|
109
|
+
/* @__PURE__ */ jsxs("span", { className: "promotion-bumpin__step-label whitespace-nowrap text-xs leading-tight text-secondary-foreground", children: [
|
|
110
110
|
stepNumber,
|
|
111
111
|
" ",
|
|
112
112
|
unit
|
package/dist/server/index.d.ts
CHANGED
|
@@ -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;
|
|
118
120
|
prizeId: string;
|
|
119
121
|
voucherName: string;
|
|
120
122
|
voucherType: string;
|
|
121
123
|
reductionAmount: string;
|
|
122
124
|
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;
|
|
128
130
|
prizeId: string;
|
|
129
131
|
voucherName: string;
|
|
130
132
|
voucherType: string;
|
|
131
133
|
reductionAmount: string;
|
|
132
134
|
thresholdAmountText: string;
|
|
133
|
-
unit: string;
|
|
134
|
-
merchantName: string;
|
|
135
135
|
merchantLogo?: string | undefined;
|
|
136
136
|
itemLogo?: string | undefined;
|
|
137
137
|
}>, "many">;
|
|
@@ -148,25 +148,29 @@ declare const serverModule: {
|
|
|
148
148
|
description?: string | undefined;
|
|
149
149
|
}>, "many">>;
|
|
150
150
|
}, "strip", zod.ZodTypeAny, {
|
|
151
|
-
activityRef: string;
|
|
152
151
|
title: string;
|
|
152
|
+
mode: "detail" | "banner";
|
|
153
|
+
activityRef: string;
|
|
153
154
|
actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
|
|
154
155
|
vouchers: {
|
|
156
|
+
unit: string;
|
|
157
|
+
merchantName: string;
|
|
155
158
|
prizeId: string;
|
|
156
159
|
voucherName: string;
|
|
157
160
|
voucherType: string;
|
|
158
161
|
reductionAmount: string;
|
|
159
162
|
thresholdAmountText: string;
|
|
160
|
-
unit: string;
|
|
161
|
-
merchantName: string;
|
|
162
163
|
merchantLogo?: string | undefined;
|
|
163
164
|
itemLogo?: string | undefined;
|
|
164
165
|
}[];
|
|
165
|
-
|
|
166
|
-
progressStyle: "bar" | "steps";
|
|
166
|
+
progressStyle: "steps" | "bar";
|
|
167
167
|
description?: string | undefined;
|
|
168
|
-
|
|
168
|
+
steps?: {
|
|
169
|
+
title: string;
|
|
170
|
+
description?: string | undefined;
|
|
171
|
+
}[] | undefined;
|
|
169
172
|
coverUrl?: string | undefined;
|
|
173
|
+
mainTitle?: string | undefined;
|
|
170
174
|
backgroundUrl?: string | undefined;
|
|
171
175
|
tagLabel?: string | undefined;
|
|
172
176
|
cardLogoUrl?: string | undefined;
|
|
@@ -175,28 +179,29 @@ declare const serverModule: {
|
|
|
175
179
|
progressUnit?: string | undefined;
|
|
176
180
|
startAtText?: string | undefined;
|
|
177
181
|
endAtText?: string | undefined;
|
|
178
|
-
steps?: {
|
|
179
|
-
title: string;
|
|
180
|
-
description?: string | undefined;
|
|
181
|
-
}[] | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
activityRef: string;
|
|
184
183
|
title: string;
|
|
184
|
+
activityRef: string;
|
|
185
185
|
actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
|
|
186
186
|
vouchers: {
|
|
187
|
+
unit: string;
|
|
188
|
+
merchantName: string;
|
|
187
189
|
prizeId: string;
|
|
188
190
|
voucherName: string;
|
|
189
191
|
voucherType: string;
|
|
190
192
|
reductionAmount: string;
|
|
191
193
|
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
|
-
|
|
198
|
+
steps?: {
|
|
199
|
+
title: string;
|
|
200
|
+
description?: string | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
mode?: "detail" | "banner" | undefined;
|
|
199
203
|
coverUrl?: string | undefined;
|
|
204
|
+
mainTitle?: string | undefined;
|
|
200
205
|
backgroundUrl?: string | undefined;
|
|
201
206
|
tagLabel?: string | undefined;
|
|
202
207
|
cardLogoUrl?: string | undefined;
|
|
@@ -205,12 +210,7 @@ declare const serverModule: {
|
|
|
205
210
|
progressUnit?: string | undefined;
|
|
206
211
|
startAtText?: string | undefined;
|
|
207
212
|
endAtText?: string | undefined;
|
|
208
|
-
|
|
209
|
-
steps?: {
|
|
210
|
-
title: string;
|
|
211
|
-
description?: string | undefined;
|
|
212
|
-
}[] | undefined;
|
|
213
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
213
|
+
progressStyle?: "steps" | "bar" | 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.
|
|
3
|
+
"version": "1.0.0-alpha.14",
|
|
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": "1.0.0-alpha.
|
|
23
|
-
"@tbox.cn/app-
|
|
24
|
-
"@tbox.cn/app-agent-sdk-
|
|
25
|
-
"@tbox.cn/app-
|
|
22
|
+
"@tbox.cn/app-contracts-mall": "1.0.0-alpha.14",
|
|
23
|
+
"@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.14",
|
|
24
|
+
"@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.14",
|
|
25
|
+
"@tbox.cn/app-contracts": "1.0.0-alpha.14"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"zod": "3.25.76",
|
|
@@ -27,11 +27,11 @@ function StepsProgress({
|
|
|
27
27
|
<div key={stepNumber} className="promotion-bumpin__step-item relative flex flex-1 flex-col items-center gap-1">
|
|
28
28
|
{index > 0 && (
|
|
29
29
|
<div
|
|
30
|
-
className={`promotion-bumpin__step-line absolute left-[-50%] right-1/2 top-2.5 h-0.75 -translate-y-1/2 ${isDone && steps[index - 1] <= current ? 'bg-warning shadow-sm promotion-bumpin__step-line--done' : 'bg-
|
|
30
|
+
className={`promotion-bumpin__step-line absolute left-[-50%] right-1/2 top-2.5 h-0.75 -translate-y-1/2 ${isDone && steps[index - 1] <= current ? 'bg-warning shadow-sm promotion-bumpin__step-line--done' : 'bg-border-strong'}`}
|
|
31
31
|
/>
|
|
32
32
|
)}
|
|
33
33
|
<div
|
|
34
|
-
className={`promotion-bumpin__step-node relative z-10 flex size-5.5 items-center justify-center rounded-full border-2 text-xs font-bold leading-none ${isLocked ? 'border-warning bg-warn-surface text-warn-ink promotion-bumpin__step-node--locked' : isDone ? 'border-warning bg-white text-primary promotion-bumpin__step-node--done' : 'border-
|
|
34
|
+
className={`promotion-bumpin__step-node relative z-10 flex size-5.5 items-center justify-center rounded-full border-2 text-xs font-bold leading-none ${isLocked ? 'border-warning bg-warn-surface text-warn-ink promotion-bumpin__step-node--locked' : isDone ? 'border-warning bg-white text-primary promotion-bumpin__step-node--done' : 'border-border-strong bg-card text-secondary-foreground'}`}
|
|
35
35
|
>
|
|
36
36
|
{isLocked ? (
|
|
37
37
|
<Lock weight="fill" size={20} />
|
|
@@ -39,7 +39,7 @@ function StepsProgress({
|
|
|
39
39
|
<span>{stepNumber}</span>
|
|
40
40
|
)}
|
|
41
41
|
</div>
|
|
42
|
-
<span className="promotion-bumpin__step-label whitespace-nowrap text-xs leading-tight text-
|
|
42
|
+
<span className="promotion-bumpin__step-label whitespace-nowrap text-xs leading-tight text-secondary-foreground">{stepNumber} {unit}</span>
|
|
43
43
|
</div>
|
|
44
44
|
);
|
|
45
45
|
})}
|