@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/client/cards/product-list/index.tsx
|
|
2
2
|
import { useState as useState2 } from "react";
|
|
3
3
|
import { Overlay } from "@tbox.cn/app-agent-ui-kit/overlay";
|
|
4
|
-
import { X } from "@phosphor-icons/react";
|
|
4
|
+
import { XIcon as X } from "@phosphor-icons/react/X";
|
|
5
5
|
import { ItemActionsRow, sendCardAction } from "@tbox.cn/app-agent-sdk-client";
|
|
6
6
|
|
|
7
7
|
// src/client/components/ImageWithFallback.tsx
|
|
8
8
|
import { useState } from "react";
|
|
9
|
-
import { ImageSquare } from "@phosphor-icons/react";
|
|
9
|
+
import { ImageSquareIcon as ImageSquare } from "@phosphor-icons/react/ImageSquare";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
function ImageWithFallback(props) {
|
|
12
12
|
const { src, alt, className, size = 40 } = props;
|
|
@@ -270,13 +270,18 @@ var product_detail_default = ProductDetailCard;
|
|
|
270
270
|
|
|
271
271
|
// src/client/cards/shop-list/index.tsx
|
|
272
272
|
import { useCallback as useCallback2, useMemo as useMemo2, useRef as useRef3, useState as useState6 } from "react";
|
|
273
|
-
import { CaretRight } from "@phosphor-icons/react";
|
|
273
|
+
import { CaretRightIcon as CaretRight } from "@phosphor-icons/react/CaretRight";
|
|
274
274
|
import { markSelfRendering } from "@tbox.cn/app-agent-sdk-client";
|
|
275
275
|
|
|
276
276
|
// src/client/components/ShopDetailSheet.tsx
|
|
277
277
|
import { useCallback, useEffect, useId, useRef, useState as useState4 } from "react";
|
|
278
278
|
import { Overlay as Overlay2 } from "@tbox.cn/app-agent-ui-kit/overlay";
|
|
279
|
-
import {
|
|
279
|
+
import { ClockIcon as Clock } from "@phosphor-icons/react/Clock";
|
|
280
|
+
import { MapPinIcon as MapPin } from "@phosphor-icons/react/MapPin";
|
|
281
|
+
import { PhoneIcon as Phone } from "@phosphor-icons/react/Phone";
|
|
282
|
+
import { StarIcon as Star } from "@phosphor-icons/react/Star";
|
|
283
|
+
import { TagIcon as Tag } from "@phosphor-icons/react/Tag";
|
|
284
|
+
import { XIcon as X2 } from "@phosphor-icons/react/X";
|
|
280
285
|
import { ItemActionsRow as ItemActionsRow3, navigateToAlipayPage, sendCardAction as sendCardAction2 } from "@tbox.cn/app-agent-sdk-client";
|
|
281
286
|
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
282
287
|
var HIDDEN_DETAIL_ACTION_LABELS = /* @__PURE__ */ new Set(["\u67E5\u770B\u8BE6\u60C5", "\u5BFC\u822A", "\u95EE\u95EE\u5BFC\u8D2D"]);
|
|
@@ -524,7 +529,8 @@ function ShopDetailSheet(props) {
|
|
|
524
529
|
}
|
|
525
530
|
|
|
526
531
|
// src/client/components/MerchantRow.tsx
|
|
527
|
-
import {
|
|
532
|
+
import { MapPinIcon as MapPin2 } from "@phosphor-icons/react/MapPin";
|
|
533
|
+
import { StarIcon as Star2 } from "@phosphor-icons/react/Star";
|
|
528
534
|
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
529
535
|
function MerchantRow(props) {
|
|
530
536
|
const { merchant, disabled = false, className, onSelect } = props;
|
|
@@ -596,7 +602,7 @@ function resolveCategoryTabs(categoryTabs, items) {
|
|
|
596
602
|
}
|
|
597
603
|
|
|
598
604
|
// src/client/components/ShopGuideHeader.tsx
|
|
599
|
-
import { Storefront } from "@phosphor-icons/react";
|
|
605
|
+
import { StorefrontIcon as Storefront } from "@phosphor-icons/react/Storefront";
|
|
600
606
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
601
607
|
function ShopGuideHeader(props) {
|
|
602
608
|
return /* @__PURE__ */ jsxs5("header", { className: "sg-rm-header relative -mx-3 flex min-h-[77px] items-start justify-between gap-2 overflow-hidden bg-[#f9f0df] px-3.5 py-[15px] after:pointer-events-none after:absolute after:inset-y-0 after:right-0 after:w-[62%] after:bg-[image:var(--tbox-asset-sg-header,linear-gradient(135deg,#f9f0df,#f3e5cd))] after:bg-cover after:bg-right after:opacity-90", children: [
|
|
@@ -619,7 +625,8 @@ function ShopGuideSectionLabel() {
|
|
|
619
625
|
|
|
620
626
|
// src/client/components/ShopListSheet.tsx
|
|
621
627
|
import { useEffect as useEffect2, useId as useId2, useMemo, useRef as useRef2, useState as useState5 } from "react";
|
|
622
|
-
import {
|
|
628
|
+
import { MagnifyingGlassIcon as MagnifyingGlass } from "@phosphor-icons/react/MagnifyingGlass";
|
|
629
|
+
import { XIcon as X3 } from "@phosphor-icons/react/X";
|
|
623
630
|
import { Overlay as Overlay3 } from "@tbox.cn/app-agent-ui-kit/overlay";
|
|
624
631
|
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
625
632
|
function normalizeSearchText(value) {
|
|
@@ -963,7 +970,8 @@ var shop_list_default = ShopListCard;
|
|
|
963
970
|
|
|
964
971
|
// src/client/cards/shop-detail/index.tsx
|
|
965
972
|
import { useCallback as useCallback3, useRef as useRef4, useState as useState7 } from "react";
|
|
966
|
-
import {
|
|
973
|
+
import { ClockIcon as Clock2 } from "@phosphor-icons/react/Clock";
|
|
974
|
+
import { PhoneIcon as Phone2 } from "@phosphor-icons/react/Phone";
|
|
967
975
|
import { httpGet as httpGet2, markSelfRendering as markSelfRendering2 } from "@tbox.cn/app-agent-sdk-client";
|
|
968
976
|
import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
969
977
|
function projectSheetDataFromCardData(data) {
|
|
@@ -1063,7 +1071,7 @@ var shop_detail_default = ShopDetailCard;
|
|
|
1063
1071
|
|
|
1064
1072
|
// src/client/cards/category-list/index.tsx
|
|
1065
1073
|
import { useState as useState8 } from "react";
|
|
1066
|
-
import { CaretDown } from "@phosphor-icons/react";
|
|
1074
|
+
import { CaretDownIcon as CaretDown } from "@phosphor-icons/react/CaretDown";
|
|
1067
1075
|
import { sendCardAction as sendCardAction3 } from "@tbox.cn/app-agent-sdk-client";
|
|
1068
1076
|
|
|
1069
1077
|
// src/client/cards/view.ts
|
|
@@ -1340,7 +1348,8 @@ var product_comparison_default = ProductComparisonCard;
|
|
|
1340
1348
|
|
|
1341
1349
|
// src/client/cards/mall-directory/index.tsx
|
|
1342
1350
|
import { useState as useState10 } from "react";
|
|
1343
|
-
import {
|
|
1351
|
+
import { CaretDownIcon as CaretDown2 } from "@phosphor-icons/react/CaretDown";
|
|
1352
|
+
import { StorefrontIcon as Storefront2 } from "@phosphor-icons/react/Storefront";
|
|
1344
1353
|
import { sendCardAction as sendCardAction4 } from "@tbox.cn/app-agent-sdk-client";
|
|
1345
1354
|
import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1346
1355
|
function MallDirectoryCard(props) {
|
|
@@ -1506,7 +1515,8 @@ function HumanGuideListCard(props) {
|
|
|
1506
1515
|
var human_guide_list_default = HumanGuideListCard;
|
|
1507
1516
|
|
|
1508
1517
|
// src/client/cards/location-handoff/index.tsx
|
|
1509
|
-
import {
|
|
1518
|
+
import { MapPinIcon as MapPin3 } from "@phosphor-icons/react/MapPin";
|
|
1519
|
+
import { NavigationArrowIcon as NavigationArrow } from "@phosphor-icons/react/NavigationArrow";
|
|
1510
1520
|
import { sendCardAction as sendCardAction6 } from "@tbox.cn/app-agent-sdk-client";
|
|
1511
1521
|
import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1512
1522
|
function LocationHandoffCard(props) {
|
|
@@ -1548,7 +1558,7 @@ var location_handoff_default = LocationHandoffCard;
|
|
|
1548
1558
|
|
|
1549
1559
|
// src/client/cards/recommend-merchants/index.tsx
|
|
1550
1560
|
import { useCallback as useCallback4, useMemo as useMemo3, useState as useState11 } from "react";
|
|
1551
|
-
import {
|
|
1561
|
+
import { CaretRightIcon as CaretRight2 } from "@phosphor-icons/react/CaretRight";
|
|
1552
1562
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1553
1563
|
var PREVIEW_ITEM_COUNT2 = 3;
|
|
1554
1564
|
var TAB_CLASS2 = "sg-rm-tab relative flex min-h-7 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent px-px pb-[7px] text-xs font-medium whitespace-nowrap text-[#6b706d] transition-colors duration-150 [font-family:inherit] tracking-normal";
|
package/dist/client/index.js
CHANGED