@tbox.cn/app-module-shopping-guide 0.8.2 → 0.8.3
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-QDTU2FRN.js → chunk-VKDA6RXQ.js} +1 -7
- package/dist/client/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.d.ts +4 -4
- package/dist/{shopping-guide-OQ2SSHXL.css → shopping-guide-EGRHPEDA.css} +12 -7
- package/package.json +4 -4
- package/src/client/components/ShopGuideHeader.tsx +1 -2
- package/src/client/styles/shopping-guide.css +12 -7
- package/src/server/handler.ts +1 -1
- package/dist/shop-guide-header-art-pea-v2-OME4MKBW.jpg +0 -0
- package/src/client/assets/shop-guide-header-art-pea-v2.jpg +0 -0
- package/src/client/assets/shop-guide-header-art.png +0 -0
- package/src/client/assets.d.ts +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/client/index.ts
|
|
2
|
-
import "./shopping-guide-
|
|
2
|
+
import "./shopping-guide-EGRHPEDA.css";
|
|
3
3
|
|
|
4
4
|
// src/client/cards/product-list/index.tsx
|
|
5
5
|
import { useState as useState2 } from "react";
|
|
@@ -596,15 +596,9 @@ function resolveCategoryTabs(categoryTabs, items) {
|
|
|
596
596
|
|
|
597
597
|
// src/client/components/ShopGuideHeader.tsx
|
|
598
598
|
import { Storefront } from "@phosphor-icons/react";
|
|
599
|
-
|
|
600
|
-
// src/client/assets/shop-guide-header-art-pea-v2.jpg
|
|
601
|
-
var shop_guide_header_art_pea_v2_default = "./shop-guide-header-art-pea-v2-OME4MKBW.jpg";
|
|
602
|
-
|
|
603
|
-
// src/client/components/ShopGuideHeader.tsx
|
|
604
599
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
605
600
|
function ShopGuideHeader(props) {
|
|
606
601
|
return /* @__PURE__ */ jsxs5("header", { className: "sg-rm-header", children: [
|
|
607
|
-
/* @__PURE__ */ jsx6("img", { src: shop_guide_header_art_pea_v2_default, alt: "", className: "sg-rm-header-art", "aria-hidden": "true" }),
|
|
608
602
|
/* @__PURE__ */ jsxs5("div", { className: "sg-rm-header-copy", children: [
|
|
609
603
|
/* @__PURE__ */ jsxs5("div", { className: "sg-rm-header-title-row", children: [
|
|
610
604
|
/* @__PURE__ */ jsx6(Storefront, { size: 22, weight: "fill" }),
|
package/dist/client/index.js
CHANGED
package/dist/index.js
CHANGED
package/dist/server/index.d.ts
CHANGED
|
@@ -2267,6 +2267,7 @@ declare const shoppingGuideCards: {
|
|
|
2267
2267
|
observedAt: zod.ZodString;
|
|
2268
2268
|
}, "strip", zod.ZodTypeAny, {
|
|
2269
2269
|
mallId: string;
|
|
2270
|
+
mallName: string;
|
|
2270
2271
|
observedAt: string;
|
|
2271
2272
|
buildings: {
|
|
2272
2273
|
buildingName: string;
|
|
@@ -2288,9 +2289,9 @@ declare const shoppingGuideCards: {
|
|
|
2288
2289
|
})[] | undefined;
|
|
2289
2290
|
}[];
|
|
2290
2291
|
}[];
|
|
2291
|
-
mallName: string;
|
|
2292
2292
|
}, {
|
|
2293
2293
|
mallId: string;
|
|
2294
|
+
mallName: string;
|
|
2294
2295
|
observedAt: string;
|
|
2295
2296
|
buildings: {
|
|
2296
2297
|
buildingName: string;
|
|
@@ -2312,7 +2313,6 @@ declare const shoppingGuideCards: {
|
|
|
2312
2313
|
})[] | undefined;
|
|
2313
2314
|
}[];
|
|
2314
2315
|
}[];
|
|
2315
|
-
mallName: string;
|
|
2316
2316
|
}>>;
|
|
2317
2317
|
readonly 'nearby-mall-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
2318
2318
|
query: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5280,6 +5280,7 @@ declare const serverModule: {
|
|
|
5280
5280
|
observedAt: zod.ZodString;
|
|
5281
5281
|
}, "strip", zod.ZodTypeAny, {
|
|
5282
5282
|
mallId: string;
|
|
5283
|
+
mallName: string;
|
|
5283
5284
|
observedAt: string;
|
|
5284
5285
|
buildings: {
|
|
5285
5286
|
buildingName: string;
|
|
@@ -5301,9 +5302,9 @@ declare const serverModule: {
|
|
|
5301
5302
|
})[] | undefined;
|
|
5302
5303
|
}[];
|
|
5303
5304
|
}[];
|
|
5304
|
-
mallName: string;
|
|
5305
5305
|
}, {
|
|
5306
5306
|
mallId: string;
|
|
5307
|
+
mallName: string;
|
|
5307
5308
|
observedAt: string;
|
|
5308
5309
|
buildings: {
|
|
5309
5310
|
buildingName: string;
|
|
@@ -5325,7 +5326,6 @@ declare const serverModule: {
|
|
|
5325
5326
|
})[] | undefined;
|
|
5326
5327
|
}[];
|
|
5327
5328
|
}[];
|
|
5328
|
-
mallName: string;
|
|
5329
5329
|
}>>;
|
|
5330
5330
|
'nearby-mall-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
5331
5331
|
query: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
* module-shopping-guide 客户端域样式(0.4.0 D1/D2;头注二轮评审修正)。
|
|
3
|
-
* 视觉源:mall-vis 双演示(BrandGuideMessageCard 导购蓝系);域色矩阵对照 docs/
|
|
3
|
+
* 视觉源:mall-vis 双演示(BrandGuideMessageCard 导购蓝系);域色矩阵对照 docs/reference/templates.md(视觉体系与域色矩阵)。
|
|
4
4
|
* 基线(D2):本仓库统一 750 设计稿 2x——源码 px 经 rootValue 100 转 rem,渲染折半(375 下 1px 源码 = 0.5px 物理)。
|
|
5
5
|
* POC sg 源文件本身即按 750 稿惯例作稿(正文 24/26px),故值 1:1 迁移、管线等价、渲染还原。
|
|
6
6
|
* (评审修正:POC client 亦为 rootValue 100 管线,"POC = 物理 px 生态、一律 ×2" 的前提不成立,换算按源文件作稿惯例分域裁定。)
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
.sg-card,
|
|
19
19
|
.sg-store-list-sheet,
|
|
20
20
|
.sg-shop-sheet {
|
|
21
|
-
--sg-accent: #096bfa;
|
|
22
|
-
--sg-surface: #f7faff;
|
|
23
|
-
--sg-accent-border: #cfe0f7;
|
|
21
|
+
--sg-accent: var(--tbox-domain-sg-accent, #096bfa);
|
|
22
|
+
--sg-surface: var(--tbox-domain-sg-surface, #f7faff);
|
|
23
|
+
--sg-accent-border: var(--tbox-domain-sg-border, #cfe0f7);
|
|
24
24
|
--sg-navy-gradient: linear-gradient(135deg, #0e2f80 0%, #1e5ed7 100%);
|
|
25
25
|
--sg-cta-gradient: linear-gradient(108deg, #2493ff 0%, #0b63ff 100%);
|
|
26
26
|
--sg-open-bg: #e9f8ef;
|
|
@@ -1773,13 +1773,18 @@
|
|
|
1773
1773
|
border-radius: 0;
|
|
1774
1774
|
background: #f9f0df;
|
|
1775
1775
|
}
|
|
1776
|
-
|
|
1776
|
+
/* 门店导览头图(主题品牌资产轨 A1 级联修复):img 层转伪元素背景;
|
|
1777
|
+
元素只消费不声明(声明截断主题覆写继承),兜底 = 中立渐变(零品牌资产——B2),
|
|
1778
|
+
主题包经 html[data-theme] 段覆写 --tbox-asset-sg-header */
|
|
1779
|
+
.sg-rm-header::after {
|
|
1780
|
+
content: '';
|
|
1777
1781
|
position: absolute;
|
|
1778
1782
|
inset: 0 0 0 auto;
|
|
1779
1783
|
width: 62%;
|
|
1780
1784
|
height: 100%;
|
|
1781
|
-
|
|
1782
|
-
|
|
1785
|
+
background-image: var(--tbox-asset-sg-header, linear-gradient(135deg, #f9f0df, #f3e5cd));
|
|
1786
|
+
background-size: cover;
|
|
1787
|
+
background-position: right center;
|
|
1783
1788
|
opacity: 0.9;
|
|
1784
1789
|
pointer-events: none;
|
|
1785
1790
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-shopping-guide",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈导购模块:商品/商户搜索、推荐、对比、商场目录、人工导购、位置导航。",
|
|
6
6
|
"exports": {
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tbox.cn/app-sdk": "0.
|
|
23
|
-
"@tbox.cn/app-contracts": "0.
|
|
24
|
-
"@tbox.cn/app-contracts-mall": "0.
|
|
22
|
+
"@tbox.cn/app-sdk": "0.19.0",
|
|
23
|
+
"@tbox.cn/app-contracts": "0.10.0",
|
|
24
|
+
"@tbox.cn/app-contracts-mall": "0.10.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"zod": "3.25.76",
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* (「按品类发现值得逛的门店」/「按品类快速找到想逛的门店」)。抄第三份之前先收成组件。
|
|
6
6
|
*/
|
|
7
7
|
import { Storefront } from '@phosphor-icons/react';
|
|
8
|
-
import shopGuideHeaderArtUrl from '../assets/shop-guide-header-art-pea-v2.jpg';
|
|
9
8
|
|
|
10
9
|
export function ShopGuideHeader(props: { readonly subtitle: string }) {
|
|
11
10
|
return (
|
|
12
11
|
<header className="sg-rm-header">
|
|
13
|
-
|
|
12
|
+
{/* 头图经 CSS background(.sg-rm-header::after + --tbox-asset-sg-header 变量链,主题轨 T-2.3) */}
|
|
14
13
|
<div className="sg-rm-header-copy">
|
|
15
14
|
<div className="sg-rm-header-title-row">
|
|
16
15
|
<Storefront size={22} weight="fill" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
* module-shopping-guide 客户端域样式(0.4.0 D1/D2;头注二轮评审修正)。
|
|
3
|
-
* 视觉源:mall-vis 双演示(BrandGuideMessageCard 导购蓝系);域色矩阵对照 docs/
|
|
3
|
+
* 视觉源:mall-vis 双演示(BrandGuideMessageCard 导购蓝系);域色矩阵对照 docs/reference/templates.md(视觉体系与域色矩阵)。
|
|
4
4
|
* 基线(D2):本仓库统一 750 设计稿 2x——源码 px 经 rootValue 100 转 rem,渲染折半(375 下 1px 源码 = 0.5px 物理)。
|
|
5
5
|
* POC sg 源文件本身即按 750 稿惯例作稿(正文 24/26px),故值 1:1 迁移、管线等价、渲染还原。
|
|
6
6
|
* (评审修正:POC client 亦为 rootValue 100 管线,"POC = 物理 px 生态、一律 ×2" 的前提不成立,换算按源文件作稿惯例分域裁定。)
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
.sg-card,
|
|
19
19
|
.sg-store-list-sheet,
|
|
20
20
|
.sg-shop-sheet {
|
|
21
|
-
--sg-accent: #096bfa;
|
|
22
|
-
--sg-surface: #f7faff;
|
|
23
|
-
--sg-accent-border: #cfe0f7;
|
|
21
|
+
--sg-accent: var(--tbox-domain-sg-accent, #096bfa);
|
|
22
|
+
--sg-surface: var(--tbox-domain-sg-surface, #f7faff);
|
|
23
|
+
--sg-accent-border: var(--tbox-domain-sg-border, #cfe0f7);
|
|
24
24
|
--sg-navy-gradient: linear-gradient(135deg, #0e2f80 0%, #1e5ed7 100%);
|
|
25
25
|
--sg-cta-gradient: linear-gradient(108deg, #2493ff 0%, #0b63ff 100%);
|
|
26
26
|
--sg-open-bg: #e9f8ef;
|
|
@@ -1773,13 +1773,18 @@
|
|
|
1773
1773
|
border-radius: 0;
|
|
1774
1774
|
background: #f9f0df;
|
|
1775
1775
|
}
|
|
1776
|
-
|
|
1776
|
+
/* 门店导览头图(主题品牌资产轨 A1 级联修复):img 层转伪元素背景;
|
|
1777
|
+
元素只消费不声明(声明截断主题覆写继承),兜底 = 中立渐变(零品牌资产——B2),
|
|
1778
|
+
主题包经 html[data-theme] 段覆写 --tbox-asset-sg-header */
|
|
1779
|
+
.sg-rm-header::after {
|
|
1780
|
+
content: '';
|
|
1777
1781
|
position: absolute;
|
|
1778
1782
|
inset: 0 0 0 auto;
|
|
1779
1783
|
width: 62%;
|
|
1780
1784
|
height: 100%;
|
|
1781
|
-
|
|
1782
|
-
|
|
1785
|
+
background-image: var(--tbox-asset-sg-header, linear-gradient(135deg, #f9f0df, #f3e5cd));
|
|
1786
|
+
background-size: cover;
|
|
1787
|
+
background-position: right center;
|
|
1783
1788
|
opacity: 0.9;
|
|
1784
1789
|
pointer-events: none;
|
|
1785
1790
|
}
|
package/src/server/handler.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { parseMallScope } from '@tbox.cn/app-contracts-mall';
|
|
|
11
11
|
import { resolveShoppingGuidePorts } from './ports';
|
|
12
12
|
import { buildShopListCard, toContext } from './tools';
|
|
13
13
|
|
|
14
|
-
/** 品牌导览按钮整句(templates/template-agent
|
|
14
|
+
/** 品牌导览按钮整句(templates/template-agent/profiles/mall/config/chat.json QuickCommands query——exact 全等唯一入口;W4 前在 template-agent-mall) */
|
|
15
15
|
const BRAND_GUIDE_QUERY = '品牌导览';
|
|
16
16
|
|
|
17
17
|
/** 常驻入口全量页大小:LLM 面 search-shops 工具 pageSize 钳 50(提示词防爆护栏),此通道直调 port 特批 200 */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|