@tbox.cn/app-module-mall-core 0.4.2 → 0.4.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/AGENTS.md +3 -2
- package/dist/{chunk-X2O2MNNU.js → chunk-FIHBQMON.js} +1 -1
- package/dist/{chunk-PSIGTTN7.js → chunk-QPBYZO27.js} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/server/index.d.ts +16 -16
- package/dist/server/index.js +1 -1
- package/package.json +5 -5
- package/src/client/MallHome.tsx +1 -1
- package/src/server/module-ports.ts +1 -1
- package/tests/MallHome.test.tsx +1 -1
package/AGENTS.md
CHANGED
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
## 自定义服务集成
|
|
7
7
|
|
|
8
|
-
见本包 `INTEGRATION.md
|
|
9
|
-
`
|
|
8
|
+
见本包 `INTEGRATION.md`;实施落点与流程见
|
|
9
|
+
`npx --yes @tbox.cn/app-cli skills get integration`(任务路由/材料清单)与
|
|
10
|
+
`npx --yes @tbox.cn/app-cli skills get provider-custom`(adapter 实施)。
|
|
@@ -240,7 +240,7 @@ import { createLogger as createLogger2 } from "@tbox.cn/app-agent-sdk-server";
|
|
|
240
240
|
var portsLogger = createLogger2("server");
|
|
241
241
|
function warnUnassembled(specifier, e) {
|
|
242
242
|
portsLogger.warn(
|
|
243
|
-
"module ports \u672A\u88C5\u914D\
|
|
243
|
+
"module ports \u672A\u88C5\u914D\uFF08npx --yes @tbox.cn/app-cli module add \u540E\u751F\u6548\uFF09",
|
|
244
244
|
specifier,
|
|
245
245
|
String(e?.message ?? e).slice(0, 120)
|
|
246
246
|
);
|
|
@@ -565,7 +565,7 @@ function openEnrollMiniProgram(enrollUrl) {
|
|
|
565
565
|
var BUSINESS_AREAS = Object.freeze([
|
|
566
566
|
Object.freeze({
|
|
567
567
|
moduleId: "shopping-guide",
|
|
568
|
-
title: "\
|
|
568
|
+
title: "\u95E8\u5E97\u5BFC\u89C8",
|
|
569
569
|
description: "\u627E\u95E8\u5E97\u3001\u770B\u697C\u5C42\u548C\u67E5\u5546\u573A\u653F\u7B56",
|
|
570
570
|
tone: "guide",
|
|
571
571
|
icon: Storefront,
|
package/dist/client/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
resolveMallInfo,
|
|
10
10
|
resolveMallScopeAssembly,
|
|
11
11
|
serverModule
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FIHBQMON.js";
|
|
13
13
|
import {
|
|
14
14
|
clientModule
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QPBYZO27.js";
|
|
16
16
|
export {
|
|
17
17
|
bindMallInfoContext,
|
|
18
18
|
buildDefaultMallContext,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -204,17 +204,17 @@ declare const serverModule: {
|
|
|
204
204
|
parkedMinutes: zod.ZodOptional<zod.ZodNumber>;
|
|
205
205
|
}, "strip", zod.ZodTypeAny, {
|
|
206
206
|
status: "ready";
|
|
207
|
-
primaryPlate: string;
|
|
208
207
|
plateCount: number;
|
|
209
|
-
|
|
208
|
+
primaryPlate: string;
|
|
210
209
|
freeMinutesRemaining?: number | undefined;
|
|
210
|
+
parkedPlates?: string[] | undefined;
|
|
211
211
|
parkedMinutes?: number | undefined;
|
|
212
212
|
}, {
|
|
213
213
|
status: "ready";
|
|
214
|
-
primaryPlate: string;
|
|
215
214
|
plateCount: number;
|
|
216
|
-
|
|
215
|
+
primaryPlate: string;
|
|
217
216
|
freeMinutesRemaining?: number | undefined;
|
|
217
|
+
parkedPlates?: string[] | undefined;
|
|
218
218
|
parkedMinutes?: number | undefined;
|
|
219
219
|
}>, zod.ZodObject<{
|
|
220
220
|
status: zod.ZodLiteral<"unavailable">;
|
|
@@ -245,34 +245,34 @@ declare const serverModule: {
|
|
|
245
245
|
progressUnit: zod.ZodOptional<zod.ZodString>;
|
|
246
246
|
}, "strip", zod.ZodTypeAny, {
|
|
247
247
|
title: string;
|
|
248
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
249
248
|
totalProgress?: string | undefined;
|
|
250
249
|
currentProgress?: string | undefined;
|
|
251
250
|
progressUnit?: string | undefined;
|
|
251
|
+
progressStyle?: "steps" | "bar" | undefined;
|
|
252
252
|
}, {
|
|
253
253
|
title: string;
|
|
254
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
255
254
|
totalProgress?: string | undefined;
|
|
256
255
|
currentProgress?: string | undefined;
|
|
257
256
|
progressUnit?: string | undefined;
|
|
257
|
+
progressStyle?: "steps" | "bar" | undefined;
|
|
258
258
|
}>;
|
|
259
259
|
}, "strip", zod.ZodTypeAny, {
|
|
260
260
|
status: "ready";
|
|
261
261
|
banner: {
|
|
262
262
|
title: string;
|
|
263
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
264
263
|
totalProgress?: string | undefined;
|
|
265
264
|
currentProgress?: string | undefined;
|
|
266
265
|
progressUnit?: string | undefined;
|
|
266
|
+
progressStyle?: "steps" | "bar" | undefined;
|
|
267
267
|
};
|
|
268
268
|
}, {
|
|
269
269
|
status: "ready";
|
|
270
270
|
banner: {
|
|
271
271
|
title: string;
|
|
272
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
273
272
|
totalProgress?: string | undefined;
|
|
274
273
|
currentProgress?: string | undefined;
|
|
275
274
|
progressUnit?: string | undefined;
|
|
275
|
+
progressStyle?: "steps" | "bar" | undefined;
|
|
276
276
|
};
|
|
277
277
|
}>, zod.ZodObject<{
|
|
278
278
|
status: zod.ZodLiteral<"unauthenticated">;
|
|
@@ -329,10 +329,10 @@ declare const serverModule: {
|
|
|
329
329
|
status: "empty";
|
|
330
330
|
} | {
|
|
331
331
|
status: "ready";
|
|
332
|
-
primaryPlate: string;
|
|
333
332
|
plateCount: number;
|
|
334
|
-
|
|
333
|
+
primaryPlate: string;
|
|
335
334
|
freeMinutesRemaining?: number | undefined;
|
|
335
|
+
parkedPlates?: string[] | undefined;
|
|
336
336
|
parkedMinutes?: number | undefined;
|
|
337
337
|
} | {
|
|
338
338
|
status: "unavailable";
|
|
@@ -345,10 +345,10 @@ declare const serverModule: {
|
|
|
345
345
|
status: "ready";
|
|
346
346
|
banner: {
|
|
347
347
|
title: string;
|
|
348
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
349
348
|
totalProgress?: string | undefined;
|
|
350
349
|
currentProgress?: string | undefined;
|
|
351
350
|
progressUnit?: string | undefined;
|
|
351
|
+
progressStyle?: "steps" | "bar" | undefined;
|
|
352
352
|
};
|
|
353
353
|
} | {
|
|
354
354
|
status: "unauthenticated";
|
|
@@ -359,9 +359,9 @@ declare const serverModule: {
|
|
|
359
359
|
} | {
|
|
360
360
|
status: "error";
|
|
361
361
|
};
|
|
362
|
+
enrollUrl?: string | null | undefined;
|
|
362
363
|
mallName?: string | undefined;
|
|
363
364
|
showDevServices?: boolean | undefined;
|
|
364
|
-
enrollUrl?: string | null | undefined;
|
|
365
365
|
}, {
|
|
366
366
|
member: {
|
|
367
367
|
status: "loading";
|
|
@@ -392,10 +392,10 @@ declare const serverModule: {
|
|
|
392
392
|
status: "empty";
|
|
393
393
|
} | {
|
|
394
394
|
status: "ready";
|
|
395
|
-
primaryPlate: string;
|
|
396
395
|
plateCount: number;
|
|
397
|
-
|
|
396
|
+
primaryPlate: string;
|
|
398
397
|
freeMinutesRemaining?: number | undefined;
|
|
398
|
+
parkedPlates?: string[] | undefined;
|
|
399
399
|
parkedMinutes?: number | undefined;
|
|
400
400
|
} | {
|
|
401
401
|
status: "unavailable";
|
|
@@ -408,10 +408,10 @@ declare const serverModule: {
|
|
|
408
408
|
status: "ready";
|
|
409
409
|
banner: {
|
|
410
410
|
title: string;
|
|
411
|
-
progressStyle?: "bar" | "steps" | undefined;
|
|
412
411
|
totalProgress?: string | undefined;
|
|
413
412
|
currentProgress?: string | undefined;
|
|
414
413
|
progressUnit?: string | undefined;
|
|
414
|
+
progressStyle?: "steps" | "bar" | undefined;
|
|
415
415
|
};
|
|
416
416
|
} | {
|
|
417
417
|
status: "unauthenticated";
|
|
@@ -422,9 +422,9 @@ declare const serverModule: {
|
|
|
422
422
|
} | {
|
|
423
423
|
status: "error";
|
|
424
424
|
};
|
|
425
|
+
enrollUrl?: string | null | undefined;
|
|
425
426
|
mallName?: string | undefined;
|
|
426
427
|
showDevServices?: boolean | undefined;
|
|
427
|
-
enrollUrl?: string | null | undefined;
|
|
428
428
|
}>>;
|
|
429
429
|
};
|
|
430
430
|
preTools: {
|
package/dist/server/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-mall-core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈基础模块:scope 域装配注册 + mall-info 工具链 + mall-directory 服务 + 首页主屏(home 槽 / 联单面板 / 会员停车快览)+ 首页预览卡。",
|
|
6
6
|
"exports": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tbox.cn/app-contracts": "0.13.
|
|
23
|
-
"@tbox.cn/app-contracts-mall": "0.
|
|
24
|
-
"@tbox.cn/app-agent-sdk-client": "0.2.
|
|
25
|
-
"@tbox.cn/app-agent-sdk-server": "0.3.
|
|
22
|
+
"@tbox.cn/app-contracts": "0.13.3",
|
|
23
|
+
"@tbox.cn/app-contracts-mall": "0.14.0",
|
|
24
|
+
"@tbox.cn/app-agent-sdk-client": "0.2.1",
|
|
25
|
+
"@tbox.cn/app-agent-sdk-server": "0.3.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "18.3.1",
|
package/src/client/MallHome.tsx
CHANGED
|
@@ -241,7 +241,7 @@ interface BusinessArea {
|
|
|
241
241
|
const BUSINESS_AREAS: readonly BusinessArea[] = Object.freeze([
|
|
242
242
|
Object.freeze({
|
|
243
243
|
moduleId: 'shopping-guide',
|
|
244
|
-
title: '
|
|
244
|
+
title: '门店导览',
|
|
245
245
|
description: '找门店、看楼层和查商场政策',
|
|
246
246
|
tone: 'guide' as const,
|
|
247
247
|
icon: Storefront,
|
|
@@ -48,7 +48,7 @@ type BumpinPorts = {
|
|
|
48
48
|
|
|
49
49
|
function warnUnassembled(specifier: string, e: unknown): void {
|
|
50
50
|
portsLogger.warn(
|
|
51
|
-
'module ports 未装配(tbox-
|
|
51
|
+
'module ports 未装配(npx --yes @tbox.cn/app-cli module add 后生效)',
|
|
52
52
|
specifier,
|
|
53
53
|
String((e as Error)?.message ?? e).slice(0, 120),
|
|
54
54
|
);
|
package/tests/MallHome.test.tsx
CHANGED