@funhub/platform 0.2.28 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/biz.d.mts +6 -4
- package/dist/biz.mjs +1 -1
- package/dist/cli/init/create-client.mjs +1 -1
- package/dist/cli/init/shared/constants.mjs +1 -1
- package/dist/cli/init/shared/create-project.mjs +1 -1
- package/dist/cli/init/shared/prompts.mjs +1 -1
- package/dist/cli/init/shared/template.mjs +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/business/advertisement/ad-match.d.mts +0 -7
- package/dist/components/biz/business/advertisement/ad-match.mjs +1 -1
- package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -2
- package/dist/components/biz/business/advertisement/popup-ad/material.d.mts +0 -3
- package/dist/components/biz/business/advertisement/popup-ad/schema.d.mts +0 -6
- package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -1
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -1
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.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-preview.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +5 -3
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/profile/index.d.mts +5 -3
- package/dist/components/biz/business/profile/profile-header/client.d.mts +4 -2
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/index.d.mts +4 -2
- package/dist/components/biz/business/profile/profile-header/material.d.mts +48 -6
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/my-client.d.mts +12 -0
- package/dist/components/biz/business/profile/profile-header/my-client.mjs +2 -0
- package/dist/components/biz/business/profile/profile-header/my-profile-actions.mjs +2 -0
- package/dist/components/biz/business/profile/profile-header/my-profile-header.mjs +2 -0
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +15 -5
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/shared.mjs +2 -0
- 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-header/visitor-client.d.mts +12 -0
- package/dist/components/biz/business/profile/profile-header/visitor-client.mjs +2 -0
- package/dist/components/biz/business/profile/profile-header/visitor-profile-actions.mjs +2 -0
- package/dist/components/biz/business/profile/profile-header/visitor-profile-header.mjs +2 -0
- package/dist/components/biz/business/profile/profile-main/client.d.mts +2 -0
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/index.d.mts +2 -2
- package/dist/components/biz/business/profile/profile-main/material.d.mts +3 -0
- package/dist/components/biz/business/profile/profile-main/schema.d.mts +9 -3
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/shell.d.mts +7 -0
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.d.mts +5 -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/editor-preview-waterfall.mjs +2 -0
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.d.mts +5 -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 +5 -1
- 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.d.mts +3 -0
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/variants.d.mts +28 -3
- package/dist/components/biz/business/profile/profile-main/variants.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/shortcut-grid/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/common/analytics-init/page-lifecycle-tracker.mjs +1 -1
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -1
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend.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/tab-bar/index.mjs +1 -1
- package/dist/components/common/top-nav-bar/client.mjs +1 -1
- package/dist/components/common/video-player/style.module.mjs +0 -4
- 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/collection-add/page.mjs +1 -1
- package/dist/components/pages/edit/page.mjs +1 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/profile/layout.d.mts +2 -0
- package/dist/components/pages/profile/page.mjs +1 -1
- package/dist/components/pages/search/hot-recommend.mjs +1 -1
- package/dist/components/pages/search/hot-search.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-all.mjs +1 -1
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/search/top-header.mjs +1 -1
- package/dist/components/pages/search-result/page-client.mjs +1 -1
- package/dist/components/pages/search-result/search-all.mjs +1 -1
- package/dist/components/pages/search-result/search-tab.mjs +1 -1
- package/dist/components/pages/search-result/search-user.mjs +1 -1
- package/dist/components/pages/search-result/top-header.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 +2 -2
- package/dist/components/ui/empty.d.mts +1 -1
- package/dist/components/ui/item.d.mts +2 -2
- package/dist/components/ui/toggle.d.mts +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 +2 -2
- package/dist/materials.mjs +1 -1
- package/dist/service/advertisement.d.mts +0 -4
- package/dist/service/advertisement.mjs +1 -1
- package/dist/utils/common.mjs +1 -1
- package/dist/utils/http.mjs +1 -1
- package/dist/utils/tracking.d.mts +11 -3
- package/dist/utils/tracking.mjs +1 -1
- package/dist/utils/use-compatible-router.mjs +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/theme.css +0 -47
package/dist/biz.d.mts
CHANGED
|
@@ -123,12 +123,15 @@ import { defaultProps as defaultProps$5 } from "./components/biz/business/post-c
|
|
|
123
123
|
import { BasicPostCardClient } from "./components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs";
|
|
124
124
|
import { schema as schema$5 } from "./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";
|
|
125
125
|
import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./components/biz/business/profile/profile-header/schema.mjs";
|
|
126
|
-
import { UserProfileHeaderClient
|
|
127
|
-
import {
|
|
126
|
+
import { UserProfileHeaderClient } from "./components/biz/business/profile/profile-header/client.mjs";
|
|
127
|
+
import { MyProfileHeaderClient } from "./components/biz/business/profile/profile-header/my-client.mjs";
|
|
128
|
+
import { VisitorProfileHeaderClient } from "./components/biz/business/profile/profile-header/visitor-client.mjs";
|
|
129
|
+
import { myProfileHeaderMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, visitorProfileHeaderMaterial } from "./components/biz/business/profile/profile-header/material.mjs";
|
|
128
130
|
import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./components/biz/business/profile/profile-main/schema.mjs";
|
|
129
131
|
import { UserProfileMainClient } from "./components/biz/business/profile/profile-main/client.mjs";
|
|
130
132
|
import { UserProfileMain } from "./components/biz/business/profile/profile-main/server.mjs";
|
|
131
133
|
import { profileMainMaterial } from "./components/biz/business/profile/profile-main/material.mjs";
|
|
134
|
+
import { ProfileMainBaseTabKey, ProfileMainContentType, ProfileMainSecondaryTabKey, ProfileMainTabKey, getProfileMainSecondaryTabOptions, getProfileMainTabOptions, profileMainBaseTabOptions, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainContentTypeOptions, profileMainHistoryTabOptions, profileMainLikeTabOptions, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainPublishTabOption, profileMainSecondaryTabDisplayOrder, profileMainTabOptions } from "./components/biz/business/profile/profile-main/variants.mjs";
|
|
132
135
|
import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./components/biz/business/profile/profile-main/shell.mjs";
|
|
133
136
|
import { CollectTab, CollectTabProps } from "./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";
|
|
134
137
|
import { CollectTabServer } from "./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";
|
|
@@ -138,7 +141,6 @@ import { LikeDetailItem, LikeTab, LikeTabProps } from "./components/biz/business
|
|
|
138
141
|
import { LikeTabServer } from "./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";
|
|
139
142
|
import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";
|
|
140
143
|
import { PublishTabServer } from "./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";
|
|
141
|
-
import { profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainLikeTabOptions, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions } from "./components/biz/business/profile/profile-main/variants.mjs";
|
|
142
144
|
import { defaultProps as defaultProps$6 } from "./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";
|
|
143
145
|
import { BasicRecommendedUsersClient } from "./components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs";
|
|
144
146
|
import { schema as schema$6 } from "./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";
|
|
@@ -178,4 +180,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
|
|
|
178
180
|
import "./components/biz/example/button/index.mjs";
|
|
179
181
|
import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
|
|
180
182
|
import "./components/biz/renderer/index.mjs";
|
|
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,
|
|
183
|
+
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, MyProfileHeaderClient, NodeDocument, PageDocument, PageMeta, PopupAd, PopupAdBaseProps, PopupAdInspectorProps, PopupAdItem, PopupAdProps, PopupAdServer, ProfileHeaderInspectorProps, ProfileMainBaseTabKey, ProfileMainContentType, ProfileMainInspectorProps, ProfileMainSecondaryTabKey, ProfileMainTabKey, 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, VisitorProfileHeaderClient, adaptBannerAdProps, adaptFloatingAdItems, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, bannerAdInspectorDefaultProps, bannerAdInspectorPropsSchema, bannerAdMaterial, bannerAdStyleSizeOptions, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildAdsMatchRequest, buildContentUrl, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, createAdsMatchPrefetchItem, createAdsMatchQueryFn, customStylesToInline, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingAdInspectorDefaultProps, floatingAdInspectorPropsSchema, floatingAdMaterial, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getAdsMatchQueryKey, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, getFeedAdIcon, getFeedAdJumpUrl, getProfileMainSecondaryTabOptions, getProfileMainTabOptions, hasMatchedAds, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, iconAdInspectorDefaultProps, iconAdInspectorPropsSchema, iconAdMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, isFeedAdItem, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, myProfileHeaderMaterial, parseAdsMatchExtData, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema, popupAdMaterial, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainBaseTabOptions, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainContentTypeOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainPublishTabOption, profileMainSecondaryTabDisplayOrder, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema, searchInputMaterial, sortAdsMatchMaterials, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema, tabBarMaterial, textAdInspectorDefaultProps, textAdInspectorPropsSchema, textAdMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem, useAdProvider, visitorProfileHeaderMaterial };
|
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 $}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};
|
|
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{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}from"./components/biz/business/profile/profile-header/client.mjs";import{MyProfileHeaderClient as Gt}from"./components/biz/business/profile/profile-header/my-client.mjs";import{profileHeaderInspectorDefaultProps as Kt,profileHeaderInspectorPropsSchema as qt}from"./components/biz/business/profile/profile-header/schema.mjs";import{VisitorProfileHeaderClient as Jt}from"./components/biz/business/profile/profile-header/visitor-client.mjs";import{myProfileHeaderMaterial as Yt,profileHeaderMaterial as Xt,profileHeaderMaterialWithDisabledBackground as Zt,visitorProfileHeaderMaterial as Qt}from"./components/biz/business/profile/profile-header/material.mjs";import{UserProfileMainShell as $t}from"./components/biz/business/profile/profile-main/shell.mjs";import{getProfileMainSecondaryTabOptions as en,getProfileMainTabOptions as tn,profileMainBaseTabOptions as nn,profileMainCollectCollectionTabOptions as rn,profileMainCollectTabOptions as an,profileMainContentTypeOptions as on,profileMainHistoryTabOptions as sn,profileMainLikeTabOptions as cn,profileMainMineTabOptions as ln,profileMainProfileTabOptions as un,profileMainPublishTabOption as dn,profileMainSecondaryTabDisplayOrder as fn,profileMainTabOptions as pn}from"./components/biz/business/profile/profile-main/variants.mjs";import{CollectTab as mn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as hn}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as gn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{PublishTab as _n}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{UserProfileMainClient as vn}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as yn,profileMainInspectorPropsSchema as bn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as xn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Sn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as Cn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as wn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as Tn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTabServer as En}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import Dn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as On}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as kn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import An from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as jn}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Mn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Nn from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Pn}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Fn}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import In from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Ln}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Rn}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as zn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Bn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Vn}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Hn,searchInputInspectorPropsSchema as Un}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Wn}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Gn}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Kn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as qn,tabBarInspectorPropsSchema as Jn}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Yn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Xn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Zn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Qn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as $n}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as er}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as tr}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nr,buttonInspectorPropsSchema as rr}from"./components/biz/example/button/schema.mjs";import{Button as ir}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as ar}from"./components/biz/example/button/material.mjs";import{Renderer as or}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,Dn as BasicRecommendedUsers,Oe as BasicRecommendedUsersDefaultData,ke as BasicRecommendedUsersSchema,Ve as BasicSearch,An as BasicSearchBar,On as BasicSearchBarDefaultData,kn as BasicSearchBarSchema,ge as BasicSearchDefaultData,Be as BasicSearchSchema,ir as Button,tr 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,mn as CollectTab,Cn 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,Nn as FilterSearchBar,jn as FilterSearchBarDefaultData,Mn 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,hn as HistoryTab,wn 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,gn as LikeTab,Tn as LikeTabServer,It as MarqueeClient,Lt as MarqueeServer,Gt as MyProfileHeaderClient,ae as PopupAd,ce as PopupAdServer,_n as PublishTab,En as PublishTabServer,or as Renderer,Ln as SearchHistoryClient,zn as SearchHistoryServer,Vn as SearchInputClient,Wn as SearchInputServer,be as SimpleSearch,ve as SimpleSearchDefaultData,ye as SimpleSearchSchema,Kn as TabBarClient,Yn as TabBarServer,qe as TagSearch,In as TagSearchBar,Pn as TagSearchBarDefaultData,Fn as TagSearchBarSchema,Ge as TagSearchDefaultData,Ke as TagSearchSchema,fe as TextAd,pe as TextAdServer,Zn as TextRecommendClient,$n as TextRecommendServer,Wt as UserProfileHeaderClient,xn as UserProfileMain,vn as UserProfileMainClient,$t as UserProfileMainShell,Jt as VisitorProfileHeaderClient,_ 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,nr as buttonInspectorDefaultProps,rr as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,E as createAdsMatchPrefetchItem,D as createAdsMatchQueryFn,i as customStylesToInline,Nt as defaultMarqueePeriod,ar 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,en as getProfileMainSecondaryTabOptions,tn as getProfileMainTabOptions,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,Yt as myProfileHeaderMaterial,w as parseAdsMatchExtData,oe as popupAdInspectorDefaultProps,se as popupAdInspectorPropsSchema,le as popupAdMaterial,Kt as profileHeaderInspectorDefaultProps,qt as profileHeaderInspectorPropsSchema,Xt as profileHeaderMaterial,Zt as profileHeaderMaterialWithDisabledBackground,nn as profileMainBaseTabOptions,rn as profileMainCollectCollectionTabOptions,an as profileMainCollectTabOptions,on as profileMainContentTypeOptions,sn as profileMainHistoryTabOptions,yn as profileMainInspectorDefaultProps,bn as profileMainInspectorPropsSchema,cn as profileMainLikeTabOptions,Sn as profileMainMaterial,ln as profileMainMineTabOptions,un as profileMainProfileTabOptions,dn as profileMainPublishTabOption,fn as profileMainSecondaryTabDisplayOrder,pn as profileMainTabOptions,Rn as searchHistoryInspectorPropsSchema,Bn as searchHistoryMaterial,Hn as searchInputInspectorDefaultProps,Un as searchInputInspectorPropsSchema,Gn as searchInputMaterial,T as sortAdsMatchMaterials,qn as tabBarInspectorDefaultProps,Jn as tabBarInspectorPropsSchema,Xn as tabBarMaterial,ue as textAdInspectorDefaultProps,de as textAdInspectorPropsSchema,me as textAdMaterial,Qn as textRecommendInspectorPropsSchema,er as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,A as useAdProvider,Qt as visitorProfileHeaderMaterial};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{createProject as e}from"./shared/create-project.mjs";async function t(t){await e(`
|
|
2
|
+
import{createProject as e}from"./shared/create-project.mjs";async function t(t){await e(`client`,t)}export{t as createClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
const e=`funhub-app`,t=`
|
|
2
|
+
const e=`funhub-app`,t=`client`,n=`public-groups/funhub-template`,r=`main`,i=`https://gitlab.quguazhan.com`;export{e as DEFAULT_PROJECT_NAME,t as DEFAULT_TEMPLATE_TYPE,r as TEMPLATE_BRANCH,i as TEMPLATE_HOST,n as TEMPLATE_REPO};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import{runCommand as e}from"./command.mjs";import{isEmptyDirectory as t}from"./file.mjs";import{getInstallCommand as n}from"./package-manager.mjs";import{pullTemplate as r}from"./template.mjs";import{log as i,outro as a,spinner as o}from"@clack/prompts";import{existsSync as s,rmSync as c}from"node:fs";import l from"node:path";import u from"node:process";async function d(s,d){let f=u.cwd(),p=l.resolve(f,d.projectName),m=d.projectName===`.`?l.basename(f):l.basename(p),h=o();if(!t(p)){if(!d.force)throw Error(`目标目录 ${p} 非空,请使用 --force 或选择空目录。`);h.start(`正在清理目标目录`),c(p,{recursive:!0,force:!0}),h.stop(`目标目录已清理`)}h.start(`正在拉取远程模板`);let g=await r(s,p,d.force,f);if(h.stop(`模板拉取完成`),d.git&&(h.start(`正在初始化 Git 仓库`),await e(`git`,[`init`],p),h.stop(`Git 仓库初始化完成`)),d.install){let t=n(d.packageManager);h.start(`正在安装依赖 (${d.packageManager})`),await e(t.command,t.args,p),h.stop(`依赖安装完成`)}let _=l.relative(f,p)||`.`,v=n(d.packageManager);i.success(`已创建 Funhub 项目: ${m}`),i.message(`来源: ${g.source}`),i.message(`类型: ${s}`),i.message(`目录: ${p}`),d.install||i.message(`安装依赖: ${v.command} ${v.args.join(` `)}`.trim()),a([`下一步:`,_===`.`?``:` cd ${_}`,d.install?``:` ${v.command} ${v.args.join(` `)}`.trimEnd(),s===`
|
|
2
|
+
import{runCommand as e}from"./command.mjs";import{isEmptyDirectory as t}from"./file.mjs";import{getInstallCommand as n}from"./package-manager.mjs";import{pullTemplate as r}from"./template.mjs";import{log as i,outro as a,spinner as o}from"@clack/prompts";import{existsSync as s,rmSync as c}from"node:fs";import l from"node:path";import u from"node:process";async function d(s,d){let f=u.cwd(),p=l.resolve(f,d.projectName),m=d.projectName===`.`?l.basename(f):l.basename(p),h=o();if(!t(p)){if(!d.force)throw Error(`目标目录 ${p} 非空,请使用 --force 或选择空目录。`);h.start(`正在清理目标目录`),c(p,{recursive:!0,force:!0}),h.stop(`目标目录已清理`)}h.start(`正在拉取远程模板`);let g=await r(s,p,d.force,f);if(h.stop(`模板拉取完成`),d.git&&(h.start(`正在初始化 Git 仓库`),await e(`git`,[`init`],p),h.stop(`Git 仓库初始化完成`)),d.install){let t=n(d.packageManager);h.start(`正在安装依赖 (${d.packageManager})`),await e(t.command,t.args,p),h.stop(`依赖安装完成`)}let _=l.relative(f,p)||`.`,v=n(d.packageManager);i.success(`已创建 Funhub 项目: ${m}`),i.message(`来源: ${g.source}`),i.message(`类型: ${s}`),i.message(`目录: ${p}`),d.install||i.message(`安装依赖: ${v.command} ${v.args.join(` `)}`.trim()),a([`下一步:`,_===`.`?``:` cd ${_}`,d.install?``:` ${v.command} ${v.args.join(` `)}`.trimEnd(),s===`client`?` ${d.packageManager} dev`:``].filter(Boolean).join(`
|
|
3
3
|
`))}export{d as createProject};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{isEmptyDirectory as e,validateProjectName as t}from"./file.mjs";import{detectPackageManager as n}from"./package-manager.mjs";import{DEFAULT_PROJECT_NAME as r,DEFAULT_TEMPLATE_TYPE as i}from"./constants.mjs";import{
|
|
2
|
+
import{isEmptyDirectory as e,validateProjectName as t}from"./file.mjs";import{detectPackageManager as n}from"./package-manager.mjs";import{DEFAULT_PROJECT_NAME as r,DEFAULT_TEMPLATE_TYPE as i}from"./constants.mjs";import{validateTemplateType as a}from"./template.mjs";import{cancel as o,confirm as s,isCancel as c,select as l,text as u}from"@clack/prompts";import d from"node:process";function f(e){return c(e)&&(o(`已取消创建。`),d.exit(0)),e}async function p(e){return e||f(await l({message:`选择包管理器`,options:[{value:`pnpm`,label:`pnpm`},{value:`npm`,label:`npm`},{value:`yarn`,label:`yarn`},{value:`bun`,label:`bun`}],initialValue:await n()}))}async function m(e){if(e){let t=a(e);if(t)throw Error(t);return e}return f(await l({message:`选择创建类型`,options:[{value:`client`,label:`client`},{value:`sdk`,label:`sdk`}],initialValue:i}))}async function h(e){if(e){let n=e.trim(),r=t(n);if(r)throw Error(r);return n}return f(await u({message:`请输入项目目录名`,placeholder:r,defaultValue:r,validate(e){return t(e||``)}})).trim()}async function g(t,n=!1){if(t===`.`){if(e(t))return n;throw Error(`当前目录非空,暂不支持直接覆盖当前目录,请指定新的项目目录名或切换到空目录。`)}return e(t)||n?n:(f(await s({message:`目录 ${t} 已存在且非空,是否覆盖?`,initialValue:!1}))||(o(`已取消创建。`),d.exit(0)),!0)}export{g as resolveForceOverwrite,p as resolvePackageManager,h as resolveProjectName,m as resolveTemplateType};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{TEMPLATE_BRANCH as e,TEMPLATE_HOST as t,TEMPLATE_REPO as n}from"./constants.mjs";import{downloadTemplate as r}from"giget";function i(e){if(e===`
|
|
2
|
+
import{TEMPLATE_BRANCH as e,TEMPLATE_HOST as t,TEMPLATE_REPO as n}from"./constants.mjs";import{downloadTemplate as r}from"giget";function i(e){if(!(e===`client`||e===`sdk`))return`创建类型仅支持 client 或 sdk。`}function a(e){return e}function o(t){return`funhub:${n}/${a(t)}#${e}`}function s(){return async n=>{let r=n.match(/^([\w.-]+\/[\w.-]+)(\/[^#]+)?(?:#([\w./@-]+))?$/),i=r?.[1]||``,a=r?.[2]||`/`,o=r?.[3]||e;if(!i)throw Error(`模板仓库配置无效。`);return{name:i.replace(`/`,`-`),version:o,subdir:a,url:`${t}/${i}/-/tree/${o}${a}`,tar:`${t}/${i}/-/archive/${o}.tar.gz`,headers:{"sec-fetch-mode":`same-origin`}}}}async function c(e,t,n,i){return r(o(e),{dir:t,force:n,forceClean:n,cwd:i,providers:{funhub:s()},registry:!1})}export{c as pullTemplate,i as validateTemplateType};
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import{createClient as e}from"./cli/init/create-client.mjs";import{createSdk as t}from"./cli/init/create-sdk.mjs";import{resolveForceOverwrite as n,resolvePackageManager as r,resolveProjectName as i,resolveTemplateType as a}from"./cli/init/shared/prompts.mjs";import{intro as o,log as s,outro as c}from"@clack/prompts";function l(e){let t={};for(let n=0;n<e.length;n+=1){let r=e[n];if(!r.startsWith(`-`)&&!t.projectName){t.projectName=r;continue}if(r===`--type`){t.templateType=e[n+1],n+=1;continue}if(r.startsWith(`--type=`)){t.templateType=r.split(`=`)[1];continue}if(r===`--pm`){t.packageManager=e[n+1],n+=1;continue}if(r.startsWith(`--pm=`)){t.packageManager=r.split(`=`)[1];continue}if(r===`--no-install`){t.install=!1;continue}if(r===`--install`){t.install=!0;continue}if(r===`--no-git`){t.git=!1;continue}if(r===`--git`){t.git=!0;continue}if(r===`--force`){t.force=!0;continue}(r===`-h`||r===`--help`)&&(t.help=!0)}return t}function u(){c([`用法:`,` npx @funhub/platform init [project-name] [options]`,``,`选项:`,` --type <
|
|
4
|
-
`))}async function d(o){let s=l(o);if(s.help){u();return}let c=await i(s.projectName),d=await n(c,s.force??!1),f=await a(s.templateType),p=await r(s.packageManager),m=s.install??!0,h=s.git??!0;if(f===`
|
|
3
|
+
import{createClient as e}from"./cli/init/create-client.mjs";import{createSdk as t}from"./cli/init/create-sdk.mjs";import{resolveForceOverwrite as n,resolvePackageManager as r,resolveProjectName as i,resolveTemplateType as a}from"./cli/init/shared/prompts.mjs";import{intro as o,log as s,outro as c}from"@clack/prompts";function l(e){let t={};for(let n=0;n<e.length;n+=1){let r=e[n];if(!r.startsWith(`-`)&&!t.projectName){t.projectName=r;continue}if(r===`--type`){t.templateType=e[n+1],n+=1;continue}if(r.startsWith(`--type=`)){t.templateType=r.split(`=`)[1];continue}if(r===`--pm`){t.packageManager=e[n+1],n+=1;continue}if(r.startsWith(`--pm=`)){t.packageManager=r.split(`=`)[1];continue}if(r===`--no-install`){t.install=!1;continue}if(r===`--install`){t.install=!0;continue}if(r===`--no-git`){t.git=!1;continue}if(r===`--git`){t.git=!0;continue}if(r===`--force`){t.force=!0;continue}(r===`-h`||r===`--help`)&&(t.help=!0)}return t}function u(){c([`用法:`,` npx @funhub/platform init [project-name] [options]`,``,`选项:`,` --type <client|sdk> 指定模板类型`,` --pm <pnpm|npm|yarn|bun> 指定包管理器`,` --install / --no-install 是否自动安装依赖`,` --git / --no-git 是否初始化 Git 仓库`,` --force 覆盖非空目录`].join(`
|
|
4
|
+
`))}async function d(o){let s=l(o);if(s.help){u();return}let c=await i(s.projectName),d=await n(c,s.force??!1),f=await a(s.templateType),p=await r(s.packageManager),m=s.install??!0,h=s.git??!0;if(f===`client`){await e({projectName:c,packageManager:p,install:m,git:h,force:d});return}await t({projectName:c,packageManager:p,install:m,git:h,force:d})}async function f(){let[e,...t]=process.argv.slice(2);if(!e||e===`-h`||e===`--help`||e===`help`){u();return}if(e!==`init`)throw Error(`暂不支持命令 ${e},请使用 init。`);o(`@funhub/platform`),await d(t)}f().catch(e=>{let t=e instanceof Error?e.message:`创建失败`;s.error(t),process.exit(1)});
|
|
@@ -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
|
|
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
|
-
"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};
|
|
@@ -30,10 +30,6 @@ interface AdsMatchExtData {
|
|
|
30
30
|
* 展示数量。
|
|
31
31
|
*/
|
|
32
32
|
displayCount?: number;
|
|
33
|
-
/**
|
|
34
|
-
* 视频分辨率。
|
|
35
|
-
*/
|
|
36
|
-
resolution?: string;
|
|
37
33
|
}
|
|
38
34
|
/**
|
|
39
35
|
* 构建广告匹配请求体。
|
|
@@ -81,9 +77,6 @@ declare function adaptPopupAdMaterials(matchData?: AdsMatchResponseData | null):
|
|
|
81
77
|
title: string;
|
|
82
78
|
jumpUrl: string;
|
|
83
79
|
materialUrl: string;
|
|
84
|
-
advertiseType: number;
|
|
85
|
-
videoUrl: string;
|
|
86
|
-
resolution: string;
|
|
87
80
|
desc: string;
|
|
88
81
|
}[];
|
|
89
82
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
function e(e){return{...e}}function t(e){let t=e?.adExtData;if(!t)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch{return{}}}function n(e){return[...e??[]].sort((e,t)=>Number(e?.sort??0)-Number(t?.sort??0))}function r(e){return!!(e?.hit&&Array.isArray(e.materials)&&e.materials.length>0)}function i(e){return n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>({id:e.advertiseCode||``,materialUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,name:e.advertiseName||``}))}function a(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,icon:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,badgeText:`广告`}}).filter(e=>e.title&&e.icon&&e.jumpUrl);return{displayCount:l(e?.config,r.length),items:r}}function o(e){let t=n(e?.materials).map(e=>({id:e.advertiseCode||``,text:e.advertiseName||e.advertiseDesc||``,jumpUrl:e.advertiseUrl||``})).filter(e=>e.text);return{displayCount:l(e?.config,t.length),items:t}}function s(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl),i=r.map(e=>{let n=t(e);return{id:e.advertiseCode||``,coverUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,title:n.title||e.advertiseName||``}}).filter(e=>e.coverUrl&&e.jumpUrl);return{displayCount:l(e?.config,i.length),switchInterval:u(e?.config,r),styleSize:d(e?.config,r),items:i}}function c(e){return n(e?.materials).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,jumpUrl:e.advertiseUrl||``,materialUrl:e.advertiseIcon||``,
|
|
2
|
+
function e(e){return{...e}}function t(e){let t=e?.adExtData;if(!t)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch{return{}}}function n(e){return[...e??[]].sort((e,t)=>Number(e?.sort??0)-Number(t?.sort??0))}function r(e){return!!(e?.hit&&Array.isArray(e.materials)&&e.materials.length>0)}function i(e){return n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>({id:e.advertiseCode||``,materialUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,name:e.advertiseName||``}))}function a(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,icon:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,badgeText:`广告`}}).filter(e=>e.title&&e.icon&&e.jumpUrl);return{displayCount:l(e?.config,r.length),items:r}}function o(e){let t=n(e?.materials).map(e=>({id:e.advertiseCode||``,text:e.advertiseName||e.advertiseDesc||``,jumpUrl:e.advertiseUrl||``})).filter(e=>e.text);return{displayCount:l(e?.config,t.length),items:t}}function s(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl),i=r.map(e=>{let n=t(e);return{id:e.advertiseCode||``,coverUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,title:n.title||e.advertiseName||``}}).filter(e=>e.coverUrl&&e.jumpUrl);return{displayCount:l(e?.config,i.length),switchInterval:u(e?.config,r),styleSize:d(e?.config,r),items:i}}function c(e){return n(e?.materials).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,jumpUrl:e.advertiseUrl||``,materialUrl:e.advertiseIcon||``,desc:e.advertiseDesc||``}}).filter(e=>e.id&&e.materialUrl&&e.jumpUrl)}function l(e,t=0){let n=Number(e?.displayCount??t);return!Number.isFinite(n)||n<=0?t:Math.min(Math.floor(n),t)}function u(e,n){let r=t(n?.[0]),i=Number(e?.switchInterval??r.switchInterval??3e3);return!Number.isFinite(i)||i<=0?3e3:i}function d(e,n){let r=t(n?.[0]),i=String(e?.styleSize??r.styleSize??`large`);return i===`700x400`||i===`700x200`||i===`720x150`||i===`720x300`?i:i===`small`?`720x150`:i===`medium`?`700x200`:`700x400`}export{s as adaptBannerAdProps,i as adaptFloatingAdItems,a as adaptIconAdProps,c as adaptPopupAdMaterials,o as adaptTextAdProps,e as buildAdsMatchRequest,r as hasMatchedAds,t as parseAdsMatchExtData,n as sortAdsMatchMaterials};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
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
|
|
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;
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
animation-iteration-count: 1 !important;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
`})]})}):null}export{
|
|
64
|
+
`})]})}):null}export{b as PopupAd};
|
|
@@ -17,9 +17,6 @@ declare const popupAdMaterial: DefineMaterialOption<typeof PopupAdServer, typeof
|
|
|
17
17
|
title: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
18
18
|
jumpUrl: zod.ZodString & SchemaHasDefaultValue;
|
|
19
19
|
materialUrl: zod.ZodString & SchemaHasDefaultValue;
|
|
20
|
-
advertiseType: zod.ZodOptional<zod.ZodNumber> & SchemaHasDefaultValue;
|
|
21
|
-
videoUrl: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
22
|
-
resolution: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
23
20
|
desc: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
24
21
|
}, zod_v4_core0.$strip>>>;
|
|
25
22
|
} & {
|
|
@@ -13,9 +13,6 @@ interface PopupAdItem {
|
|
|
13
13
|
title?: string;
|
|
14
14
|
jumpUrl: string;
|
|
15
15
|
materialUrl: string;
|
|
16
|
-
advertiseType?: number;
|
|
17
|
-
videoUrl?: string;
|
|
18
|
-
resolution?: string;
|
|
19
16
|
desc?: string;
|
|
20
17
|
}
|
|
21
18
|
/**
|
|
@@ -27,9 +24,6 @@ declare const popupAdInspectorPropsSchema: z$1.ZodObject<{
|
|
|
27
24
|
title: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
28
25
|
jumpUrl: z$1.ZodString & SchemaHasDefaultValue;
|
|
29
26
|
materialUrl: z$1.ZodString & SchemaHasDefaultValue;
|
|
30
|
-
advertiseType: z$1.ZodOptional<z$1.ZodNumber> & SchemaHasDefaultValue;
|
|
31
|
-
videoUrl: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
32
|
-
resolution: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
33
27
|
desc: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
34
28
|
}, z$1.core.$strip>>>;
|
|
35
29
|
} & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({items:e.array(n.object({id:e.string(`popup-ad-1`,{label:`广告 ID`,required:!0}),title:e.string(`弹窗广告标题`,{label:`标题`,required:!1}),jumpUrl:e.string(`/search`,{label:`跳转链接`,required:!0}),materialUrl:e.string(`/static/components-resource/banner.png`,{label:`素材地址`,required:!0}),
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({items:e.array(n.object({id:e.string(`popup-ad-1`,{label:`广告 ID`,required:!0}),title:e.string(`弹窗广告标题`,{label:`标题`,required:!1}),jumpUrl:e.string(`/search`,{label:`跳转链接`,required:!0}),materialUrl:e.string(`/static/components-resource/banner.png`,{label:`素材地址`,required:!0}),desc:e.string(`这里是弹窗广告描述`,{label:`描述`,required:!1})}),{label:`广告列表`,required:!1})})),i=t(r);export{i as popupAdInspectorDefaultProps,r as popupAdInspectorPropsSchema};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{trackAppPageView as t,trackPageClick as n}from"../../../../utils/tracking.mjs";import{Box as r}from"../../../ui/box.mjs";import i from"../../../ui/link.mjs";import{urlPrefix as a}from"../../../../constants/url-prefix.mjs";import{useSticky as o}from"../../../../hooks/use-sticky.mjs";import s from"../../../../assets/icons/channel-list/channel-active-indicator.mjs";import c from"../../../../assets/icons/common/header-menu.mjs";import l,{loadHiddenChannelIdsFromStorage as u}from"./channel-filter-dialog.mjs";import{defaultProps as d}from"./default-props.mjs";import{clsx as f}from"clsx";import{
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{trackAppPageView as t,trackPageClick as n}from"../../../../utils/tracking.mjs";import{Box as r}from"../../../ui/box.mjs";import i from"../../../ui/link.mjs";import{urlPrefix as a}from"../../../../constants/url-prefix.mjs";import{useSticky as o}from"../../../../hooks/use-sticky.mjs";import s from"../../../../assets/icons/channel-list/channel-active-indicator.mjs";import c from"../../../../assets/icons/common/header-menu.mjs";import l,{loadHiddenChannelIdsFromStorage as u}from"./channel-filter-dialog.mjs";import{defaultProps as d}from"./default-props.mjs";import{clsx as f}from"clsx";import{useEffect as p,useMemo as m,useState as h}from"react";import{usePathname as g}from"next/navigation";import{Fragment as _,jsx as v,jsxs as y}from"react/jsx-runtime";import{useTranslations as b}from"next-intl";const x={},S=`h-[26px]`;function C(e,t){let n=`${a.DOMAIN}/`,r=t.indexOf(n),i=r!==-1,o=i?t.slice(r+n.length).split(`/`)[0]:void 0;return e.isDefault?i&&o?`${a.DOMAIN}/${o}`:`/`:i&&o?`${a.DOMAIN}/${o}/${encodeURIComponent(e.name)}`:`${a.CHANNEL}/${encodeURIComponent(e.name)}`}function w(a){let w=b(`components.biz.business.navBar.variants.basicNavBar.runtime`),{mode:T=`renderer`,styles:E,events:D,...O}=a,k=g()??`/`,A=T===`editor`,j=O||x,M={...d,...j},[N,P]=h(!1),{isSticky:F,ref:I}=o(),[L,R]=h(!1),[z,B]=h(M.list),V=m(()=>M.list.find(e=>e.isDefault)?.name??null,[M.list]),H=m(()=>M.currentChannelId??V,[M.currentChannelId,V]);p(()=>{H&&t({page_key:`page_home_channel_${H}`,page_name:`首页频道-${H}`})},[H]),p(()=>{let e=u();B(e?.length?M.list.filter(t=>!e.includes(t.name)):M.list)},[M.list]);let U=e=>{B(e)},W=(e,t)=>{n(`home`,`首页`,null,`channel_tab`,{channel_name:e.name}),D?.onChannelChange?.(e,t)},G=E?e(E,{}):void 0,K=()=>{P(!0),D?.onFilterClick?.()};return p(()=>{let e=()=>{let e=window.scrollY??document.documentElement.scrollTop??0,t=window.innerHeight,n=document.documentElement.scrollHeight;R(e+t>=n-1)};return window.addEventListener(`scroll`,e,{passive:!0}),e(),()=>{window.removeEventListener(`scroll`,e)}},[]),y(_,{children:[F&&v(r,{className:f(`w-full`,S)}),v(r,{as:`nav`,ref:I,className:f(`w-full bg-transparent transition-all duration-200`,A&&`pointer-events-none`,F&&`fixed top-0 left-0 right-0 z-50`),style:G,children:y(r,{className:f(`relative flex w-full items-center px-4`,S,M.modifiable&&`gap-2`),children:[v(r,{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:v(r,{className:`inline-flex h-full min-w-full items-center gap-[23.8px]`,children:z.map((e,t)=>{let n=H===e.name||H===null&&t===0;return v(i,{href:C(e,k),webviewNavMode:`spa`,className:f(`group relative inline-flex h-full shrink-0 cursor-pointer whitespace-nowrap transition-all duration-200`,n?`text-white`:`text-white/70`),onClick:()=>W(e,t),children:n?y(r,{className:f(`inline-grid grid-cols-1 grid-rows-1 place-items-start`,S),children:[v(r,{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}),v(r,{"aria-hidden":`true`,className:`col-start-1 row-start-1 ml-px mt-[15px] h-[11px] w-[39px]`,children:v(s,{className:`block h-full w-full`})})]}):v(r,{className:`inline-flex h-full items-center`,children:v(r,{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-${t}`)})})}),M.modifiable?v(`button`,{type:`button`,"aria-label":w(`moreChannelEntry`),className:`relative flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0`,onClick:K,children:v(c,{"aria-hidden":`true`,className:`h-[24px] w-[24px] text-white`})}):null]})}),v(l,{open:N,onOpenChange:P,channels:M.list,currentChannelId:H,onChannelClick:W,onChannelsChange:U})]})}export{w as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{formatCompactCount as e}from"../../../../../utils/common.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{pCommunityMoveCollectionContent as n}from"../../../../../service/generated/client.mjs";import{trackPageClick as r}from"../../../../../utils/tracking.mjs";import{Box as i}from"../../../../ui/box.mjs";import{Text as a}from"../../../../ui/text.mjs";import{useLoginModalStore as o}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as s}from"../../../../../hooks/query/use-query.mjs";import c from"../../../../common/interaction-animations.module.mjs";import l from"../../../../common/collection-popup/index.mjs";import u from"../../../../common/share-popup/share-popup.mjs";import{useInteractionAnimation as ee}from"../../../../../hooks/use-interaction-animation.mjs";import{useContentOperate as d}from"../../../../../hooks/use-content-operate.mjs";import te from"../../../../../assets/icons/detail/check-ok.mjs";import{toast as f}from"sonner";import{usePathname as ne,useSearchParams as re}from"next/navigation";import{useCallback as p,useEffect as m,useMemo as h,useRef as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{useTranslations as ie}from"next-intl";function ae({className:e}){return v(`svg`,{viewBox:`0 0 24 21`,fill:`none`,className:e,children:v(`path`,{d:`M21.2121 6.89394C21.2121 4.25805 19.0753 2.12121 16.4394 2.12121C14.8261 2.12121 13.3991 2.92114 12.5336 4.15024C12.3349 4.4321 12.0115 4.59976 11.6667 4.59976C11.3218 4.59976 10.9984 4.4321 10.7997 4.15024C9.93421 2.92114 8.50725 2.12121 6.89394 2.12121C4.25804 2.12121 2.12121 4.25805 2.12121 6.89394C2.12121 9.40321 3.62133 11.9321 5.72562 14.0572C7.68391 16.0348 10.0088 17.5016 11.6667 18.137C13.3246 17.5016 15.6494 16.0348 17.6077 14.0572C19.712 11.9321 21.2121 9.40321 21.2121 6.89394ZM23.3333 6.89394C23.3333 10.2178 21.3863 13.2566 19.1158 15.5497C16.8347 17.8533 14.0447 19.5915 12.0012 20.2706C11.7841 20.3428 11.5493 20.3428 11.3321 20.2706C9.28858 19.5915 6.4986 17.8533 4.21757 15.5497C1.94701 13.2566 0 10.2178 0 6.89394C0 3.08654 3.08652 0 6.89394 0C8.74758 0 10.4287 0.733771 11.6667 1.92235C12.9047 0.733771 14.5858 0 16.4394 0C20.2468 0 23.3333 3.08654 23.3333 6.89394Z`,fill:`currentColor`})})}function oe({className:e}){return v(`svg`,{viewBox:`0 0 24 21`,fill:`none`,className:e,children:v(`path`,{d:`M23.3333 6.89394C23.3333 10.2178 21.3863 13.2566 19.1158 15.5497C16.8347 17.8533 14.0447 19.5915 12.0012 20.2706C11.7841 20.3428 11.5493 20.3428 11.3321 20.2706C9.28858 19.5915 6.4986 17.8533 4.21757 15.5497C1.94701 13.2566 0 10.2178 0 6.89394C0 3.08654 3.08652 0 6.89394 0C8.74758 0 10.4287 0.733771 11.6667 1.92235C12.9047 0.733771 14.5858 0 16.4394 0C20.2468 0 23.3333 3.08654 23.3333 6.89394Z`,fill:`currentColor`})})}function se({className:e}){return v(`svg`,{viewBox:`0 0 24 23`,fill:`none`,className:e,children:v(`path`,{d:`M11.6636 2.65236e-06C12.0673 -0.000898131 12.437 0.227705 12.6165 0.589326L15.6522 6.70732L22.4258 7.69539C22.8246 7.75364 23.1564 8.03302 23.2813 8.41625C23.4062 8.79955 23.3021 9.22064 23.0141 9.50272L18.0882 14.3261L19.2585 21.0292C19.3281 21.4283 19.1639 21.8323 18.836 22.0701C18.5077 22.3079 18.072 22.3385 17.7143 22.1478L11.6657 18.9226L5.61917 22.1478C5.26131 22.3386 4.82579 22.3082 4.49748 22.0701C4.16923 21.832 4.00582 21.4276 4.07595 21.0282L5.25356 14.3271L0.319396 9.50376C0.0308898 9.2217 -0.0728394 8.79987 0.0521809 8.41625C0.177201 8.03266 0.509448 7.7533 0.90872 7.69539L7.71753 6.70732L10.7139 0.593469L10.7884 0.464005C10.9835 0.177012 11.3103 0.000910321 11.6636 2.65236e-06ZM9.37675 8.14386C9.22265 8.45841 8.92279 8.6767 8.57614 8.72697L3.33644 9.48615L7.1365 13.2013C7.38683 13.446 7.50059 13.799 7.43996 14.1438L6.54096 19.2509L11.1675 16.7859L11.2866 16.731C11.5714 16.6219 11.8921 16.6405 12.1649 16.7859L16.7946 19.253L15.9028 14.1427C15.8428 13.7988 15.9559 13.4467 16.2052 13.2023L20.0001 9.48511L14.7967 8.72697C14.4525 8.67672 14.155 8.46057 14.0002 8.14904L11.6719 3.45827L9.37675 8.14386Z`,fill:`currentColor`})})}function b({className:e}){return v(`svg`,{viewBox:`0 0 24 23`,fill:`none`,className:e,children:v(`path`,{d:`M11.6636 2.65236e-06C12.0673 -0.000898131 12.437 0.227705 12.6165 0.589326L15.6522 6.70732L22.4258 7.69539C22.8246 7.75364 23.1564 8.03302 23.2813 8.41625C23.4062 8.79955 23.3021 9.22064 23.0141 9.50272L18.0882 14.3261L19.2585 21.0292C19.3281 21.4283 19.1639 21.8323 18.836 22.0701C18.5077 22.3079 18.072 22.3385 17.7143 22.1478L11.6657 18.9226L5.61917 22.1478C5.26131 22.3386 4.82579 22.3082 4.49748 22.0701C4.16923 21.832 4.00582 21.4276 4.07595 21.0282L5.25356 14.3271L0.319396 9.50376C0.0308898 9.2217 -0.0728394 8.79987 0.0521809 8.41625C0.177201 8.03266 0.509448 7.7533 0.90872 7.69539L7.71753 6.70732L10.7139 0.593469L10.7884 0.464005C10.9835 0.177012 11.3103 0.000910321 11.6636 2.65236e-06Z`,fill:`currentColor`})})}function x({className:e}){return v(`svg`,{viewBox:`0 0 24 24`,fill:`none`,className:e,children:v(`path`,{d:`M11.7968 0.0846035C12.212 -0.0873746 12.69 0.00771373 13.0078 0.325488L23.0077 10.3254C23.22 10.5377 23.3375 10.8271 23.3332 11.1273C23.3288 11.4272 23.2029 11.7123 22.9849 11.9183L12.985 21.3627C12.6625 21.6673 12.1901 21.7509 11.7827 21.5754C11.3753 21.3998 11.1111 20.9991 11.1111 20.5554V15.6216C8.22953 15.9648 6.08879 17.6095 4.58982 19.3391C3.74967 20.3085 3.13167 21.2821 2.7246 22.0148C2.52173 22.38 2.37311 22.6823 2.27646 22.8894C2.22828 22.9927 2.19344 23.0722 2.17121 23.1238C2.16011 23.1495 2.15201 23.169 2.14734 23.1802C2.1451 23.1856 2.14372 23.1893 2.143 23.191C1.94502 23.6852 1.42342 23.9699 0.900603 23.8692C0.377728 23.7684 0 23.3102 0 22.7776C0 17.9877 0.696606 13.8374 2.60632 10.8582C4.41013 8.04448 7.21019 6.40446 11.1111 6.14686V1.11107C11.1111 0.661725 11.3817 0.256615 11.7968 0.0846035ZM13.3333 7.22216C13.3333 7.8358 12.8358 8.33326 12.2222 8.33326C8.37436 8.33326 5.97849 9.71592 4.47697 12.0583C3.44269 13.6719 2.79177 15.8074 2.46852 18.4168C2.60946 18.2401 2.75584 18.061 2.91014 17.8829C4.8356 15.6613 7.89407 13.3332 12.2222 13.3332C12.8358 13.3332 13.3333 13.8307 13.3333 14.4443V17.9773L20.6282 11.0882L13.3333 3.79335V7.22216Z`,fill:`currentColor`})})}function S({mode:S=`renderer`,information:E,onUpdate:D}){let O=S===`editor`||!E?.id||E.id.startsWith(`preview-`),k=`${ne()}?${re()?.toString()||``}`,A=g(k),j=ie(`components.biz.business.detail`),M=ee(),N=h(()=>w(E),[E]),P=h(()=>T(E),[E]),[F,I]=_(!1),[L,R]=_(!1),z=g(0),B=g(0),V=t(e=>e.userId),H=t(e=>e.isLogin),U=s();m(()=>{A.current!==k&&(u.clear(),A.current=k)},[k]),m(()=>()=>{u.clear()},[]);let W=p(()=>{V&&(U([`user-profile`,`mine`,V,`user-like-video`]),U([`user-profile`,`mine`,V,`user-like-post`]),U([`user-profile`,`mine`,V,`user-collect-video`,V]),U([`user-profile`,`mine`,V,`user-collect-post`,V]))},[U,V]),{likeAnimation:G,handleLikeOperate:K,handleDefaultCollectionOperate:q,handleShareOperate:J}=d({id:E.id,isLike:E.like||!1,isDislike:E.dislike||!1,isCollect:!!E.collect||!1,likeCnt:w(E),dislikeCnt:C(E.static?.dislike_cnt),contentType:1,prefetchDefaultCollection:!O,animationClasses:{like:c.likeShakeAnimation,dislike:c.dislikeShakeAnimation}}),Y=p(e=>{D?.({...e})},[D]),X=p(async()=>{if(F)return;if(!H){o.getState().open();return}let e=Date.now();if(e-z.current<300)return;z.current=e,r(`page_video_detail`,`详情页`,null,`detail_like`,{object_id:E.id}),I(!0);let t=E.like||!1,n=E.dislike||!1,i=w(E),a=C(E.static?.dislike_cnt),s=!t,c=Math.max(0,i+(s?1:-1)),l=s?!1:n,u=s&&n?Math.max(0,a-1):a;Y({like:s,dislike:l,like_count:c,static:{...E.static,dislike_cnt:u}});try{let e=await K();if(!e){Y({like:t,dislike:n,like_count:i,static:{...E.static,dislike_cnt:a}});return}Y({like:e.isLike,dislike:e.isDislike??l,like_count:e.likeCnt,static:{...E.static,dislike_cnt:e.dislikeCnt??u}}),W(),f.success(e.isLike?j(`detailOperate.likeSuccess`):j(`detailOperate.unlikeSuccess`)),window.sensors?.track?.(`detail_like_click`,{object_id:E.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),f.error(j(`detailOperate.likeFailed`))}finally{I(!1)}},[K,E,W,F,H,j,Y]),Z=h(()=>E.id,[E.id]),ce=p(()=>{r(`page_video_detail`,`详情页`,null,`detail_share`,{object_id:E.id}),J(({isCollect:e})=>{Y({collect:e})},Z)},[J,Z,Y,E.id]),Q=p(()=>{l.show({mode:`select`,onCollect:async e=>{try{let t=await n({new_collection_id:e,content_id:E.id});if(t.code!==0)throw Error(t.message||j(`detailOperate.collectFailed`));Y({collect:!0}),W(),f.success(j(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),f.error(j(`detailOperate.collectFailed`))}}})},[E.id,W,j,Y]),$=p(e=>{let t=e||j(`detailOperate.defaultCollection`);f.custom(e=>y(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[y(`div`,{className:`flex items-center gap-[10px]`,children:[v(`div`,{className:`w-[14px] h-[14px] rounded-full bg-white flex items-center justify-center`,children:v(te,{className:`w-[14px] h-[14px]`})}),y(`div`,{className:`flex items-center gap-[6px]`,children:[v(`span`,{className:`text-[14px] leading-[20px]`,children:j(`detailOperate.collectAdded`)}),v(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),v(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{f.dismiss(e),Q()},children:j(`detailOperate.modifyCollection`)})]}))},[Q,j]),le=p(async()=>{if(L)return;if(!H){o.getState().open();return}let e=Date.now();if(e-B.current<300)return;B.current=e,r(`page_video_detail`,`详情页`,null,`detail_collect`,{object_id:E.id});let t=E.collect||!1,n=!t,i=T(E),a=Math.max(0,i+(n?1:-1));R(!0),Y({collect:n,collect_count:a}),n&&M.trigger(c.likeShakeAnimation),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:t?`取消收藏`:`收藏`});try{let e=await q({currentCollect:t,onUpdate:({isCollect:e})=>{Y({collect:e})}});if(!e?.success){Y({collect:t,collect_count:i}),f.error(e?.message||j(`detailOperate.collectFailed`));return}Y({collect:e.isCollect??n,collect_count:a}),W(),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:e.isCollect?`收藏`:`取消收藏`}),!t&&e.isCollect&&$(e.collectionTitle),t&&e.isCollect===!1&&f.success(j(`detailOperate.uncollectSuccess`))}catch(e){Y({collect:t,collect_count:i}),console.error(`收藏操作失败:`,e),f.error(e?.message||j(`detailOperate.collectFailed`))}finally{R(!1)}},[M,q,E,W,L,H,$,j,Y]);return y(i,{className:`mt-[16px] flex h-[52px] w-full items-center justify-between px-[48px] ${O?`pointer-events-none`:``}`,children:[y(i,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] ${F?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:X,children:[E.like?v(oe,{className:`size-[28px] text-[#FF5D8F] ${G.animationClass}`}):v(ae,{className:`size-[28px] text-white`}),v(a,{className:`text-center text-[14px] leading-[22px] ${E.like?`text-[#FF5D8F]`:`text-white`}`,children:N>0?e(N):j(`detailOperate.like`)})]}),y(i,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] ${L?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:le,children:[E.collect?v(b,{className:`size-[28px] text-[#FFC039] ${M.animationClass}`}):v(se,{className:`size-[28px] text-white`}),v(a,{className:`text-center text-[14px] leading-[22px] ${E.collect?`text-[#FFC039]`:`text-white`}`,children:P>0?e(P):j(`detailOperate.collection`)})]}),y(i,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] cursor-pointer`,onClick:ce,children:[v(x,{className:`size-[28px] text-white`}),v(a,{className:`text-center text-[14px] leading-[22px] text-white`,children:j(`detailOperate.share`)})]})]})}function C(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}function w(e){return C(e.like_count)}function T(e){return C(e.collect_count)}export{S as DetailOperate};
|
|
2
|
+
"use client";import{formatCompactCount as e}from"../../../../../utils/common.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{pCommunityMoveCollectionContent as n}from"../../../../../service/generated/client.mjs";import{trackPageClick as r}from"../../../../../utils/tracking.mjs";import{Box as i}from"../../../../ui/box.mjs";import{Text as a}from"../../../../ui/text.mjs";import{useLoginModalStore as o}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as s}from"../../../../../hooks/query/use-query.mjs";import c from"../../../../common/interaction-animations.module.mjs";import l from"../../../../common/collection-popup/index.mjs";import u from"../../../../common/share-popup/share-popup.mjs";import{useInteractionAnimation as ee}from"../../../../../hooks/use-interaction-animation.mjs";import{useContentOperate as d}from"../../../../../hooks/use-content-operate.mjs";import te from"../../../../../assets/icons/detail/check-ok.mjs";import{toast as f}from"sonner";import{useCallback as p,useEffect as m,useMemo as h,useRef as g,useState as _}from"react";import{usePathname as v,useSearchParams as ne}from"next/navigation";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{useTranslations as x}from"next-intl";function re({className:e}){return y(`svg`,{viewBox:`0 0 24 21`,fill:`none`,className:e,children:y(`path`,{d:`M21.2121 6.89394C21.2121 4.25805 19.0753 2.12121 16.4394 2.12121C14.8261 2.12121 13.3991 2.92114 12.5336 4.15024C12.3349 4.4321 12.0115 4.59976 11.6667 4.59976C11.3218 4.59976 10.9984 4.4321 10.7997 4.15024C9.93421 2.92114 8.50725 2.12121 6.89394 2.12121C4.25804 2.12121 2.12121 4.25805 2.12121 6.89394C2.12121 9.40321 3.62133 11.9321 5.72562 14.0572C7.68391 16.0348 10.0088 17.5016 11.6667 18.137C13.3246 17.5016 15.6494 16.0348 17.6077 14.0572C19.712 11.9321 21.2121 9.40321 21.2121 6.89394ZM23.3333 6.89394C23.3333 10.2178 21.3863 13.2566 19.1158 15.5497C16.8347 17.8533 14.0447 19.5915 12.0012 20.2706C11.7841 20.3428 11.5493 20.3428 11.3321 20.2706C9.28858 19.5915 6.4986 17.8533 4.21757 15.5497C1.94701 13.2566 0 10.2178 0 6.89394C0 3.08654 3.08652 0 6.89394 0C8.74758 0 10.4287 0.733771 11.6667 1.92235C12.9047 0.733771 14.5858 0 16.4394 0C20.2468 0 23.3333 3.08654 23.3333 6.89394Z`,fill:`currentColor`})})}function ie({className:e}){return y(`svg`,{viewBox:`0 0 24 21`,fill:`none`,className:e,children:y(`path`,{d:`M23.3333 6.89394C23.3333 10.2178 21.3863 13.2566 19.1158 15.5497C16.8347 17.8533 14.0447 19.5915 12.0012 20.2706C11.7841 20.3428 11.5493 20.3428 11.3321 20.2706C9.28858 19.5915 6.4986 17.8533 4.21757 15.5497C1.94701 13.2566 0 10.2178 0 6.89394C0 3.08654 3.08652 0 6.89394 0C8.74758 0 10.4287 0.733771 11.6667 1.92235C12.9047 0.733771 14.5858 0 16.4394 0C20.2468 0 23.3333 3.08654 23.3333 6.89394Z`,fill:`currentColor`})})}function ae({className:e}){return y(`svg`,{viewBox:`0 0 24 23`,fill:`none`,className:e,children:y(`path`,{d:`M11.6636 2.65236e-06C12.0673 -0.000898131 12.437 0.227705 12.6165 0.589326L15.6522 6.70732L22.4258 7.69539C22.8246 7.75364 23.1564 8.03302 23.2813 8.41625C23.4062 8.79955 23.3021 9.22064 23.0141 9.50272L18.0882 14.3261L19.2585 21.0292C19.3281 21.4283 19.1639 21.8323 18.836 22.0701C18.5077 22.3079 18.072 22.3385 17.7143 22.1478L11.6657 18.9226L5.61917 22.1478C5.26131 22.3386 4.82579 22.3082 4.49748 22.0701C4.16923 21.832 4.00582 21.4276 4.07595 21.0282L5.25356 14.3271L0.319396 9.50376C0.0308898 9.2217 -0.0728394 8.79987 0.0521809 8.41625C0.177201 8.03266 0.509448 7.7533 0.90872 7.69539L7.71753 6.70732L10.7139 0.593469L10.7884 0.464005C10.9835 0.177012 11.3103 0.000910321 11.6636 2.65236e-06ZM9.37675 8.14386C9.22265 8.45841 8.92279 8.6767 8.57614 8.72697L3.33644 9.48615L7.1365 13.2013C7.38683 13.446 7.50059 13.799 7.43996 14.1438L6.54096 19.2509L11.1675 16.7859L11.2866 16.731C11.5714 16.6219 11.8921 16.6405 12.1649 16.7859L16.7946 19.253L15.9028 14.1427C15.8428 13.7988 15.9559 13.4467 16.2052 13.2023L20.0001 9.48511L14.7967 8.72697C14.4525 8.67672 14.155 8.46057 14.0002 8.14904L11.6719 3.45827L9.37675 8.14386Z`,fill:`currentColor`})})}function oe({className:e}){return y(`svg`,{viewBox:`0 0 24 23`,fill:`none`,className:e,children:y(`path`,{d:`M11.6636 2.65236e-06C12.0673 -0.000898131 12.437 0.227705 12.6165 0.589326L15.6522 6.70732L22.4258 7.69539C22.8246 7.75364 23.1564 8.03302 23.2813 8.41625C23.4062 8.79955 23.3021 9.22064 23.0141 9.50272L18.0882 14.3261L19.2585 21.0292C19.3281 21.4283 19.1639 21.8323 18.836 22.0701C18.5077 22.3079 18.072 22.3385 17.7143 22.1478L11.6657 18.9226L5.61917 22.1478C5.26131 22.3386 4.82579 22.3082 4.49748 22.0701C4.16923 21.832 4.00582 21.4276 4.07595 21.0282L5.25356 14.3271L0.319396 9.50376C0.0308898 9.2217 -0.0728394 8.79987 0.0521809 8.41625C0.177201 8.03266 0.509448 7.7533 0.90872 7.69539L7.71753 6.70732L10.7139 0.593469L10.7884 0.464005C10.9835 0.177012 11.3103 0.000910321 11.6636 2.65236e-06Z`,fill:`currentColor`})})}function se({className:e}){return y(`svg`,{viewBox:`0 0 24 24`,fill:`none`,className:e,children:y(`path`,{d:`M11.7968 0.0846035C12.212 -0.0873746 12.69 0.00771373 13.0078 0.325488L23.0077 10.3254C23.22 10.5377 23.3375 10.8271 23.3332 11.1273C23.3288 11.4272 23.2029 11.7123 22.9849 11.9183L12.985 21.3627C12.6625 21.6673 12.1901 21.7509 11.7827 21.5754C11.3753 21.3998 11.1111 20.9991 11.1111 20.5554V15.6216C8.22953 15.9648 6.08879 17.6095 4.58982 19.3391C3.74967 20.3085 3.13167 21.2821 2.7246 22.0148C2.52173 22.38 2.37311 22.6823 2.27646 22.8894C2.22828 22.9927 2.19344 23.0722 2.17121 23.1238C2.16011 23.1495 2.15201 23.169 2.14734 23.1802C2.1451 23.1856 2.14372 23.1893 2.143 23.191C1.94502 23.6852 1.42342 23.9699 0.900603 23.8692C0.377728 23.7684 0 23.3102 0 22.7776C0 17.9877 0.696606 13.8374 2.60632 10.8582C4.41013 8.04448 7.21019 6.40446 11.1111 6.14686V1.11107C11.1111 0.661725 11.3817 0.256615 11.7968 0.0846035ZM13.3333 7.22216C13.3333 7.8358 12.8358 8.33326 12.2222 8.33326C8.37436 8.33326 5.97849 9.71592 4.47697 12.0583C3.44269 13.6719 2.79177 15.8074 2.46852 18.4168C2.60946 18.2401 2.75584 18.061 2.91014 17.8829C4.8356 15.6613 7.89407 13.3332 12.2222 13.3332C12.8358 13.3332 13.3333 13.8307 13.3333 14.4443V17.9773L20.6282 11.0882L13.3333 3.79335V7.22216Z`,fill:`currentColor`})})}function S({mode:S=`renderer`,information:E,onUpdate:D}){let O=S===`editor`||!E?.id||E.id.startsWith(`preview-`),k=`${v()}?${ne()?.toString()||``}`,A=g(k),j=x(`components.biz.business.detail`),M=ee(),N=h(()=>w(E),[E]),P=h(()=>T(E),[E]),[F,I]=_(!1),[L,R]=_(!1),z=g(0),B=g(0),V=t(e=>e.userId),H=t(e=>e.isLogin),U=s();m(()=>{A.current!==k&&(u.clear(),A.current=k)},[k]),m(()=>()=>{u.clear()},[]);let W=p(()=>{V&&(U([`user-profile`,`mine`,V,`user-like-video`]),U([`user-profile`,`mine`,V,`user-like-post`]),U([`user-profile`,`mine`,V,`user-collect-video`,V]),U([`user-profile`,`mine`,V,`user-collect-post`,V]))},[U,V]),{likeAnimation:G,handleLikeOperate:K,handleDefaultCollectionOperate:q,handleShareOperate:J}=d({id:E.id,isLike:E.like||!1,isDislike:E.dislike||!1,isCollect:!!E.collect||!1,likeCnt:w(E),dislikeCnt:C(E.static?.dislike_cnt),contentType:1,prefetchDefaultCollection:!O,animationClasses:{like:c.likeShakeAnimation,dislike:c.dislikeShakeAnimation}}),Y=p(e=>{D?.({...e})},[D]),X=p(async()=>{if(F)return;if(!H){o.getState().open();return}let e=Date.now();if(e-z.current<300)return;z.current=e,r(`page_video_detail`,`详情页`,null,`detail_like`,{object_id:E.id}),I(!0);let t=E.like||!1,n=E.dislike||!1,i=w(E),a=C(E.static?.dislike_cnt),s=!t,c=Math.max(0,i+(s?1:-1)),l=s?!1:n,u=s&&n?Math.max(0,a-1):a;Y({like:s,dislike:l,like_count:c,static:{...E.static,dislike_cnt:u}});try{let e=await K();if(!e){Y({like:t,dislike:n,like_count:i,static:{...E.static,dislike_cnt:a}});return}Y({like:e.isLike,dislike:e.isDislike??l,like_count:e.likeCnt,static:{...E.static,dislike_cnt:e.dislikeCnt??u}}),W(),f.success(e.isLike?j(`detailOperate.likeSuccess`):j(`detailOperate.unlikeSuccess`)),window.sensors?.track?.(`detail_like_click`,{object_id:E.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),f.error(j(`detailOperate.likeFailed`))}finally{I(!1)}},[K,E,W,F,H,j,Y]),Z=h(()=>E.id,[E.id]),ce=p(()=>{r(`page_video_detail`,`详情页`,null,`detail_share`,{object_id:E.id}),J(({isCollect:e})=>{Y({collect:e})},Z)},[J,Z,Y,E.id]),Q=p(()=>{l.show({mode:`select`,onCollect:async e=>{try{let t=await n({new_collection_id:e,content_id:E.id});if(t.code!==0)throw Error(t.message||j(`detailOperate.collectFailed`));Y({collect:!0}),W(),f.success(j(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),f.error(j(`detailOperate.collectFailed`))}}})},[E.id,W,j,Y]),$=p(e=>{let t=e||j(`detailOperate.defaultCollection`);f.custom(e=>b(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[b(`div`,{className:`flex items-center gap-[10px]`,children:[y(`div`,{className:`w-[24px] h-[24px] rounded-full bg-white flex items-center justify-center`,children:y(te,{className:`w-[14px] h-[14px]`})}),b(`div`,{className:`flex items-center gap-[6px]`,children:[y(`span`,{className:`text-[14px] leading-[20px]`,children:j(`detailOperate.collectAdded`)}),y(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),y(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{f.dismiss(e),Q()},children:j(`detailOperate.modifyCollection`)})]}))},[Q,j]),le=p(async()=>{if(L)return;if(!H){o.getState().open();return}let e=Date.now();if(e-B.current<300)return;B.current=e,r(`page_video_detail`,`详情页`,null,`detail_collect`,{object_id:E.id});let t=E.collect||!1,n=!t,i=T(E),a=Math.max(0,i+(n?1:-1));R(!0),Y({collect:n,collect_count:a}),n&&M.trigger(c.likeShakeAnimation),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:t?`取消收藏`:`收藏`});try{let e=await q({currentCollect:t,onUpdate:({isCollect:e})=>{Y({collect:e})}});if(!e?.success){Y({collect:t,collect_count:i}),f.error(e?.message||j(`detailOperate.collectFailed`));return}Y({collect:e.isCollect??n,collect_count:a}),W(),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:e.isCollect?`收藏`:`取消收藏`}),!t&&e.isCollect&&$(e.collectionTitle),t&&e.isCollect===!1&&f.success(j(`detailOperate.uncollectSuccess`))}catch(e){Y({collect:t,collect_count:i}),console.error(`收藏操作失败:`,e),f.error(e?.message||j(`detailOperate.collectFailed`))}finally{R(!1)}},[M,q,E,W,L,H,$,j,Y]);return b(i,{className:`mt-[16px] flex h-[52px] w-full items-center justify-between px-[48px] ${O?`pointer-events-none`:``}`,children:[b(i,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] ${F?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:X,children:[E.like?y(ie,{className:`size-[28px] text-[#FF5D8F] ${G.animationClass}`}):y(re,{className:`size-[28px] text-white`}),y(a,{className:`text-center text-[14px] leading-[22px] ${E.like?`text-[#FF5D8F]`:`text-white`}`,children:N>0?e(N):j(`detailOperate.like`)})]}),b(i,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] ${L?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:le,children:[E.collect?y(oe,{className:`size-[28px] text-[#FFC039] ${M.animationClass}`}):y(ae,{className:`size-[28px] text-white`}),y(a,{className:`text-center text-[14px] leading-[22px] ${E.collect?`text-[#FFC039]`:`text-white`}`,children:P>0?e(P):j(`detailOperate.collection`)})]}),b(i,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] cursor-pointer`,onClick:ce,children:[y(se,{className:`size-[28px] text-white`}),y(a,{className:`text-center text-[14px] leading-[22px] text-white`,children:j(`detailOperate.share`)})]})]})}function C(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}function w(e){return C(e.like_count)}function T(e){return C(e.collect_count)}export{S as DetailOperate};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{gContentGetVideoDetail as e}from"../../../../../service/generated/client.mjs";import{useRouter as t}from"../../../../../utils/use-compatible-router.mjs";import{buildVideoPlayerSrc as n}from"../../../../common/video-player/process-m3u8-cache.mjs";import{notifyBridgeEpisodeChanged as r}from"../../../../../utils/login-modal-bridge.mjs";import{useRequest as i}from"../../../../../hooks/query/use-query.mjs";import{useKeepAliveState as a}from"../../../../common/keep-scroll-position/index.mjs";import{
|
|
2
|
+
"use client";import{gContentGetVideoDetail as e}from"../../../../../service/generated/client.mjs";import{useRouter as t}from"../../../../../utils/use-compatible-router.mjs";import{buildVideoPlayerSrc as n}from"../../../../common/video-player/process-m3u8-cache.mjs";import{notifyBridgeEpisodeChanged as r}from"../../../../../utils/login-modal-bridge.mjs";import{useRequest as i}from"../../../../../hooks/query/use-query.mjs";import{useKeepAliveState as a}from"../../../../common/keep-scroll-position/index.mjs";import{createContext as o,use as s,useCallback as c,useEffect as l,useMemo as u}from"react";import{useParams as d}from"next/navigation";import{jsx as f}from"react/jsx-runtime";const p=o(void 0),m=`funhub:video-detail-episode-sync`;function h(e,t){let n=String(e||``).split(`/`).filter(Boolean),r=n.findIndex(e=>e===`video`||e===`webview`);return r<0?!1:n[r+1]===t}function g(e){let t=Math.floor(Number(e)||1);return t>0?t:1}function _(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(m,{detail:e}))}function v(e){return e.type===m&&e instanceof CustomEvent}function y(e,t){if(!(!e&&!t))return{information:e?.information??t?.information,currentSeriesNum:e?.currentSeriesNum??t?.currentSeriesNum,onEpisodeChange:e?.onEpisodeChange??t?.onEpisodeChange,onUpdateInformation:e?.onUpdateInformation??t?.onUpdateInformation,detailId:e?.detailId??t?.detailId,episodeIndex:e?.episodeIndex??t?.episodeIndex,resumeProgressSeconds:e?.resumeProgressSeconds??t?.resumeProgressSeconds,isShow:e?.isShow??t?.isShow,isWebView:e?.isWebView??t?.isWebView,isInformationLoading:e?.isInformationLoading??t?.isInformationLoading,isInformationResolved:e?.isInformationResolved??t?.isInformationResolved,playerRef:e?.playerRef??t?.playerRef}}function b({value:e,children:t}){let n=s(p);return f(p,{value:u(()=>y(n,e)??e,[n,e]),children:t})}function x(){let e=s(p),t=e!==void 0&&e.onEpisodeChange===void 0,n=S({enabled:e===void 0||e.onEpisodeChange===void 0||e.detailId===void 0||e.currentSeriesNum===void 0||e.episodeIndex===void 0||e.isInformationLoading===void 0||e.isInformationResolved===void 0,shouldRequestInformation:t||!e?.information});return u(()=>{let r=y(e,n);return r&&(e&&n&&t?{...r,information:n.information??r.information,currentSeriesNum:n.currentSeriesNum??r.currentSeriesNum,episodeIndex:n.episodeIndex??r.episodeIndex,onEpisodeChange:n.onEpisodeChange??r.onEpisodeChange,isInformationLoading:n.isInformationLoading??r.isInformationLoading,isInformationResolved:n.isInformationResolved??r.isInformationResolved}:r)},[e,n,t])}function S(o){let{enabled:s,shouldRequestInformation:f}=o,p=d(),y=t(),b=p.level,x=Array.isArray(b)?b:typeof b==`string`?[b]:[],S=x[0]||``,C=x.findIndex(e=>e===`episode`),w=C>=0?x[C+1]:x[2],T=Math.max(1,Number(w)||1),[E,D]=a(`video-detail-material-series-num-${S}`,T);l(()=>{D(T)},[T,D]),l(()=>{if(!S||typeof window>`u`)return;let e=e=>{if(!v(e))return;let t=e.detail;if(!t||t.detailId!==S)return;let n=g(t.seriesNum);D(e=>e===n?e:n)};return window.addEventListener(m,e),()=>{window.removeEventListener(m,e)}},[S,D]);let O=c(e=>{if(!S)return;let t=g(e);D(t),_({detailId:S,seriesNum:t})},[S,D]),k=Math.max(1,Number(E)||1),A=Math.max(0,k-1),j=x[1]||``,M=typeof window<`u`&&window.isWebView===!0,{data:N,isPending:P,isFetching:F,isError:I,isSuccess:L}=i([`video-detail`,S],async()=>S?await e({id:S}):null,{enabled:s&&f&&!!S}),R=u(()=>{let e=N?.data?.video;if(!(!e||typeof e!=`object`))return{...e,content_type:1,episode_cnt:e.links?.length||0}},[N?.data?.video]),z=c(e=>{let t=Math.max(1,Math.floor(Number(e)||1));if(!S||typeof window>`u`)return;let i=`/${M?`webview`:`video`}/${S}/${encodeURIComponent(j)}/episode/${t}`,{search:a,hash:o,pathname:s}=window.location,c=`${s}${a}${o}`,l=`${i}${a}${o}`,u=h(s,S);if(c!==l){if(M){let e=R?.links?.[Math.max(0,t-1)],i=n(String(e?.m3u8_url||e?.preview_m3u8_url||``).trim());r({poster:String(R?.img_y||R?.img_x||R?.preview_images?.[0]||``).trim(),src:i,title:String(R?.title||R?.name||``).trim(),contentId:S,episode:t}),k!==t&&O(t);return}u&&typeof window.history?.replaceState==`function`?(window.history.replaceState(window.history.state,``,l),O(t)):y.replace(l,{scroll:!1});return}k!==t&&O(t)},[k,S,R?.img_x,R?.img_y,R?.links,R?.name,R?.preview_images,R?.title,M,j,y,O]);if(l(()=>{let e=Array.isArray(R?.links)?R.links.length:0;e<=0||k<=e||z(1)},[k,R?.links,z]),s)return{information:R,currentSeriesNum:k,onEpisodeChange:z,detailId:S,episodeIndex:A,resumeProgressSeconds:0,isShow:!0,isWebView:M,isInformationLoading:f?!!S&&!R&&(P||F):!1,isInformationResolved:!S||!!R||!f||I||L}}export{b as VideoDetailMaterialRuntimeProvider,x as useVideoDetailMaterialRuntimeContext};
|