@tbox.cn/app-module-promotion 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-promotion",
3
- "version": "1.0.0-alpha.17",
3
+ "version": "1.0.0-alpha.19",
4
4
  "type": "module",
5
5
  "description": "商圈营销模块:资格校验、推荐降级链、券卡(codegen 源)。",
6
6
  "exports": {
@@ -20,16 +20,16 @@
20
20
  "dependencies": {
21
21
  "jsbarcode": "^3.12.3",
22
22
  "qrcode": "^1.5.4",
23
- "@tbox.cn/app-contracts": "1.0.0-alpha.17",
24
- "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.17",
25
- "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.17",
26
- "@tbox.cn/app-contracts-mall": "1.0.0-alpha.17"
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
+ "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.19"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@phosphor-icons/react": "2.1.10",
30
30
  "react": "18.3.1",
31
31
  "zod": "3.25.76",
32
- "@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.17"
32
+ "@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.19"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/express": "4.17.25",
@@ -1,4 +1,7 @@
1
- import { GameController, Palette, Sparkle, Storefront } from '@phosphor-icons/react';
1
+ import { GameControllerIcon as GameController } from '@phosphor-icons/react/GameController';
2
+ import { PaletteIcon as Palette } from '@phosphor-icons/react/Palette';
3
+ import { SparkleIcon as Sparkle } from '@phosphor-icons/react/Sparkle';
4
+ import { StorefrontIcon as Storefront } from '@phosphor-icons/react/Storefront';
2
5
  import { ItemActionsRow } from '@tbox.cn/app-agent-sdk-client';
3
6
  import {
4
7
  PROMOTION_CATEGORY_ICON_TONE_CLASS,
@@ -1,4 +1,12 @@
1
- import { ArrowSquareOut, CalendarDots, CheckCircle, Clock, Crown, ListChecks, MapPin, Sparkle, Users } from '@phosphor-icons/react';
1
+ import { ArrowSquareOutIcon as ArrowSquareOut } from '@phosphor-icons/react/ArrowSquareOut';
2
+ import { CalendarDotsIcon as CalendarDots } from '@phosphor-icons/react/CalendarDots';
3
+ import { CheckCircleIcon as CheckCircle } from '@phosphor-icons/react/CheckCircle';
4
+ import { ClockIcon as Clock } from '@phosphor-icons/react/Clock';
5
+ import { CrownIcon as Crown } from '@phosphor-icons/react/Crown';
6
+ import { ListChecksIcon as ListChecks } from '@phosphor-icons/react/ListChecks';
7
+ import { MapPinIcon as MapPin } from '@phosphor-icons/react/MapPin';
8
+ import { SparkleIcon as Sparkle } from '@phosphor-icons/react/Sparkle';
9
+ import { UsersIcon as Users } from '@phosphor-icons/react/Users';
2
10
  import type { PromotionActivityDetailCardData } from '@tbox.cn/app-contracts-mall';
3
11
  import { sendCardAction } from '@tbox.cn/app-agent-sdk-client';
4
12
  import { ImageWithFallback } from '../../components/ImageWithFallback';
@@ -1,4 +1,6 @@
1
- import { CalendarDots, Sparkle, Ticket } from '@phosphor-icons/react';
1
+ import { CalendarDotsIcon as CalendarDots } from '@phosphor-icons/react/CalendarDots';
2
+ import { SparkleIcon as Sparkle } from '@phosphor-icons/react/Sparkle';
3
+ import { TicketIcon as Ticket } from '@phosphor-icons/react/Ticket';
2
4
  import { sendCardAction } from '@tbox.cn/app-agent-sdk-client';
3
5
  import type { PromotionActivityListCardData } from '@tbox.cn/app-contracts-mall';
4
6
  import { ImageWithFallback } from '../../components/ImageWithFallback';
@@ -1,4 +1,5 @@
1
- import { Calculator, TrendUp } from '@phosphor-icons/react';
1
+ import { CalculatorIcon as Calculator } from '@phosphor-icons/react/Calculator';
2
+ import { TrendUpIcon as TrendUp } from '@phosphor-icons/react/TrendUp';
2
3
  import type { PromotionBestDealCardData } from '@tbox.cn/app-contracts-mall';
3
4
 
4
5
  const money = (cents: number) => (cents / 100).toFixed(2);
@@ -1,4 +1,12 @@
1
- import { CalendarBlank, CaretDown, CaretRight, Copy, MapPinLine, NavigationArrow, ShieldCheck, Ticket, Wallet } from '@phosphor-icons/react';
1
+ import { CalendarBlankIcon as CalendarBlank } from '@phosphor-icons/react/CalendarBlank';
2
+ import { CaretDownIcon as CaretDown } from '@phosphor-icons/react/CaretDown';
3
+ import { CaretRightIcon as CaretRight } from '@phosphor-icons/react/CaretRight';
4
+ import { CopyIcon as Copy } from '@phosphor-icons/react/Copy';
5
+ import { MapPinLineIcon as MapPinLine } from '@phosphor-icons/react/MapPinLine';
6
+ import { NavigationArrowIcon as NavigationArrow } from '@phosphor-icons/react/NavigationArrow';
7
+ import { ShieldCheckIcon as ShieldCheck } from '@phosphor-icons/react/ShieldCheck';
8
+ import { TicketIcon as Ticket } from '@phosphor-icons/react/Ticket';
9
+ import { WalletIcon as Wallet } from '@phosphor-icons/react/Wallet';
2
10
  import { useEffect, useRef, useState } from 'react';
3
11
  import { callJsapi, httpGet, isInAlipayShell } from '@tbox.cn/app-agent-sdk-client';
4
12
  import type { PromotionEntitlementListCardData } from '@tbox.cn/app-contracts-mall';
@@ -1,4 +1,12 @@
1
- import { CalendarBlank, CheckCircle, Clock, Gift, Info, ListChecks, MapPin, SealCheck, Ticket } from '@phosphor-icons/react';
1
+ import { CalendarBlankIcon as CalendarBlank } from '@phosphor-icons/react/CalendarBlank';
2
+ import { CheckCircleIcon as CheckCircle } from '@phosphor-icons/react/CheckCircle';
3
+ import { ClockIcon as Clock } from '@phosphor-icons/react/Clock';
4
+ import { GiftIcon as Gift } from '@phosphor-icons/react/Gift';
5
+ import { InfoIcon as Info } from '@phosphor-icons/react/Info';
6
+ import { ListChecksIcon as ListChecks } from '@phosphor-icons/react/ListChecks';
7
+ import { MapPinIcon as MapPin } from '@phosphor-icons/react/MapPin';
8
+ import { SealCheckIcon as SealCheck } from '@phosphor-icons/react/SealCheck';
9
+ import { TicketIcon as Ticket } from '@phosphor-icons/react/Ticket';
2
10
  import { useEffect, useRef, useState } from 'react';
3
11
  import type { PromotionOfferDetailCardData } from '@tbox.cn/app-contracts-mall';
4
12
  import { markSelfRendering, navigateToAlipayPage, sendCardAction } from '@tbox.cn/app-agent-sdk-client';
@@ -1,4 +1,4 @@
1
- import { Ticket } from '@phosphor-icons/react';
1
+ import { TicketIcon as Ticket } from '@phosphor-icons/react/Ticket';
2
2
  import { httpPost, readHelloContext } from '@tbox.cn/app-agent-sdk-client';
3
3
  import { useEffect, useRef, useState } from 'react';
4
4
  import type { DealRecallResult } from '@tbox.cn/app-contracts-mall';
@@ -1,4 +1,10 @@
1
- import { CalendarBlank, CalendarDots, CaretDown, Lightbulb, MapPin, Sparkle, Ticket } from '@phosphor-icons/react';
1
+ import { CalendarBlankIcon as CalendarBlank } from '@phosphor-icons/react/CalendarBlank';
2
+ import { CalendarDotsIcon as CalendarDots } from '@phosphor-icons/react/CalendarDots';
3
+ import { CaretDownIcon as CaretDown } from '@phosphor-icons/react/CaretDown';
4
+ import { LightbulbIcon as Lightbulb } from '@phosphor-icons/react/Lightbulb';
5
+ import { MapPinIcon as MapPin } from '@phosphor-icons/react/MapPin';
6
+ import { SparkleIcon as Sparkle } from '@phosphor-icons/react/Sparkle';
7
+ import { TicketIcon as Ticket } from '@phosphor-icons/react/Ticket';
2
8
  import { useEffect, useState } from 'react';
3
9
  import { ItemActionsRow, markSelfRendering, navigateToAlipayPage, sendCardAction } from '@tbox.cn/app-agent-sdk-client';
4
10
  import type { PromotionOfferListCardData } from '@tbox.cn/app-contracts-mall';
@@ -1,4 +1,4 @@
1
- import { CaretDown } from '@phosphor-icons/react';
1
+ import { CaretDownIcon as CaretDown } from '@phosphor-icons/react/CaretDown';
2
2
 
3
3
  export const DEFAULT_VISIBLE_COUPONS = 4;
4
4
  export const COUPON_LIST_TOGGLE_CLASS = 'promotion-list__toggle flex min-h-8 w-full cursor-pointer items-center justify-center gap-0.5 mt-0.5 border-0 bg-transparent px-0 py-0 text-xs font-normal leading-[normal] text-[#686d69] [font-family:inherit] hover:brightness-100 focus-visible:rounded-[5px] focus-visible:outline-3 focus-visible:outline-offset-2 focus-visible:outline-[rgba(9,107,250,0.28)] [&_svg]:transition-transform [&_svg]:duration-[160ms] [&_svg]:ease-[ease] [&_svg[data-rotated=true]]:rotate-180';
@@ -4,7 +4,7 @@
4
4
  * 它替代了原来的券详情卡——就地展开、没有二次请求可补,所以呈现什么完全取决于
5
5
  * 列表这一跳已经下发的字段:**缺的整块不渲染,绝不留空壳,也不编造占位文案**。
6
6
  */
7
- import { X } from '@phosphor-icons/react';
7
+ import { XIcon as X } from '@phosphor-icons/react/X';
8
8
  import { useState } from 'react';
9
9
  import { Overlay } from '@tbox.cn/app-agent-ui-kit/overlay';
10
10
  import { ImageWithFallback } from './ImageWithFallback';
@@ -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;