@funhub/platform 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/marquee-enter.mjs +2 -0
- package/dist/biz.d.mts +1 -5
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/business/advertisement/popup-ad/client.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/comment/comment-input.mjs +3 -3
- package/dist/components/biz/business/comment/comment-item.mjs +1 -1
- package/dist/components/biz/business/comment/comment-list.mjs +1 -1
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -1
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -1
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-play-count.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +0 -5
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/material.d.mts +1 -1
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +2 -0
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
- package/dist/components/biz/business/search-history/client.mjs +1 -1
- package/dist/components/biz/business/search-input/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/text-recommend/client.mjs +1 -1
- package/dist/components/biz/renderer/renderer.d.mts +1 -1
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -1
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -1
- package/dist/components/common/collection-popup/create-collection-sheet.mjs +1 -1
- package/dist/components/common/collection-popup/index.mjs +1 -1
- package/dist/components/common/follow-button/index.mjs +1 -1
- package/dist/components/common/info-card/card-header.mjs +1 -1
- package/dist/components/common/list/post-list/post-list.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -1
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -1
- package/dist/components/common/list/video-list/video-list.mjs +1 -1
- package/dist/components/common/popup-video/index.mjs +1 -1
- package/dist/components/common/series-episodes/index.mjs +1 -1
- package/dist/components/common/share-popup/share-content.mjs +1 -1
- package/dist/components/common/tab-bar/index.mjs +1 -1
- package/dist/components/common/top-nav-bar/client.mjs +1 -1
- package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -1
- package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +1 -1
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -1
- package/dist/components/pages/collection-add/page.mjs +1 -1
- package/dist/components/pages/collection-create/form.mjs +1 -1
- package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/edit/page.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
- package/dist/components/pages/login/forgot.mjs +1 -1
- package/dist/components/pages/login/index.mjs +1 -1
- package/dist/components/pages/login/login-client.mjs +1 -1
- package/dist/components/pages/login/password.mjs +1 -1
- package/dist/components/pages/login/register.mjs +1 -1
- package/dist/components/pages/login/reset-password.mjs +1 -1
- package/dist/components/pages/login/verify.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/publish/components/header.mjs +1 -1
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -1
- package/dist/components/pages/publish/page-client.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-user.mjs +1 -1
- package/dist/components/pages/search/search-result/shared.mjs +1 -1
- package/dist/components/pages/search/top-header.mjs +1 -1
- package/dist/components/pages/search-result/page-client.mjs +1 -1
- package/dist/components/pages/search-result/search-user.mjs +1 -1
- package/dist/components/pages/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/search-result/shared.mjs +1 -1
- package/dist/components/pages/search-result/top-header.mjs +1 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -1
- package/dist/components/pages/settings/_components/settings.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/pages/video-list/video-list-recommend-item.mjs +1 -1
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/components/ui/sonner.d.mts +1 -1
- package/dist/components/ui/sonner.mjs +1 -1
- package/dist/hooks/use-browse-report.d.mts +13 -0
- package/dist/hooks/use-browse-report.mjs +1 -1
- package/dist/hooks/use-content-operate.mjs +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/materials.d.mts +1 -2
- package/dist/materials.mjs +1 -1
- package/dist/types/safe-information.d.mts +2 -0
- package/dist/utils/common.d.mts +9 -1
- package/dist/utils/common.mjs +1 -1
- package/dist/utils/schema/material.d.mts +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/components/biz/business/hot-recommend/client.d.mts +0 -17
- package/dist/components/biz/business/hot-recommend/client.mjs +0 -2
- package/dist/components/biz/business/hot-recommend/index.d.mts +0 -5
- package/dist/components/biz/business/hot-recommend/material.d.mts +0 -25
- package/dist/components/biz/business/hot-recommend/material.mjs +0 -2
- package/dist/components/biz/business/hot-recommend/schema.d.mts +0 -24
- package/dist/components/biz/business/hot-recommend/schema.mjs +0 -2
- package/dist/components/biz/business/hot-recommend/server.d.mts +0 -11
- package/dist/components/biz/business/hot-recommend/server.mjs +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import*as e from"react";const t=t=>e.createElement(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`path`,{d:`M12.9489 12.364L8.70626 16.6066C8.31573 16.9971 8.31573 17.6303 8.70625 18.0208C9.09677 18.4113 9.72992 18.4113 10.1204 18.0208L15.7773 12.364L10.1204 6.7071C9.72993 6.31658 9.09676 6.31658 8.70624 6.70711C8.31572 7.09763 8.31572 7.73079 8.70625 8.12131L12.9489 12.364Z`,fill:`white`}));export{t as default};
|
package/dist/biz.d.mts
CHANGED
|
@@ -108,10 +108,6 @@ import { HomeRecommendWaterfallClient } from "./components/biz/business/home-rec
|
|
|
108
108
|
import { schema as schema$22 } from "./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";
|
|
109
109
|
import { HomeRecommendWaterfall } from "./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";
|
|
110
110
|
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
|
|
111
|
-
import { hotRecommendInspectorPropsSchema } from "./components/biz/business/hot-recommend/schema.mjs";
|
|
112
|
-
import { HotRecommendClient, HotRecommendProps } from "./components/biz/business/hot-recommend/client.mjs";
|
|
113
|
-
import { HotRecommendServer } from "./components/biz/business/hot-recommend/server.mjs";
|
|
114
|
-
import { hotRecommendMaterial } from "./components/biz/business/hot-recommend/material.mjs";
|
|
115
111
|
import { imageTextRecommendInspectorPropsSchema } from "./components/biz/business/image-text-recommend/schema.mjs";
|
|
116
112
|
import { ImageTextRecommendClient, ImageTextRecommendProps } from "./components/biz/business/image-text-recommend/client.mjs";
|
|
117
113
|
import { ImageTextRecommendServer } from "./components/biz/business/image-text-recommend/server.mjs";
|
|
@@ -182,4 +178,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
|
|
|
182
178
|
import "./components/biz/example/button/index.mjs";
|
|
183
179
|
import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
|
|
184
180
|
import "./components/biz/renderer/index.mjs";
|
|
185
|
-
export { AdProvider, AdProviderProps, AdProviderValue, AdRuntimeProvider, AdRuntimeProviderProps, AdsMatchExtData, AdsMatchQueryOptions, BannerAd, BannerAdInspectorProps, BannerAdItem, BannerAdProps, BannerAdServer, BannerAdStyleSize, 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, 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, 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, FeedAdBadge, FeedAdItemLike, FeedAdPayloadLike, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingAd, FloatingAdItem, FloatingAdProps, FloatingAdServer, 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, 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,
|
|
181
|
+
export { AdProvider, AdProviderProps, AdProviderValue, AdRuntimeProvider, AdRuntimeProviderProps, AdsMatchExtData, AdsMatchQueryOptions, BannerAd, BannerAdInspectorProps, BannerAdItem, BannerAdProps, BannerAdServer, BannerAdStyleSize, 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, 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, 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, FeedAdBadge, FeedAdItemLike, FeedAdPayloadLike, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingAd, FloatingAdItem, FloatingAdProps, FloatingAdServer, 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, 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, IconAd, IconAdInspectorProps, IconAdItem, IconAdProps, IconAdServer, ImageTextRecommendClient, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, PopupAd, PopupAdBaseProps, PopupAdInspectorProps, PopupAdItem, PopupAdProps, PopupAdServer, ProfileHeaderInspectorProps, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputInspectorProps, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarInspectorProps, TabBarItem, TabBarItemConfigType, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextAd, TextAdInspectorProps, TextAdItem, TextAdProps, TextAdServer, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, adaptBannerAdProps, adaptFloatingAdItems, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, bannerAdInspectorDefaultProps, bannerAdInspectorPropsSchema, bannerAdMaterial, bannerAdStyleSizeOptions, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildAdsMatchRequest, buildContentUrl, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, createAdsMatchPrefetchItem, createAdsMatchQueryFn, customStylesToInline, defaultBackground, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingAdInspectorDefaultProps, floatingAdInspectorPropsSchema, floatingAdMaterial, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getAdsMatchQueryKey, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, getFeedAdIcon, getFeedAdJumpUrl, hasMatchedAds, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, iconAdInspectorDefaultProps, iconAdInspectorPropsSchema, iconAdMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, isFeedAdItem, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, parseAdsMatchExtData, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema, popupAdMaterial, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema, searchInputMaterial, sortAdsMatchMaterials, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema, tabBarMaterial, textAdInspectorDefaultProps, textAdInspectorPropsSchema, textAdMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem, useAdProvider };
|
package/dist/biz.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as ne}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as re}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as e}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as t,DataSourceType as n}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as r,customStylesToInline as i,mergeStyles as a}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as o}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as s,transformContentToCardItem as c}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as l}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as u}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as d}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as p}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as m}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as h}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as g}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{adaptBannerAdProps as _,adaptFloatingAdItems as v,adaptIconAdProps as y,adaptPopupAdMaterials as b,adaptTextAdProps as x,buildAdsMatchRequest as S,hasMatchedAds as C,parseAdsMatchExtData as w,sortAdsMatchMaterials as T}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as E,createAdsMatchQueryFn as D,getAdsMatchQueryKey as O}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as k,useAdProvider as A}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as j}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as M,bannerAdInspectorPropsSchema as N,bannerAdStyleSizeOptions as P}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as F}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as I}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as L}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as R,getFeedAdIcon as z,getFeedAdJumpUrl as B,isFeedAdItem as V}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{FloatingAd as H}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{floatingAdInspectorDefaultProps as U,floatingAdInspectorPropsSchema as W}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAdServer as G}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as K}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as q,iconAdInspectorPropsSchema as J}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as Y}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as X}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as ie}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as ae}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as oe,popupAdInspectorPropsSchema as se}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as ce}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as le}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as ue,textAdInspectorPropsSchema as de}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as fe}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as pe}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as me}from"./components/biz/business/advertisement/text-ad/material.mjs";import{defaultProps as he}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as ge}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as _e}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as ve}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as ye}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import be from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as xe}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import Se from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as Z,homeRecommendGridInspectorPropsSchema as Ce}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as we}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as Te}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as Ee}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as De}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as Oe}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as ke}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as Ae,extractDataByComponentType as je}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as Me}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as Ne}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as Pe}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as Fe}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as Ie}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import Le from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as Re}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import ze from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as Be}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import Ve from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as He}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Ue}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import We from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Ge}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Ke}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import qe from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as Je,basicBannerInspectorPropsSchema as Ye}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Xe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as Ze}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import Qe from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as $e}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as et}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import tt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as rt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import it from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as at}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ot}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import st from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as ct}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as lt}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ut from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as dt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as ft}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import $ from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import pt from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as mt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as ht,floatingBallInspectorPropsSchema as gt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as _t}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as vt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as yt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import bt from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ct}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as wt}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Tt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Et}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Dt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Ot from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{HotRecommendClient as kt}from"./components/biz/business/hot-recommend/client.mjs";import{hotRecommendInspectorPropsSchema as At}from"./components/biz/business/hot-recommend/schema.mjs";import{HotRecommendServer as jt}from"./components/biz/business/hot-recommend/server.mjs";import{hotRecommendMaterial as Mt}from"./components/biz/business/hot-recommend/material.mjs";import{ImageTextRecommendClient as Nt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as Pt}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Ft}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as It}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Lt,getDefaultMarqueePeriod as Rt,marqueeInspectorPropsSchema as zt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Bt}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Vt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ht}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ut}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Wt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Gt from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Kt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import qt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Jt,defaultBackground as Yt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Xt,profileHeaderInspectorPropsSchema as Zt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Qt,profileHeaderMaterialWithDisabledBackground as $t}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as en,profileMainCollectTabOptions as tn,profileMainHistoryTabOptions as nn,profileMainLikeTabOptions as rn,profileMainMineTabOptions as an,profileMainProfileTabOptions as on,profileMainTabOptions as sn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as cn}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as ln}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as un}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as dn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as fn}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pn,profileMainInspectorPropsSchema as mn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as hn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as gn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as _n}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as vn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as yn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as bn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as xn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import Sn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Cn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as wn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Tn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as En}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Dn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import On from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as kn}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as An}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import jn from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Mn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Nn}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Pn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Fn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as In}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Ln,searchInputInspectorPropsSchema as Rn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as zn}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Bn}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Vn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as Hn,tabBarInspectorPropsSchema as Un}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Wn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Gn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Kn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as qn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Jn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Yn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as Xn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as Zn,buttonInspectorPropsSchema as Qn}from"./components/biz/example/button/schema.mjs";import{Button as $n}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as er}from"./components/biz/example/button/material.mjs";import{Renderer as tr}from"./components/biz/renderer/renderer.mjs";export{k as AdProvider,j as AdRuntimeProvider,F as BannerAd,I as BannerAdServer,Qe as BasicBanner,l as BasicBannerDefaultData,Xe as BasicBannerMaterialComponent,u as BasicBannerSchema,pt as BasicFeatureGrid,d as BasicFeatureGridDefaultData,f as BasicFeatureGridSchema,p as BasicFullscreen,Le as BasicFullscreenFeed,m as BasicFullscreenFeedDefaultData,Ie as BasicFullscreenFeedSchema,ze as BasicLogo,he as BasicLogoDefaultData,Re as BasicLogoSchema,Gt as BasicNavBar,Ut as BasicNavBarDefaultData,Wt as BasicNavBarSchema,qt as BasicPostCard,Kt as BasicPostCardDefaultData,De as BasicPostCardSchema,Sn as BasicRecommendedUsers,Oe as BasicRecommendedUsersDefaultData,ke as BasicRecommendedUsersSchema,Ve as BasicSearch,Tn as BasicSearchBar,Cn as BasicSearchBarDefaultData,wn as BasicSearchBarSchema,ge as BasicSearchDefaultData,Be as BasicSearchSchema,$n as Button,Xn as ButtonClient,ee as CARD_SPEC_MAP,tt as CardGrid2x3,$e as CardGrid2x3DefaultData,it as CardGrid2x3Infinite,nt as CardGrid2x3InfiniteDefaultData,rt as CardGrid2x3InfiniteSchema,et as CardGrid2x3Schema,st as CardGrid2x4,at as CardGrid2x4DefaultData,ot as CardGrid2x4Schema,ut as CardGrid3x3,ct as CardGrid3x3DefaultData,$ as CardGrid3x3Infinite,dt as CardGrid3x3InfiniteDefaultData,ft as CardGrid3x3InfiniteSchema,lt as CardGrid3x3Schema,Me as CardItemDefaultData,Ne as CardItemSchema,Pe as CardLayoutDefaultData,Fe as CardLayoutSchema,te as CardSpec,ln as CollectTab,_n as CollectTabServer,Ae as ComponentType,t as DataBindingUIMode,n as DataSourceType,Se as DetailSearchBar,_e as DetailSearchBarDefaultData,xe as DetailSearchBarSchema,R as FeedAdBadge,We as FilterSearch,On as FilterSearchBar,En as FilterSearchBarDefaultData,Dn as FilterSearchBarSchema,He as FilterSearchDefaultData,Ue as FilterSearchSchema,H as FloatingAd,G as FloatingAdServer,_t as FloatingBall,mt as FloatingBallClient,bt as FullscreenFeedClient,yt as FullscreenPostFeedDefaultData,h as FullscreenPostFeedSchema,St as FullscreenVideoClient,xt as FullscreenVideoFeedDefaultData,g as FullscreenVideoFeedSchema,un as HistoryTab,vn as HistoryTabServer,Tt as HomeRecommendGrid,Z as HomeRecommendGridDefaultData,Ct as HomeRecommendGridMaterialComponent,we as HomeRecommendGridSchema,Ot as HomeRecommendWaterfall,Q as HomeRecommendWaterfallDefaultData,Et as HomeRecommendWaterfallMaterialComponent,Ee as HomeRecommendWaterfallSchema,kt as HotRecommendClient,jt as HotRecommendServer,Y as IconAd,X as IconAdServer,Nt as ImageTextRecommendClient,Ft as ImageTextRecommendServer,dn as LikeTab,yn as LikeTabServer,Bt as MarqueeClient,Vt as MarqueeServer,ae as PopupAd,ce as PopupAdServer,bn as PublishTab,xn as PublishTabServer,tr as Renderer,Mn as SearchHistoryClient,Pn as SearchHistoryServer,In as SearchInputClient,zn as SearchInputServer,be as SimpleSearch,ve as SimpleSearchDefaultData,ye as SimpleSearchSchema,Vn as TabBarClient,Wn as TabBarServer,qe as TagSearch,jn as TagSearchBar,kn as TagSearchBarDefaultData,An as TagSearchBarSchema,Ge as TagSearchDefaultData,Ke as TagSearchSchema,fe as TextAd,pe as TextAdServer,Kn as TextRecommendClient,Jn as TextRecommendServer,Jt as UserProfileHeaderClient,hn as UserProfileMain,fn as UserProfileMainClient,cn as UserProfileMainShell,_ as adaptBannerAdProps,v as adaptFloatingAdItems,y as adaptIconAdProps,b as adaptPopupAdMaterials,x as adaptTextAdProps,M as bannerAdInspectorDefaultProps,N as bannerAdInspectorPropsSchema,L as bannerAdMaterial,P as bannerAdStyleSizeOptions,Je as basicBannerInspectorDefaultProps,Ye as basicBannerInspectorPropsSchema,Ze as basicBannerMaterial,S as buildAdsMatchRequest,e as buildContentUrl,Zn as buttonInspectorDefaultProps,Qn as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,E as createAdsMatchPrefetchItem,D as createAdsMatchQueryFn,i as customStylesToInline,Yt as defaultBackground,Lt as defaultMarqueePeriod,er as exampleButtonMaterial,je as extractDataByComponentType,U as floatingAdInspectorDefaultProps,W as floatingAdInspectorPropsSchema,K as floatingAdMaterial,ht as floatingBallInspectorDefaultProps,gt as floatingBallInspectorPropsSchema,vt as floatingBallMaterial,O as getAdsMatchQueryKey,ne as getCardSpecConfig,re as getChannelList,Rt as getDefaultMarqueePeriod,z as getFeedAdIcon,B as getFeedAdJumpUrl,C as hasMatchedAds,Z as homeRecommendGridInspectorDefaultProps,Ce as homeRecommendGridInspectorPropsSchema,wt as homeRecommendGridMaterial,Q as homeRecommendWaterfallInspectorDefaultProps,Te as homeRecommendWaterfallInspectorPropsSchema,Dt as homeRecommendWaterfallMaterial,At as hotRecommendInspectorPropsSchema,Mt as hotRecommendMaterial,q as iconAdInspectorDefaultProps,J as iconAdInspectorPropsSchema,ie as iconAdMaterial,Pt as imageTextRecommendInspectorPropsSchema,It as imageTextRecommendMaterial,V as isFeedAdItem,zt as marqueeInspectorPropsSchema,Ht as marqueeMaterial,a as mergeStyles,w as parseAdsMatchExtData,oe as popupAdInspectorDefaultProps,se as popupAdInspectorPropsSchema,le as popupAdMaterial,Xt as profileHeaderInspectorDefaultProps,Zt as profileHeaderInspectorPropsSchema,Qt as profileHeaderMaterial,$t as profileHeaderMaterialWithDisabledBackground,en as profileMainCollectCollectionTabOptions,tn as profileMainCollectTabOptions,nn as profileMainHistoryTabOptions,pn as profileMainInspectorDefaultProps,mn as profileMainInspectorPropsSchema,rn as profileMainLikeTabOptions,gn as profileMainMaterial,an as profileMainMineTabOptions,on as profileMainProfileTabOptions,sn as profileMainTabOptions,Nn as searchHistoryInspectorPropsSchema,Fn as searchHistoryMaterial,Ln as searchInputInspectorDefaultProps,Rn as searchInputInspectorPropsSchema,Bn as searchInputMaterial,T as sortAdsMatchMaterials,Hn as tabBarInspectorDefaultProps,Un as tabBarInspectorPropsSchema,Gn as tabBarMaterial,ue as textAdInspectorDefaultProps,de as textAdInspectorPropsSchema,me as textAdMaterial,qn as textRecommendInspectorPropsSchema,Yn as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,A as useAdProvider};
|
|
2
|
+
import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as ne}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as re}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as e}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as t,DataSourceType as n}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as r,customStylesToInline as i,mergeStyles as a}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as o}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as s,transformContentToCardItem as c}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as l}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as u}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as d}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as p}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as m}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as h}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as g}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{adaptBannerAdProps as _,adaptFloatingAdItems as v,adaptIconAdProps as y,adaptPopupAdMaterials as b,adaptTextAdProps as x,buildAdsMatchRequest as S,hasMatchedAds as C,parseAdsMatchExtData as w,sortAdsMatchMaterials as T}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as E,createAdsMatchQueryFn as D,getAdsMatchQueryKey as O}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as k,useAdProvider as A}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as j}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as M,bannerAdInspectorPropsSchema as N,bannerAdStyleSizeOptions as P}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as F}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as I}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as L}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as R,getFeedAdIcon as z,getFeedAdJumpUrl as B,isFeedAdItem as V}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{FloatingAd as H}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{floatingAdInspectorDefaultProps as U,floatingAdInspectorPropsSchema as W}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAdServer as G}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as K}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as q,iconAdInspectorPropsSchema as J}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as Y}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as X}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as ie}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as ae}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as oe,popupAdInspectorPropsSchema as se}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as ce}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as le}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as ue,textAdInspectorPropsSchema as de}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as fe}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as pe}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as me}from"./components/biz/business/advertisement/text-ad/material.mjs";import{defaultProps as he}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as ge}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as _e}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as ve}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as ye}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import be from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as xe}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import Se from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as Z,homeRecommendGridInspectorPropsSchema as Ce}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as we}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as Te}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as Ee}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as De}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as Oe}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as ke}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as Ae,extractDataByComponentType as je}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as Me}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as Ne}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as Pe}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as Fe}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as Ie}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import Le from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as Re}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import ze from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as Be}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import Ve from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as He}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Ue}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import We from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Ge}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Ke}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import qe from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as Je,basicBannerInspectorPropsSchema as Ye}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Xe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as Ze}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import Qe from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as $e}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as et}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import tt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as rt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import it from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as at}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ot}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import st from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as ct}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as $}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import lt from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as ut}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as dt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import ft from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import pt from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as mt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as ht,floatingBallInspectorPropsSchema as gt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as _t}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as vt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as yt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import bt from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ct}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as wt}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Tt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Et}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Dt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Ot from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as kt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as At}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as jt}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Mt}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Nt,getDefaultMarqueePeriod as Pt,marqueeInspectorPropsSchema as Ft}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as It}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Lt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Rt}from"./components/biz/business/marquee/material.mjs";import{defaultProps as zt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Bt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Vt from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ht}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Ut from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Wt,defaultBackground as Gt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Kt,profileHeaderInspectorPropsSchema as qt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Jt,profileHeaderMaterialWithDisabledBackground as Yt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Xt,profileMainCollectTabOptions as Zt,profileMainHistoryTabOptions as Qt,profileMainLikeTabOptions as $t,profileMainMineTabOptions as en,profileMainProfileTabOptions as tn,profileMainTabOptions as nn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as rn}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as an}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as on}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as sn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as cn}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ln,profileMainInspectorPropsSchema as un}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as dn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as fn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as pn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as mn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as hn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as gn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as _n}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import vn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as yn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as bn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import xn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Sn}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Cn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import wn from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Tn}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as En}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Dn from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as On}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as kn}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as An}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as jn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Mn}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Nn,searchInputInspectorPropsSchema as Pn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Fn}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as In}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Ln}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as Rn,tabBarInspectorPropsSchema as zn}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Bn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Vn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Hn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Un}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Wn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Gn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as Kn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as qn,buttonInspectorPropsSchema as Jn}from"./components/biz/example/button/schema.mjs";import{Button as Yn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as Xn}from"./components/biz/example/button/material.mjs";import{Renderer as Zn}from"./components/biz/renderer/renderer.mjs";export{k as AdProvider,j as AdRuntimeProvider,F as BannerAd,I as BannerAdServer,Qe as BasicBanner,l as BasicBannerDefaultData,Xe as BasicBannerMaterialComponent,u as BasicBannerSchema,pt as BasicFeatureGrid,d as BasicFeatureGridDefaultData,f as BasicFeatureGridSchema,p as BasicFullscreen,Le as BasicFullscreenFeed,m as BasicFullscreenFeedDefaultData,Ie as BasicFullscreenFeedSchema,ze as BasicLogo,he as BasicLogoDefaultData,Re as BasicLogoSchema,Vt as BasicNavBar,zt as BasicNavBarDefaultData,Bt as BasicNavBarSchema,Ut as BasicPostCard,Ht as BasicPostCardDefaultData,De as BasicPostCardSchema,vn as BasicRecommendedUsers,Oe as BasicRecommendedUsersDefaultData,ke as BasicRecommendedUsersSchema,Ve as BasicSearch,xn as BasicSearchBar,yn as BasicSearchBarDefaultData,bn as BasicSearchBarSchema,ge as BasicSearchDefaultData,Be as BasicSearchSchema,Yn as Button,Kn as ButtonClient,ee as CARD_SPEC_MAP,tt as CardGrid2x3,$e as CardGrid2x3DefaultData,it as CardGrid2x3Infinite,nt as CardGrid2x3InfiniteDefaultData,rt as CardGrid2x3InfiniteSchema,et as CardGrid2x3Schema,st as CardGrid2x4,at as CardGrid2x4DefaultData,ot as CardGrid2x4Schema,lt as CardGrid3x3,ct as CardGrid3x3DefaultData,ft as CardGrid3x3Infinite,ut as CardGrid3x3InfiniteDefaultData,dt as CardGrid3x3InfiniteSchema,$ as CardGrid3x3Schema,Me as CardItemDefaultData,Ne as CardItemSchema,Pe as CardLayoutDefaultData,Fe as CardLayoutSchema,te as CardSpec,an as CollectTab,pn as CollectTabServer,Ae as ComponentType,t as DataBindingUIMode,n as DataSourceType,Se as DetailSearchBar,_e as DetailSearchBarDefaultData,xe as DetailSearchBarSchema,R as FeedAdBadge,We as FilterSearch,wn as FilterSearchBar,Sn as FilterSearchBarDefaultData,Cn as FilterSearchBarSchema,He as FilterSearchDefaultData,Ue as FilterSearchSchema,H as FloatingAd,G as FloatingAdServer,_t as FloatingBall,mt as FloatingBallClient,bt as FullscreenFeedClient,yt as FullscreenPostFeedDefaultData,h as FullscreenPostFeedSchema,St as FullscreenVideoClient,xt as FullscreenVideoFeedDefaultData,g as FullscreenVideoFeedSchema,on as HistoryTab,mn as HistoryTabServer,Tt as HomeRecommendGrid,Z as HomeRecommendGridDefaultData,Ct as HomeRecommendGridMaterialComponent,we as HomeRecommendGridSchema,Ot as HomeRecommendWaterfall,Q as HomeRecommendWaterfallDefaultData,Et as HomeRecommendWaterfallMaterialComponent,Ee as HomeRecommendWaterfallSchema,Y as IconAd,X as IconAdServer,kt as ImageTextRecommendClient,jt as ImageTextRecommendServer,sn as LikeTab,hn as LikeTabServer,It as MarqueeClient,Lt as MarqueeServer,ae as PopupAd,ce as PopupAdServer,gn as PublishTab,_n as PublishTabServer,Zn as Renderer,On as SearchHistoryClient,An as SearchHistoryServer,Mn as SearchInputClient,Fn as SearchInputServer,be as SimpleSearch,ve as SimpleSearchDefaultData,ye as SimpleSearchSchema,Ln as TabBarClient,Bn as TabBarServer,qe as TagSearch,Dn as TagSearchBar,Tn as TagSearchBarDefaultData,En as TagSearchBarSchema,Ge as TagSearchDefaultData,Ke as TagSearchSchema,fe as TextAd,pe as TextAdServer,Hn as TextRecommendClient,Wn as TextRecommendServer,Wt as UserProfileHeaderClient,dn as UserProfileMain,cn as UserProfileMainClient,rn as UserProfileMainShell,_ as adaptBannerAdProps,v as adaptFloatingAdItems,y as adaptIconAdProps,b as adaptPopupAdMaterials,x as adaptTextAdProps,M as bannerAdInspectorDefaultProps,N as bannerAdInspectorPropsSchema,L as bannerAdMaterial,P as bannerAdStyleSizeOptions,Je as basicBannerInspectorDefaultProps,Ye as basicBannerInspectorPropsSchema,Ze as basicBannerMaterial,S as buildAdsMatchRequest,e as buildContentUrl,qn as buttonInspectorDefaultProps,Jn as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,E as createAdsMatchPrefetchItem,D as createAdsMatchQueryFn,i as customStylesToInline,Gt as defaultBackground,Nt as defaultMarqueePeriod,Xn as exampleButtonMaterial,je as extractDataByComponentType,U as floatingAdInspectorDefaultProps,W as floatingAdInspectorPropsSchema,K as floatingAdMaterial,ht as floatingBallInspectorDefaultProps,gt as floatingBallInspectorPropsSchema,vt as floatingBallMaterial,O as getAdsMatchQueryKey,ne as getCardSpecConfig,re as getChannelList,Pt as getDefaultMarqueePeriod,z as getFeedAdIcon,B as getFeedAdJumpUrl,C as hasMatchedAds,Z as homeRecommendGridInspectorDefaultProps,Ce as homeRecommendGridInspectorPropsSchema,wt as homeRecommendGridMaterial,Q as homeRecommendWaterfallInspectorDefaultProps,Te as homeRecommendWaterfallInspectorPropsSchema,Dt as homeRecommendWaterfallMaterial,q as iconAdInspectorDefaultProps,J as iconAdInspectorPropsSchema,ie as iconAdMaterial,At as imageTextRecommendInspectorPropsSchema,Mt as imageTextRecommendMaterial,V as isFeedAdItem,Ft as marqueeInspectorPropsSchema,Rt as marqueeMaterial,a as mergeStyles,w as parseAdsMatchExtData,oe as popupAdInspectorDefaultProps,se as popupAdInspectorPropsSchema,le as popupAdMaterial,Kt as profileHeaderInspectorDefaultProps,qt as profileHeaderInspectorPropsSchema,Jt as profileHeaderMaterial,Yt as profileHeaderMaterialWithDisabledBackground,Xt as profileMainCollectCollectionTabOptions,Zt as profileMainCollectTabOptions,Qt as profileMainHistoryTabOptions,ln as profileMainInspectorDefaultProps,un as profileMainInspectorPropsSchema,$t as profileMainLikeTabOptions,fn as profileMainMaterial,en as profileMainMineTabOptions,tn as profileMainProfileTabOptions,nn as profileMainTabOptions,kn as searchHistoryInspectorPropsSchema,jn as searchHistoryMaterial,Nn as searchInputInspectorDefaultProps,Pn as searchInputInspectorPropsSchema,In as searchInputMaterial,T as sortAdsMatchMaterials,Rn as tabBarInspectorDefaultProps,zn as tabBarInspectorPropsSchema,Vn as tabBarMaterial,ue as textAdInspectorDefaultProps,de as textAdInspectorPropsSchema,me as textAdMaterial,Un as textRecommendInspectorPropsSchema,Gn as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,A as useAdProvider};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{prefetchVideoPlayerSrc as t}from"../../../../common/video-player/process-m3u8-cache.mjs";import{useLoginModalStore as n}from"../../../../../store/modules/login-modal-store.mjs";import{BasicFullscreen as r}from"../basic-fullscreen.mjs";import{adaptFeedItemToSafeInformation as i,normalizeToFeedItem as a}from"./adapters.mjs";import o from"./styles.module.mjs";import{BottomInfo as s}from"./bottom-info.mjs";import{PostSlide as ee}from"./post-slide.mjs";import{UserAction as te}from"./user-action.mjs";import{VideoSlide as ne}from"./video-slide.mjs";import{useCallback as c,useEffect as l,useMemo as u,useRef as d,useState as f}from"react";import{Fragment as
|
|
2
|
+
"use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{prefetchVideoPlayerSrc as t}from"../../../../common/video-player/process-m3u8-cache.mjs";import{useLoginModalStore as n}from"../../../../../store/modules/login-modal-store.mjs";import{BasicFullscreen as r}from"../basic-fullscreen.mjs";import{adaptFeedItemToSafeInformation as i,normalizeToFeedItem as a}from"./adapters.mjs";import o from"./styles.module.mjs";import{BottomInfo as s}from"./bottom-info.mjs";import{PostSlide as ee}from"./post-slide.mjs";import{UserAction as te}from"./user-action.mjs";import{VideoSlide as ne}from"./video-slide.mjs";import{useCallback as c,useEffect as l,useMemo as u,useRef as d,useState as f}from"react";import{useParams as p}from"next/navigation";import{Fragment as m,jsx as h,jsxs as g}from"react/jsx-runtime";import _ from"next/dynamic";const re=_(()=>import(`./comment-modal.mjs`),{ssr:!1,loading:()=>null});function v(_){let v=e(),y=p(),{items:b,activeIndex:x,top:S,bottom:ie,videoConfig:ae,userInteracted:C,onUserInteracted:w,onActiveIndexChange:oe,onDataUpdate:se,onOpenComment:T,getNavigationInfo:E,onControlsVisibilityChange:D,onGestureStart:O,onGestureEnd:k,onSwipeCancel:ce,onCustomActionRender:le,onVideoProgressUpdate:ue,currentUserId:de,followIds:fe,onFollowIdsChange:pe,commentContentId:me,onRequireLogin:A,style:he,activeEpisodeId:ge}=_,j=ae;function M(){C||w()}function N(e){M();let t=typeof y?.locale==`string`?`/${y.locale}`:``;v.push(`${t}/profile/${e}`)}let P=c(e=>`${typeof y?.locale==`string`?`/${y.locale}`:``}/feed-series/${e}/episode/1`,[y?.locale]);function F(e){M();let t=P(e);v.push(t)}function I(){if(A){A();return}n.getState().open()}let[L,_e]=f({});function ve(e,t){if(!t)return e;let n=t.static?{...e.static||{},...t.static}:e.static,r=t.author?{...e.author||{},...t.author}:e.author;return{...e,...t,static:n,author:r}}function R(e,t){_e(n=>{let r=n[e]||{},i=t.static?{...r.static||{},...t.static}:r.static,a=t.author?{...r.author||{},...t.author}:r.author;return{...n,[e]:{...r,...t,...i?{static:i}:{},...a?{author:a}:{}}}}),se(e,t)}let[z,ye]=f(null),[B,be]=f(``),[xe,Se]=f(1),[V,H]=f(!1);function Ce(e,t,n){if(M(),T){T(t);return}ye(t),be(e),Se(n),H(!0)}function we(e){let t=e.static?.comment_cnt;t!=null&&B&&R(B,{static:{comment_cnt:t}})}let U=u(()=>{function e(e){return!!e&&typeof e==`object`&&typeof e.kind==`string`&&!!e.originalData}function t(e){return!!e&&typeof e==`object`&&typeof e.content_id==`string`}function n(e){return!!e&&typeof e==`object`&&typeof e.id==`string`&&typeof e.name==`string`}function r(e){let t=Array.isArray(e.medias)?e.medias:[],n=t.map(e=>e?.media_url?e.is_video&&e.cover_image||e.media_url:``).filter(e=>!!e),r=e.content||``,i=r.length>18?`${r.slice(0,18)}...`:r,a={id:e.content_id,mid:e.content_id,name:i,img_y:e.cover_image||``,preview_images:t,description:r,tags:(e.tags||[]).map(e=>({id:e,name:e})),links:[],static:{like_cnt:e.like_count??0,dislike_cnt:e.dislike_count??0,comment_cnt:e.comment_count??0,share_cnt:e.share_count??0,browse_cnt:e.view_count??0,collect_cnt:0},type:e.type,is_liked:!!e.is_liked,is_dislike:!!e.is_dislike,is_collected:!!e.is_collected,is_followed:!!e.is_followed,author:e.author,up_user:e.user_id};return{kind:`post`,id:e.content_id,title:i,content:r,images:n,originalData:a}}function o(e){let t=(Array.isArray(e.preview_images)?e.preview_images:[]).map(e=>e?typeof e==`string`?e:e.is_video?e.cover_image||e.media_url||``:e.media_url||``:``).filter(e=>!!e);return{kind:`post`,id:e.id,title:e.name,content:e.description??``,images:t,originalData:e}}return(b||[]).map(s=>{if(e(s))return s;if(t(s))return r(s);if(n(s)){let e=i(s);return e.type===1&&e.links.length===0?o(e):a(e)}return null}).filter(Boolean)},[b]),W=u(()=>{if(!U.length)return[];let e=Math.max(0,x-1),t=Math.min(U.length-1,x+2),n=[];for(let r=e;r<=t;r+=1){let e=U[r];if(!e||e.kind!==`video`)continue;let t=e.videoUrl||e.hlsList?.[0]?.url||``;t&&n.push(t)}return Array.from(new Set(n))},[x,U]);l(()=>{W.forEach(e=>t(e))},[W]);let G=d(new Set);l(()=>{let e=U[x];if(!e||e.kind!==`video`||Number(e.originalData?.episode_cnt||0)<=1||E(x).onSeriesClick)return;let t=e.originalData?.id||e.id;if(!t)return;let n=P(t);G.current.has(n)||(G.current.add(n),v.prefetch(n))},[x,P,E,U,v]);let K=S??0,q=ie??0,Te={...he,top:`${K}px`,bottom:`${q}px`,height:`calc(100dvh - ${K}px - ${q}px)`},J=d(x),[Ee,Y]=f(!1),[X,Z]=f(!1),[De,Q]=f(!1),$=Ee&&X&&De;return l(()=>{J.current=x,Y(!1),Z(!1),Q(!1)},[x,D]),l(()=>{D?.($)},[$,D]),g(m,{children:[h(r,{items:U,activeIndex:x,userInteracted:C,onUserInteracted:w,onActiveIndexChange:oe,onViewportIndexChange:e=>{J.current=e,Y(!1),Z(!1),Q(!1)},onGestureStart:O,onGestureEnd:k,onSwipeCancel:ce,style:Te,className:`w-full h-full fixed top-0 left-0 overflow-hidden z-[2] touch-none ${o.fullscreenFeed}`,trackClassName:o.feedTrack,itemWrapperClassName:o.feedItem,renderItem:({item:e,index:t,activeIndex:n,isActive:r,isSettledActive:i,shouldMount:a,swipeNext:c})=>{if(!e)return h(`div`,{className:o.emptySlide});let l=Math.abs(t-n)<=1,u=ve(e.originalData,L[e.id]);return g(m,{children:[e.kind===`post`?h(ee,{item:e,isSettledActive:i,shouldMount:a}):e.kind===`video`?h(ne,{item:e,videoConfig:j,isActive:r,isSettledActive:i,shouldMount:a,shouldLoadCover:l,isPaused:V,userInteracted:C,onPlayerInteract:()=>{t===J.current&&X&&Q(!0)},onControlsVisibilityChange:e=>{t===J.current&&Y(e)},onVideoEnded:j?.autoNext?c:void 0,onProgressUpdate:(n,r)=>{t===J.current&&(!X&&n>=.05&&Z(!0),ue?.({id:e.id,currentTime:n,duration:r}))}}):h(`div`,{className:o.emptySlide}),h(te,{information:u,onUpdate:t=>R(e.id,t),onOpenComment:()=>Ce(e.id,u,e.kind===`post`?2:1),onCustomActionRender:le,onUserNavigate:N,currentUserId:de,followIds:fe,onFollowChange:e=>{pe?.(e)},onRequireLogin:I,activeEpisodeId:ge}),r&&h(s,{information:u,isPost:e.kind===`post`,navigation:(()=>{let e=E(t);return(u.episode_cnt??0)>1&&!e.onSeriesClick?{...e,onSeriesClick:()=>F(u.id)}:e})(),isControlsVisible:$,onUserNavigate:N,onNextClick:c})]})}}),!T&&V&&z&&h(re,{open:V,information:z,contentId:me||z.id,content_type:xe,onUpdate:we,onClose:()=>H(!1)})]})}export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{formatCompactCount as e}from"../../../../../utils/common.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{followUser as n}from"../../../../../utils/follow-service.mjs";import{Avatar as r,AvatarImage as i}from"../../../../ui/avatar.mjs";import a from"../../../../../assets/icons/common/collect_nor.mjs";import o from"../../../../../assets/icons/common/collect_sel.mjs";import s from"../../../../../assets/icons/common/heart-like.mjs";import ee from"../../../../../assets/icons/common/heart-unlike.mjs";import c from"../../../../../assets/icons/common/share.mjs";import l from"../../../../../assets/icons/detail/comment.mjs";import u from"../../../../common/interaction-animations.module.mjs";import d from"../../../../ui/legacy/button.mjs";import{useContentOperate as f}from"../../../../../hooks/use-content-operate.mjs";import{toast as p}from"sonner";import{useCallback as m,useEffect as te,useMemo as h,useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{useTranslations as y}from"next-intl";const b=[];function x({information:x,activeEpisodeId:C,onUpdate:w,onOpenComment:T,onCustomActionRender:E,onUserNavigate:D,currentUserId:O,followIds:k=b,onFollowChange:ne,onRequireLogin:A}){let j=y(`components.biz.basics.fullscreenFeed.runtime`),[M,N]=g(!1),[P,F]=g({liked:!1,count:0}),[I,L]=g({collected:!1,count:0}),[R,z]=g(0),[B,V]=g(!1),{isLogin:H,userInfo:U,userId:W}=t(),G=x.author?.user_id||``,K=x.author?.avatar,q=O||W||U?.userId||``,J=x.static?.dislike_cnt||0,{likeAnimation:Y,handleLikeOperate:X,handleShareOperate:re,handleToCollectionOperate:ie}=f({id:x.id,isLike:P.liked,isDislike:!!x.is_dislike,isCollect:I.collected,likeCnt:P.count,dislikeCnt:J,contentType:x.links?.length>0?1:2,animationClasses:{like:u.likeShakeAnimation,dislike:u.dislikeShakeAnimation}});te(()=>{let e=!!x.is_liked,t=Number(x.static?.like_cnt||0);F({liked:e,count:e&&t===0?1:t});let n=!!x.is_collected,r=Number(x.static?.collect_cnt||0);L({collected:n,count:n&&r===0?1:r}),z(x.static?.comment_cnt||0),V(!!x.is_followed)},[x.id,x.is_liked,x.is_collected,x.static?.like_cnt,x.static?.collect_cnt,x.static?.comment_cnt,x.is_followed]);let Z=h(()=>q===G,[G,q]),ae=h(()=>!!B,[B]),Q=t=>e(t),$=()=>H?!0:(A?.(),!1),oe=m(()=>{if(typeof window>`u`)return``;let e=window.location.origin,t=x.id;return t?x.links?.length>0?(t=x.mid||x.id,`${e}/feed-series/${t}/episode/${C||`1`}`):`${e}/post/${t}`:``},[x.id,C,x.links?.length,x.mid]);return v(`div`,{className:`absolute right-3 bottom-5 z-20 flex flex-col items-center gap-4 g-safe-area text-white`,children:[G&&v(`div`,{className:`relative h-[62px] flex flex-col items-center`,children:[_(d,{className:`w-12 h-12 !p-0 rounded-full overflow-hidden cursor-pointer`,onClick:e=>{e.stopPropagation(),G&&D?.(G)},children:_(r,{className:`w-full h-full`,children:_(i,{src:K})})}),!Z&&!ae&&_(d,{onClick:async()=>{if(!M&&$()&&!(!G||!q||Z)){N(!0);try{let e=await n({app_id:0,follower_id:q,followee_id:G});if(e.success){let e=k.includes(G)?k:[...k,G];ne?.(e),w?.({is_followed:!0}),V(!0)}else console.error(`关注失败:`,e.message),p.error(j(`userAction.followFailed`),{description:e.message})}catch(e){console.error(`关注失败:`,e)}finally{N(!1)}}},className:`w-[34px] h-[18px] !p-0 -mt-2 bg-[linear-gradient(73deg,#FD4C5E,#F05D19)] flex items-center justify-center text-xs cursor-pointer relative z-[1]`,children:`+`})]}),v(`div`,{className:`flex flex-col gap-5 items-center`,children:[_(S,{active:P.liked,count:P.count<=0?j(`userAction.like`):Q(P.count),onClick:async()=>{if(!$())return;let e=await X();if(!e)return;let t=e.isLike,n=t&&e.likeCnt===0?1:e.likeCnt,r=e.isDislike??x.is_dislike??!1,i=e.dislikeCnt??J;F({liked:t,count:n}),w?.({is_liked:t,is_dislike:r,static:{...x.static,like_cnt:n,dislike_cnt:i}})},label:j(`userAction.likeAction`),children:P.liked?_(s,{className:`w-full h-full ${Y.animationClass||``}`}):_(ee,{className:`w-full h-full`})}),_(S,{active:!1,count:Q(R),onClick:e=>{if(e.stopPropagation(),!H){A?.();return}T?.()},label:j(`userAction.commentAction`),children:_(l,{className:`w-full h-full`})}),_(S,{active:I.collected,count:Q(I.count),onClick:async()=>{$()&&(ie({currentCollect:I.collected,onUpdate:({isCollect:e})=>{let t=Math.max(0,I.count+(e?1:-1));L({collected:e,count:t}),w?.({is_collected:e,static:{...x.static,collect_cnt:t}})}})||p.error(j(`userAction.loginRequired`)))},label:j(`userAction.collectAction`),children:I.collected?_(o,{className:`w-full h-full`}):_(a,{className:`w-full h-full`})}),_(S,{active:!1,count:j(`userAction.shareAction`),onClick:async()=>{re(({isCollect:e})=>{let t=Math.max(0,I.count+(e?1:-1));L({collected:e,count:t}),w?.({is_collected:e,static:{...x.static,collect_cnt:t}})},{shareUrl:oe()})},label:j(`userAction.shareAction`),children:_(c,{className:`w-full h-full`})}),E?.(x)]})]})}function S({active:e,count:t,onClick:n,children:r}){return v(`div`,{className:`flex flex-col items-center gap-1`,children:[_(d,{onClick:e=>{e.stopPropagation(),n(e)},className:`w-8 h-8 !p-0 !rounded-full flex items-center justify-center transition ${e?`text-theme5`:`text-white`}`,children:r}),_(`span`,{className:`text-xs font-medium text-center min-w-5 drop-shadow`,children:t})]})}export{x as UserAction};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{disablePageScroll as t,enablePageScroll as n,pxToVw as r}from"../../../../../../../utils/helper.mjs";import{trackPageClick as i}from"../../../../../../../utils/tracking.mjs";import{Image as a}from"../../../../../../ui/image.mjs";import{Box as o}from"../../../../../../ui/box.mjs";import{Text as s}from"../../../../../../ui/text.mjs";import c from"../../../../../../ui/link.mjs";import{urlPrefix as l}from"../../../../../../../constants/url-prefix.mjs";import u from"../../../../../../ui/legacy/button.mjs";import{defaultProps as d}from"../defaults/default-props.mjs";import f from"../../../../../../../assets/images/logo.mjs";import{loadHiddenChannelIdsFromStorage as p}from"../../../../../business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs";import{Popover as m}from"../../../../../../ui/legacy/popover.mjs";import{Mask as h}from"../../../../../../ui/mask.mjs";import{clsx as g}from"clsx";import{
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{disablePageScroll as t,enablePageScroll as n,pxToVw as r}from"../../../../../../../utils/helper.mjs";import{trackPageClick as i}from"../../../../../../../utils/tracking.mjs";import{Image as a}from"../../../../../../ui/image.mjs";import{Box as o}from"../../../../../../ui/box.mjs";import{Text as s}from"../../../../../../ui/text.mjs";import c from"../../../../../../ui/link.mjs";import{urlPrefix as l}from"../../../../../../../constants/url-prefix.mjs";import u from"../../../../../../ui/legacy/button.mjs";import{defaultProps as d}from"../defaults/default-props.mjs";import f from"../../../../../../../assets/images/logo.mjs";import{loadHiddenChannelIdsFromStorage as p}from"../../../../../business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs";import{Popover as m}from"../../../../../../ui/legacy/popover.mjs";import{Mask as h}from"../../../../../../ui/mask.mjs";import{clsx as g}from"clsx";import{useEffect as _,useMemo as v,useRef as y,useState as b}from"react";import{usePathname as x}from"next/navigation";import{useIsClient as S}from"foxact/use-is-client";import{jsx as C,jsxs as w}from"react/jsx-runtime";const T={overscrollBehavior:`contain`},E={},D=[];function O(e,t){return t===0?`/`:`${l.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function k(e,t,n){return g(`w-full leading-[58px] px-[20px] text-[16px] text-text2 border-t border-solid border-line1 transition-all duration-150 block`,e===0&&`border-t-0`,t&&`!text-[20px] !text-theme5 !font-bold`,n&&`!text-(--color-theme5)`)}function A(e){let t=e;try{t=decodeURIComponent(e)}catch{t=e}return t.length>1&&t.endsWith(`/`)?t.slice(0,-1):t}function j(e){e.stopPropagation()}function M({props:l=E,styles:g,events:M,data:N=D}){let{logoAlt:P,logoWidth:F,logoHeight:I,popoverPlacement:L,popoverWidth:R,maxHeight:z,itemHeight:B,currentChannelId:V,pageKey:H=`home`,pageName:U=`首页`}={...d,...l},[W,G]=b(!1),K=y(null),q=x(),[J,Y]=b(V??null),X=S(),Z=(e,t)=>{Y(e.id),M?.onChannelChange?.(e,t),setTimeout(()=>{G(!1)},150)};_(()=>{if(V||!q||N.length===0)return;let e=A(q),t=N.find((t,n)=>A(O(t,n))===e);t?Y(t.id):e===`/`&&Y(N[0]?.id||null)},[q,X,N,V]);let Q=v(()=>{if(!X||!W)return N;let e=p();return N.filter(t=>!e.includes(t.id))},[N,X,W]);_(()=>{if(W)return t(),()=>{n()}},[W]);let $=g?e(g,{}):{},ee={width:r(R),maxHeight:r(z),...T};return w(o,{style:$,className:`leading-0 flex items-center`,children:[C(h,{visible:W,onMaskClick:()=>{G(!1)}}),C(m,{placement:L,visible:W,content:C(o,{as:`nav`,className:`overflow-y-auto overscroll-contain`,style:ee,onTouchMove:j,children:Q.map((e,t)=>{let n=O(e,t),i=A(q||``)===A(n);return C(c,{href:n,className:k(t,J===e.id,i),style:{height:r(B)},onClick:()=>Z(e,t),children:e.cn_name},e.id||`channel-${t}`)})}),children:C(s,{ref:K,as:`h1`,className:`flex items-center`,children:C(u,{onClick:()=>{i(H,U,null,`logo`),G(e=>!e),M?.onClick?.()},className:`!m-0 !p-0`,children:C(a,{alt:P,src:typeof f==`string`?f:f.src,width:F,height:I})})},`logo-button`)})]})}export{M as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{trackAdClick as e,trackAdImpression as t,trackAdvertising as n}from"../../../../../utils/tracking.mjs";import{Button as r}from"../../../../ui/button.mjs";import{Image as i}from"../../../../ui/image.mjs";import{Box as a}from"../../../../ui/box.mjs";import{Dialog as o,DialogContent as s}from"../../../../ui/dialog.mjs";import c from"../../../../ui/link.mjs";import{adaptPopupAdMaterials as l,hasMatchedAds as u}from"../ad-match.mjs";import{useAdProvider as d}from"../ad-provider.mjs";import{useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v=[{id:`popup-ad-1`,title:`弹窗广告标题`,jumpUrl:`/search`,materialUrl:`/static/components-resource/banner.png`,desc:`这里是弹窗广告描述`}];function y(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function b({items:b,mode:x=`renderer`,pageKey:S=`home`,pageName:C=`首页`}){let w=d(),T=p(()=>u(w?.matchData)?l(w?.matchData):x===`editor`?y(b,v):b??[],[w?.matchData,x,b]),[E,D]=h(0),[O,k]=h(!1),A=m(null),j=w?.matchData?.advertiseLocationCode||`home_popup`;f(()=>{D(0)},[T]),f(()=>{k(!1)},[E,T]),f(()=>()=>{A.current&&window.clearTimeout(A.current)},[]);let M=T[E];f(()=>{M?.id&&t({page_key:S,page_name:C,ad_slot_key:j,ad_slot_name:`弹窗广告`,ad_id:M.id,ad_type:`pop-ups-600800`})},[M?.id,j,S,C]);function N(){D(e=>e+1)}function P(){O||(k(!0),A.current&&window.clearTimeout(A.current),A.current=window.setTimeout(()=>{A.current=null,N()},260))}function F(e){e||P()}function I(){M?.id&&e({page_key:S,page_name:C,ad_slot_key:j,ad_slot_name:`弹窗广告`,ad_id:M.id,ad_type:`pop-ups-600800`})}function L(){M?.id&&(n({event_type:`close`,advertising_key:j,advertising_name:`弹窗广告`,advertising_id:M.id}),P())}return M?g(o,{open:!0,onOpenChange:F,disablePointerDismissal:!0,children:_(s,{showCloseButton:!1,className:`w-[320px] max-w-[calc(100vw-32px)] border-none bg-transparent p-0 shadow-none`,children:[_(a,{className:`flex flex-col items-center gap-[24px]`,style:{animation:O?`funhub-popup-ad-exit 260ms cubic-bezier(0.4, 0, 0.2, 1) both`:`funhub-popup-ad-enter 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both, funhub-popup-ad-float 3.2s ease-in-out 420ms infinite`,transformOrigin:`center bottom`},children:[g(c,{href:M.jumpUrl,className:`block w-full overflow-hidden rounded-[20px] bg-[#434343]`,style:{boxShadow:`0 18px 48px rgba(0, 0, 0, 0.26)`},onClick:I,children:g(a,{className:`w-full overflow-hidden bg-[#434343]`,children:g(i,{src:M.materialUrl,alt:M.title||`弹窗广告`,width:1200,height:1600,className:`block w-full h-auto`,unoptimized:!0})})}),g(r,{type:`button`,"aria-label":`关闭弹窗广告`,variant:`ghost`,size:`icon-lg`,className:`relative h-[54px] w-[54px] rounded-full border-[3px] border-white bg-transparent p-0 text-white hover:bg-white/8`,onClick:L,style:{animation:O?`funhub-popup-ad-close-exit 260ms ease-out both`:`funhub-popup-ad-close-breathe 2.4s ease-in-out 480ms infinite`},children:_(a,{className:`relative h-[24px] w-[24px]`,children:[g(a,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 rotate-45 rounded-full bg-current`}),g(a,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 -rotate-45 rounded-full bg-current`})]})})]},M.id),g(`style`,{children:`
|
|
3
3
|
@keyframes funhub-popup-ad-enter {
|
|
4
4
|
0% {
|
|
5
5
|
opacity: 0;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{buildContentUrl as e}from"../../../../../utils/helpers/url.mjs";import{mergeStyles as t}from"../../../../../utils/styles/helpers.mjs";import{Image as n}from"../../../../../../ui/image.mjs";import{Box as r}from"../../../../../../ui/box.mjs";import{Carousel as i,CarouselContent as a,CarouselItem as o}from"../../../../../../ui/carousel.mjs";import{Text as s}from"../../../../../../ui/text.mjs";import c from"../../../../../../ui/link.mjs";import{defaultProps as l}from"../defaults/default-props.mjs";import u from"clsx";import{
|
|
2
|
+
"use client";import{buildContentUrl as e}from"../../../../../utils/helpers/url.mjs";import{mergeStyles as t}from"../../../../../utils/styles/helpers.mjs";import{Image as n}from"../../../../../../ui/image.mjs";import{Box as r}from"../../../../../../ui/box.mjs";import{Carousel as i,CarouselContent as a,CarouselItem as o}from"../../../../../../ui/carousel.mjs";import{Text as s}from"../../../../../../ui/text.mjs";import c from"../../../../../../ui/link.mjs";import{defaultProps as l}from"../defaults/default-props.mjs";import u from"clsx";import{useEffect as d,useRef as f,useState as p}from"react";import{useIsClient as m}from"foxact/use-is-client";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _={list:[]};function v({mode:v=`renderer`,props:y=_,styles:b,events:x}){let S=v===`editor`,{autoplay:C=l.autoplay,interval:w=l.interval,loop:T=l.loop,showTitle:E=l.showTitle,showIndicator:D=l.showIndicator,list:O=[]}={...l,...y},[k,A]=p(),[j,M]=p(0),N=m(),P=f(null);if(d(()=>{if(!k||!N)return;let e=()=>{M(k.selectedScrollSnap())};return k.on(`select`,e),e(),()=>{k.off(`select`,e)}},[k,x,N]),d(()=>!C||!k||O.length<=1?void 0:(P.current=setInterval(()=>{k.canScrollNext()?k.scrollNext():T&&k.scrollTo(0)},w),()=>{P.current&&=(clearInterval(P.current),null)}),[C,k,w,T,O.length]),!O||O.length===0)return null;let F=O[j],I=b?t(b,{}):void 0;return h(r,{className:u(`w-full px-[16px]`,S&&`pointer-events-none`),style:I,children:g(r,{className:`relative w-full`,children:[h(i,{setApi:A,opts:{align:`start`,loop:T,skipSnaps:!1,dragFree:!1},className:`w-full`,children:h(a,{className:`ml-0`,children:O.map((t,r)=>h(o,{className:`pl-0`,children:h(c,{href:e({url:``,contentId:t.contentId,contentType:1,title:t.title}),className:u(`block relative w-full overflow-hidden touch-manipulation`,`aspect-[358/166]`),children:h(n,{src:t.coverUrl,alt:t.title||`Banner ${r+1}`,fill:!0,objectFit:`cover`,unoptimized:!0})})},r))})}),(E||D&&O.length>1)&&h(r,{className:`absolute inset-x-0 bottom-0 h-[72px] pointer-events-none`,style:{background:`linear-gradient(180deg, rgba(8, 2, 17, 0) 0%, rgba(8, 2, 17, 0.28) 55%, rgba(8, 2, 17, 0.4) 100%)`}}),E&&F?.title&&h(r,{className:`absolute left-[12px] right-[12px] bottom-[34px] pointer-events-none`,children:h(s,{as:`p`,className:`text-white text-[16px] leading-[22px] font-medium line-clamp-1`,children:F.title})}),D&&O.length>1&&h(r,{className:`absolute left-1/2 -translate-x-1/2 bottom-[16px] flex items-center gap-[4px] pointer-events-auto`,children:O.map((e,t)=>h(`button`,{type:`button`,className:u(`block size-[6px] rounded-full`,t===j?`bg-theme5`:`bg-[rgba(0,0,0,0.6)]`),"aria-label":`跳转到第 ${t+1} 个 Banner`},t))})]})})}export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{Carousel as r,CarouselContent as i,CarouselItem as a}from"../../../ui/carousel.mjs";import{Text as o}from"../../../ui/text.mjs";import s from"../../../ui/link.mjs";import{defaultProps as c}from"./default-props.mjs";import l from"clsx";import{
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{Carousel as r,CarouselContent as i,CarouselItem as a}from"../../../ui/carousel.mjs";import{Text as o}from"../../../ui/text.mjs";import s from"../../../ui/link.mjs";import{defaultProps as c}from"./default-props.mjs";import l from"clsx";import{useEffect as u,useRef as d,useState as f}from"react";import{useIsClient as p}from"foxact/use-is-client";import{jsx as m,jsxs as h}from"react/jsx-runtime";const g={list:[]};function _({mode:_=`renderer`,props:v=g,styles:y,events:b,...x}){let S=_===`editor`,{autoplay:C=c.autoplay,interval:w=c.interval,loop:T=c.loop,showIndicator:E=c.showIndicator,list:D=[]}={...c,...v,...x},[O,k]=f(),[A,j]=f(0),M=p(),N=d(null);if(u(()=>{if(!O||!M)return;let e=()=>{j(O.selectedScrollSnap())};return O.on(`select`,e),e(),()=>{O.off(`select`,e)}},[O,b,M]),u(()=>{if(!(!C||!O||D.length<=1))return N.current=setInterval(()=>{O.canScrollNext()?O.scrollNext():T&&O.scrollTo(0)},w*1e3),()=>{N.current&&=(clearInterval(N.current),null)}},[C,O,w,T,D.length]),!D||D.length===0)return null;let P=D[A],F=y?e(y,{}):void 0,I=P?.title==null?``:String(P.title).trim();return m(n,{className:l(`w-full px-[16px]`,S&&`pointer-events-none`),style:F,children:h(n,{className:`relative w-full overflow-hidden rounded-[8px]`,children:[m(r,{setApi:k,opts:{align:`start`,loop:T,skipSnaps:!1,dragFree:!1},className:`w-full`,children:m(i,{className:`ml-0`,children:D.map((e,n)=>m(a,{className:`pl-0`,children:m(s,{href:e.target,className:l(`block relative w-full overflow-hidden touch-manipulation`,`aspect-[358/166]`),children:m(t,{src:e.coverUrl,alt:e.title||`Banner ${n+1}`,fill:!0,objectFit:`cover`,unoptimized:!0})})},n))})}),(I||E&&D.length>1)&&m(n,{className:`absolute inset-0 pointer-events-none`,style:{background:`linear-gradient(180deg, rgba(8, 2, 17, 0) 0%, rgba(8, 2, 17, 0.28) 55%, rgba(8, 2, 17, 0.4) 100%)`}}),I&&m(n,{className:l(`absolute left-[16px] bottom-[14px] pointer-events-none`,`right-[58px]`),children:m(o,{as:`p`,className:`text-[16px] leading-[22px] text-white/90 line-clamp-1`,children:I})}),E&&D.length>1&&m(n,{className:l(`absolute bottom-[22px] flex items-center gap-[6px] pointer-events-auto`,`right-[16px]`),children:D.map((e,t)=>m(`button`,{type:`button`,className:l(`block size-[4px] rounded-full`,t===A?`bg-white`:`bg-white/60`),"aria-label":`跳转到第 ${t+1} 个 Banner`,onClick:()=>O?.scrollTo(t)},t))})]})})}export{_ as default};
|
package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{CardSpec as e}from"../../../../../utils/constants/card-spec.mjs";import{mergeStyles as t}from"../../../../../utils/styles/helpers.mjs";import{
|
|
2
|
+
"use client";import{CardSpec as e}from"../../../../../utils/constants/card-spec.mjs";import{mergeStyles as t}from"../../../../../utils/styles/helpers.mjs";import{gContentGetAppChannelBlockData as n}from"../../../../../../../service/generated/client.mjs";import{transformContentListToCardItems as r}from"../../../../../utils/transformers/card-grid.mjs";import{Box as i}from"../../../../../../ui/box.mjs";import{InfiniteScroll as a}from"../../../../../../ui/infinite-scroll.mjs";import{Text as o}from"../../../../../../ui/text.mjs";import{usePaginated as s}from"../../../../../../../hooks/query/use-query.mjs";import c from"../../../../../basics/card-layout/runtime/client.mjs";import{useLayoutEffect as l,useMemo as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h={},g={list:[],title:``,cursor:``,block_id:``};function _({props:_=h,styles:v,data:y=g}){let b=e.V2_LARGE,{gap:x=8}=_||{},{title:S,cursor:C,block_id:w,list:T}=y,E=v?t(v,{}):void 0,D=T&&T.length>0,O=u(()=>{if(!D)return;let e=C&&C.trim()?C:void 0;return{pages:[{data:{block:{data:{videos:T,cursor:C||``}}}}],pageParams:[e]}},[D,T,C]),{data:k,fetchNextPage:A,hasNextPage:j}=s({key:[`card-grid-2x3-infinite`,w],queryFn:e=>n({block_id:w,cursor:e||void 0,page_size:20}),getNextPageParam:e=>{let t=e.data?.block?.data?.cursor;return t&&t.trim()?t:void 0},options:{enabled:!!w,initialData:O,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1},initialPageParam:D&&C&&C.trim()?C:void 0}),M=d(T),[N,P]=f(!1);l(()=>{P(!0)},[]);let F=u(()=>{let e=[...M.current];if(!N)return e;let t=[...e],n=k?.pages;if(n&&n.length>1)for(let e=1;e<n.length;e++){let r=n[e].data?.block?.data?.videos||[];t.push(...r)}return t},[N,k?.pages]),I=u(()=>r(F,`view-duration`),[F]);return m(i,{children:[S&&p(o,{as:`h2`,className:`text-[18px] font-bold text-text1 mb-[10px] px-[12px]`,children:S}),p(a,{loadMore:()=>A().then(()=>void 0),hasMore:j===!0||j===void 0&&!!C&&T.length>0,initialLoad:!0,threshold:1e3,className:``,children:p(c,{props:{cardSpec:b,gap:x},data:I,styles:E})})]})}export{_ as default};
|
package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{CardSpec as e}from"../../../../../utils/constants/card-spec.mjs";import{mergeStyles as t}from"../../../../../utils/styles/helpers.mjs";import{
|
|
2
|
+
"use client";import{CardSpec as e}from"../../../../../utils/constants/card-spec.mjs";import{mergeStyles as t}from"../../../../../utils/styles/helpers.mjs";import{gContentGetAppChannelBlockData as n}from"../../../../../../../service/generated/client.mjs";import{transformContentListToCardItems as r}from"../../../../../utils/transformers/card-grid.mjs";import{Box as i}from"../../../../../../ui/box.mjs";import{InfiniteScroll as a}from"../../../../../../ui/infinite-scroll.mjs";import{Text as o}from"../../../../../../ui/text.mjs";import{usePaginated as s}from"../../../../../../../hooks/query/use-query.mjs";import c from"../../../../../basics/card-layout/runtime/client.mjs";import{useLayoutEffect as l,useMemo as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h={},g={list:[],title:``,cursor:``,block_id:``};function _({props:_=h,styles:v,data:y=g}){let b=e.V3_SMALL,{gap:x=8}=_||{},{title:S,cursor:C,block_id:w,list:T}=y,E=v?t(v,{}):void 0,D=T&&T.length>0,O=u(()=>{if(!D)return;let e=C&&C.trim()?C:void 0;return{pages:[{data:{block:{data:{videos:T,cursor:C||``}}}}],pageParams:[e]}},[D,T,C]),{data:k,fetchNextPage:A,hasNextPage:j}=s({key:[`card-grid-3x3-infinite`,w],queryFn:e=>n({block_id:w,cursor:e||void 0,page_size:21}),getNextPageParam:e=>{let t=e.data?.block?.data?.cursor;return t&&t.trim()?t:void 0},options:{enabled:!!w,initialData:O,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1},initialPageParam:D&&C&&C.trim()?C:void 0}),M=d(T),[N,P]=f(!1);l(()=>{P(!0)},[]);let F=u(()=>{let e=[...M.current];if(!N)return e;let t=[...e],n=k?.pages;if(n&&n.length>1)for(let e=1;e<n.length;e++){let r=n[e].data?.block?.data?.videos||[];t.push(...r)}return t},[N,k?.pages]),I=u(()=>r(F,`view-duration`),[F]);return m(i,{children:[S&&p(o,{as:`h2`,className:`text-[18px] font-bold text-text1 mb-[10px] px-[12px]`,children:S}),p(a,{loadMore:()=>A().then(()=>void 0),hasMore:j===!0||j===void 0&&!!C&&T.length>0,className:``,initialLoad:!0,threshold:1e3,children:p(c,{props:{cardSpec:b,gap:x},data:I,styles:E})})]})}export{_ as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Box as t}from"../../../ui/box.mjs";import n from"../../../ui/link.mjs";import{urlPrefix as r}from"../../../../constants/url-prefix.mjs";import{useSticky as i}from"../../../../hooks/use-sticky.mjs";import a from"../../../../assets/icons/channel-list/channel-active-indicator.mjs";import o from"../../../../assets/icons/common/header-menu.mjs";import s,{loadHiddenChannelIdsFromStorage as c}from"./channel-filter-dialog.mjs";import{defaultProps as l}from"./default-props.mjs";import{clsx as u}from"clsx";import{useEffect as d,useMemo as f,useState as p}from"react";import{Fragment as
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Box as t}from"../../../ui/box.mjs";import n from"../../../ui/link.mjs";import{urlPrefix as r}from"../../../../constants/url-prefix.mjs";import{useSticky as i}from"../../../../hooks/use-sticky.mjs";import a from"../../../../assets/icons/channel-list/channel-active-indicator.mjs";import o from"../../../../assets/icons/common/header-menu.mjs";import s,{loadHiddenChannelIdsFromStorage as c}from"./channel-filter-dialog.mjs";import{defaultProps as l}from"./default-props.mjs";import{clsx as u}from"clsx";import{useEffect as d,useMemo as f,useState as p}from"react";import{usePathname as m}from"next/navigation";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{useTranslations as v}from"next-intl";const y={},b=`h-[26px]`;function x(e,t){let n=`${r.DOMAIN}/`,i=t.indexOf(n),a=i!==-1,o=a?t.slice(i+n.length).split(`/`)[0]:void 0;return e.isDefault?a&&o?`${r.DOMAIN}/${o}`:`/`:a&&o?`${r.DOMAIN}/${o}/${encodeURIComponent(e.name)}`:`${r.CHANNEL}/${encodeURIComponent(e.name)}`}function S(r){let S=v(`components.biz.business.navBar.variants.basicNavBar.runtime`),{mode:C=`renderer`,styles:w,events:T,...E}=r,D=m()??`/`,O=C===`editor`,k=E||y,A={...l,...k},[j,M]=p(!1),{isSticky:N,ref:P}=i(),[F,I]=p(!1),[L,R]=p(A.list),z=f(()=>A.list.find(e=>e.isDefault)?.name??null,[A.list]),B=f(()=>A.currentChannelId??z,[A.currentChannelId,z]);d(()=>{let e=c();R(e?.length?A.list.filter(t=>!e.includes(t.name)):A.list)},[A.list]);let V=e=>{R(e)},H=(e,t)=>{T?.onChannelChange?.(e,t)},U=w?e(w,{}):void 0,W=()=>{M(!0),T?.onFilterClick?.()};return d(()=>{let e=()=>{let e=window.scrollY??document.documentElement.scrollTop??0,t=window.innerHeight,n=document.documentElement.scrollHeight;I(e+t>=n-1)};return window.addEventListener(`scroll`,e,{passive:!0}),e(),()=>{window.removeEventListener(`scroll`,e)}},[]),_(h,{children:[N&&g(t,{className:u(`w-full`,b)}),g(t,{as:`nav`,ref:P,className:u(`w-full bg-transparent transition-all duration-200`,O&&`pointer-events-none`,N&&`fixed top-0 left-0 right-0 z-50`),style:U,children:_(t,{className:u(`relative flex w-full items-center px-4`,b,A.modifiable&&`gap-2`),children:[g(t,{className:`[-webkit-overflow-scrolling:touch] [-ms-overflow-style:none] [scrollbar-width:none] flex h-full min-w-0 flex-1 items-center overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,children:g(t,{className:`inline-flex h-full min-w-full items-center gap-[23.8px]`,children:L.map((e,r)=>{let i=B===e.name||B===null&&r===0;return g(n,{href:x(e,D),webviewNavMode:`spa`,className:u(`group relative inline-flex h-full shrink-0 cursor-pointer whitespace-nowrap transition-all duration-200`,i?`text-white`:`text-white/70`),onClick:()=>H(e,r),children:i?_(t,{className:u(`inline-grid grid-cols-1 grid-rows-1 place-items-start`,b),children:[g(t,{as:`span`,className:`relative z-[1] block h-[24px] text-center text-[20px] font-['PingFang_SC'] font-semibold leading-[24px] text-white transition-all duration-200`,children:e.name}),g(t,{"aria-hidden":`true`,className:`col-start-1 row-start-1 ml-px mt-[15px] h-[11px] w-[39px]`,children:g(a,{className:`block h-full w-full`})})]}):g(t,{className:`inline-flex h-full items-center`,children:g(t,{as:`span`,className:`block h-[24px] text-center text-[16px] font-['PingFang_SC'] font-normal leading-[24px] transition-all duration-200`,children:e.name})})},e.name||`channel-${r}`)})})}),A.modifiable?g(`button`,{type:`button`,"aria-label":S(`moreChannelEntry`),className:`relative flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0`,onClick:W,children:g(o,{"aria-hidden":`true`,className:`h-[24px] w-[24px] text-white`})}):null]})}),g(s,{open:j,onOpenChange:M,channels:A.list,currentChannelId:B,onChannelClick:H,onChannelsChange:V})]})}export{S as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{getAtUserElement as e,stripHtmlTags as t}from"../../../../utils/common.mjs";import{cn as n}from"../../../../utils/cn.mjs";import{useUserStore as r}from"../../../../store/modules/user-store.mjs";import{createInputAndSelectFile as i,getCoverImage as a,getImageResolutionFromFile as o}from"../../../../utils/media.mjs";import{uploadFile as s}from"../../../../utils/upload-file.mjs";import{Image as c}from"../../../ui/image.mjs";import{Dialog as ee,DialogContent as te}from"../../../ui/dialog.mjs";import{useLoginModalStore as ne}from"../../../../store/modules/login-modal-store.mjs";import l from"../../../../assets/icons/close.mjs";import u from"../../../../assets/icons/detail/video_play.mjs";import re from"../../../../assets/icons/detail/commet_at.mjs";import ie from"../../../../assets/icons/detail/publish_pic.mjs";import ae from"../../../../assets/icons/detail/publish_video.mjs";import{UploadProgress as oe}from"../../../pages/publish/components/upload-progress.mjs";import{ContactList as se}from"../contact/contact-list.mjs";import{useKeyboardHandler as ce}from"./use-keyboard-handler.mjs";import{toast as d}from"sonner";import{memo as f,useCallback as p,useEffect as m,useImperativeHandle as le,useMemo as h,useRef as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{useTranslations as ue}from"next-intl";function de(e){let t=e.clipboardData;if(!t)return``;let n=t.getData(`text/plain`);if(n)return n;let r=t.getData(`text/html`);if(!r)return``;try{return new DOMParser().parseFromString(r,`text/html`).body.textContent||``}catch{return``}}function fe(e,t){if(t<=0)return``;let n=0,r=``;for(let i of e){if(i!==`
|
|
3
3
|
`&&(n++,n>t))break;r+=i}return r}function pe(e,t){if(!t)return;let n=window.getSelection(),r=null;n&&n.rangeCount>0&&(r=n.getRangeAt(0)),(!r||!e.contains(r.commonAncestorContainer))&&(e.focus(),r=document.createRange(),r.selectNodeContents(e),r.collapse(!1)),r.deleteContents();let i=document.createDocumentFragment(),a=t.split(`
|
|
4
|
-
`);a.forEach((e,t)=>{e&&i.appendChild(document.createTextNode(e)),t<a.length-1&&i.appendChild(document.createElement(`br`))});let o=i.lastChild;if(r.insertNode(i),n&&o){let e=document.createRange();e.setStartAfter(o),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}}const me=
|
|
4
|
+
`);a.forEach((e,t)=>{e&&i.appendChild(document.createTextNode(e)),t<a.length-1&&i.appendChild(document.createElement(`br`))});let o=i.lastChild;if(r.insertNode(i),n&&o){let e=document.createRange();e.setStartAfter(o),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}}const me=f(({imageVideoInfoList:e,onDelete:t,variant:r=`dark`})=>{if(e.length===0)return null;let i=r===`light`;return v(`div`,{className:n(`w-full overflow-hidden`,i?`px-4`:`h-[76px] px-[16px]`),children:v(`div`,{className:n(i?`flex items-center gap-3 overflow-x-auto py-3`:`w-full h-[calc(100%+60px)] pb-[60px] overflow-x-auto flex items-center flex-nowrap`),children:e.map((e,r)=>{let a=e.is_video?e.cover_image||e.image_url:e.image_url||e.cover_image;return y(`div`,{className:n(`w-[60px] h-[60px] rounded-[8px] overflow-hidden shrink-0 flex items-center justify-center bg-bg2 relative`,!i&&r>0&&`ml-[12px]`),onClick:e=>{e.target.closest(`[data-delete-button]`)&&e.stopPropagation()},children:[a&&v(c,{src:a,alt:`media`,fill:!0,objectFit:`cover`}),v(`button`,{type:`button`,className:`cursor-pointer absolute top-0 right-0 p-[4px] z-[1]`,"data-delete-button":`true`,onClick:()=>t(r),children:v(l,{className:`w-[12px] h-[12px] text-[#fff] drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)]`})}),e.is_video&&v(`div`,{className:`absolute w-[24px] h-[24px] rounded-[12px] bg-[rgba(0,0,0,0.5)] top-0 right-0 bottom-0 left-0 m-auto flex items-center justify-center`,children:v(u,{className:`w-[12px] h-[12px] text-[#fff]`})})]},`${e.is_video?`video`:`image`}-${r}`)})})})});me.displayName=`CommentUploadGroup`;function b({disabled:e,onClick:t,children:r,variant:i=`dark`}){return v(`button`,{type:`button`,className:n(`flex h-12 flex-1 items-center justify-center`,i===`light`?`text-text2 hover:bg-bg2/60`:`text-white hover:bg-white/10`,e&&`opacity-40`),disabled:e,onClick:t,children:r})}function x({ref:c,value:l=``,onChange:u,onPublish:f,onInputBlur:x,placeholder:he=``,className:ge=``,maxLength:S=200,publishText:_e=``,autoFocus:ve,disabled:ye,onRequireLogin:C,variant:be=`dark`}){let w=ue(`components.biz.business.comment`),T=be===`light`,xe=_e||w(`commentInput.publishDefault`),Se=h(()=>{let e=he||w(`commentInput.placeholder`);return e.length>15?`${e.slice(0,15)}...`:e},[he,w]),[E,D]=_(l),[O,k]=_(!1),[A,j]=_(!1),Ce=g(null),M=g(null),N=g(!1),P=g(0),we=g(0),[F,I]=_([]),[L,R]=_(!1),[z,B]=_(null),[V,Te]=_(!1),H=ye||V,{isLogin:U}=r(),{open:W}=ne(),{containerStyle:Ee,onFocus:G,onBlur:De,inputRef:Oe}=ce(A),K=p(()=>{C?C():W()},[C,W]);m(()=>{M.current&&l&&(M.current.innerHTML=l)},[l]),m(()=>{typeof window>`u`||window.dispatchEvent(new CustomEvent(`funhub:visible-contact-change`,{detail:{visible:L}}))},[L]),m(()=>{if(!(!ve||!M.current)){if(!U){K();return}M.current.focus(),k(!0)}},[ve,K,U]),m(()=>{let e=e=>{let t=e.target,n=t.closest(`[data-delete-button]`),r=t.tagName===`INPUT`||t.tagName===`TEXTAREA`;n||r||Ce.current?.contains(t)||Date.now()-P.current>100&&k(!1)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[]),le(c,()=>({focus:()=>{let e=M.current;if(!(!e||N.current)){N.current=!0;try{if(!U){K();return}if(document.activeElement===e&&O)return;e.focus(),P.current=Date.now(),k(!0),A||j(!0),G()}catch(e){console.warn(`CommentInput focus error`,e),k(!0)}finally{N.current=!1}}}}),[A,K,U,G,O]);let q=()=>{P.current=Date.now()},J=p(()=>{if(!M.current)return;let e=document.createRange(),t=window.getSelection();e.selectNodeContents(M.current),e.collapse(!1),t?.removeAllRanges(),t?.addRange(e)},[]),Y=p(e=>{M.current&&(M.current.innerHTML=e)},[]),X=p(e=>{let t=e.querySelectorAll(`img,video,audio,iframe,object,embed,svg,canvas`);if(t.length===0)return!1;t.forEach(e=>e.remove());let n=Date.now();return n-we.current>1500&&(we.current=n,d.info(w(`commentInput.pasteFileNotSupported`))),!0},[w]),ke=p(e=>{let n=M.current;if(!n)return;if(H){e.preventDefault();return}if(!U){e.preventDefault(),K(),n.blur();return}let r=e.clipboardData;if(r&&Array.from(r.items||[]).some(e=>e.kind===`file`)){e.preventDefault(),e.stopPropagation(),d.info(w(`commentInput.pasteFileNotSupported`));return}let i=de(e);if(!i){e.preventDefault();return}e.preventDefault(),e.stopPropagation();let a=i.replace(/\r\n/g,`
|
|
5
5
|
`).replace(/\r/g,`
|
|
6
|
-
`),o=n
|
|
6
|
+
`),o=t(n.innerHTML||``).length,s=S?Math.max(0,S-o):1/0;if(s<=0)return;pe(n,Number.isFinite(s)?fe(a,s):a),X(n);let c=n.innerHTML||``;D(c),u?.(c)},[K,H,U,S,u,X,w]),Ae=p(e=>{let n=e.currentTarget.innerHTML||``;X(e.currentTarget)&&(n=e.currentTarget.innerHTML||``);let r=t(n);S&&r.length>S&&(n=n.substring(0,S),Y(n),J()),D(n),u?.(n)},[S,J,u,Y,X]),je=p(e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer?.files;t&&t.length>0&&d.info(w(`commentInput.dragFileNotSupported`))},[w]),Me=p(e=>{e.preventDefault()},[]),Ne=()=>{if(!H){if(!U){K(),M.current?.blur();return}P.current=Date.now(),k(!0),A||j(!0),G()}},Pe=()=>{if(H){V&&d.info(w(`commentInput.publishing`));return}if(!U){K(),M.current?.blur();return}P.current=Date.now(),O||k(!0),A||j(!0),G()},Fe=()=>{setTimeout(()=>{Date.now()-P.current>200&&document.activeElement!==M.current&&(k(!1),x?.())},150),De()},Ie=p(()=>{D(``),Y(``),I([]),k(!1)},[Y]),Le=h(()=>t(E).trim().length===0,[E]),Z=h(()=>!Le||F.length>0,[F.length,Le]),Re=p(async()=>{if(!U){K();return}if(F.some(e=>e.is_video))return;let e=await i(`file`,`image/*`);if(!e||e.length===0)return;let t=9-F.length,n=Array.from(e).slice(0,t);if(n.length===0)return;let r=[],a=0,c=n.length;try{for(let e=0;e<n.length;e++){let t=n[e];B({currentFiles:r.length,totalFiles:c,currentTasks:r.length+a,totalTasks:c});try{let{width:e,height:n}=await o(t),i=await s(t,1,!0);r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:i.objectKey,image_thumbnail:i.objectKey,image_radio:Number((e/n).toFixed(2)),image_resolution:`${e}x${n}`,is_video:!1,resolution:`${e}x${n}`,video_duration:0,video_url:``,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}catch(e){console.error(`上传图片失败`,e),a+=1}}r.length===0?d.error(w(`commentInput.imageUploadFailed`)):(a>0&&d.warning(w(`commentInput.partialImageUploadFailed`)),I(e=>[...e,...r]))}finally{B(null)}},[K,F,U,w]),ze=p(async()=>{if(!U){K();return}if(F.length>0){d.error(w(`commentInput.cannotSelectVideoWhenImageSelected`));return}let e=await i(`file`,`video/*`);if(!e||e.length===0)return;let t=e[0];try{B({currentFiles:0,totalFiles:1,currentTasks:0,totalTasks:2});let e=await s(t,2,!1),[n,r,i,o]=await a(t);B({currentFiles:0,totalFiles:1,currentTasks:1,totalTasks:2});let c=await s(n,1,!0);I([{cover_image:c.objectKey,cover_image_thumbnail:c.objectKey,cover_image_radio:Number((r/i).toFixed(2)),cover_image_resolution:`${r}x${i}`,image_url:c.objectKey,image_thumbnail:c.objectKey,image_radio:Number((r/i).toFixed(2)),image_resolution:`${r}x${i}`,is_video:!0,resolution:`${r}x${i}`,video_duration:o,video_url:e.objectKey,video_size:t.size,video_codec_info:{hls_info:[],video_codec_deal:!1}}])}catch(e){console.error(`视频上传失败`,e),d.error(w(`commentInput.videoUploadFailed`))}finally{B(null)}},[K,F.length,U,w]),Be=p(async e=>{if(e.preventDefault(),e.stopPropagation(),!(!Z||ye||V)){if(!U){C?C():W();return}try{Te(!0);let e=await f?.({text:E===`<br>`?``:E,imageVideoInfoList:F});if(e&&e.success===!1){e.toastHandled||d.error(e.message||`发布评论失败`);return}d.success(w(`commentInput.publishSuccess`)),Ie(),u?.(``)}catch(e){console.error(`发布评论失败:`,e),d.error(w(`commentInput.publishCommentFailed`))}finally{Te(!1)}}},[Ie,ye,F,E,U,Z,V,u,f,C,W,w]),Q=h(()=>!F.some(e=>e.is_video)&&F.length<9,[F]),$=h(()=>F.length===0,[F.length]),Ve=p(n=>{R(!1);let r=`${t(E).trim().length===0?``:E}${e(n)} `;D(r),Y(r),setTimeout(()=>{J()},16)},[E,J,Y]);function He(e){R(e)}function Ue(){R(!1)}let We=v(`button`,{type:`button`,className:n(`shrink-0 whitespace-nowrap rounded-full px-4 py-2 text-sm font-medium`,Z&&!V?`bg-theme5 text-white`:`bg-bg2 text-text3`),onClick:Be,disabled:!Z||H,children:V?w(`commentInput.publishing`):xe}),Ge=v(`button`,{type:`button`,className:n(`ml-[14px] shrink-0 whitespace-nowrap px-[14px] py-[10px] text-[16px] leading-[16px]`,Z&&!V?`text-theme5`:`text-text3`),onClick:Be,disabled:!Z||H,children:V?w(`commentInput.publishing`):xe}),Ke=V?v(`span`,{className:n(`ml-[14px] text-[16px] leading-[16px] text-text3`),children:w(`commentInput.publishing`)}):null,qe=T?Ee:{...Ee,boxShadow:O?`0px -4px 10px 0px rgba(0,0,0,0.1)`:`none`},Je=T?`comment-input-container g-safe-area rounded-2xl border border-line1/20 bg-white text-text1 shadow-sm`:`comment-input-container bg-bg1 g-safe-area text-text1`,Ye=O?T?y(`div`,{className:`flex border-t border-line1/20`,children:[v(b,{disabled:!Q,onClick:()=>{H||Q&&setTimeout(()=>{Re()},400)},variant:`light`,children:w(`commentInput.image`)}),v(b,{disabled:!$,onClick:()=>{H||$&&setTimeout(()=>{ze()},400)},variant:`light`,children:w(`commentInput.video`)}),v(b,{disabled:H,onClick:()=>{H||R(!0)},variant:`light`,children:`@`})]}):y(`div`,{className:`flex h-[50px] items-center justify-around border-t border-line1 px-[8px]`,children:[v(`button`,{type:`button`,className:n(`flex h-full items-center justify-center px-[12px]`,(!Q||H)&&`opacity-50`),onClick:()=>{H||Q&&setTimeout(()=>{Re()},400)},children:v(ie,{className:`h-[22px] w-[22px]`})}),v(`button`,{type:`button`,className:n(`flex h-full items-center justify-center px-[12px]`,(!$||H)&&`opacity-50`),onClick:()=>{H||$&&setTimeout(()=>{ze()},400)},children:v(ae,{className:`h-[22px] w-[22px]`})}),v(`button`,{type:`button`,className:n(`flex h-full items-center justify-center px-[12px]`,H&&`opacity-50`),onClick:()=>{H||R(!0)},children:v(re,{className:`h-[22px] w-[22px]`})})]}):null,Xe=T?``:`mx-auto w-full max-w-[840px]`;return y(`div`,{style:qe,className:n(Je,ge),onMouseDown:q,onTouchStart:q,onClick:q,ref:Ce,children:[z&&v(oe,{currentFiles:z.currentFiles,totalFiles:z.totalFiles,currentTasks:z.currentTasks,totalTasks:z.totalTasks}),y(`div`,{className:Xe,children:[O&&v(me,{imageVideoInfoList:F,onDelete:e=>I(t=>t.filter((t,n)=>n!==e)),variant:be}),y(`div`,{className:n(`px-4 py-3`,T?`flex items-center gap-3`:`flex items-center justify-between`),children:[y(`div`,{className:n(`relative min-w-0 flex-1 rounded-[20px] bg-bg2`,T?`rounded-2xl`:``),children:[!U&&v(`div`,{className:`absolute inset-0 z-[1] cursor-text`,onClick:K}),Le&&v(`span`,{className:n(`pointer-events-none absolute left-3 top-[10px] text-sm text-text3`),children:Se}),v(`div`,{ref:e=>{M.current=e,Oe(e)},contentEditable:!H,suppressContentEditableWarning:!0,className:n(`max-h-24 min-h-[40px] w-full cursor-text overflow-y-auto px-3 py-[10px] text-sm leading-5 outline-none break-all whitespace-pre-wrap text-text1`,H&&`cursor-not-allowed opacity-60`),"data-placeholder":Se,onInput:Ae,onFocus:Ne,onClick:Pe,onBlur:Fe,onPaste:ke,onDrop:je,onDragOver:Me})]}),O?T?We:Ge:Ke]}),Ye]}),v(ee,{open:L,onOpenChange:He,children:v(te,{showCloseButton:!1,initialFocus:!1,className:`fixed left-0 right-0 bottom-0 top-[84px] z-[1000] w-full max-w-none translate-x-0 translate-y-0 rounded-none bg-bg2 p-0`,children:v(se,{onSelect:Ve,onClose:Ue})})})]})}x.displayName=`CommentInput`;export{x as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{formatCompactCount as e}from"../../../../utils/common.mjs";import{cn as t}from"../../../../utils/cn.mjs";import{Avatar as n,AvatarImage as r}from"../../../ui/avatar.mjs";import i from"../../../common/interaction-animations.module.mjs";import a from"../../../../assets/icons/common/right_arrow.mjs";import{useInteractionAnimation as o}from"../../../../hooks/use-interaction-animation.mjs";import s from"../../../../assets/icons/detail/give_like.mjs";import c from"../../../../assets/icons/detail/give_like_sel.mjs";import l from"../../../../assets/icons/common/god_comment.mjs";import u from"../../../../assets/icons/detail/un_like.mjs";import d from"../../../../assets/icons/detail/un_like_sel.mjs";import{CommentMedia as f}from"./comment-media.mjs";import{CommentRichText as p}from"./comment-rich-text.mjs";import{TimeDisplay as m}from"./time-display.mjs";import{memo as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";import{useTranslations as v}from"next-intl";import y from"next/link";const b=h(({comment:h,isHighlight:b,onReply:x,onViewReplies:S,onReplyAction:C,onLike:w,onDislike:T,onRequireLogin:E,variant:D=`dark`,rightSlot:O,showReplyButton:k=!0,isLogin:A=!0})=>{let j=v(`components.biz.business.comment`),M=D===`light`,N=h.status===`0`,P=o();function F(){E?.()}function I(){if(!A){F();return}P.trigger(i.likeShakeAnimation),w?.(h)}function L(){if(!A){F();return}T?.(h)}function R(){if(!A){F();return}if(!x){F();return}x(h)}function z(){if(!A){F();return}S?.(h)}function B(){if(!A){F();return}if(C){C(h);return}if(+h.reply_cnt==0){R();return}z()}function V(){return h.reply_cnt===`0`?j(`commentItem.reply`):j(`commentItem.replyCount`,{count:h.reply_cnt})}return _(`div`,{className:t(`flex flex-col p-[16px] relative`,M?`text-text1`:`text-white`),children:[b&&g(l,{className:`w-[70px] h-[70px] absolute top-0 right-[80px]`}),_(`div`,{className:`flex flex-row justify-between relative z-[2]`,children:[_(y,{className:`flex flex-row items-center`,href:`/profile/${h.user_id}`,children:[g(n,{children:g(r,{src:h.avatar,alt:h.user_name})}),_(`div`,{className:`ml-[12px] flex flex-col min-w-0`,children:[g(`span`,{className:t(`text-[14px] leading-[14px] max-w-[180px] text-ellipsis overflow-hidden whitespace-nowrap`,M?`text-text2`:`text-white/80`),children:h.user_name}),g(`span`,{className:t(`mt-[8px] text-[12px] leading-[12px]`,M?`text-text3`:`text-white/50`),children:g(m,{timestamp:h.created_at})})]})]}),N?g(`div`,{className:`px-[8px] py-[4px] bg-text3/10 rounded-[12px]`,children:g(`span`,{className:t(`text-[12px] leading-[12px]`,M?`text-text3`:`text-white/60`),children:j(`commentItem.contentInReview`)})}):O||_(`div`,{className:`flex flex-row items-center`,children:[_(`button`,{type:`button`,className:`px-[4px] flex flex-col items-center`,onClick:I,children:[h.like_flag===`1`?g(c,{className:t(`w-[14px] h-[14px]`,P.animationClass)}):g(s,{className:t(`w-[14px] h-[14px]`,M?`text-text3`:`text-white/70`,P.animationClass)}),g(`span`,{className:t(`mt-[4px] text-[12px] leading-[12px]`,M?`text-text3`:`text-white/70`),children:h.like_cnt===`0`?j(`commentItem.like`):e(h.like_cnt)})]}),_(`button`,{type:`button`,className:`ml-[12px] px-[4px] flex flex-col items-center`,onClick:L,children:[h.like_flag===`2`?g(d,{className:`w-[14px] h-[14px]`}):g(u,{className:t(`w-[14px] h-[14px]`,M?`text-text3`:`text-white/70`)}),g(`span`,{className:t(`mt-[4px] text-[12px] leading-[12px]`,M?`text-text3`:`text-white/70`),children:h.dislike_cnt===`0`?j(`commentItem.dislike`):e(h.dislike_cnt)})]})]})]}),_(`div`,{className:`mt-[4px] pl-[50px] flex flex-col`,children:[h.text&&g(p,{className:t(`text-[14px] leading-[22px] break-all`,M?`text-text1`:`text-white/90`),text:h.text,atUsers:h.at_users}),g(f,{list:h.nine_grid_content_info,disabled:N,hasText:!!h.text,playerId:h.id}),k&&_(`button`,{type:`button`,className:t(`mt-[4px] w-[fit-content] h-[30px] px-[12px] text-[14px] leading-[22px] flex flex-row items-center rounded-[15px]`,M?`text-text1 bg-bg2`:`text-white bg-white/10`),onClick:B,children:[g(`span`,{children:V()}),h.reply_cnt!==`0`&&g(a,{className:`w-[10px] h-[10px] ml-[2px]`})]})]})]})});export{b as CommentItem};
|