@funhub/platform 0.1.23 → 0.1.25
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/assets/icons/right_arrow.mjs +2 -0
- package/dist/assets/images/Frame.mjs +2 -0
- package/dist/assets/images/marquee.mjs +2 -0
- package/dist/biz.d.mts +25 -1
- package/dist/biz.mjs +1 -1
- package/dist/common.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -1
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.d.mts +0 -2
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.d.mts +0 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +2 -0
- package/dist/components/biz/business/channel-list/client.d.mts +8 -0
- package/dist/components/biz/business/channel-list/client.mjs +2 -0
- package/dist/components/biz/business/channel-list/default-props.mjs +2 -0
- package/dist/components/biz/business/channel-list/material.d.mts +16 -0
- package/dist/components/biz/business/channel-list/material.mjs +2 -0
- package/dist/components/biz/business/channel-list/schema.d.mts +23 -0
- package/dist/components/biz/business/channel-list/schema.mjs +2 -0
- package/dist/components/biz/business/comment/comment-item.mjs +1 -1
- package/dist/components/biz/business/comment/comment-list.mjs +1 -1
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -1
- package/dist/components/biz/business/detail/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/materials/registry.d.mts +4 -4
- package/dist/components/biz/business/detail/materials/video-detail-actions/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-player/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-hero.mjs +1 -1
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +31 -1
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/marquee/client.d.mts +16 -0
- package/dist/components/biz/business/marquee/client.mjs +2 -0
- package/dist/components/biz/business/marquee/index.d.mts +5 -0
- package/dist/components/biz/business/marquee/material.d.mts +24 -0
- package/dist/components/biz/business/marquee/material.mjs +2 -0
- package/dist/components/biz/business/marquee/schema.d.mts +33 -0
- package/dist/components/biz/business/marquee/schema.mjs +2 -0
- package/dist/components/biz/business/marquee/server.d.mts +11 -0
- package/dist/components/biz/business/marquee/server.mjs +2 -0
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/search-history/use-search-history.mjs +1 -1
- package/dist/components/biz/business/search-history2/client.d.mts +21 -0
- package/dist/components/biz/business/search-history2/client.mjs +2 -0
- package/dist/components/biz/business/search-history2/index.d.mts +5 -0
- package/dist/components/biz/business/search-history2/material.d.mts +15 -0
- package/dist/components/biz/business/search-history2/material.mjs +2 -0
- package/dist/components/biz/business/search-history2/schema.d.mts +21 -0
- package/dist/components/biz/business/search-history2/schema.mjs +2 -0
- package/dist/components/biz/business/search-history2/server.d.mts +11 -0
- package/dist/components/biz/business/search-history2/server.mjs +2 -0
- package/dist/components/biz/business/search-input/client.d.mts +19 -0
- package/dist/components/biz/business/search-input/client.mjs +2 -0
- package/dist/components/biz/business/search-input/index.d.mts +5 -0
- package/dist/components/biz/business/search-input/material.d.mts +14 -0
- package/dist/components/biz/business/search-input/material.mjs +2 -0
- package/dist/components/biz/business/search-input/schema.d.mts +19 -0
- package/dist/components/biz/business/search-input/schema.mjs +2 -0
- package/dist/components/biz/business/search-input/server.d.mts +11 -0
- package/dist/components/biz/business/search-input/server.mjs +2 -0
- package/dist/components/biz/business/shortcut-grid/client.d.mts +2 -2
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/material.d.mts +12 -1
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +13 -5
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -1
- package/dist/components/biz/business/tab-bar/client.d.mts +13 -0
- package/dist/components/biz/business/tab-bar/client.mjs +2 -0
- package/dist/components/biz/business/tab-bar/index.d.mts +5 -0
- package/dist/components/biz/business/tab-bar/material.d.mts +21 -0
- package/dist/components/biz/business/tab-bar/material.mjs +2 -0
- package/dist/components/biz/business/tab-bar/schema.d.mts +27 -0
- package/dist/components/biz/business/tab-bar/schema.mjs +2 -0
- package/dist/components/biz/business/tab-bar/server.d.mts +11 -0
- package/dist/components/biz/business/tab-bar/server.mjs +2 -0
- package/dist/components/biz/business/text-recommend/client.d.mts +22 -0
- package/dist/components/biz/business/text-recommend/client.mjs +2 -0
- package/dist/components/biz/business/text-recommend/index.d.mts +5 -0
- package/dist/components/biz/business/text-recommend/material.d.mts +15 -0
- package/dist/components/biz/business/text-recommend/material.mjs +2 -0
- package/dist/components/biz/business/text-recommend/schema.d.mts +21 -0
- package/dist/components/biz/business/text-recommend/schema.mjs +2 -0
- package/dist/components/biz/business/text-recommend/server.d.mts +12 -0
- package/dist/components/biz/business/text-recommend/server.mjs +2 -0
- package/dist/components/biz/business/video-horizontal-list/client.d.mts +25 -0
- package/dist/components/biz/business/video-horizontal-list/client.mjs +2 -0
- package/dist/components/biz/business/video-horizontal-list/index.d.mts +5 -0
- package/dist/components/biz/business/video-horizontal-list/material.d.mts +18 -0
- package/dist/components/biz/business/video-horizontal-list/material.mjs +2 -0
- package/dist/components/biz/business/video-horizontal-list/schema.d.mts +21 -0
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +2 -0
- package/dist/components/biz/business/video-horizontal-list/server.d.mts +12 -0
- package/dist/components/biz/business/video-horizontal-list/server.mjs +2 -0
- package/dist/components/biz/example/button/client.mjs +1 -1
- package/dist/components/biz/renderer/renderer.d.mts +1 -1
- package/dist/components/biz/renderer/renderer.mjs +1 -1
- package/dist/components/common/at-element/index.mjs +1 -1
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -1
- package/dist/components/common/collection-popup/collection-create-modal.mjs +1 -1
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -1
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -1
- package/dist/components/common/header-nav/client.mjs +1 -1
- package/dist/components/common/info-card/card-header.mjs +1 -1
- package/dist/components/common/list/post-list/post-list.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -1
- package/dist/components/common/list/video-list/video-list.mjs +1 -1
- package/dist/components/common/popup-video/index.mjs +1 -1
- package/dist/components/common/series-episodes/index.mjs +1 -1
- package/dist/components/common/share-popup/share-popup.mjs +1 -1
- package/dist/components/common/tab-bar/index.mjs +1 -1
- package/dist/components/common/top-nav-bar/client.mjs +1 -1
- package/dist/components/common/video-player/index.mjs +2 -2
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -1
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -1
- package/dist/components/pages/(follow)/fans/page.mjs +1 -1
- package/dist/components/pages/(follow)/followed/page.mjs +1 -1
- package/dist/components/pages/collection-create/form.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
- package/dist/components/pages/feed-series/page.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
- package/dist/components/pages/home/client.mjs +1 -1
- package/dist/components/pages/login/index.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/collect-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/history-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/like-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/publish-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/user-profile-container/client.mjs +1 -1
- package/dist/components/pages/profile/_components/user-profile-header/client.mjs +1 -1
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -1
- package/dist/components/pages/publish/components/collection.mjs +1 -1
- package/dist/components/pages/publish/components/header.mjs +1 -1
- package/dist/components/pages/publish/page-client.mjs +1 -1
- package/dist/components/pages/search/hot-recommend.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/search/top-header.mjs +1 -1
- package/dist/components/pages/settings/_components/settings.mjs +1 -1
- package/dist/components/pages/user-follow/page.mjs +1 -1
- package/dist/components/pages/video-detail/page.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/hooks/use-content-operate.mjs +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/i18n.d.mts +1 -1
- package/dist/i18n.mjs +1 -1
- package/dist/materials.d.mts +8 -7
- package/dist/materials.mjs +1 -1
- package/dist/utils/schema/material.d.mts +1 -1
- package/dist/utils/share-manager.mjs +1 -1
- package/dist/utils.d.mts +4 -4
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
import { defaultProps } from "../basics/fullscreen-feed/defaults/default-props.mjs";
|
|
3
3
|
import { FullscreenFeedClient } from "../basics/fullscreen-feed/runtime/client.mjs";
|
|
4
4
|
import { schema } from "../basics/fullscreen-feed/schema/index.mjs";
|
|
5
|
+
import { MarqueeInspectorProps, MarqueeProps, marqueeInspectorDefaultProps, marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
|
|
6
|
+
import { MarqueeServer } from "./marquee/server.mjs";
|
|
7
|
+
import { marqueeMaterial } from "./marquee/material.mjs";
|
|
8
|
+
import { SearchHistory2InspectorProps, SearchHistory2Props, searchHistory2InspectorDefaultProps, searchHistory2InspectorPropsSchema } from "./search-history2/schema.mjs";
|
|
9
|
+
import { SearchHistory2Server } from "./search-history2/server.mjs";
|
|
10
|
+
import { searchHistory2Material } from "./search-history2/material.mjs";
|
|
11
|
+
import { SearchInputInspectorProps, SearchInputProps, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema } from "./search-input/schema.mjs";
|
|
12
|
+
import { SearchInputServer } from "./search-input/server.mjs";
|
|
13
|
+
import { searchInputMaterial } from "./search-input/material.mjs";
|
|
14
|
+
import { TabBarInspectorProps, TabBarProps, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema } from "./tab-bar/schema.mjs";
|
|
15
|
+
import { TabBarServer } from "./tab-bar/server.mjs";
|
|
16
|
+
import { tabBarMaterial } from "./tab-bar/material.mjs";
|
|
17
|
+
import { TextRecommendInspectorProps, TextRecommendProps, textRecommendInspectorDefaultProps, textRecommendInspectorPropsSchema } from "./text-recommend/schema.mjs";
|
|
18
|
+
import { TextRecommendServer } from "./text-recommend/server.mjs";
|
|
19
|
+
import { textRecommendMaterial } from "./text-recommend/material.mjs";
|
|
20
|
+
import { VideoHorizontalListInspectorProps, VideoHorizontalListProps, videoHorizontalListInspectorDefaultProps, videoHorizontalListInspectorPropsSchema } from "./video-horizontal-list/schema.mjs";
|
|
21
|
+
import { VideoHorizontalListServer } from "./video-horizontal-list/server.mjs";
|
|
22
|
+
import { videoHorizontalListMaterial } from "./video-horizontal-list/material.mjs";
|
|
5
23
|
import { defaultProps as defaultProps$1 } from "./banner/variants/basic-banner/defaults/default-props.mjs";
|
|
6
24
|
import { BasicBannerClient } from "./banner/variants/basic-banner/runtime/client.mjs";
|
|
7
25
|
import { schema as schema$1 } from "./banner/variants/basic-banner/schema/index.mjs";
|
|
@@ -43,6 +61,8 @@ import { defaultProps as defaultProps$11 } from "./home-recommend/variants/home-
|
|
|
43
61
|
import { HomeRecommendWaterfallClient } from "./home-recommend/variants/home-recommend-waterfall/runtime/client.mjs";
|
|
44
62
|
import { schema as schema$11 } from "./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";
|
|
45
63
|
import "./home-recommend/index.mjs";
|
|
64
|
+
import { MarqueeClient } from "./marquee/client.mjs";
|
|
65
|
+
import "./marquee/index.mjs";
|
|
46
66
|
import { defaultProps as defaultProps$12 } from "./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";
|
|
47
67
|
import { BasicNavBarClient } from "./nav-bar/variants/basic-nav-bar/runtime/client.mjs";
|
|
48
68
|
import { schema as schema$12 } from "./nav-bar/variants/basic-nav-bar/schema/index.mjs";
|
|
@@ -67,4 +87,14 @@ import { schema as schema$17 } from "./search-bar/variants/filter-search-bar/sch
|
|
|
67
87
|
import { defaultProps as defaultProps$18 } from "./search-bar/variants/tag-search-bar/defaults/default-props.mjs";
|
|
68
88
|
import { TagSearchBarClient } from "./search-bar/variants/tag-search-bar/runtime/client.mjs";
|
|
69
89
|
import { schema as schema$18 } from "./search-bar/variants/tag-search-bar/schema/index.mjs";
|
|
70
|
-
import "./search-bar/index.mjs";
|
|
90
|
+
import "./search-bar/index.mjs";
|
|
91
|
+
import { SearchHistory2Client } from "./search-history2/client.mjs";
|
|
92
|
+
import "./search-history2/index.mjs";
|
|
93
|
+
import { SearchInputClient } from "./search-input/client.mjs";
|
|
94
|
+
import "./search-input/index.mjs";
|
|
95
|
+
import { TabBarClient } from "./tab-bar/client.mjs";
|
|
96
|
+
import "./tab-bar/index.mjs";
|
|
97
|
+
import { TextRecommendClient } from "./text-recommend/client.mjs";
|
|
98
|
+
import "./text-recommend/index.mjs";
|
|
99
|
+
import { VideoHorizontalListClient } from "./video-horizontal-list/client.mjs";
|
|
100
|
+
import "./video-horizontal-list/index.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{
|
|
2
|
+
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{marqueeInspectorDefaultProps as t,marqueeInspectorPropsSchema as n}from"./marquee/schema.mjs";import{MarqueeClient as r}from"./marquee/client.mjs";import{MarqueeServer as i}from"./marquee/server.mjs";import{marqueeMaterial as a}from"./marquee/material.mjs";import{searchHistory2InspectorDefaultProps as o,searchHistory2InspectorPropsSchema as s}from"./search-history2/schema.mjs";import{SearchHistory2Client as c}from"./search-history2/client.mjs";import{SearchHistory2Server as l}from"./search-history2/server.mjs";import{searchHistory2Material as u}from"./search-history2/material.mjs";import{searchInputInspectorDefaultProps as d,searchInputInspectorPropsSchema as f}from"./search-input/schema.mjs";import{defaultProps as p}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as m}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import h from"./search-bar/variants/detail-search-bar/index.mjs";import{SearchInputClient as g}from"./search-input/client.mjs";import{SearchInputServer as _}from"./search-input/server.mjs";import{searchInputMaterial as v}from"./search-input/material.mjs";import{tabBarInspectorDefaultProps as y,tabBarInspectorPropsSchema as b}from"./tab-bar/schema.mjs";import{TabBarClient as x}from"./tab-bar/client.mjs";import{TabBarServer as S}from"./tab-bar/server.mjs";import{tabBarMaterial as C}from"./tab-bar/material.mjs";import{textRecommendInspectorDefaultProps as w,textRecommendInspectorPropsSchema as T}from"./text-recommend/schema.mjs";import{TextRecommendClient as E}from"./text-recommend/client.mjs";import{TextRecommendServer as D}from"./text-recommend/server.mjs";import{textRecommendMaterial as O}from"./text-recommend/material.mjs";import{videoHorizontalListInspectorDefaultProps as k,videoHorizontalListInspectorPropsSchema as A}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListClient as j}from"./video-horizontal-list/client.mjs";import{VideoHorizontalListServer as M}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as N}from"./video-horizontal-list/material.mjs";import{defaultProps as P}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as F}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as I,basicBannerInspectorPropsSchema as L}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as R}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as z}from"./banner/variants/basic-banner/material.mjs";import B from"./banner/variants/basic-banner/index.mjs";import{defaultProps as V}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as H}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import U from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as W}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as G}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import K from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as q}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as J}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import Y from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as X}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as Z}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import Q from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as $}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as ee}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import te from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as ne}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as re}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import ie from"./feature-grid/variants/basic-feature-grid/index.mjs";import{defaultProps as ae}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as oe}from"../basics/fullscreen-feed/schema/index.mjs";import se from"../basics/fullscreen-feed/index.mjs";import{defaultProps as ce}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as le}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import ue from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as de}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as fe}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import pe from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as me}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{schema as he}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import ge from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as _e}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as ve}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import ye from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{defaultProps as be}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as xe}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import Se from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ce}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as we}from"./post-card/variants/basic-post-card/schema/index.mjs";import Te from"./post-card/variants/basic-post-card/index.mjs";import{defaultProps as Ee}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as De}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import Oe from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as ke}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Ae}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import je from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Me}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Ne}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import Pe from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Fe}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Ie}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import Le from"./search-bar/variants/tag-search-bar/index.mjs";var Re=e({BasicBanner:()=>B,BasicBannerDefaultData:()=>P,BasicBannerMaterialComponent:()=>R,BasicBannerSchema:()=>F,BasicFeatureGrid:()=>ie,BasicFeatureGridDefaultData:()=>ne,BasicFeatureGridSchema:()=>re,BasicFullscreenFeed:()=>se,BasicFullscreenFeedDefaultData:()=>ae,BasicFullscreenFeedSchema:()=>oe,BasicNavBar:()=>Se,BasicNavBarDefaultData:()=>be,BasicNavBarSchema:()=>xe,BasicPostCard:()=>Te,BasicPostCardDefaultData:()=>Ce,BasicPostCardSchema:()=>we,BasicRecommendedUsers:()=>Oe,BasicRecommendedUsersDefaultData:()=>Ee,BasicRecommendedUsersSchema:()=>De,BasicSearchBar:()=>je,BasicSearchBarDefaultData:()=>ke,BasicSearchBarSchema:()=>Ae,CardGrid2x3:()=>U,CardGrid2x3DefaultData:()=>V,CardGrid2x3Infinite:()=>K,CardGrid2x3InfiniteDefaultData:()=>W,CardGrid2x3InfiniteSchema:()=>G,CardGrid2x3Schema:()=>H,CardGrid2x4:()=>Y,CardGrid2x4DefaultData:()=>q,CardGrid2x4Schema:()=>J,CardGrid3x3:()=>Q,CardGrid3x3DefaultData:()=>X,CardGrid3x3Infinite:()=>te,CardGrid3x3InfiniteDefaultData:()=>$,CardGrid3x3InfiniteSchema:()=>ee,CardGrid3x3Schema:()=>Z,DetailSearchBar:()=>h,DetailSearchBarDefaultData:()=>p,DetailSearchBarSchema:()=>m,FilterSearchBar:()=>Pe,FilterSearchBarDefaultData:()=>Me,FilterSearchBarSchema:()=>Ne,FullscreenFeedClient:()=>ue,FullscreenPostFeedDefaultData:()=>ce,FullscreenPostFeedSchema:()=>le,FullscreenVideoClient:()=>pe,FullscreenVideoFeedDefaultData:()=>de,FullscreenVideoFeedSchema:()=>fe,HomeRecommendGrid:()=>ge,HomeRecommendGridDefaultData:()=>me,HomeRecommendGridSchema:()=>he,HomeRecommendWaterfall:()=>ye,HomeRecommendWaterfallDefaultData:()=>_e,HomeRecommendWaterfallSchema:()=>ve,MarqueeClient:()=>r,MarqueeServer:()=>i,SearchHistory2Client:()=>c,SearchHistory2Server:()=>l,SearchInputClient:()=>g,SearchInputServer:()=>_,TabBarClient:()=>x,TabBarServer:()=>S,TagSearchBar:()=>Le,TagSearchBarDefaultData:()=>Fe,TagSearchBarSchema:()=>Ie,TextRecommendClient:()=>E,TextRecommendServer:()=>D,VideoHorizontalListClient:()=>j,VideoHorizontalListServer:()=>M,basicBannerInspectorDefaultProps:()=>I,basicBannerInspectorPropsSchema:()=>L,basicBannerMaterial:()=>z,marqueeInspectorDefaultProps:()=>t,marqueeInspectorPropsSchema:()=>n,marqueeMaterial:()=>a,searchHistory2InspectorDefaultProps:()=>o,searchHistory2InspectorPropsSchema:()=>s,searchHistory2Material:()=>u,searchInputInspectorDefaultProps:()=>d,searchInputInspectorPropsSchema:()=>f,searchInputMaterial:()=>v,tabBarInspectorDefaultProps:()=>y,tabBarInspectorPropsSchema:()=>b,tabBarMaterial:()=>C,textRecommendInspectorDefaultProps:()=>w,textRecommendInspectorPropsSchema:()=>T,textRecommendMaterial:()=>O,videoHorizontalListInspectorDefaultProps:()=>k,videoHorizontalListInspectorPropsSchema:()=>A,videoHorizontalListMaterial:()=>N});export{Re as business_exports};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
import { MarqueeProps } from "./schema.mjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region components/biz/business/marquee/client.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* 跑马灯物料组件 - 客户端交互部分
|
|
8
|
+
*/
|
|
9
|
+
declare function MarqueeClient({
|
|
10
|
+
contents,
|
|
11
|
+
showClose,
|
|
12
|
+
startTime,
|
|
13
|
+
endTime
|
|
14
|
+
}: MarqueeProps): react_jsx_runtime0.JSX.Element | null;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { MarqueeClient };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import e from"../../../../assets/icons/clear.mjs";import t from"../../../../assets/icons/right_arrow.mjs";import n from"../../../../assets/images/marquee.mjs";import{Image as r}from"../../../ui/image.mjs";import{Box as i}from"../../../ui/box.mjs";import{Text as a}from"../../../ui/text.mjs";import{useRouter as o}from"next/navigation";import{useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";function f({contents:f,showClose:p,startTime:m,endTime:h}){let g=o(),[_,v]=l(!0),[y,b]=l(0),[x,S]=l(!1);s(()=>{S(!0)},[]);let C=c(()=>{if(!m||!h)return!0;let e=Date.now(),t=new Date(m).getTime(),n=new Date(h).getTime();return e>=t&&e<=n},[m,h]);if(s(()=>{if(!f||f.length<=1)return;let e=setInterval(()=>{b(e=>(e+1)%f.length)},3e3);return()=>clearInterval(e)},[f]),!x||!_||!C||!f||f.length===0)return null;let w=f[y],T=!!w.link;return u(i,{className:`px-[12px] py-[8px] w-full bg-bg1`,children:d(i,{className:`flex items-center pl-[2px] pr-[12px] py-[2px] rounded-[8px] w-full cursor-pointer relative overflow-hidden`,style:{backgroundImage:`linear-gradient(154deg, rgba(255, 228, 133, 0.2) 9.14%, rgba(207, 129, 37, 0.05) 90.86%)`},onClick:()=>{T&&w.link&&g.push(w.link)},children:[u(i,{className:`relative shrink-0 w-[36px] h-[36px]`,children:u(r,{src:typeof n==`string`?n:n.src,alt:`notice`,fill:!0,className:`object-cover`,unoptimized:!0})}),u(i,{className:`flex-1 overflow-hidden relative h-[22px]`,children:u(i,{className:`absolute inset-0 flex items-center transition-transform duration-500 ease-in-out`,style:{transform:`translateY(0)`},children:u(a,{className:`text-[14px] text-[#f59e0b] leading-[22px] truncate w-full`,children:w.text})})}),d(i,{className:`flex items-center gap-[12px] shrink-0 ml-[4px]`,children:[T&&u(t,{className:`w-[16px] h-[16px] text-[#f59e0b]`}),p&&u(i,{className:`opacity-30 hover:opacity-100 transition-opacity p-1`,onClick:e=>{e.stopPropagation(),v(!1)},children:u(e,{className:`w-[12px] h-[12px] text-[#999]`})})]})]})})}export{f as MarqueeClient};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { MarqueeInspectorProps, MarqueeProps, marqueeInspectorDefaultProps, marqueeInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { MarqueeServer } from "./server.mjs";
|
|
4
|
+
import { marqueeMaterial } from "./material.mjs";
|
|
5
|
+
import { MarqueeClient } from "./client.mjs";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils.mjs";
|
|
5
|
+
import { MarqueeServer } from "./server.mjs";
|
|
6
|
+
import * as zod from "zod";
|
|
7
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
8
|
+
|
|
9
|
+
//#region components/biz/business/marquee/material.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* 跑马灯物料定义
|
|
12
|
+
*/
|
|
13
|
+
declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, zod.ZodObject<{
|
|
14
|
+
showChannels: zod.ZodArray<zod.ZodString & SchemaHasDefaultValue> & SchemaHasDefaultValue;
|
|
15
|
+
startTime: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
endTime: zod.ZodString & SchemaHasDefaultValue;
|
|
17
|
+
contents: zod.ZodArray<zod.ZodObject<{
|
|
18
|
+
text: zod.ZodString & SchemaHasDefaultValue;
|
|
19
|
+
link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
20
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
21
|
+
showClose: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
22
|
+
}, zod_v4_core0.$strip>, "marquee">;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { marqueeMaterial };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{marqueeInspectorPropsSchema as t}from"./schema.mjs";import{MarqueeServer as n}from"./server.mjs";const r=e({type:`marquee`,name:`跑马灯`,icon:`https://cdn.example.com/icons/marquee.png`,category:`CENTER`,serverComponent:n,clientComponent:n,propsSchema:t});export{r as marqueeMaterial};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
4
|
+
import z from "zod";
|
|
5
|
+
|
|
6
|
+
//#region components/biz/business/marquee/schema.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* 跑马灯物料属性定义
|
|
9
|
+
*/
|
|
10
|
+
declare const marqueeInspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
showChannels: z.ZodArray<z.ZodString & SchemaHasDefaultValue> & SchemaHasDefaultValue;
|
|
12
|
+
startTime: z.ZodString & SchemaHasDefaultValue;
|
|
13
|
+
endTime: z.ZodString & SchemaHasDefaultValue;
|
|
14
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
15
|
+
text: z.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
link: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
17
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
18
|
+
showClose: z.ZodBoolean & SchemaHasDefaultValue;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const marqueeInspectorDefaultProps: {
|
|
21
|
+
showChannels: string[];
|
|
22
|
+
startTime: string;
|
|
23
|
+
endTime: string;
|
|
24
|
+
contents: {
|
|
25
|
+
text: string;
|
|
26
|
+
link?: string | undefined;
|
|
27
|
+
}[];
|
|
28
|
+
showClose: boolean;
|
|
29
|
+
};
|
|
30
|
+
type MarqueeInspectorProps = z.infer<typeof marqueeInspectorPropsSchema>;
|
|
31
|
+
type MarqueeProps = MarqueeInspectorProps;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { MarqueeInspectorProps, MarqueeProps, marqueeInspectorDefaultProps, marqueeInspectorPropsSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineCheckboxPropSchema as t,defineComponentPropsSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../utils/schema/schema.mjs";const a=n({showChannels:e(r({label:`频道 ID`,defaultValue:``}),{label:`显示的频道`,defaultValue:[]}),startTime:r({label:`开始时间`,defaultValue:``,description:`格式:YYYY-MM-DD HH:mm:ss`}),endTime:r({label:`结束时间`,defaultValue:``,description:`格式:YYYY-MM-DD HH:mm:ss`}),contents:e(n({text:r({label:`内容`,defaultValue:`这里是跑马灯内容`}),link:r({label:`跳转链接`,defaultValue:``,required:!1})}),{label:`跑马灯内容`,defaultValue:[{text:`这里是跑马灯内容`,link:``}]}),showClose:t({label:`显示关闭按钮`,defaultValue:!0})}),o=i(a);export{o as marqueeInspectorDefaultProps,a as marqueeInspectorPropsSchema};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
import { MarqueeProps } from "./schema.mjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region components/biz/business/marquee/server.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* 跑马灯物料组件 - 服务端部分
|
|
8
|
+
*/
|
|
9
|
+
declare function MarqueeServer(props: MarqueeProps): Promise<react_jsx_runtime0.JSX.Element>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { MarqueeServer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import r from"
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import r from"../../../../../../../assets/icons/search.mjs";import{useSticky as i}from"../../../../../../../hooks/use-sticky.mjs";import a,{loadHiddenChannelIdsFromStorage as o}from"./channel-filter-dialog.mjs";import s from"../../../../../../ui/link.mjs";import{urlPrefix as c}from"../../../../../../../constants/url-prefix.mjs";import{defaultProps as l}from"../defaults/default-props.mjs";import u from"../../../../../../../assets/icons/filter_dark.mjs";import{useEffect as d,useMemo as f,useState as p}from"react";import{clsx as m}from"clsx";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";const v={},y={list:[],currentChannelId:null,isFullfeed:!1};function b(e,t){return t===0?`/`:`${c.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function x({props:c=v,styles:x,events:S,data:C=y}){let{searchUrl:w,searchIconSize:T,filterIconSize:E,channelItemHeight:D,channelItemFontSize:O,channelItemActiveFontSize:k,channelItemGap:A}={...l,...c},[j,M]=p(!1),{isSticky:N,ref:P}=i(),[F,I]=p(C.list),L=f(()=>C.currentChannelId??null,[C.currentChannelId]);d(()=>{let e=o();I(C.list.filter(t=>!e.includes(t.id)))},[C.list]);let R=e=>{I(e)},z=(e,t)=>{S?.onChannelChange?.(e,t)},B=()=>{M(!0),S?.onFilterClick?.()},V=()=>{S?.onSearchClick?.()},H=x?e(x,{}):void 0,U=N?E+T+24:E+16;return _(h,{children:[N&&g(n,{className:`w-full`,style:{height:t(44)}}),g(n,{as:`nav`,ref:P,className:m(`w-full transition-all duration-200`,!C.isFullfeed&&N&&`fixed top-0 left-0 right-0 z-50`,C.isFullfeed&&`fixed top-[54px] left-0 z-10 w-full`,!C.isFullfeed&&`bg-bg1`),style:H,children:_(n,{className:`relative flex items-center h-[44px]`,children:[g(n,{className:`flex-1 overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitOverflowScrolling:`touch`},children:g(n,{className:`flex items-center h-full`,style:{paddingLeft:t(16),paddingRight:t(U+16),gap:t(A)},children:F.map((e,n)=>{let r=L===e.id||L===null&&n===0;return g(s,{href:b(e,n),className:m(`whitespace-nowrap cursor-pointer transition-all duration-200`,`flex items-center justify-center`),style:{height:t(D),fontSize:t(r?k:O),fontWeight:r?`bold`:`normal`,color:r?`var(--color-theme5)`:`var(--color-text2)`},onClick:()=>z(e,n),children:e.cn_name},e.id||`channel-${n}`)})})}),_(n,{className:`flex items-center gap-[12px] px-[8px]`,children:[g(n,{className:`flex items-center justify-center cursor-pointer`,style:{width:t(E+8),height:t(E+8)},onClick:B,children:g(u,{width:t(E),height:t(E),style:{color:`var(--color-text1)`}})}),N&&g(s,{href:w,onClick:V,children:g(n,{className:`flex items-center justify-center cursor-pointer`,style:{width:t(T+8),height:t(T+8)},children:g(r,{width:t(T),height:t(T),style:{color:`var(--color-text1)`}})})})]})]})}),g(a,{open:j,onOpenChange:M,channels:C.list,currentChannelId:L,onChannelClick:z,onChannelsChange:R})]})}export{x as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{pInteractionCheckFollow as n}from"../../../../../../../service/generated/client.mjs";import{pxToVw as r}from"../../../../../../../utils/helper.mjs";import{Avatar as i,AvatarFallback as a,AvatarImage as o}from"../../../../../../ui/avatar.mjs";import{Box as s}from"../../../../../../ui/box.mjs";import{Text as c}from"../../../../../../ui/text.mjs";import
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{pInteractionCheckFollow as n}from"../../../../../../../service/generated/client.mjs";import{pxToVw as r}from"../../../../../../../utils/helper.mjs";import{Avatar as i,AvatarFallback as a,AvatarImage as o}from"../../../../../../ui/avatar.mjs";import{Box as s}from"../../../../../../ui/box.mjs";import{Text as c}from"../../../../../../ui/text.mjs";import{useRequest as l}from"../../../../../../../hooks/query/use-query.mjs";import u from"../../../../../../ui/link.mjs";import{defaultProps as d}from"../defaults/default-props.mjs";import f from"../../../../../../../assets/icons/follow_nor.mjs";import p from"../../../../../../../assets/icons/follow_sel.mjs";import{RecommendedUsersSkeleton as m}from"./recommended-users-skeleton.mjs";import{useEffect as h,useMemo as g,useRef as _,useState as v}from"react";import{jsx as y,jsxs as b}from"react/jsx-runtime";const x={},S={list:[]};function C({props:C=x,styles:w,data:T=S}){function E(e){let t=new Set;return e.filter(e=>e.user_id?t.has(e.user_id)?!1:(t.add(e.user_id),!0):!0)}let D={...d,...C},{userId:O,isLogin:k}=t(),{title:A,avatarSize:j,followButtonSize:M,itemGap:N,listPadding:P,nameFontSize:F}=D,[I,L]=v(()=>E(T.list||[])),R=_(T.list),z=g(()=>I.map(e=>e.user_id).filter(Boolean),[I]),B=g(()=>z.join(`,`),[z]),{data:V}=l(g(()=>[`recommended-users`,`follow-status`,O,B],[B,O]),()=>n({follower_id:O,followee_ids:z}),{staleTime:0,enabled:!!k&&!!O&&z.length>0}),H=!!V?.data?.is_following_map;h(()=>{R.current!==T.list&&(R.current=T.list,L(E(T.list||[])))},[T.list]),h(()=>{let e=V?.data?.is_following_map;!e||Object.keys(e).length===0||L(t=>t.filter(e=>e.user_id?!(k&&O&&e.user_id===O):!0).map(t=>!t.user_id||e[t.user_id]===void 0?t:{...t,isFollow:!!e[t.user_id]}))},[V?.data?.is_following_map,k,O]);let U=w?e(w,{}):void 0,W=M+12;return b(s,{style:U,className:`mb-[16px]`,children:[y(c,{as:`h2`,className:`text-[18px] font-bold text-text1 mb-[8px] px-[12px] pt-[16px]`,children:A}),I&&I.length>0?y(s,{className:`overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitOverflowScrolling:`touch`},children:y(s,{className:`flex h-[62px]`,style:{paddingLeft:r(P),gap:r(N)},children:I.map((e,t)=>b(u,{href:`/profile/${e.user_id}`,className:`flex flex-col items-center shrink-0`,style:{paddingRight:t===I.length-1?r(P):0},children:[b(s,{className:`relative flex flex-col items-center`,children:[b(i,{size:`lg`,children:[e.avatar?y(o,{src:e.avatar,alt:e.nick_name}):null,y(a,{})]}),y(s,{className:`absolute`,style:{width:r(W),height:r(W),bottom:`-${r(W/2)}`,border:`${r(6)} solid rgba(255,255,255,0)`,boxSizing:`border-box`,borderRadius:`9999px`,display:`flex`,alignItems:`center`,justifyContent:`center`,opacity:k?H?1:.6:1},children:k&&H&&e.isFollow?y(p,{width:M,height:M}):y(f,{width:M,height:M})})]}),y(c,{className:`text-center mt-[8px] text-text1 whitespace-nowrap overflow-hidden text-ellipsis`,style:{fontSize:r(F),maxWidth:r(j+20)},title:e.nick_name,children:e.nick_name})]},e.user_id||`user-${t}`))})}):y(m,{avatarSize:j,followButtonSize:M,itemGap:N,listPadding:P,nameFontSize:F,itemCount:7})]})}export{C as default};
|
package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import{defaultProps as r}from"../defaults/default-props.mjs";import i from"../../../../../../../assets/icons/left_arrow.mjs";import a from"../../../../../basics/logo/variants/basic-logo/index.mjs";import o from"../../../../../basics/search/variants/simple-search/index.mjs";import{
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import{defaultProps as r}from"../defaults/default-props.mjs";import i from"../../../../../../../assets/icons/left_arrow.mjs";import a from"../../../../../basics/logo/variants/basic-logo/index.mjs";import o from"../../../../../basics/search/variants/simple-search/index.mjs";import{useRouter as s}from"next/navigation";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u={},d={list:[]};function f({props:f=u,styles:p,events:m,data:h=d}){let g={...r,...f},_=s(),{logo:v,search:y,gap:b=r.gap}=g,{list:x}=h,S=()=>{m?.onLogoClick?.()},C=(e,t)=>{m?.onLogoChannelChange?.(e,t)},w=()=>{m?.onSearchClick?.()},T=p?e(p,{}):void 0;return l(n,{as:`header`,className:`w-full bg-black flex justify-between items-center px-[16px] py-[8px]`,style:{...b>0?{gap:t(b)}:void 0,...T},children:[l(`div`,{className:`flex items-center`,children:[c(i,{className:`mr-4 cursor-pointer`,onClick:()=>{_.back()}}),c(a,{props:v,events:{onClick:S,onChannelChange:C},data:x})]}),c(o,{props:y,events:{onClick:w}})]})}export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{useCallback as e,useEffect as t,useState as n}from"react";function r(r){let{storageKey:i,maxItems:a=10}=r,[o,s]=n([]),c=`search-history-${i}`,l=e(()=>{if(typeof window>`u`)return[];try{let e=localStorage.getItem(c);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t.keywords)?t.keywords.slice(0,a):[]}catch(e){return console.error(`读取搜索历史失败:`,e),[]}},[c,a]),u=e(e=>{if(!(typeof window>`u`))try{let t={keywords:e,timestamp:Date.now()};localStorage.setItem(c,JSON.stringify(t))}catch(e){console.error(`保存搜索历史失败:`,e)}},[c]);return t(()=>{s(l())},[l]),{history:o,addHistory:e(e=>{if(!e||typeof e!=`string`)return;let t=e.trim();if(!t)return;let n=[t,...l().filter(e=>e!==t)].slice(0,a);u(n),s(n)},[a,u,l]),removeHistory:e(e=>{e&&s(t=>{let n=t.filter(t=>t!==e);return u(n),n})},[u]),clearHistory:e(()=>{s([]),u([])},[u])}}export{r as useSearchHistory};
|
|
2
|
+
import{useCallback as e,useEffect as t,useState as n}from"react";function r(r){let{storageKey:i,maxItems:a=10}=r,[o,s]=n([]),c=`search-history-${i}`,l=e(()=>{if(typeof window>`u`)return[];try{let e=localStorage.getItem(c);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t.keywords)?t.keywords.slice(0,a):[]}catch(e){return console.error(`读取搜索历史失败:`,e),[]}},[c,a]),u=e(e=>{if(!(typeof window>`u`))try{let t={keywords:e,timestamp:Date.now()};localStorage.setItem(c,JSON.stringify(t))}catch(e){console.error(`保存搜索历史失败:`,e)}},[c]);return t(()=>{s(l())},[l]),t(()=>{let e=e=>{e.key===c&&s(l())};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[c,l]),t(()=>{let e=()=>{s(l())};return window.addEventListener(`search-history-change`,e),()=>window.removeEventListener(`search-history-change`,e)},[l]),{history:o,addHistory:e(e=>{if(!e||typeof e!=`string`)return;let t=e.trim();if(!t)return;let n=[t,...l().filter(e=>e!==t)].slice(0,a);u(n),window.dispatchEvent(new CustomEvent(`search-history-change`)),s(n)},[a,u,l]),removeHistory:e(e=>{e&&s(t=>{let n=t.filter(t=>t!==e);return u(n),window.dispatchEvent(new CustomEvent(`search-history-change`)),n})},[u]),clearHistory:e(()=>{s([]),u([]),window.dispatchEvent(new CustomEvent(`search-history-change`))},[u])}}export{r as useSearchHistory};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region components/biz/business/search-history2/client.d.ts
|
|
5
|
+
interface SearchHistory2ClientProps {
|
|
6
|
+
rows?: string;
|
|
7
|
+
title: string;
|
|
8
|
+
clearText: string;
|
|
9
|
+
confirmDescription: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 搜索历史物料组件 - 客户端交互部分
|
|
13
|
+
*/
|
|
14
|
+
declare function SearchHistory2Client({
|
|
15
|
+
rows,
|
|
16
|
+
title,
|
|
17
|
+
clearText,
|
|
18
|
+
confirmDescription
|
|
19
|
+
}: SearchHistory2ClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SearchHistory2Client };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{updateUrlParams as e}from"../../../../utils/common.mjs";import{useUserStore as t}from"../../../../store/modules/user-store.mjs";import{DeleteConfirmDialog as n}from"../../../common/delete-confirm-dialog/delete-confirm-dialog.mjs";import{useSearchHistory as r}from"../search-history/use-search-history.mjs";import{useRouter as i}from"next/navigation";import{useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c({rows:c,title:l,clearText:u,confirmDescription:d}){let{userInfo:f}=t(),p=f?.user_id||`guest`,m=i(),[h,g]=a(!1),{history:_,clearHistory:v}=r({storageKey:p});return _.length===0?null:s(`div`,{className:`w-full bg-transparent pt-[12px] px-[12px] relative z-0`,children:[s(`div`,{className:`w-full flex items-center justify-between mb-[12px]`,children:[o(`span`,{className:`text-[16px] font-bold text-text1`,children:l}),s(`div`,{onClick:()=>g(!0),className:`cursor-pointer flex items-center gap-[4px]`,children:[o(`span`,{className:`text-text2 text-[14px] font-normal leading-[22px] text-right`,style:{fontFamily:`"Source Code Pro"`},children:u}),o(`svg`,{className:`w-[12px] h-[12px] text-text3`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:o(`path`,{d:`M4.8295 0C4.71306 0 4.60139 0.0511359 4.51905 0.142158C4.43671 0.233181 4.39046 0.356633 4.39046 0.485358V2.5889H0.439046C0.322604 2.5889 0.210931 2.64004 0.128594 2.73106C0.0462565 2.82208 0 2.94553 0 3.07426V5.66316C0 5.79189 0.0462565 5.91534 0.128594 6.00636C0.210931 6.09738 0.322604 6.14852 0.439046 6.14852H0.878092V11.5146C0.878092 11.6434 0.924348 11.7668 1.00669 11.8578C1.08902 11.9489 1.2007 12 1.31714 12H10.6829C10.7993 12 10.911 11.9489 10.9933 11.8578C11.0757 11.7668 11.1219 11.6434 11.1219 11.5146V6.14852H11.561C11.6774 6.14852 11.7891 6.09738 11.8714 6.00636C11.9537 5.91534 12 5.79189 12 5.66316V3.07426C12 2.94553 11.9537 2.82208 11.8714 2.73106C11.7891 2.64004 11.6774 2.5889 11.561 2.5889H7.60954V0.485358C7.60954 0.356633 7.56328 0.233181 7.48095 0.142158C7.39861 0.0511359 7.28694 0 7.1705 0H4.8295ZM10.2438 11.0293H8.78092V9.54603C8.78092 9.4173 8.73466 9.29385 8.65232 9.20283C8.56999 9.1118 8.45831 9.06067 8.34187 9.06067C8.22543 9.06067 8.11376 9.1118 8.03142 9.20283C7.94908 9.29385 7.90282 9.4173 7.90282 9.54603V11.0293H6.43905V9.54117C6.43905 9.41245 6.39279 9.289 6.31045 9.19797C6.22812 9.10695 6.11644 9.05582 6 9.05582C5.88356 9.05582 5.77188 9.10695 5.68955 9.19797C5.60721 9.289 5.56095 9.41245 5.56095 9.54117V11.0303H4.09718V9.547C4.09718 9.41827 4.05092 9.29482 3.96858 9.2038C3.88624 9.11278 3.77457 9.06164 3.65813 9.06164C3.54169 9.06164 3.43001 9.11278 3.34768 9.2038C3.26534 9.29482 3.21908 9.41827 3.21908 9.547V11.0303H1.75618V6.17667H10.2438V11.0303V11.0293ZM5.26855 3.07426V0.970717H6.73145V3.07426C6.73145 3.20298 6.77771 3.32644 6.86004 3.41746C6.94238 3.50848 7.05405 3.55962 7.1705 3.55962H11.1219V5.1778H0.878092V3.55962H4.8295C4.94595 3.55962 5.05762 3.50848 5.13996 3.41746C5.22229 3.32644 5.26855 3.20298 5.26855 3.07426Z`,fill:`currentColor`})})]})]}),o(`div`,{className:`w-full overflow-hidden ${c===`1`?`h-[30px]`:c===`2`?`h-[72px]`:`h-[114px]`}`,children:o(`ul`,{className:`list-none m-0 p-0 w-full flex flex-wrap gap-[12px]`,children:_.map((t,n)=>o(`li`,{className:`h-[30px] px-[12px] bg-bg2 rounded-[4px] flex items-center justify-center cursor-pointer`,onClick:()=>{e({q:t}),m.push(`${window.location.pathname}?q=${encodeURIComponent(t)}`)},children:o(`div`,{className:`text-text1 text-[14px] max-w-[124px] truncate`,children:t.length>8?`${t.slice(0,8)}...`:t})},`${t}-${n}`))})}),o(n,{open:h,onOpenChange:g,onConfirm:()=>{v(),g(!1)},title:``,description:d})]})}export{c as SearchHistory2Client};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { SearchHistory2InspectorProps, SearchHistory2Props, searchHistory2InspectorDefaultProps, searchHistory2InspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { SearchHistory2Server } from "./server.mjs";
|
|
4
|
+
import { searchHistory2Material } from "./material.mjs";
|
|
5
|
+
import { SearchHistory2Client } from "./client.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils.mjs";
|
|
5
|
+
import { SearchHistory2Server } from "./server.mjs";
|
|
6
|
+
import * as zod from "zod";
|
|
7
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
8
|
+
|
|
9
|
+
//#region components/biz/business/search-history2/material.d.ts
|
|
10
|
+
declare const searchHistory2Material: DefineMaterialOption<typeof SearchHistory2Server, zod.ZodObject<{
|
|
11
|
+
title: zod.ZodString & SchemaHasDefaultValue;
|
|
12
|
+
rows: zod.ZodType<"2" | "1" | "3", unknown, zod_v4_core0.$ZodTypeInternals<"2" | "1" | "3", unknown>> & SchemaHasDefaultValue;
|
|
13
|
+
}, zod_v4_core0.$strip>, "search-history2">;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { searchHistory2Material };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{searchHistory2InspectorPropsSchema as t}from"./schema.mjs";import{SearchHistory2Server as n}from"./server.mjs";const r=e({type:`search-history2`,name:`搜索历史`,icon:`https://cdn.example.com/icons/search-history.png`,category:`CENTER`,serverComponent:n,clientComponent:n,propsSchema:t});export{r as searchHistory2Material};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
4
|
+
import z from "zod";
|
|
5
|
+
|
|
6
|
+
//#region components/biz/business/search-history2/schema.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* 搜索历史物料属性定义
|
|
9
|
+
*/
|
|
10
|
+
declare const searchHistory2InspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
title: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
+
rows: z.ZodType<"2" | "1" | "3", unknown, z.core.$ZodTypeInternals<"2" | "1" | "3", unknown>> & SchemaHasDefaultValue;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const searchHistory2InspectorDefaultProps: {
|
|
15
|
+
title: string;
|
|
16
|
+
rows: "2" | "1" | "3";
|
|
17
|
+
};
|
|
18
|
+
type SearchHistory2InspectorProps = z.infer<typeof searchHistory2InspectorPropsSchema>;
|
|
19
|
+
type SearchHistory2Props = SearchHistory2InspectorProps;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SearchHistory2InspectorProps, SearchHistory2Props, searchHistory2InspectorDefaultProps, searchHistory2InspectorPropsSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineComponentPropsSchema as e,defineSelectEnumPropSchema as t,defineTextPropSchema as n,getSchemaDefaultProps as r}from"../../../../utils/schema/schema.mjs";const i=e({title:n({label:`标题名称`,defaultValue:`搜索历史`}),rows:t([`1`,`2`,`3`],{label:`展示行数`,defaultValue:`1`})}),a=r(i);export{a as searchHistory2InspectorDefaultProps,i as searchHistory2InspectorPropsSchema};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
import { SearchHistory2Props } from "./schema.mjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region components/biz/business/search-history2/server.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* 搜索历史物料组件 (search-history2) - 服务端部分
|
|
8
|
+
*/
|
|
9
|
+
declare function SearchHistory2Server(props: SearchHistory2Props): Promise<react_jsx_runtime0.JSX.Element>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SearchHistory2Server };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{SearchHistory2Client as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";import{getTranslations as n}from"next-intl/server";async function r(r){let i=await n(`components.biz.business.searchHistory`);return t(e,{...r,title:r.title||`搜索历史`,clearText:i(`clear`)||`清理`,confirmDescription:i(`confirmClearDescription`)||`确认删除全部搜索历史吗?`})}export{r as SearchHistory2Server};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region components/biz/business/search-input/client.d.ts
|
|
5
|
+
interface SearchInputClientProps {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
defaultPlaceholder: string;
|
|
8
|
+
searchLabel: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 搜索输入框物料组件 - 客户端交互部分
|
|
12
|
+
*/
|
|
13
|
+
declare function SearchInputClient({
|
|
14
|
+
placeholder,
|
|
15
|
+
defaultPlaceholder,
|
|
16
|
+
searchLabel
|
|
17
|
+
}: SearchInputClientProps): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SearchInputClient };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import e from"../../../../assets/icons/clear.mjs";import{updateUrlParams as t}from"../../../../utils/common.mjs";import{useUserStore as n}from"../../../../store/modules/user-store.mjs";import{Input as r}from"../../../ui/input.mjs";import{useSearchHistory as i}from"../search-history/use-search-history.mjs";import a from"../../../../assets/icons/search.mjs";import{isPCEnv as o}from"../../../../utils/tools.mjs";import{HeaderNav as s}from"../../../common/header-nav/client.mjs";import c from"../../../pages/search/style.module.mjs";import{useRouter as l}from"next/navigation";import{useCallback as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";function m({placeholder:m,defaultPlaceholder:h,searchLabel:g}){let[_,v]=d(``),y=l(),{userInfo:b}=n(),{addHistory:x}=i({storageKey:b?.user_id||`guest`}),S=u(e=>{let n=e||_||h;n.trim()&&(x(n),t({q:n}),y.push(`${window.location.pathname}?q=${encodeURIComponent(n)}`))},[_,h,y,x]);return f(s,{className:`h-[55px]`,rightChild:f(`div`,{className:`cursor-pointer w-[52px] flex items-center justify-center`,onClick:()=>S(_),children:f(`span`,{className:`text-[16px] text-text1`,children:g})}),centerChild:p(`header`,{className:`w-[calc(100%-52px-48px)] ml-[-15px] h-[35px] rounded-[20px] flex items-center justify-center relative overflow-hidden border-line1 border-[1px]`,children:[f(`div`,{className:`absolute left-0 top-0 w-full h-full bg-bg2 opacity-50`}),f(a,{className:`w-[16px] h-[16px] text-text3 absolute left-[12px] top-[9px] z-[1]`}),f(r,{id:`search-input-field`,placeholder:m||h,maxLength:20,value:_,className:c.searchInput,onChange:e=>v(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),S(_))}}),_&&f(e,{className:`w-[15px] h-[15px] text-text3 z-10 absolute right-[12px] cursor-pointer`,onClick:()=>{o()||(v(``),t({q:``}),y.push(window.location.pathname))}})]})})}export{m as SearchInputClient};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { SearchInputInspectorProps, SearchInputProps, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { SearchInputServer } from "./server.mjs";
|
|
4
|
+
import { searchInputMaterial } from "./material.mjs";
|
|
5
|
+
import { SearchInputClient } from "./client.mjs";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils.mjs";
|
|
5
|
+
import { SearchInputServer } from "./server.mjs";
|
|
6
|
+
import * as zod from "zod";
|
|
7
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
8
|
+
|
|
9
|
+
//#region components/biz/business/search-input/material.d.ts
|
|
10
|
+
declare const searchInputMaterial: DefineMaterialOption<typeof SearchInputServer, zod.ZodObject<{
|
|
11
|
+
placeholder: zod.ZodString & SchemaHasDefaultValue;
|
|
12
|
+
}, zod_v4_core0.$strip>, "search-input">;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { searchInputMaterial };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{searchInputInspectorPropsSchema as t}from"./schema.mjs";import{SearchInputServer as n}from"./server.mjs";const r=e({type:`search-input`,name:`搜索输入框`,icon:`https://cdn.example.com/icons/search-input.png`,category:`TOP`,serverComponent:n,clientComponent:n,propsSchema:t});export{r as searchInputMaterial};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
4
|
+
import z from "zod";
|
|
5
|
+
|
|
6
|
+
//#region components/biz/business/search-input/schema.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* 搜索输入框物料属性定义
|
|
9
|
+
*/
|
|
10
|
+
declare const searchInputInspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
placeholder: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const searchInputInspectorDefaultProps: {
|
|
14
|
+
placeholder: string;
|
|
15
|
+
};
|
|
16
|
+
type SearchInputInspectorProps = z.infer<typeof searchInputInspectorPropsSchema>;
|
|
17
|
+
type SearchInputProps = SearchInputInspectorProps;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SearchInputInspectorProps, SearchInputProps, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineComponentPropsSchema as e,defineTextPropSchema as t,getSchemaDefaultProps as n}from"../../../../utils/schema/schema.mjs";const r=e({placeholder:t({label:`占位文本`,defaultValue:`搜索关键词`})}),i=n(r);export{i as searchInputInspectorDefaultProps,r as searchInputInspectorPropsSchema};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
import { SearchInputProps } from "./schema.mjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region components/biz/business/search-input/server.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* 搜索输入框物料组件 (SearchInput) - 服务端部分
|
|
8
|
+
*/
|
|
9
|
+
declare function SearchInputServer(props: SearchInputProps): Promise<react_jsx_runtime0.JSX.Element>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SearchInputServer };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{SearchInputClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";import{getTranslations as n}from"next-intl/server";async function r(r){let i=await n(`components.pages.search`);return t(e,{...r,defaultPlaceholder:i(`topHeader.placeholder`),searchLabel:i(`topHeader.search`)})}export{r as SearchInputServer};
|
|
@@ -5,8 +5,8 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
5
5
|
//#region components/biz/business/shortcut-grid/client.d.ts
|
|
6
6
|
type ShortcutGridClientProps = ShortcutGridInspectorProps;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 金刚区客户端组件:
|
|
9
9
|
*/
|
|
10
|
-
declare function ShortcutGridClient(
|
|
10
|
+
declare function ShortcutGridClient(props: ShortcutGridClientProps): react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ShortcutGridClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../ui/link.mjs";import{shortcutGridInspectorDefaultProps as i}from"./schema.mjs";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(s){let{title:c,shortcutCount:l,isShortcutTitle:u,shortcuts:d}={...i,...s},f=(()=>{let e=l??d.length??0;return Math.min(Math.max(e,3),5)})(),p=(d??[]).slice(0,f);return o(t,{as:`section`,className:`p-[12px]`,"aria-label":`金刚区`,children:[c?.trim()?a(n,{as:`h2`,className:`font-bold text-[16px] text-text1`,children:c}):null,a(t,{className:`flex justify-around mt-[8px]`,children:p.map((i,s)=>{let c=o(t,{className:`flex flex-col items-center justify-center gap-[10px] w-[52px]`,children:[a(t,{className:`flex h-[39px] w-[52px] items-center justify-center relative`,"aria-hidden":!i.label,children:a(e,{src:i.icon,alt:i.label||`入口图标`,fill:!0,className:`object-cover`})}),u?a(n,{className:`text-[12px] w-[52px] truncate text-center`,title:u?i.label:void 0,children:i.label}):null]});return a(r,{href:i.href,className:`block`,children:c},s)})})]})}export{s as ShortcutGridClient};
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
2
3
|
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils/schema/index.mjs";
|
|
3
5
|
import { ShortcutGridClient } from "./client.mjs";
|
|
4
6
|
import * as zod from "zod";
|
|
5
7
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
8
|
|
|
7
9
|
//#region components/biz/business/shortcut-grid/material.d.ts
|
|
8
|
-
declare const shortcutGridMaterial: DefineMaterialOption<typeof ShortcutGridClient, zod.ZodObject<{
|
|
10
|
+
declare const shortcutGridMaterial: DefineMaterialOption<typeof ShortcutGridClient, zod.ZodObject<{
|
|
11
|
+
title: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
12
|
+
shortcutCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
+
isShortcutTitle: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
14
|
+
shortcuts: zod.ZodArray<zod.ZodObject<{
|
|
15
|
+
label: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
16
|
+
icon: zod.ZodString & SchemaHasDefaultValue;
|
|
17
|
+
href: zod.ZodString & SchemaHasDefaultValue;
|
|
18
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
19
|
+
}, zod_v4_core0.$strip>, "shortcut-grid">;
|
|
9
20
|
//#endregion
|
|
10
21
|
export { shortcutGridMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{shortcutGridInspectorPropsSchema as t}from"./schema.mjs";import{ShortcutGridClient as n}from"./client.mjs";import{ShortcutGrid as r}from"./server.mjs";const i=e({type:`shortcut-grid`,name:`金刚区`,icon:`/static/components-thumb/shortcut_grid_5.png`,category:`金刚组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as shortcutGridMaterial};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
2
|
+
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils/schema/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
4
|
+
import z from "zod";
|
|
6
5
|
|
|
7
6
|
//#region components/biz/business/shortcut-grid/schema.d.ts
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* 金刚区物料可配置字段:
|
|
10
9
|
*/
|
|
11
|
-
declare const shortcutGridInspectorPropsSchema:
|
|
10
|
+
declare const shortcutGridInspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
title: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
12
|
+
shortcutCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
+
isShortcutTitle: z.ZodBoolean & SchemaHasDefaultValue;
|
|
14
|
+
shortcuts: z.ZodArray<z.ZodObject<{
|
|
15
|
+
label: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
16
|
+
icon: z.ZodString & SchemaHasDefaultValue;
|
|
17
|
+
href: z.ZodString & SchemaHasDefaultValue;
|
|
18
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
19
|
+
}, z.core.$strip>;
|
|
12
20
|
type ShortcutGridInspectorProps = InferSchemaProps<typeof shortcutGridInspectorPropsSchema>;
|
|
13
21
|
//#endregion
|
|
14
22
|
export { ShortcutGridInspectorProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineNumberPropSchema as n,defineSwitchPropSchema as r,defineTextPropSchema as i,getSchemaDefaultProps as a}from"../../../../utils/schema/schema.mjs";import o from"zod";const s=t({title:i({label:`推荐位名称`,required:!1,defaultValue:`推荐列表`}),shortcutCount:n({label:`入口数量`,required:!0,defaultValue:4}).refine(e=>e>=3&&e<=5,`入口数量必须为 3-5`),isShortcutTitle:r({label:`是否显示入口标题`,required:!0,defaultValue:!0}),shortcuts:e(o.object({label:i({label:`入口标题`,required:!1,defaultValue:`最新`}),icon:i({label:`图标`,required:!0,defaultValue:``}),href:i({label:`跳转指向`,required:!0,defaultValue:``})}),{label:`推荐列表`,required:!0,defaultValue:[{label:`热门`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`},{label:`新上架`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`},{label:`排行榜`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`},{label:`筛选`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`}]})}),c=a(s);export{c as shortcutGridInspectorDefaultProps,s as shortcutGridInspectorPropsSchema};
|