@funhub/platform 0.1.59 → 0.1.60
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/biz.d.mts +5 -5
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/client.d.mts +9 -9
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/index.d.mts +4 -4
- package/dist/components/biz/business/image-text-recommend/material.d.mts +6 -6
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/schema.d.mts +3 -3
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/server.d.mts +4 -4
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +4 -4
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/server.mjs +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/hooks/image-text-recommend.d.mts +17 -0
- package/dist/hooks/{video-horizontal-list.mjs → image-text-recommend.mjs} +1 -1
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.mjs +1 -1
- package/dist/materials.d.mts +2 -2
- package/dist/materials.mjs +1 -1
- package/package.json +1 -1
- package/dist/hooks/video-horizontal-list.d.mts +0 -17
package/dist/biz.d.mts
CHANGED
|
@@ -83,10 +83,10 @@ import { HomeRecommendWaterfallClient } from "./components/biz/business/home-rec
|
|
|
83
83
|
import { schema as schema$22 } from "./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";
|
|
84
84
|
import { HomeRecommendWaterfall } from "./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";
|
|
85
85
|
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
86
|
+
import { imageTextRecommendInspectorPropsSchema } from "./components/biz/business/image-text-recommend/schema.mjs";
|
|
87
|
+
import { ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps } from "./components/biz/business/image-text-recommend/client.mjs";
|
|
88
|
+
import { ImageTextRecommendServer } from "./components/biz/business/image-text-recommend/server.mjs";
|
|
89
|
+
import { imageTextRecommendMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
|
|
90
90
|
import { marqueeInspectorPropsSchema } from "./components/biz/business/marquee/schema.mjs";
|
|
91
91
|
import { MarqueeClient, MarqueeProps } from "./components/biz/business/marquee/client.mjs";
|
|
92
92
|
import { MarqueeServer } from "./components/biz/business/marquee/server.mjs";
|
|
@@ -154,4 +154,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
|
|
|
154
154
|
import "./components/biz/example/button/index.mjs";
|
|
155
155
|
import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
|
|
156
156
|
import "./components/biz/renderer/index.mjs";
|
|
157
|
-
export { BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabAuthConfig, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabAuthConfig, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, ProfileHeaderInspectorProps, ProfileMainAuthConfig, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeader, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileHeaderProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps,
|
|
157
|
+
export { BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabAuthConfig, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabAuthConfig, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, ProfileHeaderInspectorProps, ProfileMainAuthConfig, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeader, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileHeaderProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildCollectTabPrefetch, buildContentUrl, buildHistoryTabPrefetch, buildLikeTabPrefetch, buildPublishTabPrefetch, buildUserProfileHeaderPrefetch, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, customStylesToInline, exampleButtonMaterial, extractDataByComponentType, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getCardSpecConfig, getChannelList, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorPropsSchema, searchInputMaterial, tabBarInspectorPropsSchema, tabBarMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem };
|
package/dist/biz.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{VideoHorizontalListClient as $}from"./components/biz/business/image-text-recommend/client.mjs";import{videoHorizontalListInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{VideoHorizontalListServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{videoHorizontalListMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{MarqueeClient as He}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as Ue}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as We}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ge}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ke}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as qe}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Je from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ye}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Xe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Ze}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Qe,profileHeaderInspectorPropsSchema as $e}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as et,buildUserProfileHeaderPrefetch as tt}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as nt,profileHeaderMaterialWithDisabledBackground as rt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as it,profileMainCollectTabOptions as at,profileMainHistoryTabOptions as ot,profileMainLikeTabOptions as st,profileMainMineTabOptions as ct,profileMainProfileTabOptions as lt,profileMainTabOptions as ut}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as dt}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as ft}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pt,profileMainInspectorPropsSchema as mt}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as ht}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as gt,buildCollectTabPrefetch as _t}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as vt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as yt,buildHistoryTabPrefetch as bt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as xt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as St,buildLikeTabPrefetch as Ct}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as wt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Tt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as Et}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Dt,buildPublishTabPrefetch as Ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import kt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as At}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as jt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Mt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Nt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Pt}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Ft from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as It}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Lt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Rt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as zt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Bt}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Vt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Ht}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Ut}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as Wt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Gt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Kt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as qt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Jt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Yt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Xt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Zt}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Qt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as $t}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as en}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as tn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nn,buttonInspectorPropsSchema as rn}from"./components/biz/example/button/schema.mjs";import{Button as an}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as on}from"./components/biz/example/button/material.mjs";import{Renderer as sn}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,Je as BasicNavBar,Ke as BasicNavBarDefaultData,qe as BasicNavBarSchema,Xe as BasicPostCard,Ye as BasicPostCardDefaultData,N as BasicPostCardSchema,kt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Mt as BasicSearchBar,At as BasicSearchBarDefaultData,jt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,an as Button,tn as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,ht as CollectTab,gt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,Ft as FilterSearchBar,Nt as FilterSearchBarDefaultData,Pt as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,vt as HistoryTab,yt as HistoryTabServer,Fe as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,xt as LikeTab,St as LikeTabServer,He as MarqueeClient,We as MarqueeServer,Et as PublishTab,Dt as PublishTabServer,sn as Renderer,zt as SearchHistoryClient,Vt as SearchHistoryServer,Ut as SearchInputClient,Gt as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,qt as TabBarClient,Yt as TabBarServer,ne as TagSearch,Rt as TagSearchBar,It as TagSearchBarDefaultData,Lt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Zt as TextRecommendClient,$t as TextRecommendServer,et as UserProfileHeader,Ze as UserProfileHeaderClient,wt as UserProfileMain,ft as UserProfileMainClient,dt as UserProfileMainShell,$ as VideoHorizontalListClient,Be as VideoHorizontalListServer,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,_t as buildCollectTabPrefetch,n as buildContentUrl,bt as buildHistoryTabPrefetch,Ct as buildLikeTabPrefetch,Ot as buildPublishTabPrefetch,tt as buildUserProfileHeaderPrefetch,nn as buttonInspectorDefaultProps,rn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,on as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,Ue as marqueeInspectorPropsSchema,Ge as marqueeMaterial,s as mergeStyles,Qe as profileHeaderInspectorDefaultProps,$e as profileHeaderInspectorPropsSchema,nt as profileHeaderMaterial,rt as profileHeaderMaterialWithDisabledBackground,it as profileMainCollectCollectionTabOptions,at as profileMainCollectTabOptions,ot as profileMainHistoryTabOptions,pt as profileMainInspectorDefaultProps,mt as profileMainInspectorPropsSchema,st as profileMainLikeTabOptions,Tt as profileMainMaterial,ct as profileMainMineTabOptions,lt as profileMainProfileTabOptions,ut as profileMainTabOptions,Bt as searchHistoryInspectorPropsSchema,Ht as searchHistoryMaterial,Wt as searchInputInspectorPropsSchema,Kt as searchInputMaterial,Jt as tabBarInspectorPropsSchema,Xt as tabBarMaterial,Qt as textRecommendInspectorPropsSchema,en as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem,ze as videoHorizontalListInspectorPropsSchema,Ve as videoHorizontalListMaterial};
|
|
2
|
+
import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as $}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{MarqueeClient as He}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as Ue}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as We}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ge}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ke}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as qe}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Je from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ye}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Xe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Ze}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Qe,profileHeaderInspectorPropsSchema as $e}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as et,buildUserProfileHeaderPrefetch as tt}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as nt,profileHeaderMaterialWithDisabledBackground as rt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as it,profileMainCollectTabOptions as at,profileMainHistoryTabOptions as ot,profileMainLikeTabOptions as st,profileMainMineTabOptions as ct,profileMainProfileTabOptions as lt,profileMainTabOptions as ut}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as dt}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as ft}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pt,profileMainInspectorPropsSchema as mt}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as ht}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as gt,buildCollectTabPrefetch as _t}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as vt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as yt,buildHistoryTabPrefetch as bt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as xt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as St,buildLikeTabPrefetch as Ct}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as wt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Tt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as Et}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Dt,buildPublishTabPrefetch as Ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import kt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as At}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as jt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Mt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Nt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Pt}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Ft from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as It}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Lt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Rt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as zt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Bt}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Vt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Ht}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Ut}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as Wt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Gt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Kt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as qt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Jt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Yt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Xt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Zt}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Qt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as $t}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as en}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as tn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nn,buttonInspectorPropsSchema as rn}from"./components/biz/example/button/schema.mjs";import{Button as an}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as on}from"./components/biz/example/button/material.mjs";import{Renderer as sn}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,Je as BasicNavBar,Ke as BasicNavBarDefaultData,qe as BasicNavBarSchema,Xe as BasicPostCard,Ye as BasicPostCardDefaultData,N as BasicPostCardSchema,kt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Mt as BasicSearchBar,At as BasicSearchBarDefaultData,jt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,an as Button,tn as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,ht as CollectTab,gt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,Ft as FilterSearchBar,Nt as FilterSearchBarDefaultData,Pt as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,vt as HistoryTab,yt as HistoryTabServer,Fe as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,$ as ImageTextRecommendClient,Be as ImageTextRecommendServer,xt as LikeTab,St as LikeTabServer,He as MarqueeClient,We as MarqueeServer,Et as PublishTab,Dt as PublishTabServer,sn as Renderer,zt as SearchHistoryClient,Vt as SearchHistoryServer,Ut as SearchInputClient,Gt as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,qt as TabBarClient,Yt as TabBarServer,ne as TagSearch,Rt as TagSearchBar,It as TagSearchBarDefaultData,Lt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Zt as TextRecommendClient,$t as TextRecommendServer,et as UserProfileHeader,Ze as UserProfileHeaderClient,wt as UserProfileMain,ft as UserProfileMainClient,dt as UserProfileMainShell,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,_t as buildCollectTabPrefetch,n as buildContentUrl,bt as buildHistoryTabPrefetch,Ct as buildLikeTabPrefetch,Ot as buildPublishTabPrefetch,tt as buildUserProfileHeaderPrefetch,nn as buttonInspectorDefaultProps,rn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,on as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,ze as imageTextRecommendInspectorPropsSchema,Ve as imageTextRecommendMaterial,Ue as marqueeInspectorPropsSchema,Ge as marqueeMaterial,s as mergeStyles,Qe as profileHeaderInspectorDefaultProps,$e as profileHeaderInspectorPropsSchema,nt as profileHeaderMaterial,rt as profileHeaderMaterialWithDisabledBackground,it as profileMainCollectCollectionTabOptions,at as profileMainCollectTabOptions,ot as profileMainHistoryTabOptions,pt as profileMainInspectorDefaultProps,mt as profileMainInspectorPropsSchema,st as profileMainLikeTabOptions,Tt as profileMainMaterial,ct as profileMainMineTabOptions,lt as profileMainProfileTabOptions,ut as profileMainTabOptions,Bt as searchHistoryInspectorPropsSchema,Ht as searchHistoryMaterial,Wt as searchInputInspectorPropsSchema,Kt as searchInputMaterial,Jt as tabBarInspectorPropsSchema,Xt as tabBarMaterial,Qt as textRecommendInspectorPropsSchema,en as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem};
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils/schema/index.mjs";
|
|
4
4
|
import { ContentShowVideoInfo } from "../../../../types.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { imageTextRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
6
|
+
import { ImageTextRecommendAnyVideo } from "../../../../hooks/image-text-recommend.mjs";
|
|
7
7
|
import "../../../../hooks.mjs";
|
|
8
8
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region components/biz/business/image-text-recommend/client.d.ts
|
|
11
|
-
type AnyVideo =
|
|
12
|
-
type
|
|
11
|
+
type AnyVideo = ImageTextRecommendAnyVideo;
|
|
12
|
+
type ImageTextRecommendProps = InferSchemaProps<typeof imageTextRecommendInspectorPropsSchema>;
|
|
13
13
|
/** 服务端预取后传入的初始数据,有则客户端不再发起初次请求 */
|
|
14
|
-
interface
|
|
14
|
+
interface ImageTextRecommendInitialData {
|
|
15
15
|
initialRemoteMap?: Record<string, AnyVideo | undefined>;
|
|
16
16
|
initialSmartList?: ContentShowVideoInfo[];
|
|
17
17
|
initialLoadedBatchIndex?: number;
|
|
18
18
|
initialDataFromServer?: boolean;
|
|
19
19
|
}
|
|
20
|
-
interface ClientProps extends
|
|
20
|
+
interface ClientProps extends ImageTextRecommendProps, ImageTextRecommendInitialData {
|
|
21
21
|
allEpisodesText?: string;
|
|
22
22
|
updatedToText?: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* 图文推荐物料组件 - 客户端部分
|
|
26
26
|
* - 智能铺设开启:按标签调用热门列表接口,随机铺设推荐位,T+1 自动更新
|
|
27
27
|
* - 智能铺设关闭:按配置的内容 ID 取数;超过 8 个时分批拉取(每批 8 个),滚动到倒数第二个时触发下一批
|
|
28
28
|
*/
|
|
29
|
-
declare function
|
|
29
|
+
declare function ImageTextRecommendClient(props: ClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export { ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import e from"../../../../utils/get-res-url.mjs";import{pContentBatchGetVideoDetail as t,pContentGetPopularVideoList as n}from"../../../../service/generated/client.mjs";import{
|
|
2
|
+
"use client";import e from"../../../../utils/get-res-url.mjs";import{pContentBatchGetVideoDetail as t,pContentGetPopularVideoList as n}from"../../../../service/generated/client.mjs";import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as r,buildImageTextRecommendChosenTags as i,buildImageTextRecommendRemoteMap as a,buildImageTextRecommendSmartPicked as o,getImageTextRecommendFixedIds as s,getImageTextRecommendLayoutTags as c,resolveImageTextRecommendVideoId as l}from"../../../../hooks/image-text-recommend.mjs";import u from"../../../../assets/images/frame.mjs";import ee from"../../../../assets/images/subscript.mjs";import{useCallback as d,useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";import y from"next/image";import{useTranslations as te}from"next-intl";import ne from"next/link";const b=[];function x(t,n){if(!t||!t.trim())return n;if(t.startsWith(`http`)||t.startsWith(`//`)||t.startsWith(`data:`))return t;let r=e();return r?`${r}${t.startsWith(`/`)?t:`/${t}`}`:t}function S(e){if(e==null)return``;let t=e;return t.img_y||t.media?.img_y||``}function C(e){return e==null?``:e.name||``}function w(e){let t=e,n=t.type;return typeof n==`number`?n:t.is_more_link===!0||Number(t.episode_cnt||t.episode_count||t.episodes?.length||t.links?.length||0)>1?2:1}function T(e){if(!Number.isFinite(e)||e<=0)return``;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return n>0?`${a(n)}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}function E(e,t){let n=e,r=Number(n.episode_cnt??0);if(!Number.isFinite(r)||r<=0)return``;let i=n.update_status;return t(r,i===0||i===`0`)}function D(e,t,n){return e?w(e)===2&&n?E(e,n):T(Number(e.duration??e.detail?.duration??0)):``}function O(e,t){if(!(e??``).trim())return``;let n=encodeURIComponent((t??``).trim()||``);return`/video/${e.trim()}/${n}/episode/1`}function re(e){if(!e)return``;let t=e,n=Number(t.static?.browse_cnt??0);if(!Number.isFinite(n)||n<=0)return``;if(n>=1e6){let e=(n/1e6).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}M`:`${e}M`}if(n>=1e3){let e=(n/1e3).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}k`:`${e}k`}return Math.floor(n).toString()}function k(){let e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function A(e){let{title:w,items:T=b,commonPlayCount:E,commonEpisodes:A,layout:j,allEpisodesText:M,mode:N=`renderer`,initialRemoteMap:P,initialSmartList:F,initialLoadedBatchIndex:I,initialDataFromServer:L}=e,R=te(`components.biz.business.imageTextRecommend`),z=N===`editor`,[B,V]=h(L&&P!=null?P:{}),[H,U]=h(L&&F!=null?F:[]),[W,G]=h(L&&I!=null?I:0),K=m(null),q=!!j?.enabled,J=p(()=>c(j),[j]),Y=T?.length??0,X=p(()=>s(T,q),[q,T]),Z=p(()=>X.length>0?Math.ceil(X.length/r):0,[X.length]),Q=d((e,t)=>R(t?`updatedTo`:`allEpisodes`,{count:e}),[R]),$=d(async(e,n)=>{if(e.length===0)return;let r=a((await t({ids:e})).data?.videos??[]);V(e=>n?{...e,...r}:r)},[]);f(()=>{if(z||L||!T||T.length===0)return;let e=!1;async function t(){if(X.length===0){e||(V({}),G(0));return}if(X.length<=r){await $(X,!1),e||G(1);return}await $(X.slice(0,r),!1),e||G(1)}async function a(){let t=i(J,Y),r=(await n({page_size:Math.max(20,Y*10),tags:t.length?Array.from(new Set(t)):void 0})).data?.videos??[];e||U(o(r,t,Y))}return(async()=>{try{q?await a():await t()}catch{e||(V({}),U([]),G(0))}})(),()=>{e=!0}},[z,L,q,T,J,Y,X,$]),f(()=>{if(z||q||X.length<=r||W<1||W>=Z)return;let e=K.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;if(!t?.isIntersecting)return;let n=W,i=n*r,a=X.slice(i,i+r);a.length!==0&&($(a,!0),G(n+1))},{root:null,rootMargin:`0px`,threshold:0});return t.observe(e),()=>t.disconnect()},[z,q,X,W,Z,$]),f(()=>{if(z||!q||Y<=0)return;let e,t=!1;function r(){e=window.setTimeout(()=>{let e=i(J,Y);n({page_size:Math.max(20,Y*10),tags:e.length?Array.from(new Set(e)):void 0}).then(n=>{t||U(o(n.data?.videos??[],e,Y))}).catch(()=>{t||U([])}).finally(()=>{t||r()})},k())}return r(),()=>{t=!0,e!==void 0&&window.clearTimeout(e)}},[z,q,J,Y]);let ie=p(()=>!T||T.length===0?b:T.map((e,t)=>{let n=String(e?.contentId??``).trim(),r=q?H[t]:n?B[n]:void 0,i=(e?.title??``).trim()||(r?C(r):``),a=(e?.cover??``).trim()||(e?.useVideoPoster?S(r):``),o=(e?.contentDescription??``).trim(),s=D(r,M,Q),c=re(r);return{...e,contentId:n||(r?l(r):``),title:i,cover:a,contentDescription:o,episodeOrDurationText:s,playCountText:c}}),[M,Q,q,T,B,H]);if(!T||T.length===0)return null;let ae=!q&&X.length>r&&W>=1&&W<Z?W*r-2:-1;return v(`div`,{className:z?`bg-bg1 px-3 py-3 pointer-events-none`:`bg-bg1 px-3 py-3`,children:[w&&_(`div`,{className:`mb-3 flex items-center justify-between`,children:_(`h2`,{className:`text-[18px] font-bold text-text1 leading-[26px]`,children:w})}),_(`div`,{className:`flex overflow-x-auto pb-2 scrollbar-hide space-x-2`,children:ie.map((e,t)=>{let n=q?E:e.showPlayCount??!1,r=(e.playCountText??``).trim(),i=r!==``,a=q?A:e.showEpisodes??!1,o=(e.episodeOrDurationText??``).trim(),s=a&&o!==``,c=N===`renderer`?O(e.contentId??``,e.title??``):``,l=v(g,{children:[v(`div`,{className:`relative aspect-[116.67/155.56] rounded-lg overflow-hidden bg-bg2`,children:[z||e.cover?_(y,{src:x(e.cover,u),alt:e.title??``,fill:!0,sizes:`116.67px`,className:`object-cover text-[10px] text-text3`,unoptimized:!0}):_(`div`,{className:`w-full h-full flex items-center justify-center text-text3 text-xs`,children:R(`noCover`)}),!q&&(e.badge??``).trim()?_(`div`,{className:`absolute top-0 right-0 w-8 h-8`,children:_(y,{src:(e.badge??``).trim()||ee,alt:``,fill:!0,sizes:`32px`,className:`object-contain object-right-top`,unoptimized:!0})}):null,v(`div`,{className:`absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent pb-1 pt-3 px-1 flex justify-between items-center gap-1`,children:[_(`div`,{className:`flex items-center min-w-0 shrink`,children:n&&i?v(`div`,{className:`flex items-center gap-1 rounded bg-overlay px-1 py-0`,children:[_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`10`,viewBox:`0 0 12 10`,fill:`none`,className:`shrink-0`,"aria-hidden":!0,children:_(`path`,{d:`M7.56 5.18437L5.013 6.56737C4.893 6.63337 4.761 6.66937 4.638 6.66937C4.269 6.66937 4.002 6.38737 4.002 5.99737V3.28237C4.002 2.89237 4.269 2.61037 4.638 2.61037C4.764 2.61037 4.893 2.64637 5.013 2.70937L7.572 4.09237C7.803 4.21837 7.938 4.41637 7.938 4.63237C7.938 4.85137 7.8 5.05537 7.56 5.18437ZM9.807 9.27637L2.133 8.52937C0.954 8.52937 0 7.57537 0 6.39637V2.79937C0 1.62037 0.954 0.666368 2.133 0.666368L9.81 0.000367165C10.989 0.000367165 11.943 0.954367 11.943 2.13337V7.14337C11.9422 7.70935 11.7168 8.25188 11.3163 8.65181C10.9158 9.05174 10.373 9.27637 9.807 9.27637ZM10.875 2.13337C10.875 1.99351 10.8475 1.85502 10.7939 1.72581C10.7404 1.5966 10.662 1.47919 10.5631 1.3803C10.4642 1.2814 10.3468 1.20296 10.2176 1.14944C10.0883 1.09591 9.94986 1.06837 9.81 1.06837L2.133 1.73437C1.99314 1.73437 1.85465 1.76191 1.72544 1.81544C1.59623 1.86896 1.47883 1.9474 1.37993 2.0463C1.28104 2.14519 1.20259 2.2626 1.14907 2.39181C1.09555 2.52102 1.068 2.65951 1.068 2.79937V6.39637C1.068 6.67882 1.1802 6.94971 1.37993 7.14944C1.57966 7.34916 1.85054 7.46137 2.133 7.46137L9.807 8.20837C9.94686 8.20837 10.0853 8.18082 10.2146 8.1273C10.3438 8.07378 10.4612 7.99533 10.5601 7.89644C10.659 7.79754 10.7374 7.68014 10.7909 7.55093C10.8445 7.42171 10.872 7.28323 10.872 7.14337V2.13337H10.875Z`,fill:`white`})}),_(`span`,{className:`text-white text-[12px] leading-[20px]`,children:r})]}):null}),_(`div`,{className:`flex items-center shrink-0`,children:s?_(`span`,{className:`text-white text-[12px] leading-[20px]`,children:o}):null})]})]}),_(`div`,{className:`mt-2 py-2`,children:_(`h3`,{className:`text-[16px] text-text1 truncate font-bold leading-[24px]`,children:e.title})})]});return _(`div`,{ref:t===ae?K:void 0,className:`flex-shrink-0 w-[116.67px]`,children:c?_(ne,{href:c,className:`block rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,children:l}):l},t)})})]})}export{A as ImageTextRecommendClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { imageTextRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps } from "./client.mjs";
|
|
4
|
+
import { ImageTextRecommendServer } from "./server.mjs";
|
|
5
|
+
import { imageTextRecommendMaterial } from "./material.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { ImageTextRecommendClient } from "./client.mjs";
|
|
5
5
|
import "../../../../utils.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { ImageTextRecommendServer } from "./server.mjs";
|
|
7
7
|
import * as zod from "zod";
|
|
8
8
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
9
|
|
|
10
10
|
//#region components/biz/business/image-text-recommend/material.d.ts
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 图文推荐物料定义
|
|
13
13
|
*/
|
|
14
|
-
declare const
|
|
14
|
+
declare const imageTextRecommendMaterial: DefineMaterialOption<typeof ImageTextRecommendServer, typeof ImageTextRecommendClient, zod.ZodObject<{
|
|
15
15
|
title: zod.ZodString & SchemaHasDefaultValue;
|
|
16
16
|
moduleCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
17
17
|
layout: zod.ZodObject<{
|
|
@@ -37,6 +37,6 @@ declare const videoHorizontalListMaterial: DefineMaterialOption<typeof VideoHori
|
|
|
37
37
|
renderer: "renderer";
|
|
38
38
|
editor: "editor";
|
|
39
39
|
}>>;
|
|
40
|
-
}, zod_v4_core0.$strip>, "
|
|
40
|
+
}, zod_v4_core0.$strip>, "image-text-recommend", "内容组件">;
|
|
41
41
|
//#endregion
|
|
42
|
-
export {
|
|
42
|
+
export { imageTextRecommendMaterial };
|
|
@@ -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{ImageTextRecommendClient as t}from"./client.mjs";import{imageTextRecommendInspectorPropsSchema as n}from"./schema.mjs";import{ImageTextRecommendServer as r}from"./server.mjs";const i=e({type:`image-text-recommend`,name:`图文推荐`,icon:`/static/components-thumb/search_recommend_media.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as imageTextRecommendMaterial};
|
|
@@ -5,9 +5,9 @@ import { z } from "zod";
|
|
|
5
5
|
|
|
6
6
|
//#region components/biz/business/image-text-recommend/schema.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 图文推荐物料属性定义
|
|
9
9
|
*/
|
|
10
|
-
declare const
|
|
10
|
+
declare const imageTextRecommendInspectorPropsSchema: z.ZodObject<{
|
|
11
11
|
title: z.ZodString & SchemaHasDefaultValue;
|
|
12
12
|
moduleCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
13
13
|
layout: z.ZodObject<{
|
|
@@ -35,4 +35,4 @@ declare const videoHorizontalListInspectorPropsSchema: z.ZodObject<{
|
|
|
35
35
|
}>>;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
//#endregion
|
|
38
|
-
export {
|
|
38
|
+
export { imageTextRecommendInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineNumberPropSchema as n,defineObjectPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a}from"../../../../utils/schema/schema.mjs";import{z as o}from"zod";const s=o.object({contentId:a({label:`推荐位内容`,defaultValue:``}),title:a({label:`推荐位内容名称`,defaultValue:`视频标题`}),contentDescription:a({label:`内容说明简介`,defaultValue:``}),cover:a({label:`推荐位封面`,defaultValue:``}),useVideoPoster:i({label:`沿用视频海报`,defaultValue:!0}),showPlayCount:i({label:`播放量显示`,defaultValue:!1}),showEpisodes:i({label:`集数展示`,defaultValue:!0}),badge:a({label:`推荐位角标`,defaultValue:``,description:`角标图片地址,可通过低代码平台配置上传;留空则使用默认角标图`})}),c=t({title:a({label:`推荐位名称`,defaultValue:`推荐视频`}),moduleCount:n({label:`推荐模块数`,defaultValue:1}),layout:r({enabled:i({label:`智能铺设`,defaultValue:!1}),tags:e(o.string(),{label:`取数范围标签`,defaultValue:[`电影`]})},{label:`组件铺设`,defaultValue:{enabled:!1,tags:[`电影`]}}),commonPlayCount:i({label:`通用播放量`,defaultValue:!0}),commonEpisodes:i({label:`通用集数`,defaultValue:!0}),items:e(s,{label:`推荐位模块`,defaultValue:[{contentId:``,title:`视频标题 1`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``},{contentId:``,title:`视频标题 2`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``},{contentId:``,title:`视频标题 3`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``}]})});export{c as
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineNumberPropSchema as n,defineObjectPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a}from"../../../../utils/schema/schema.mjs";import{z as o}from"zod";const s=o.object({contentId:a({label:`推荐位内容`,defaultValue:``}),title:a({label:`推荐位内容名称`,defaultValue:`视频标题`}),contentDescription:a({label:`内容说明简介`,defaultValue:``}),cover:a({label:`推荐位封面`,defaultValue:``}),useVideoPoster:i({label:`沿用视频海报`,defaultValue:!0}),showPlayCount:i({label:`播放量显示`,defaultValue:!1}),showEpisodes:i({label:`集数展示`,defaultValue:!0}),badge:a({label:`推荐位角标`,defaultValue:``,description:`角标图片地址,可通过低代码平台配置上传;留空则使用默认角标图`})}),c=t({title:a({label:`推荐位名称`,defaultValue:`推荐视频`}),moduleCount:n({label:`推荐模块数`,defaultValue:1}),layout:r({enabled:i({label:`智能铺设`,defaultValue:!1}),tags:e(o.string(),{label:`取数范围标签`,defaultValue:[`电影`]})},{label:`组件铺设`,defaultValue:{enabled:!1,tags:[`电影`]}}),commonPlayCount:i({label:`通用播放量`,defaultValue:!0}),commonEpisodes:i({label:`通用集数`,defaultValue:!0}),items:e(s,{label:`推荐位模块`,defaultValue:[{contentId:``,title:`视频标题 1`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``},{contentId:``,title:`视频标题 2`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``},{contentId:``,title:`视频标题 3`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``}]})});export{c as imageTextRecommendInspectorPropsSchema};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { ImageTextRecommendProps } from "./client.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region components/biz/business/image-text-recommend/server.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 图文推荐物料组件 - 服务端部分
|
|
8
8
|
* 负责初次数据请求(与客户端共享同一套 schema 配置)、国际化文案预取和属性透传。
|
|
9
9
|
* 关闭智能铺设时超过 8 条的「触底加载下一批」仍在客户端发起。
|
|
10
10
|
*/
|
|
11
|
-
declare function
|
|
11
|
+
declare function ImageTextRecommendServer(props: ImageTextRecommendProps): Promise<react_jsx_runtime0.JSX.Element>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { ImageTextRecommendServer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{pContentBatchGetVideoDetail as e,pContentGetPopularVideoList as t}from"../../../../service/generated/client.mjs";import{
|
|
2
|
+
import{pContentBatchGetVideoDetail as e,pContentGetPopularVideoList as t}from"../../../../service/generated/client.mjs";import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as n,buildImageTextRecommendChosenTags as r,buildImageTextRecommendRemoteMap as i,buildImageTextRecommendSmartPicked as a,getImageTextRecommendFixedIds as o,getImageTextRecommendLayoutTags as s}from"../../../../hooks/image-text-recommend.mjs";import{ImageTextRecommendClient as c}from"./client.mjs";import{jsx as l}from"react/jsx-runtime";import{getTranslations as u}from"next-intl/server";const d=[];async function f(f){let{mode:p=`renderer`,items:m=d,layout:h,...g}=f,_,v,y,b=!1,x=``,S=``;try{let e=await u(`components.biz.business.imageTextRecommend`);x=e.raw(`allEpisodes`),S=e.raw(`updatedTo`)}catch{}let C=!!h?.enabled,w=o(m,C),T=s(h),E=m?.length??0;if(p===`renderer`&&m?.length)try{if(C){let e=r(T,E);v=a((await t({page_size:Math.max(20,E*10),tags:e.length?Array.from(new Set(e)):void 0})).data?.videos??[],e,E),_={},y=0,b=!0}else w.length>0&&(_=i((await e({ids:w.length<=n?w:w.slice(0,n)})).data?.videos??[]),v=[],y=1,b=!0)}catch{b=!1}return l(c,{...g,items:m,layout:h,mode:p,allEpisodesText:x,updatedToText:S,initialRemoteMap:_,initialSmartList:v,initialLoadedBatchIndex:y,initialDataFromServer:b})}export{f as ImageTextRecommendServer};
|
|
@@ -52,10 +52,10 @@ import { schema as schema$11 } from "./home-recommend/home-recommend-waterfall/s
|
|
|
52
52
|
import { HomeRecommendWaterfall } from "./home-recommend/home-recommend-waterfall/server.mjs";
|
|
53
53
|
import { homeRecommendWaterfallMaterial } from "./home-recommend/home-recommend-waterfall/material.mjs";
|
|
54
54
|
import "./home-recommend/index.mjs";
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
55
|
+
import { imageTextRecommendInspectorPropsSchema } from "./image-text-recommend/schema.mjs";
|
|
56
|
+
import { ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps } from "./image-text-recommend/client.mjs";
|
|
57
|
+
import { ImageTextRecommendServer } from "./image-text-recommend/server.mjs";
|
|
58
|
+
import { imageTextRecommendMaterial } from "./image-text-recommend/material.mjs";
|
|
59
59
|
import "./image-text-recommend/index.mjs";
|
|
60
60
|
import { marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
|
|
61
61
|
import { MarqueeClient, MarqueeProps } from "./marquee/client.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
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{useMemo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{usePathname as o,useRouter as s}from"next/navigation";const c=[];function l(l){let{items:u=c,mode:d=`renderer`}=l,f=s(),p=o(),m=r(()=>d===`editor`?0:u.findIndex(e=>!!(e.domainId===`home`&&p===`/`||e.domainId===`mine`&&p.includes(`/mine`))),[u,p,d]),h=e=>{if(d!==`editor`)if(e.configType
|
|
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{useMemo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{usePathname as o,useRouter as s}from"next/navigation";const c=[];function l(l){let{items:u=c,mode:d=`renderer`}=l,f=s(),p=o(),m=r(()=>d===`editor`?0:u.findIndex(e=>!!(e.domainId===`home`&&p===`/`||e.domainId===`mine`&&p.includes(`/mine`))),[u,p,d]),h=e=>{if(d!==`editor`)if(e.configType===1)switch(e.functionPageType){case`搜索`:f.push(`/search`);break;case`个人中心`:f.push(`/user/mine`);break;case`内容列表`:f.push(`/video-list?tags=${e.tags}&title=${e.title}`);break;default:f.push(`/`)}else f.push(`/domain/category/${e.categoryName}`)};return!u||u.length===0?null:i(t,{className:`fixed bottom-0 left-0 right-0 bg-bg1 border-t border-line safe-area-bottom z-50`,children:i(t,{className:`flex h-[50px] items-center justify-around`,children:u.map((r,o)=>{let s=m===o,c=r.icon;return s&&r.activeIcon&&(c=r.activeIcon),a(t,{className:`flex flex-col items-center justify-center flex-1 cursor-pointer`,onClick:h,children:[i(t,{className:`relative w-6 h-6`,children:c?i(e,{src:c,alt:r.label,fill:!0,className:`object-contain`}):i(t,{className:`w-full h-full rounded-sm ${s?`bg-theme5`:`bg-text3`}`})}),i(n,{className:`text-[10px] mt-1 truncate max-w-full px-1 ${s?`text-theme5 font-medium`:`text-text3`}`,children:r.label})]},o)})})})}export{l as TabBarClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{TabBarClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";async function n(n){let{mode:r=`renderer`,...i}=n;return t(e,{...i,mode:r})}export{n as TabBarServer};
|
|
2
|
+
import{TabBarClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";async function n(n){console.log(`TabBarServer props`,n);let{mode:r=`renderer`,...i}=n;return t(e,{...i,mode:r})}export{n as TabBarServer};
|
|
@@ -8,7 +8,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
8
8
|
/** buttonVariants 工具定义。 */
|
|
9
9
|
declare const buttonVariants: (props?: ({
|
|
10
10
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
11
|
-
size?: "default" | "
|
|
11
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
13
|
/** Button 组件属性。 */
|
|
14
14
|
type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import NextImage from "next/image";
|
|
5
5
|
|
|
6
6
|
//#region components/ui/image.d.ts
|
|
7
7
|
/** BaseImageProps 属性定义。 */
|
|
8
|
-
type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof
|
|
8
|
+
type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof NextImage>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
|
|
9
9
|
type CommonImageProps = BaseImageProps & {
|
|
10
10
|
/** 图片地址,支持普通 URL、默认资源路径和加密地址。 */src: string; /** 图片替代文本。 */
|
|
11
11
|
alt?: string; /** 图片类名。 */
|
|
@@ -27,6 +27,6 @@ type ImagePropsWithSize = CommonImageProps & {
|
|
|
27
27
|
/** ImageProps 属性定义。 */
|
|
28
28
|
type ImageProps = ImagePropsWithFill | ImagePropsWithSize;
|
|
29
29
|
/** 图片组件:支持 bnc 解密、默认资源域名拼接与错误占位。 */
|
|
30
|
-
declare function Image
|
|
30
|
+
declare function Image(props: ImageProps): react_jsx_runtime0.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { BaseImageProps, CommonImageProps, Image
|
|
32
|
+
export { BaseImageProps, CommonImageProps, Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { ContentShowVideoInfo, ContentVideoDetail } from "../types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region hooks/image-text-recommend.d.ts
|
|
5
|
+
type ImageTextRecommendAnyVideo = ContentShowVideoInfo | ContentVideoDetail;
|
|
6
|
+
/** 关闭智能铺设时,按 id 批量拉取的每批数量 */
|
|
7
|
+
declare const IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE = 8;
|
|
8
|
+
declare function resolveImageTextRecommendVideoId(item: ImageTextRecommendAnyVideo | undefined): string;
|
|
9
|
+
declare function getImageTextRecommendLayoutTags(layout: {
|
|
10
|
+
tags?: string[];
|
|
11
|
+
} | undefined): string[];
|
|
12
|
+
declare function buildImageTextRecommendChosenTags(tags: string[], count: number): string[];
|
|
13
|
+
declare function buildImageTextRecommendSmartPicked(list: ContentShowVideoInfo[], chosenTags: string[], targetCount: number): ContentShowVideoInfo[];
|
|
14
|
+
declare function getImageTextRecommendFixedIds(items: unknown[] | undefined, isSmartEnabled: boolean): string[];
|
|
15
|
+
declare function buildImageTextRecommendRemoteMap(rawVideos: ImageTextRecommendAnyVideo[]): Record<string, ImageTextRecommendAnyVideo | undefined>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, ImageTextRecommendAnyVideo, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
const e=8;function t(e){if(e==null)return``;let t=e;return t.id||t.content_id||t.video_id||t.mid||``}function n(e){return!e||!Array.isArray(e.tags)?[]:e.tags.map(e=>String(e).trim()).filter(Boolean)}function r(e){for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}function i(e,t){let n=[...e];return r(n),n.slice(0,Math.max(0,t))}function a(e,t){if(t<=0||!e.length)return[];if(e.length>=t)return i(e,t);let n=[];for(let t of e)n.push(t);for(;n.length<t;){let t=e[Math.floor(Math.random()*e.length)];n.push(t)}return r(n),n}function o(e,t){return(e.tags??[]).some(e=>(e.name??``).trim()===t)}function s(e,n,r){let i=new Set,a=[];for(let s=0;s<r;s++){let r=n[s]??``,c=r?e.filter(e=>!i.has(t(e))&&o(e,r)):[],l=c.length?c:e.filter(e=>!i.has(t(e))),u=l.length?l[Math.floor(Math.random()*l.length)]:void 0;u&&(i.add(t(u)),a.push(u))}return a}function c(e,t){return t||!e?.length?[]:e.map(e=>String(e?.contentId??``).trim()).filter(Boolean)}function l(e){let n={};for(let r of e){let e=r,i=t(e);i&&(n[i]=e),e.content_id&&e.content_id!==i&&(n[e.content_id]=e)}return n}export{e as
|
|
2
|
+
const e=8;function t(e){if(e==null)return``;let t=e;return t.id||t.content_id||t.video_id||t.mid||``}function n(e){return!e||!Array.isArray(e.tags)?[]:e.tags.map(e=>String(e).trim()).filter(Boolean)}function r(e){for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}function i(e,t){let n=[...e];return r(n),n.slice(0,Math.max(0,t))}function a(e,t){if(t<=0||!e.length)return[];if(e.length>=t)return i(e,t);let n=[];for(let t of e)n.push(t);for(;n.length<t;){let t=e[Math.floor(Math.random()*e.length)];n.push(t)}return r(n),n}function o(e,t){return(e.tags??[]).some(e=>(e.name??``).trim()===t)}function s(e,n,r){let i=new Set,a=[];for(let s=0;s<r;s++){let r=n[s]??``,c=r?e.filter(e=>!i.has(t(e))&&o(e,r)):[],l=c.length?c:e.filter(e=>!i.has(t(e))),u=l.length?l[Math.floor(Math.random()*l.length)]:void 0;u&&(i.add(t(u)),a.push(u))}return a}function c(e,t){return t||!e?.length?[]:e.map(e=>String(e?.contentId??``).trim()).filter(Boolean)}function l(e){let n={};for(let r of e){let e=r,i=t(e);i&&(n[i]=e),e.content_id&&e.content_id!==i&&(n[e.content_id]=e)}return n}export{e as IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE,a as buildImageTextRecommendChosenTags,l as buildImageTextRecommendRemoteMap,s as buildImageTextRecommendSmartPicked,c as getImageTextRecommendFixedIds,n as getImageTextRecommendLayoutTags,t as resolveImageTextRecommendVideoId};
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, ImageTextRecommendAnyVideo, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId } from "./hooks/image-text-recommend.mjs";
|
|
2
3
|
import { HydrationBoundary, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem } from "./hooks/query/hydration-boundary.mjs";
|
|
3
4
|
import { useDeleteRequest, useMutation, usePaginated, usePrefetchQuery, useRefetchQuery, useRequest, useUpdateRequest } from "./hooks/query/use-query.mjs";
|
|
4
5
|
import { AuthFields, useAuth, useCloseLogin, useExpireTime, useIsLoggedIn, useLoginModalOpen, useLogout, useOpenLogin, useOpenLoginAsync, useOpenResetPassword, useRequireLogin, useSetAuthFields, useToken, useUserId, useUserInfo } from "./hooks/use-auth.mjs";
|
|
@@ -9,6 +10,5 @@ import { useKeyboardOpen } from "./hooks/use-keyboard-open.mjs";
|
|
|
9
10
|
import { LikeableItem, useLikeDislike } from "./hooks/use-like-dislike.mjs";
|
|
10
11
|
import { useSearchHistory } from "./hooks/use-search-history.mjs";
|
|
11
12
|
import { useSticky } from "./hooks/use-sticky.mjs";
|
|
12
|
-
import { VIDEO_HORIZONTAL_LIST_FIXED_BATCH_SIZE, VideoHorizontalListAnyVideo, buildVideoHorizontalListChosenTags, buildVideoHorizontalListRemoteMap, buildVideoHorizontalListSmartPicked, getVideoHorizontalListFixedIds, getVideoHorizontalListLayoutTags, resolveVideoHorizontalListVideoId } from "./hooks/video-horizontal-list.mjs";
|
|
13
13
|
import { useKeepAliveEffect, useKeepAliveState } from "./components/common/keep-scroll-position/index.mjs";
|
|
14
|
-
export { AuthFields, HydrationBoundary, LikeableItem, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem, UseBrowseReportOptions,
|
|
14
|
+
export { AuthFields, HydrationBoundary, IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, ImageTextRecommendAnyVideo, LikeableItem, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem, UseBrowseReportOptions, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId, useAuth, useBrowseReport, useCloseLogin, useDeleteRequest, useExpireTime, useFollow, useFullscreenGestures, useIsLoggedIn, useKeepAliveEffect, useKeepAliveState, useKeyboardOpen, useLikeDislike, useLoginModalOpen, useLogout, useMutation, useOpenLogin, useOpenLoginAsync, useOpenResetPassword, usePaginated, usePrefetchQuery, useRefetchQuery, useRequest, useRequireLogin, useSearchHistory, useSetAuthFields, useSticky, useToken, useUpdateRequest, useUserId, useUserInfo };
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as e,buildImageTextRecommendChosenTags as t,buildImageTextRecommendRemoteMap as n,buildImageTextRecommendSmartPicked as r,getImageTextRecommendFixedIds as i,getImageTextRecommendLayoutTags as a,resolveImageTextRecommendVideoId as o}from"./hooks/image-text-recommend.mjs";import{HydrationBoundary as s}from"./hooks/query/hydration-boundary.mjs";import{useDeleteRequest as c,useMutation as l,usePaginated as u,usePrefetchQuery as d,useRefetchQuery as f,useRequest as p,useUpdateRequest as m}from"./hooks/query/use-query.mjs";import{useAuth as h,useCloseLogin as g,useExpireTime as _,useIsLoggedIn as v,useLoginModalOpen as y,useLogout as b,useOpenLogin as x,useOpenLoginAsync as S,useOpenResetPassword as C,useRequireLogin as w,useSetAuthFields as T,useToken as E,useUserId as D,useUserInfo as O}from"./hooks/use-auth.mjs";import{useBrowseReport as k}from"./hooks/use-browse-report.mjs";import{useFollow as A}from"./hooks/use-follow.mjs";import{useFullscreenGestures as j}from"./hooks/use-fullscreen-gestures.mjs";import{useKeyboardOpen as M}from"./hooks/use-keyboard-open.mjs";import{useLikeDislike as N}from"./hooks/use-like-dislike.mjs";import{useSearchHistory as P}from"./hooks/use-search-history.mjs";import{useSticky as F}from"./hooks/use-sticky.mjs";import{useKeepAliveEffect as I,useKeepAliveState as L}from"./components/common/keep-scroll-position/index.mjs";export{s as HydrationBoundary,e as IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE,t as buildImageTextRecommendChosenTags,n as buildImageTextRecommendRemoteMap,r as buildImageTextRecommendSmartPicked,i as getImageTextRecommendFixedIds,a as getImageTextRecommendLayoutTags,o as resolveImageTextRecommendVideoId,h as useAuth,k as useBrowseReport,g as useCloseLogin,c as useDeleteRequest,_ as useExpireTime,A as useFollow,j as useFullscreenGestures,v as useIsLoggedIn,I as useKeepAliveEffect,L as useKeepAliveState,M as useKeyboardOpen,N as useLikeDislike,y as useLoginModalOpen,b as useLogout,l as useMutation,x as useOpenLogin,S as useOpenLoginAsync,C as useOpenResetPassword,u as usePaginated,d as usePrefetchQuery,f as useRefetchQuery,p as useRequest,w as useRequireLogin,P as useSearchHistory,T as useSetAuthFields,F as useSticky,E as useToken,m as useUpdateRequest,D as useUserId,O as useUserInfo};
|
package/dist/materials.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ import { videoDetailActionsMaterial } from "./components/biz/business/detail/vid
|
|
|
14
14
|
import "./components/biz/business/detail/video-detail-actions/index.mjs";
|
|
15
15
|
import { videoDetailRecommendMaterial } from "./components/biz/business/detail/video-detail-recommend/material.mjs";
|
|
16
16
|
import "./components/biz/business/detail/video-detail-recommend/index.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { imageTextRecommendMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
|
|
18
18
|
import { marqueeMaterial } from "./components/biz/business/marquee/material.mjs";
|
|
19
19
|
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./components/biz/business/profile/profile-header/material.mjs";
|
|
20
20
|
import { profileMainMaterial } from "./components/biz/business/profile/profile-main/material.mjs";
|
|
@@ -33,4 +33,4 @@ import { headerSearchMaterial } from "./components/biz/business/header-search/he
|
|
|
33
33
|
import "./components/biz/business/header-search/index.mjs";
|
|
34
34
|
import { largeFeatureGridMaterial } from "./components/biz/business/large-feature-grid/material.mjs";
|
|
35
35
|
import { shortcutGridMaterial } from "./components/biz/business/shortcut-grid/material.mjs";
|
|
36
|
-
export { BannerCarouselMaterial, channelListMaterial, exampleButtonMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, largeFeatureGridMaterial, marqueeMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial
|
|
36
|
+
export { BannerCarouselMaterial, channelListMaterial, exampleButtonMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, imageTextRecommendMaterial, largeFeatureGridMaterial, marqueeMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial };
|
package/dist/materials.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{floatingBallMaterial as t}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as n}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as r}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{
|
|
2
|
+
import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{floatingBallMaterial as t}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as n}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as r}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{imageTextRecommendMaterial as i}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as a}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as o,profileHeaderMaterialWithDisabledBackground as s}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as c}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as l}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as u}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as d}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as f}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as p}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as m}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as h}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as g}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleMaterial as _}from"./components/biz/business/detail/video-detail-info-title/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as v}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as y}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailRecommendMaterial as b}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as x}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as S}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as C}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as w}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as T}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as E}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as D}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as O}from"./components/biz/business/shortcut-grid/material.mjs";var k=e({BannerCarouselMaterial:()=>m,channelListMaterial:()=>h,exampleButtonMaterial:()=>p,floatingBallMaterial:()=>t,headerAvatarIconMaterial:()=>S,headerAvatarLogoSearchIconMaterial:()=>w,headerAvatarLogoSearchMaterial:()=>C,headerLogoSearchMaterial:()=>T,headerSearchMaterial:()=>E,homeRecommendGridMaterial:()=>n,homeRecommendWaterfallMaterial:()=>r,imageTextRecommendMaterial:()=>i,largeFeatureGridMaterial:()=>D,marqueeMaterial:()=>a,profileHeaderMaterial:()=>o,profileHeaderMaterialWithDisabledBackground:()=>s,profileMainMaterial:()=>c,searchHistoryMaterial:()=>l,searchInputMaterial:()=>u,shortcutGridMaterial:()=>O,tabBarMaterial:()=>d,textRecommendMaterial:()=>f,videoDetailActionsMaterial:()=>x,videoDetailInfoMaterial:()=>g,videoDetailInfoTitleMaterial:()=>_,videoDetailInfoTitleTagsEpisodesMaterial:()=>v,videoDetailPlayerMaterial:()=>y,videoDetailRecommendMaterial:()=>b});export{m as BannerCarouselMaterial,h as channelListMaterial,p as exampleButtonMaterial,t as floatingBallMaterial,S as headerAvatarIconMaterial,w as headerAvatarLogoSearchIconMaterial,C as headerAvatarLogoSearchMaterial,T as headerLogoSearchMaterial,E as headerSearchMaterial,n as homeRecommendGridMaterial,r as homeRecommendWaterfallMaterial,i as imageTextRecommendMaterial,D as largeFeatureGridMaterial,a as marqueeMaterial,k as materials_exports,o as profileHeaderMaterial,s as profileHeaderMaterialWithDisabledBackground,c as profileMainMaterial,l as searchHistoryMaterial,u as searchInputMaterial,O as shortcutGridMaterial,d as tabBarMaterial,f as textRecommendMaterial,x as videoDetailActionsMaterial,g as videoDetailInfoMaterial,_ as videoDetailInfoTitleMaterial,v as videoDetailInfoTitleTagsEpisodesMaterial,y as videoDetailPlayerMaterial,b as videoDetailRecommendMaterial};
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ContentShowVideoInfo, ContentVideoDetail } from "../types.mjs";
|
|
3
|
-
|
|
4
|
-
//#region hooks/video-horizontal-list.d.ts
|
|
5
|
-
type VideoHorizontalListAnyVideo = ContentShowVideoInfo | ContentVideoDetail;
|
|
6
|
-
/** 关闭智能铺设时,按 id 批量拉取的每批数量 */
|
|
7
|
-
declare const VIDEO_HORIZONTAL_LIST_FIXED_BATCH_SIZE = 8;
|
|
8
|
-
declare function resolveVideoHorizontalListVideoId(item: VideoHorizontalListAnyVideo | undefined): string;
|
|
9
|
-
declare function getVideoHorizontalListLayoutTags(layout: {
|
|
10
|
-
tags?: string[];
|
|
11
|
-
} | undefined): string[];
|
|
12
|
-
declare function buildVideoHorizontalListChosenTags(tags: string[], count: number): string[];
|
|
13
|
-
declare function buildVideoHorizontalListSmartPicked(list: ContentShowVideoInfo[], chosenTags: string[], targetCount: number): ContentShowVideoInfo[];
|
|
14
|
-
declare function getVideoHorizontalListFixedIds(items: unknown[] | undefined, isSmartEnabled: boolean): string[];
|
|
15
|
-
declare function buildVideoHorizontalListRemoteMap(rawVideos: VideoHorizontalListAnyVideo[]): Record<string, VideoHorizontalListAnyVideo | undefined>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { VIDEO_HORIZONTAL_LIST_FIXED_BATCH_SIZE, VideoHorizontalListAnyVideo, buildVideoHorizontalListChosenTags, buildVideoHorizontalListRemoteMap, buildVideoHorizontalListSmartPicked, getVideoHorizontalListFixedIds, getVideoHorizontalListLayoutTags, resolveVideoHorizontalListVideoId };
|