@tbox.cn/app-module-shopping-guide 1.0.0-alpha.17 → 1.0.0-alpha.19
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-MBJPTP72.js → chunk-BRF7ETYW.js} +22 -12
- package/dist/client/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.d.ts +448 -448
- package/package.json +6 -6
- package/src/client/cards/category-list/index.tsx +1 -1
- package/src/client/cards/location-handoff/index.tsx +2 -1
- package/src/client/cards/mall-directory/index.tsx +2 -1
- package/src/client/cards/product-list/index.tsx +1 -1
- package/src/client/cards/recommend-merchants/index.tsx +1 -1
- package/src/client/cards/shop-detail/index.tsx +2 -1
- package/src/client/cards/shop-list/index.tsx +1 -1
- package/src/client/components/ImageWithFallback.tsx +1 -1
- package/src/client/components/MerchantRow.tsx +2 -1
- package/src/client/components/ShopDetailSheet.tsx +6 -1
- package/src/client/components/ShopGuideHeader.tsx +1 -1
- package/src/client/components/ShopListSheet.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-shopping-guide",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "门店导览模块:商品/商户搜索、推荐、对比、商场目录、人工导购、位置导航。",
|
|
6
6
|
"exports": {
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tbox.cn/app-agent-sdk-
|
|
23
|
-
"@tbox.cn/app-contracts
|
|
24
|
-
"@tbox.cn/app-contracts": "1.0.0-alpha.
|
|
25
|
-
"@tbox.cn/app-agent-sdk-
|
|
22
|
+
"@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.19",
|
|
23
|
+
"@tbox.cn/app-contracts": "1.0.0-alpha.19",
|
|
24
|
+
"@tbox.cn/app-contracts-mall": "1.0.0-alpha.19",
|
|
25
|
+
"@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.19"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"zod": "3.25.76",
|
|
29
29
|
"react": "18.3.1",
|
|
30
30
|
"@phosphor-icons/react": "2.1.10",
|
|
31
|
-
"@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.
|
|
31
|
+
"@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.19"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "18.3.31",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* 重构要点:去掉冗余 chip(点击整个格子即可),升级为彩色图标背景 + 圆角格式。
|
|
4
4
|
*/
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import { CaretDown } from '@phosphor-icons/react';
|
|
6
|
+
import { CaretDownIcon as CaretDown } from '@phosphor-icons/react/CaretDown';
|
|
7
7
|
import { sendCardAction } from '@tbox.cn/app-agent-sdk-client';
|
|
8
8
|
import { categoryIcon } from '../view';
|
|
9
9
|
import type { CategoryListCardData } from '@tbox.cn/app-contracts-mall';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* location-handoff 富卡(0.4.0):地图预览 + 地址 + 三级降级(view.deriveLocationLevel)。
|
|
3
3
|
*/
|
|
4
|
-
import { MapPin
|
|
4
|
+
import { MapPinIcon as MapPin } from '@phosphor-icons/react/MapPin';
|
|
5
|
+
import { NavigationArrowIcon as NavigationArrow } from '@phosphor-icons/react/NavigationArrow';
|
|
5
6
|
import { sendCardAction } from '@tbox.cn/app-agent-sdk-client';
|
|
6
7
|
import { ImageWithFallback } from '../../components/ImageWithFallback';
|
|
7
8
|
import { deriveLocationLevel } from '../view';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* mall-directory 富卡(0.4.0):楼栋手风琴(默认第一栋展开)+ 楼层「查看门店」chip。
|
|
3
3
|
*/
|
|
4
4
|
import { useState } from 'react';
|
|
5
|
-
import { CaretDown
|
|
5
|
+
import { CaretDownIcon as CaretDown } from '@phosphor-icons/react/CaretDown';
|
|
6
|
+
import { StorefrontIcon as Storefront } from '@phosphor-icons/react/Storefront';
|
|
6
7
|
import { sendCardAction } from '@tbox.cn/app-agent-sdk-client';
|
|
7
8
|
import type { MallDirectoryCardData } from '@tbox.cn/app-contracts-mall';
|
|
8
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { Overlay } from '@tbox.cn/app-agent-ui-kit/overlay';
|
|
7
|
-
import { X } from '@phosphor-icons/react';
|
|
7
|
+
import { XIcon as X } from '@phosphor-icons/react/X';
|
|
8
8
|
import { ItemActionsRow, sendCardAction } from '@tbox.cn/app-agent-sdk-client';
|
|
9
9
|
import { ImageWithFallback } from '../../components/ImageWithFallback';
|
|
10
10
|
import type { ProductListCardData } from '@tbox.cn/app-contracts-mall';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* 完整列表和单店详情分别进入半屏浮层,避免聊天流被长列表撑高。
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback, useMemo, useState } from 'react';
|
|
6
|
-
import { CaretRight } from '@phosphor-icons/react';
|
|
6
|
+
import { CaretRightIcon as CaretRight } from '@phosphor-icons/react/CaretRight';
|
|
7
7
|
import { ShopDetailSheet } from '../../components/ShopDetailSheet';
|
|
8
8
|
import { MerchantRow } from '../../components/MerchantRow';
|
|
9
9
|
import { resolveCategoryTabs } from '../../categories';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useRef, useState } from 'react';
|
|
2
|
-
import { Clock
|
|
2
|
+
import { ClockIcon as Clock } from '@phosphor-icons/react/Clock';
|
|
3
|
+
import { PhoneIcon as Phone } from '@phosphor-icons/react/Phone';
|
|
3
4
|
import { httpGet, markSelfRendering } from '@tbox.cn/app-agent-sdk-client';
|
|
4
5
|
import { MerchantRow } from '../../components/MerchantRow';
|
|
5
6
|
import { ShopGuideHeader } from '../../components/ShopGuideHeader';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import { CaretRight } from '@phosphor-icons/react';
|
|
2
|
+
import { CaretRightIcon as CaretRight } from '@phosphor-icons/react/CaretRight';
|
|
3
3
|
import { markSelfRendering } from '@tbox.cn/app-agent-sdk-client';
|
|
4
4
|
import { ShopDetailSheet } from '../../components/ShopDetailSheet';
|
|
5
5
|
import type { ShopDetailSheetData } from '../../components/ShopDetailSheet';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* 源:POC shopping-guide 占位语义。src 缺省或加载失败 → 图标占位。
|
|
4
4
|
*/
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import { ImageSquare } from '@phosphor-icons/react';
|
|
6
|
+
import { ImageSquareIcon as ImageSquare } from '@phosphor-icons/react/ImageSquare';
|
|
7
7
|
|
|
8
8
|
export function ImageWithFallback(props: {
|
|
9
9
|
src?: string;
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* `.sg-recommend-merchants` 下,半屏拿不到,这正是两边长歪的起点。
|
|
12
12
|
* 外层容器各自的视觉(半屏的白底卡片、卡片里的分隔线)由调用方经 `className` 追加。
|
|
13
13
|
*/
|
|
14
|
-
import { MapPin
|
|
14
|
+
import { MapPinIcon as MapPin } from '@phosphor-icons/react/MapPin';
|
|
15
|
+
import { StarIcon as Star } from '@phosphor-icons/react/Star';
|
|
15
16
|
import { ImageWithFallback } from './ImageWithFallback';
|
|
16
17
|
|
|
17
18
|
export interface MerchantRowData {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { useCallback, useEffect, useId, useRef, useState } from 'react';
|
|
2
2
|
import { Overlay } from '@tbox.cn/app-agent-ui-kit/overlay';
|
|
3
|
-
import {
|
|
3
|
+
import { ClockIcon as Clock } from '@phosphor-icons/react/Clock';
|
|
4
|
+
import { MapPinIcon as MapPin } from '@phosphor-icons/react/MapPin';
|
|
5
|
+
import { PhoneIcon as Phone } from '@phosphor-icons/react/Phone';
|
|
6
|
+
import { StarIcon as Star } from '@phosphor-icons/react/Star';
|
|
7
|
+
import { TagIcon as Tag } from '@phosphor-icons/react/Tag';
|
|
8
|
+
import { XIcon as X } from '@phosphor-icons/react/X';
|
|
4
9
|
import { ItemActionsRow, navigateToAlipayPage, sendCardAction } from '@tbox.cn/app-agent-sdk-client';
|
|
5
10
|
import { ImageWithFallback } from './ImageWithFallback';
|
|
6
11
|
import type { ActionDraft } from '@tbox.cn/app-contracts-mall';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 与 MerchantRow 同一条理由——三张卡此前各抄一份同样的 JSX,副标题的兜底文案已经开始分叉
|
|
5
5
|
* (「按品类发现值得逛的门店」/「按品类快速找到想逛的门店」)。抄第三份之前先收成组件。
|
|
6
6
|
*/
|
|
7
|
-
import { Storefront } from '@phosphor-icons/react';
|
|
7
|
+
import { StorefrontIcon as Storefront } from '@phosphor-icons/react/Storefront';
|
|
8
8
|
|
|
9
9
|
export function ShopGuideHeader(props: { readonly subtitle: string }) {
|
|
10
10
|
return (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import { MagnifyingGlass
|
|
2
|
+
import { MagnifyingGlassIcon as MagnifyingGlass } from '@phosphor-icons/react/MagnifyingGlass';
|
|
3
|
+
import { XIcon as X } from '@phosphor-icons/react/X';
|
|
3
4
|
import { Overlay } from '@tbox.cn/app-agent-ui-kit/overlay';
|
|
4
5
|
import { MerchantRow } from './MerchantRow';
|
|
5
6
|
import { resolveCategoryTabs, type MerchantCategoryTab } from '../categories';
|