@funhub/platform 0.1.60 → 0.1.61

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 CHANGED
@@ -87,7 +87,7 @@ import { imageTextRecommendInspectorPropsSchema } from "./components/biz/busines
87
87
  import { ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps } from "./components/biz/business/image-text-recommend/client.mjs";
88
88
  import { ImageTextRecommendServer } from "./components/biz/business/image-text-recommend/server.mjs";
89
89
  import { imageTextRecommendMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
90
- import { marqueeInspectorPropsSchema } from "./components/biz/business/marquee/schema.mjs";
90
+ import { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema } from "./components/biz/business/marquee/schema.mjs";
91
91
  import { MarqueeClient, MarqueeProps } from "./components/biz/business/marquee/client.mjs";
92
92
  import { MarqueeServer } from "./components/biz/business/marquee/server.mjs";
93
93
  import { marqueeMaterial } from "./components/biz/business/marquee/material.mjs";
@@ -154,4 +154,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
154
154
  import "./components/biz/example/button/index.mjs";
155
155
  import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
156
156
  import "./components/biz/renderer/index.mjs";
157
- export { BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabAuthConfig, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabAuthConfig, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, ProfileHeaderInspectorProps, ProfileMainAuthConfig, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeader, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileHeaderProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildCollectTabPrefetch, buildContentUrl, buildHistoryTabPrefetch, buildLikeTabPrefetch, buildPublishTabPrefetch, buildUserProfileHeaderPrefetch, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, customStylesToInline, exampleButtonMaterial, extractDataByComponentType, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getCardSpecConfig, getChannelList, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorPropsSchema, searchInputMaterial, tabBarInspectorPropsSchema, tabBarMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem };
157
+ export { BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabAuthConfig, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabAuthConfig, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, ProfileHeaderInspectorProps, ProfileMainAuthConfig, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeader, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileHeaderProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildCollectTabPrefetch, buildContentUrl, buildHistoryTabPrefetch, buildLikeTabPrefetch, buildPublishTabPrefetch, buildUserProfileHeaderPrefetch, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, customStylesToInline, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorPropsSchema, searchInputMaterial, tabBarInspectorPropsSchema, tabBarMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem };
package/dist/biz.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as $}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{MarqueeClient as He}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as Ue}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as We}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ge}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ke}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as qe}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Je from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ye}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Xe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Ze}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Qe,profileHeaderInspectorPropsSchema as $e}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as et,buildUserProfileHeaderPrefetch as tt}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as nt,profileHeaderMaterialWithDisabledBackground as rt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as it,profileMainCollectTabOptions as at,profileMainHistoryTabOptions as ot,profileMainLikeTabOptions as st,profileMainMineTabOptions as ct,profileMainProfileTabOptions as lt,profileMainTabOptions as ut}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as dt}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as ft}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pt,profileMainInspectorPropsSchema as mt}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as ht}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as gt,buildCollectTabPrefetch as _t}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as vt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as yt,buildHistoryTabPrefetch as bt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as xt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as St,buildLikeTabPrefetch as Ct}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as wt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Tt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as Et}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Dt,buildPublishTabPrefetch as Ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import kt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as At}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as jt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Mt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Nt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Pt}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Ft from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as It}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Lt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Rt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as zt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Bt}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Vt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Ht}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Ut}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as Wt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Gt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Kt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as qt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Jt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Yt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Xt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Zt}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Qt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as $t}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as en}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as tn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nn,buttonInspectorPropsSchema as rn}from"./components/biz/example/button/schema.mjs";import{Button as an}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as on}from"./components/biz/example/button/material.mjs";import{Renderer as sn}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,Je as BasicNavBar,Ke as BasicNavBarDefaultData,qe as BasicNavBarSchema,Xe as BasicPostCard,Ye as BasicPostCardDefaultData,N as BasicPostCardSchema,kt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Mt as BasicSearchBar,At as BasicSearchBarDefaultData,jt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,an as Button,tn as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,ht as CollectTab,gt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,Ft as FilterSearchBar,Nt as FilterSearchBarDefaultData,Pt as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,vt as HistoryTab,yt as HistoryTabServer,Fe as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,$ as ImageTextRecommendClient,Be as ImageTextRecommendServer,xt as LikeTab,St as LikeTabServer,He as MarqueeClient,We as MarqueeServer,Et as PublishTab,Dt as PublishTabServer,sn as Renderer,zt as SearchHistoryClient,Vt as SearchHistoryServer,Ut as SearchInputClient,Gt as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,qt as TabBarClient,Yt as TabBarServer,ne as TagSearch,Rt as TagSearchBar,It as TagSearchBarDefaultData,Lt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Zt as TextRecommendClient,$t as TextRecommendServer,et as UserProfileHeader,Ze as UserProfileHeaderClient,wt as UserProfileMain,ft as UserProfileMainClient,dt as UserProfileMainShell,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,_t as buildCollectTabPrefetch,n as buildContentUrl,bt as buildHistoryTabPrefetch,Ct as buildLikeTabPrefetch,Ot as buildPublishTabPrefetch,tt as buildUserProfileHeaderPrefetch,nn as buttonInspectorDefaultProps,rn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,on as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,ze as imageTextRecommendInspectorPropsSchema,Ve as imageTextRecommendMaterial,Ue as marqueeInspectorPropsSchema,Ge as marqueeMaterial,s as mergeStyles,Qe as profileHeaderInspectorDefaultProps,$e as profileHeaderInspectorPropsSchema,nt as profileHeaderMaterial,rt as profileHeaderMaterialWithDisabledBackground,it as profileMainCollectCollectionTabOptions,at as profileMainCollectTabOptions,ot as profileMainHistoryTabOptions,pt as profileMainInspectorDefaultProps,mt as profileMainInspectorPropsSchema,st as profileMainLikeTabOptions,Tt as profileMainMaterial,ct as profileMainMineTabOptions,lt as profileMainProfileTabOptions,ut as profileMainTabOptions,Bt as searchHistoryInspectorPropsSchema,Ht as searchHistoryMaterial,Wt as searchInputInspectorPropsSchema,Kt as searchInputMaterial,Jt as tabBarInspectorPropsSchema,Xt as tabBarMaterial,Qt as textRecommendInspectorPropsSchema,en as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem};
2
+ import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as $}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as He,getDefaultMarqueePeriod as Ue,marqueeInspectorPropsSchema as We}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Ge}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Ke}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as qe}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Je}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ye}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Xe from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ze}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Qe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as $e}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as et,profileHeaderInspectorPropsSchema as tt}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as nt,buildUserProfileHeaderPrefetch as rt}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as it,profileHeaderMaterialWithDisabledBackground as at}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as ot,profileMainCollectTabOptions as st,profileMainHistoryTabOptions as ct,profileMainLikeTabOptions as lt,profileMainMineTabOptions as ut,profileMainProfileTabOptions as dt,profileMainTabOptions as ft}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as pt}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as mt}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ht,profileMainInspectorPropsSchema as gt}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as _t}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as vt,buildCollectTabPrefetch as yt}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as bt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as xt,buildHistoryTabPrefetch as St}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Ct}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as wt,buildLikeTabPrefetch as Tt}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as Et}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Dt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as Ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as kt,buildPublishTabPrefetch as At}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import jt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Mt}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Nt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Pt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ft}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as It}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Lt from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Rt}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as zt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Bt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Vt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Ht}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Ut}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Wt}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Gt}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as Kt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as qt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Jt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Yt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Xt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Zt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Qt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as $t}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as en}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as tn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as nn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as rn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as an,buttonInspectorPropsSchema as on}from"./components/biz/example/button/schema.mjs";import{Button as sn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as cn}from"./components/biz/example/button/material.mjs";import{Renderer as ln}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,Xe as BasicNavBar,Je as BasicNavBarDefaultData,Ye as BasicNavBarSchema,Qe as BasicPostCard,Ze as BasicPostCardDefaultData,N as BasicPostCardSchema,jt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Pt as BasicSearchBar,Mt as BasicSearchBarDefaultData,Nt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,sn as Button,rn as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,_t as CollectTab,vt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,Lt as FilterSearchBar,Ft as FilterSearchBarDefaultData,It as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,bt as HistoryTab,xt as HistoryTabServer,Fe as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,$ as ImageTextRecommendClient,Be as ImageTextRecommendServer,Ct as LikeTab,wt as LikeTabServer,Ge as MarqueeClient,Ke as MarqueeServer,Ot as PublishTab,kt as PublishTabServer,ln as Renderer,Vt as SearchHistoryClient,Ut as SearchHistoryServer,Gt as SearchInputClient,qt as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,Yt as TabBarClient,Zt as TabBarServer,ne as TagSearch,Bt as TagSearchBar,Rt as TagSearchBarDefaultData,zt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,$t as TextRecommendClient,tn as TextRecommendServer,nt as UserProfileHeader,$e as UserProfileHeaderClient,Et as UserProfileMain,mt as UserProfileMainClient,pt as UserProfileMainShell,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,yt as buildCollectTabPrefetch,n as buildContentUrl,St as buildHistoryTabPrefetch,Tt as buildLikeTabPrefetch,At as buildPublishTabPrefetch,rt as buildUserProfileHeaderPrefetch,an as buttonInspectorDefaultProps,on as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,He as defaultMarqueePeriod,cn as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,Ue as getDefaultMarqueePeriod,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,ze as imageTextRecommendInspectorPropsSchema,Ve as imageTextRecommendMaterial,We as marqueeInspectorPropsSchema,qe as marqueeMaterial,s as mergeStyles,et as profileHeaderInspectorDefaultProps,tt as profileHeaderInspectorPropsSchema,it as profileHeaderMaterial,at as profileHeaderMaterialWithDisabledBackground,ot as profileMainCollectCollectionTabOptions,st as profileMainCollectTabOptions,ct as profileMainHistoryTabOptions,ht as profileMainInspectorDefaultProps,gt as profileMainInspectorPropsSchema,lt as profileMainLikeTabOptions,Dt as profileMainMaterial,ut as profileMainMineTabOptions,dt as profileMainProfileTabOptions,ft as profileMainTabOptions,Ht as searchHistoryInspectorPropsSchema,Wt as searchHistoryMaterial,Kt as searchInputInspectorPropsSchema,Jt as searchInputMaterial,Xt as tabBarInspectorPropsSchema,Qt as tabBarMaterial,en as textRecommendInspectorPropsSchema,nn as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{Carousel as r,CarouselContent as i,CarouselItem as a}from"../../../ui/carousel.mjs";import{Text as o}from"../../../ui/text.mjs";import s from"../../../ui/legacy/button.mjs";import c from"../../../ui/link.mjs";import{defaultProps as l}from"./default-props.mjs";import u from"clsx";import{useIsClient as d}from"foxact/use-is-client";import{useEffect as f,useRef as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _={list:[]};function v({mode:v=`renderer`,props:y=_,styles:b,events:x}){let S=v===`editor`,{autoplay:C=l.autoplay,interval:w=l.interval,loop:T=l.loop,showTitle:E=l.showTitle,showIndicator:D=l.showIndicator,list:O=[]}={...l,...y},[k,A]=m(),[j,M]=m(0),N=d(),P=p(null);if(f(()=>{if(!k||!N)return;let e=()=>{M(k.selectedScrollSnap())};return k.on(`select`,e),e(),()=>{k.off(`select`,e)}},[k,x,N]),f(()=>!C||!k||O.length<=1?void 0:(P.current=setInterval(()=>{k.canScrollNext()?k.scrollNext():T&&k.scrollTo(0)},w*1e3),()=>{P.current&&=(clearInterval(P.current),null)}),[C,k,w,T,O.length]),!O||O.length===0)return null;let F=O[j],I=b?e(b,{}):void 0;return g(n,{className:S?`relative w-full pointer-events-none`:`relative w-full`,style:I,children:[h(r,{setApi:A,opts:{align:`start`,loop:T,skipSnaps:!1,dragFree:!1},className:`w-full`,children:h(i,{className:`ml-0`,children:O.map((e,n)=>h(a,{className:`pl-0`,children:h(c,{href:e.target,className:`block relative w-full h-[242px] overflow-hidden touch-manipulation`,children:h(t,{src:e.coverUrl,alt:e.title||`Banner ${n+1}`,fill:!0,objectFit:`cover`,unoptimized:!0})})},n))})}),E&&F?.title&&h(n,{className:`absolute bottom-[8px] left-[8px]`,children:h(o,{as:`p`,className:`text-white text-[16px] line-clamp-1`,children:F.title})}),D&&O.length>1&&h(n,{className:`absolute bottom-[16px] right-[8px] flex items-center gap-[4px]`,children:O.map((e,t)=>h(s,{type:`button`,className:u(`transition-all duration-300 rounded-full !p-0`,t===j?`w-[10px] h-[6px] bg-black`:`w-[6px] h-[6px] bg-white/50`),"aria-label":`跳转到第 ${t+1} 个 Banner`},t))})]})}export{v as default};
2
+ "use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{Carousel as r,CarouselContent as i,CarouselItem as a}from"../../../ui/carousel.mjs";import{Text as o}from"../../../ui/text.mjs";import s from"../../../ui/legacy/button.mjs";import c from"../../../ui/link.mjs";import{defaultProps as l}from"./default-props.mjs";import u from"clsx";import{useIsClient as d}from"foxact/use-is-client";import{useEffect as f,useRef as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _={list:[]};function v({mode:v=`renderer`,props:y=_,styles:b,events:x}){let S=v===`editor`,{autoplay:C=l.autoplay,interval:w=l.interval,loop:T=l.loop,showTitle:E=l.showTitle,showIndicator:D=l.showIndicator,list:O=[]}={...l,...y},[k,A]=m(),[j,M]=m(0),N=d(),P=p(null);if(f(()=>{if(!k||!N)return;let e=()=>{M(k.selectedScrollSnap())};return k.on(`select`,e),e(),()=>{k.off(`select`,e)}},[k,x,N]),f(()=>!C||!k||O.length<=1?void 0:(P.current=setInterval(()=>{k.canScrollNext()?k.scrollNext():T&&k.scrollTo(0)},w*1e3),()=>{P.current&&=(clearInterval(P.current),null)}),[C,k,w,T,O.length]),!O||O.length===0)return null;let F=O[j],I=b?e(b,{}):void 0;return g(n,{className:S?`relative w-full pointer-events-none`:`relative w-full`,style:I,children:[h(r,{setApi:A,opts:{align:`start`,loop:T,skipSnaps:!1,dragFree:!1},className:`w-full`,children:h(i,{className:`ml-0`,children:O.map((e,n)=>h(a,{className:`pl-0`,children:h(c,{href:e.target,className:`block relative w-full h-[242px] overflow-hidden touch-manipulation`,children:h(t,{src:e.coverUrl,alt:e.title||`Banner ${n+1}`,fill:!0,objectFit:`cover`,unoptimized:!0})})},n))})}),E&&F?.title&&h(n,{className:`absolute bottom-[8px] left-[8px]`,children:h(o,{as:`p`,className:`text-white text-[16px] line-clamp-1`,children:F.title})}),D&&O.length>1&&h(n,{className:`absolute bottom-[16px] right-[8px] flex items-center gap-[4px]`,children:O.map((e,t)=>h(s,{type:`button`,className:u(`transition-all duration-300 rounded-full !p-0`,t===j?`w-[10px] h-[6px] bg-black`:`w-[6px] h-[6px] bg-white/50`),style:{padding:`0 !important`},"aria-label":`跳转到第 ${t+1} 个 Banner`},t))})]})}export{v as default};
@@ -57,7 +57,7 @@ import { ImageTextRecommendClient, ImageTextRecommendInitialData, ImageTextRecom
57
57
  import { ImageTextRecommendServer } from "./image-text-recommend/server.mjs";
58
58
  import { imageTextRecommendMaterial } from "./image-text-recommend/material.mjs";
59
59
  import "./image-text-recommend/index.mjs";
60
- import { marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
60
+ import { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
61
61
  import { MarqueeClient, MarqueeProps } from "./marquee/client.mjs";
62
62
  import { MarqueeServer } from "./marquee/server.mjs";
63
63
  import { marqueeMaterial } from "./marquee/material.mjs";
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../../assets/icons/right_arrow.mjs";import i from"../../../../assets/images/marquee.mjs";import a from"./marquee.module.mjs";import{useEffect as o,useMemo as s,useState as c}from"react";import{X as l}from"lucide-react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useTranslations as f}from"next-intl";import{useRouter as p}from"next/navigation";const m=[];function h(e,t=20){let n=Array.from(e);return n.length<=t?e:`${n.slice(0,t).join(``)}...`}function g(e){let t=5381;for(let n=0;n<e.length;n+=1)t=(t<<5)+t^(e.codePointAt(n)??0);return(t>>>0).toString(36)}function _(e,t){return e?t===`once`?!0:new Date(e).toLocaleDateString()===new Date().toLocaleDateString():!1}function v(e){let t=localStorage.getItem(e);if(!t)return{};try{return JSON.parse(t)}catch{let e=Number(t);return Number.isNaN(e)?{}:{closedAt:e}}}function y(e,t){localStorage.setItem(e,JSON.stringify(t))}function b(b){let x=f(`components.biz.business.marquee`),{contents:S=m,click:C,close:w,displayStrategy:T,mode:E=`renderer`}=b,D=E===`editor`,O=p(),[k,A]=c(!0),[j,M]=c(!1),[N,P]=c(0);o(()=>{M(!0)},[]);let F=s(()=>{let e=T?.period?.start,t=T?.period?.end;if(!e&&!t)return!0;let n=Date.now(),r=e?new Date(e).getTime():0,i=t?new Date(t).getTime():2**53-1;return n>=r&&n<=i},[T?.period]),I=s(()=>(S??[]).map(e=>({...e,text:h(String(e?.text??``))})).filter(e=>!!e.text),[S]),L=s(()=>{let e=T?.rule??`once`,t=T?.period??{start:``,end:``};return`marquee_state_${g(JSON.stringify({rule:e,start:t.start??``,end:t.end??``,items:I.map(e=>({text:e.text??``,link:e.link??``}))}))}`},[T?.period,T?.rule,I]);if(o(()=>{P(0)},[I.length]),o(()=>{if(!j||D||!T?.rule||I.length===0)return;let e=v(L),t=_(e.displayedAt,T.rule),n=_(e.closedAt,T.rule);(t||n)&&A(!1)},[T?.rule,D,j,I.length,L]),o(()=>{if(!j||D||!T?.rule||!k||!F||I.length===0)return;let e=v(L);_(e.displayedAt,T.rule)||y(L,{...e,displayedAt:Date.now()})},[T?.rule,D,j,F,k,I.length,L]),!j||!k||!F||I.length===0)return null;let R=I[N%I.length],z=C?.enabled===!0,B=C?.link||R.link,V=z&&!!B,H=w?.enabled===!0;function U(){!T?.rule||I.length===0||y(L,{...v(L),closedAt:Date.now()})}let W=e=>{e.stopPropagation(),A(!1),U()},G=()=>{D||V&&B&&(H&&(A(!1),U()),O.push(B))},K=()=>{D||!k||I.length<=1||P(e=>(e+1)%I.length)},q=D?a[`marquee-item-paused`]:I.length>1?a[`marquee-item-once`]:a[`marquee-item-loop`];return u(t,{className:D?`px-3 py-2 w-full bg-bg1 pointer-events-none`:`px-3 py-2 w-full bg-bg1`,children:d(t,{className:`pl-[2px] pr-[12px] py-[2px] flex items-center w-full cursor-pointer relative rounded-[8px] overflow-hidden ${a[`marquee-shell`]}`,onClick:G,children:[u(t,{className:`relative shrink-0 w-[36px] h-[36px] mr-[4px]`,children:u(e,{src:typeof i==`string`?i:i.src,alt:x(`noticeAlt`),fill:!0,className:`object-cover`,unoptimized:!0})}),u(t,{className:`flex-1 overflow-hidden relative h-[22px] ml-1`,children:u(t,{className:`absolute inset-y-0 left-0 flex items-center whitespace-nowrap ${q}`,onAnimationEnd:K,children:u(n,{className:`inline-block text-[14px] text-[#f59e0b] leading-[22px] font-medium`,children:R.text})},`marquee-item-${N}`)}),d(t,{className:`flex items-center gap-[12px] shrink-0 ml-[4px]`,children:[V&&u(r,{className:`w-[16px] h-[16px] text-[#f59e0b]`}),H&&u(t,{className:`opacity-30 hover:opacity-100 transition-opacity`,onClick:W,children:u(l,{className:`w-[12px] h-[12px] text-[#F59E0B]`})})]})]})})}export{b as MarqueeClient};
2
+ "use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../../assets/icons/right_arrow.mjs";import i from"../../../../assets/images/marquee.mjs";import a from"./marquee.module.mjs";import{defaultMarqueePeriod as o}from"./schema.mjs";import{useEffect as s,useMemo as c,useState as l}from"react";import{X as u}from"lucide-react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useTranslations as p}from"next-intl";import{useRouter as m}from"next/navigation";const h=[];function g(e,t=20){let n=Array.from(e);return n.length<=t?e:`${n.slice(0,t).join(``)}...`}function _(e){let t=5381;for(let n=0;n<e.length;n+=1)t=(t<<5)+t^(e.codePointAt(n)??0);return(t>>>0).toString(36)}function v(e,t){return e?t===`once`?!0:new Date(e).toLocaleDateString()===new Date().toLocaleDateString():!1}function y(e){let t=localStorage.getItem(e);if(!t)return{};try{return JSON.parse(t)}catch{let e=Number(t);return Number.isNaN(e)?{}:{closedAt:e}}}function b(e,t){localStorage.setItem(e,JSON.stringify(t))}function x(x){let S=p(`components.biz.business.marquee`),{contents:C=h,click:w,close:T,displayStrategy:E,mode:D=`renderer`}=x,O=D===`editor`,k=m(),[A,j]=l(!0),[M,N]=l(!1),[P,F]=l(0);s(()=>{N(!0)},[]);let I=c(()=>{let e=E?.period??o,t=e.start,n=e.end;if(!t&&!n)return!0;let r=Date.now(),i=t?new Date(t).getTime():0,a=n?new Date(n).getTime():2**53-1;return r>=i&&r<=a},[E?.period]),L=c(()=>(C??[]).map(e=>({...e,text:g(String(e?.text??``))})).filter(e=>!!e.text),[C]),R=c(()=>{let e=E?.period??o;return`marquee_state_${_(JSON.stringify({start:e.start??``,end:e.end??``,items:L.map(e=>({text:e.text??``,link:e.link??``}))}))}`},[E?.period,L]);if(s(()=>{F(0)},[L.length]),s(()=>{if(!M||O||!E?.rule||L.length===0)return;let e=y(R),t=v(e.displayedAt,E.rule),n=v(e.closedAt,E.rule);j(!(t||n))},[E?.rule,O,M,L.length,R]),s(()=>{if(!M||O||!E?.rule||!A||!I||L.length===0)return;let e=y(R);v(e.displayedAt,E.rule)||b(R,{...e,displayedAt:Date.now()})},[E?.rule,O,M,I,A,L.length,R]),!O&&(!M||!A||!I)||L.length===0)return null;let z=L[P%L.length],B=w?.enabled===!0,V=w?.link||z.link,H=B&&!!V,U=T?.enabled===!0;function W(){!E?.rule||L.length===0||b(R,{...y(R),closedAt:Date.now()})}let G=e=>{e.stopPropagation(),j(!1),W()},K=()=>{O||H&&V&&(U&&(j(!1),W()),k.push(V))},q=()=>{O||!A||L.length<=1||F(e=>(e+1)%L.length)},J=O?a[`marquee-item-paused`]:L.length>1?a[`marquee-item-once`]:a[`marquee-item-loop`];return d(t,{className:O?`px-3 py-2 w-full bg-bg1 pointer-events-none`:`px-3 py-2 w-full bg-bg1`,children:f(t,{className:`pl-[2px] pr-[12px] py-[2px] flex items-center w-full cursor-pointer relative rounded-[8px] overflow-hidden ${a[`marquee-shell`]}`,onClick:K,children:[d(t,{className:`relative shrink-0 w-[36px] h-[36px] mr-[4px]`,children:d(e,{src:typeof i==`string`?i:i.src,alt:S(`noticeAlt`),fill:!0,className:`object-cover`,unoptimized:!0})}),d(t,{className:`flex-1 overflow-hidden relative h-[22px] ml-1`,children:d(t,{className:`absolute inset-y-0 left-0 flex items-center whitespace-nowrap ${J}`,onAnimationEnd:q,children:d(n,{className:`inline-block text-[14px] text-[#f59e0b] leading-[22px] font-medium`,children:z.text})},`marquee-item-${P}`)}),f(t,{className:`flex items-center gap-[12px] shrink-0 ml-[4px]`,children:[H&&d(r,{className:`w-[16px] h-[16px] text-[#f59e0b]`}),U&&d(t,{className:`opacity-30 hover:opacity-100 transition-opacity`,onClick:G,children:d(u,{className:`w-[12px] h-[12px] text-[#F59E0B]`})})]})]})})}export{x as MarqueeClient};
@@ -1,5 +1,5 @@
1
1
 
2
- import { marqueeInspectorPropsSchema } from "./schema.mjs";
2
+ import { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema } from "./schema.mjs";
3
3
  import { MarqueeClient, MarqueeProps } from "./client.mjs";
4
4
  import { MarqueeServer } from "./server.mjs";
5
5
  import { marqueeMaterial } from "./material.mjs";
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{MarqueeClient as t}from"./client.mjs";import{marqueeInspectorPropsSchema as n}from"./schema.mjs";import{MarqueeServer as r}from"./server.mjs";const i=e({type:`marquee`,name:`跑马灯`,icon:`/static/components-thumb/marquee_clickable_closable.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as marqueeMaterial};
2
+ import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{marqueeInspectorPropsSchema as t}from"./schema.mjs";import{MarqueeClient as n}from"./client.mjs";import{MarqueeServer as r}from"./server.mjs";const i=e({type:`marquee`,name:`跑马灯`,icon:`/static/components-thumb/marquee_clickable_closable.png`,category:`内容组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as marqueeMaterial};
@@ -4,6 +4,14 @@ import "../../../../utils/schema/index.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region components/biz/business/marquee/schema.d.ts
7
+ declare function getDefaultMarqueePeriod(): {
8
+ start: string;
9
+ end: string;
10
+ };
11
+ declare const defaultMarqueePeriod: {
12
+ start: string;
13
+ end: string;
14
+ };
7
15
  /**
8
16
  * 跑马灯物料属性定义
9
17
  */
@@ -33,4 +41,4 @@ declare const marqueeInspectorPropsSchema: z.ZodObject<{
33
41
  }>>;
34
42
  }, z.core.$strip>;
35
43
  //#endregion
36
- export { marqueeInspectorPropsSchema };
44
+ export { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema };
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineObjectPropSchema as n,defineSelectEnumPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a,defineTimeRangePropSchema as o}from"../../../../utils/schema/schema.mjs";import{z as s}from"zod";const c=t({contents:e(s.object({text:a({label:`文本内容`,defaultValue:``}),link:a({label:`跳转链接`,defaultValue:``,required:!1})}),{label:`消息内容`,defaultValue:[{text:`请输入跑马灯内容`}],description:`支持多条消息循环播放`}),click:n({enabled:i({label:`支持点击`,defaultValue:!0}),redirectType:r([`content_list`,`content`,`link`],{label:`跳转指向`,defaultValue:`link`,required:!1}),link:a({label:`跳转链接`,defaultValue:``,required:!1})},{label:`点击配置`,defaultValue:{enabled:!0,redirectType:`link`,link:``}}),close:n({enabled:i({label:`支持关闭`,defaultValue:!0})},{label:`关闭配置`,defaultValue:{enabled:!0}}),displayStrategy:n({rule:r([`once`,`daily`],{label:`展示规则`,defaultValue:`once`,description:`「只展示1次」即当前消息只展示1次;「每天展示1次」即当前消息每天展示1次,0点刷新`}),period:o({label:`展示周期`,defaultValue:{start:``,end:``},required:!1})},{label:`展示策略`,defaultValue:{rule:`once`,period:{start:``,end:``}}})});export{c as marqueeInspectorPropsSchema};
2
+ import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineObjectPropSchema as n,defineSelectEnumPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a,defineTimeRangePropSchema as o}from"../../../../utils/schema/schema.mjs";import{z as s}from"zod";import c from"dayjs";function l(){return{start:c().startOf(`day`).format(`YYYY-MM-DD HH:mm:ss`),end:c().endOf(`day`).format(`YYYY-MM-DD HH:mm:ss`)}}const u=l(),d=t({contents:e(s.object({text:a({label:`文本内容`,defaultValue:``}),link:a({label:`跳转链接`,defaultValue:``,required:!1})}),{label:`消息内容`,defaultValue:[{text:`请输入跑马灯内容`}],description:`支持多条消息循环播放`}),click:n({enabled:i({label:`支持点击`,defaultValue:!0}),redirectType:r([`content_list`,`content`,`link`],{label:`跳转指向`,defaultValue:`link`,required:!1}),link:a({label:`跳转链接`,defaultValue:``,required:!1})},{label:`点击配置`,defaultValue:{enabled:!0,redirectType:`link`,link:``}}),close:n({enabled:i({label:`支持关闭`,defaultValue:!0})},{label:`关闭配置`,defaultValue:{enabled:!0}}),displayStrategy:n({rule:r([`once`,`daily`],{label:`展示规则`,defaultValue:`once`,description:`「只展示1次」即当前消息只展示1次;「每天展示1次」即当前消息每天展示1次,0点刷新`}),period:o({label:`展示周期`,defaultValue:u,required:!1})},{label:`展示策略`,defaultValue:{rule:`once`,period:u}})});export{u as defaultMarqueePeriod,l as getDefaultMarqueePeriod,d as marqueeInspectorPropsSchema};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{gUserGetUserInfo as r,gUserViewUserInfo as i,pInteractionFollow as a,pInteractionUnfollow as o}from"../../../../../service/generated/client.mjs";import{Box as s}from"../../../../ui/box.mjs";import{Text as c}from"../../../../ui/text.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as u,useMutation as d,useRequest as f,useUpdateRequest as p}from"../../../../../hooks/query/use-query.mjs";import{LeftArrowIcon as m}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as h}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as g}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as _}from"./user-profile-cover-background.mjs";import{useEffect as v,useMemo as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{toast as C}from"sonner";import{useTranslations as w}from"next-intl";import T from"next/link";import{useRouter as ee}from"next/navigation";const E=n.persist,D=`https://guadd-sg-ccs-sing-dev.s3.ap-southeast-1.amazonaws.com/default/default_avatar.png`,O=`/images/mine/img_mine_head_bg.png`;function te({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=l(),c=u(),f=p(),{mutateAsync:m,isPending:h}=d(async e=>a(e)),{mutateAsync:g,isPending:_}=d(async e=>o(e)),v=h||_;async function y(){if(!v){if(!n){s();return}try{if(r){let t=await g({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.unfollowSuccess`)),b(!1),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.unfollowFailed`))}else{let t=await m({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.followSuccess`)),b(!0),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.followFailed`))}}catch(e){console.error(`关注操作失败`,e),C.error(i(`client.operationFailed`))}}}function b(t){f([`user-profile`,`profile`,e],e=>!e||!e.data?e:{...e,data:{...e.data,is_following:t}})}return x(t,{variant:r?`outline`:`default`,className:`rounded-full disabled:opacity-100`,onClick:y,disabled:v,children:i(v?`client.processing`:r?`client.followed`:`client.follow`)})}function k({id:a,enableCustomBackground:o=!0,showBackButton:u=!0,requireLogin:d=!1,cookieToken:p,cookieUserId:C,isEditorPreview:k=!1,className:A,mode:j=`renderer`}){let M=w(`components.pages.profile`);w(`components.pages.profile.components`);let N=k||j===`editor`,ne=!N,re=ee(),{open:ie}=l(),{isLogin:ae,userId:P,token:F}=n(),[I,L]=b(!1);v(()=>{if(!E){L(!0);return}L(E.hasHydrated());let e=E.onHydrate(()=>{L(!1)}),t=E.onFinishHydration(()=>{L(!0)});return()=>{e(),t()}},[]);let R=N?!1:I?ae&&!!P&&!!F:!!C&&!!p,z=N?``:I?P:P||C,B=z,V=a==null||!!a&&!!B&&a===B,oe=!V&&!!a,H=V?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:U}=f(N?[`editor-preview`,...H]:H,()=>a?i({target_user_id:a,user_id:z||a}):r({user_id:a||z||``}),{staleTime:0,enabled:ne&&(!!a||!!z)}),W=y(()=>{let e=U?U.data:void 0;return e?{userId:e.user_id,isFollowing:e.is_following||!1,name:e.nick_name||`User${a??``}`,avatar:e.avatar||D,followingCnt:e.following_count??0,followersCnt:e.follower_count??0,likeCnt:e.like_count??0,signature:e.signature||``,background:e.bg_image||O}:{}},[a,U]),G=N||d&&V&&!R,K=!G&&!R&&oe,q=V&&R&&!G,J=!R,se=o&&q,ce=o&&J,le={name:M(`client.welcomeToPlanet`),description:M(`client.exploreAdventures`),avatar:D,followingCnt:0,followersCnt:0,likeCnt:0,background:O};function Y(){ie()}function X(){re.back()}let ue=G?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.loginNow`)}):K?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.follow`)}):R?V?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:M(`client.editProfile`)})}):x(te,{userId:a||``,currentUserId:z,isFollowing:W?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.loginNow`)}),Z=G?le:W,Q=Z.name||``,$=Z.description||Z.signature||``;Z.followingCnt,Z.followersCnt,Z.likeCnt;let de=Z.avatar||``;return S(s,{className:e(`flex flex-col relative`,A),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(t,{variant:`ghost`,size:`icon-xs`,onClick:X,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!u}),children:x(m,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!V}),children:x(h,{})})]}),x(_,{isMine:se,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ce?Y:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(g,{isMine:q,src:de,alt:Q||`avatar`,onUnauthorizedClick:J?Y:void 0}),x(s,{className:`flex divide-x divide-text1/5 py-4 h-12`})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(c,{as:`p`,className:`text-text1 text-xl line-clamp-2 font-bold`,children:Q}),ue]}),$&&x(c,{as:`p`,className:`text-sm py-1 line-clamp-3 text-text1/66`,children:$})]})]})}export{k as UserProfileHeaderClient};
2
+ "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{gUserGetUserInfo as r,gUserViewUserInfo as i,pInteractionFollow as a,pInteractionUnfollow as o}from"../../../../../service/generated/client.mjs";import{Box as s}from"../../../../ui/box.mjs";import{Text as c}from"../../../../ui/text.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as u,useMutation as d,useRequest as f,useUpdateRequest as p}from"../../../../../hooks/query/use-query.mjs";import{LeftArrowIcon as m}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as h}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as g}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as _}from"./user-profile-cover-background.mjs";import{useEffect as v,useMemo as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{toast as C}from"sonner";import{useTranslations as w}from"next-intl";import T from"next/link";import{useRouter as ee}from"next/navigation";const E=n.persist,D=`https://guadd-sg-ccs-sing-dev.s3.ap-southeast-1.amazonaws.com/default/default_avatar.png`,O=`/images/mine/img_mine_head_bg.png`;function te({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=l(),c=u(),f=p(),{mutateAsync:m,isPending:h}=d(async e=>a(e)),{mutateAsync:g,isPending:_}=d(async e=>o(e)),v=h||_;async function y(){if(!v){if(!n){s();return}try{if(r){let t=await g({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.unfollowSuccess`)),b(!1),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.unfollowFailed`))}else{let t=await m({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.followSuccess`)),b(!0),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.followFailed`))}}catch(e){console.error(`关注操作失败`,e),C.error(i(`client.operationFailed`))}}}function b(t){f([`user-profile`,`profile`,e],e=>!e||!e.data?e:{...e,data:{...e.data,is_following:t}})}return x(t,{variant:r?`outline`:`default`,className:`rounded-full disabled:opacity-100`,onClick:y,disabled:v,children:i(v?`client.processing`:r?`client.followed`:`client.follow`)})}function k({id:a,enableCustomBackground:o=!0,showBackButton:u=!0,requireLogin:d=!1,cookieToken:p,cookieUserId:C,isEditorPreview:k=!1,className:A,mode:j=`renderer`}){let M=w(`components.pages.profile`);w(`components.pages.profile.components`);let N=k||j===`editor`,ne=!N,re=ee(),{open:ie}=l(),{isLogin:ae,userId:P,token:F}=n(),[I,L]=b(!1);v(()=>{if(!E){L(!0);return}L(E.hasHydrated());let e=E.onHydrate(()=>{L(!1)}),t=E.onFinishHydration(()=>{L(!0)});return()=>{e(),t()}},[]);let R=N?!1:I?ae&&!!P&&!!F:!!C&&!!p,z=N?``:I?P:P||C,B=z,V=a==null||!!a&&!!B&&a===B,oe=!V&&!!a,H=V?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:U}=f(N?[`editor-preview`,...H]:H,()=>a?i({target_user_id:a,user_id:z||a}):r({user_id:a||z||``}),{staleTime:0,enabled:ne&&(!!a||!!z)}),W=y(()=>{let e=U?U.data:void 0;return e?{userId:e.user_id,isFollowing:e.is_following||!1,name:e.nick_name||`User${a??``}`,avatar:e.avatar||D,followingCnt:e.following_count??0,followersCnt:e.follower_count??0,likeCnt:e.like_count??0,signature:e.signature||``,background:e.bg_image||O}:{}},[a,U]),G=N||d&&V&&!R,K=!G&&!R&&oe,q=V&&R&&!G,J=!R,se=o&&q,ce=o&&J,le={name:M(`client.welcomeToPlanet`),description:M(`client.exploreAdventures`),avatar:D,followingCnt:0,followersCnt:0,likeCnt:0,background:O};function Y(){ie()}function X(){re.back()}let ue=G?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.loginNow`)}):K?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.follow`)}):R?V?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:M(`client.editProfile`)})}):x(te,{userId:a||``,currentUserId:z,isFollowing:W?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.loginNow`)}),Z=G?le:W,Q=Z.name||``,$=Z.description||Z.signature||``;Z.followingCnt,Z.followersCnt,Z.likeCnt;let de=Z.avatar||``;return S(s,{className:e(`flex flex-col relative`,A),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(t,{variant:`ghost`,size:`icon-xs`,onClick:X,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!u}),children:x(m,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!V}),children:x(h,{})})]}),x(_,{isMine:se,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ce?Y:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(g,{isMine:q,src:de,alt:Q||`avatar`,onUnauthorizedClick:J?Y:void 0}),x(s,{className:`flex divide-x divide-text1/5 py-4 h-12`})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(c,{as:`p`,className:`text-text1 text-xl line-clamp-2 font-bold`,children:Q}),ue]}),$&&x(c,{as:`p`,className:`text-sm py-1 line-clamp-2 break-all text-text1/66`,children:$})]})]})}export{k as UserProfileHeaderClient};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{toast as e}from"../../../ui.mjs";import{LeftArrowIcon as t}from"../icons/left-arrow.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useRouter as i}from"next/navigation";function a({title:a,leftChild:o,centerChild:s,className:c,rightChild:l,leftIconCss:u,onBack:d}){let f=i();function p(){if(e.dismiss(),d){d?.();return}window.location.search.split(`from_code=`)[1]?f.push(`/`):f.back()}return n(`nav`,{className:`app-top-nav w-full relative ${c?.includes(`h-`)?(c.match(/h-\[?\d\w+\]?/)||[`h-12`])[0]:`h-12`}`,children:r(`div`,{className:`w-full bg-bg1 flex items-center justify-center fixed top-0 left-0 right-0 z-50 border-b border-text1/5 ${c}`,style:{willChange:`transform`,transform:`translateZ(0)`},children:[n(`div`,{className:`absolute z-[1] h-full left-0 top-0`,children:o||n(`div`,{onClick:p,className:`cursor-pointer h-full w-12 flex items-center justify-center`,children:n(t,{className:`w-4 h-4 text-text1 ${u}`})})}),s||n(`p`,{className:`text-text1 line-clamp-1 px-12 text-ellipsis text-lg`,children:a}),l&&n(`div`,{className:`absolute h-full right-2 top-0 flex items-center justify-center`,children:l})]})})}export{a as HeaderNav};
2
+ "use client";import{toast as e}from"../../../ui.mjs";import{LeftArrowIcon as t}from"../icons/left-arrow.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useRouter as i}from"next/navigation";function a({title:a,leftChild:o,centerChild:s,className:c,rightChild:l,leftIconCss:u,onBack:d}){let f=i();function p(){if(e.dismiss(),d){d?.();return}window.location.search.split(`from_code=`)[1]?f.push(`/`):f.back()}return n(`nav`,{className:`app-top-nav w-full relative ${c?.includes(`h-`)?(c.match(/h-\[?\d\w+\]?/)||[`h-12`])[0]:`h-12`}`,children:r(`div`,{className:`w-full bg-bg1 flex items-center justify-center fixed h-12 top-0 left-0 right-0 z-50 border-b border-text1/5 ${c}`,style:{willChange:`transform`,transform:`translateZ(0)`},children:[n(`div`,{className:`absolute z-[1] h-full left-0 top-0`,children:o||n(`div`,{onClick:p,className:`cursor-pointer h-full w-12 flex items-center justify-center`,children:n(t,{className:`w-4 h-4 text-text1 ${u}`})})}),s||n(`p`,{className:`text-text1 line-clamp-1 px-12 text-ellipsis text-lg`,children:a}),l&&n(`div`,{className:`absolute h-full right-2 top-0 flex items-center justify-center`,children:l})]})})}export{a as HeaderNav};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useUserStore as e}from"../../../store/modules/user-store.mjs";import{gUserGetUserEditInfo as t,gUserGetUserInfo as n,pUserEditUserInfo as ee}from"../../../service/generated/client.mjs";import{uploadFile as te}from"../../../utils/upload-file.mjs";import{Avatar as ne,AvatarFallback as re,AvatarImage as ie}from"../../ui/avatar.mjs";import{Box as r}from"../../ui/box.mjs";import{InputGroup as i,InputGroupAddon as a,InputGroupTextarea as ae}from"../../ui/input-group.mjs";import{Field as o,FieldLabel as s}from"../../ui/field.mjs";import{Text as c}from"../../ui/text.mjs";import{useDeleteRequest as oe,useMutation as se,useRequest as ce}from"../../../hooks/query/use-query.mjs";import{HeaderNav as le}from"../../common/header-nav/client.mjs";import{PickerDrawer as l}from"../../common/picker/picker-drawer/picker-drawer.mjs";import{GenderPicker as ue}from"../../common/picker/gender-picker/gender-picker.mjs";import{ImageCropModal as de}from"../../common/image-crop-modal/image-crop-modal.mjs";import{useEffect as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{toast as h}from"sonner";import{useTranslations as fe}from"next-intl";import{produce as pe}from"immer";const g={0:`secret`,1:`male`,2:`female`},_={male:1,female:2,secret:0},v=[`image/jpeg`,`image/png`],me=/^[\u4E00-\u9FFF\w.-]+$/;function he(e){let t=e.name.toLowerCase(),n=e.type.toLowerCase();return v.includes(n)||/\.(?:jpg|jpeg|png)$/i.test(t)}function y(e){return e?_[e]===void 0?g[e]??`secret`:e:`secret`}function b(e){if(!e)return;if(_[e]!==void 0)return _[e];let t=Number(e);return Number.isNaN(t)?void 0:t}function x(e){return{nickname:e?.nick_name??``,gender:y(e?.gender?.toString()),signature:e?.signature??``,avatar:e?.avatar??``}}function S({id:g}){let _=fe(`components.pages.edit`),{userId:v,userInfo:y,setUserInfo:S}=e(),C=g??v,w=oe(),ge={male:_(`page.genderMale`),female:_(`page.genderFemale`),secret:_(`page.genderSecret`)},T=d(null),E=d(null),D=d(null),[O,k]=f(()=>x()),[A,j]=f(!1),[_e,ve]=f(!1),[M,N]=f(``),[P,F]=f(!1),[I,L]=f(``),[ye,R]=f(!1),[z,B]=f(`secret`),[V,H]=f(!1),[U,W]=f(``),be={code:0,message:``,data:{}},xe={code:0,message:``,data:{}},{data:G,isLoading:K}=ce([`user-edit-info`,C],()=>C?t({user_id:C}):Promise.resolve(be)),{data:Se}=ce([`user-info-basic`,C],()=>C?n({user_id:C}):Promise.resolve(xe)),{mutateAsync:Ce,isPending:we}=se(async e=>ee(e)),q=K||we,Te=Se?.data?.display_id||y?.display_id||`--`,J=O.gender||`secret`,Y=q||I.trim()===O.nickname,Ee=q||z===J,X=q||U===O.signature;u(()=>{let e=G?.data;e&&k(x(e))},[G]),u(()=>{if(!P)return;let e=window.setTimeout(()=>{E.current?.focus()},250);return()=>{window.clearTimeout(e)}},[P]),u(()=>{if(!V)return;let e=window.setTimeout(()=>{D.current?.focus()},250);return()=>{window.clearTimeout(e)}},[V]),u(()=>()=>{M&&URL.revokeObjectURL(M)},[M]);function Z(e,t){k(pe(n=>{n[e]=t}))}function De(){M&&(URL.revokeObjectURL(M),N(``))}function Oe(){C&&(w([`user-edit-info`,C]),w([`user-info-basic`,C]),w([`user-profile`,`mine`]),w([`user-profile`,`mine`,C]),w([`user-profile`,`profile`,C]))}function Q(e){!C||C!==v||S({...y,user_id:C,...e})}function ke(e){return{nick_name:e.nickname||void 0,avatar:e.avatar||void 0,signature:e.signature||void 0,gender:b(e.gender)}}async function $(e){if(!C)return h.error(_(`page.userNotFound`)),!1;let t=ke({...O,...e});try{return await Ce({user_id:C,...t}),Oe(),!0}catch(e){return console.error(`更新用户信息失败`,e),h.error(_(`page.updateFailed`)),!1}}function Ae(){q||A||T.current?.click()}function je(e){let t=e.target.files?.[0];if(t){if(!he(t)){h.error(_(`page.imageTypeInvalid`)),e.target&&(e.target.value=``);return}N(URL.createObjectURL(t)),ve(!0),e.target&&(e.target.value=``)}}async function Me(e){try{j(!0);let t=await te(new File([e],`avatar.jpg`,{type:`image/jpeg`}),1);if(!await $({avatar:t.objectKey}))return;Z(`avatar`,t.objectKey),Q({avatar:t.objectKey}),Ne(),h.success(_(`page.avatarUpdateSuccess`))}catch(e){console.error(`上传头像失败`,e),h.error(_(`page.avatarUploadFailed`))}finally{j(!1)}}function Ne(){ve(!1),De()}function Pe(){q||(L(O.nickname),F(!0))}function Fe(e){let t=e.target.value;t.length>24||L(t)}function Ie(e){return e?e.length<2?_(`page.nicknameTooShort`):me.test(e)?``:_(`page.nicknameInvalidChars`):_(`page.nicknameRequired`)}async function Le(e){if(Y)return!1;let t=e.trim(),n=Ie(t);return n?(h.error(n),!1):await $({nickname:t})?(Z(`nickname`,t),Q({nick_name:t}),L(t),h.success(_(`page.nicknameUpdateSuccess`)),!0):!1}function Re(){q||(B(J),R(!0))}function ze(){R(!1)}function Be(e){B(e)}async function Ve(e){let t=e||z||`secret`;if(t===J||!await $({gender:t}))return!1;let n=b(t);return Z(`gender`,t),Q({gender:n}),B(t),h.success(_(`page.genderUpdateSuccess`)),!0}function He(){q||(W(O.signature),H(!0))}function Ue(e){let t=e.target.value;t.length>100||W(t)}function We(e){let t=e.trim();return t.length>0&&t.length<2?_(`page.signatureTooShort`):``}async function Ge(e){if(X)return!1;let t=We(e);return t?(h.error(t),!1):await $({signature:e})?(Z(`signature`,e),Q({signature:e}),W(e),h.success(_(`page.signatureUpdateSuccess`)),!0):!1}return m(r,{className:`bg-bg2 !min-h-screen`,children:[p(le,{className:`!bg-bg2`,title:_(`page.title`)}),m(r,{onClick:Ae,className:`flex bg-bg2 flex-col py-3 items-center justify-center gap-3`,children:[p(`input`,{ref:T,type:`file`,accept:`.jpg,.jpeg,.png,image/jpeg,image/png`,className:`hidden`,onChange:je}),m(ne,{className:`w-21 h-21`,children:[p(ie,{src:O.avatar}),p(re,{})]}),p(c,{className:`text-sm text-text2`,children:K?_(`page.loading`):A?_(`page.avatarUploading`):`${Te}`})]}),m(r,{className:`pb-3`,children:[p(o,{className:`bg-bg2 px-3 cursor-pointer`,onClick:Pe,children:m(`div`,{className:`flex items-center justify-between gap-3`,children:[p(s,{children:_(`page.label`)}),p(c,{className:`text-text2 text-sm text-right max-w-[65%] line-clamp-1`,children:O.nickname||_(`page.nicknamePlaceholder`)})]})}),p(o,{className:`!bg-bg2 px-3 border-none cursor-pointer`,onClick:Re,children:m(`div`,{className:`flex items-center justify-between gap-3`,children:[p(s,{children:_(`page.genderLabel`)}),p(c,{className:`text-text2 text-sm`,children:ge[J]||_(`page.genderSecret`)})]})}),p(`div`,{className:`h-2 bg-bg1`}),p(o,{className:`border-none px-3 bg-bg2! mt-2 cursor-pointer`,onClick:He,children:m(`div`,{className:`flex items-center justify-between gap-3`,children:[p(s,{children:_(`page.signatureLabel`)}),p(c,{className:`text-text2 text-sm text-right max-w-[65%] line-clamp-1`,children:O.signature||_(`page.signaturePlaceholder`)})]})})]}),p(l,{open:P,onClose:()=>F(!1),title:_(`page.label`),confirmText:_(`page.submit`),onConfirm:e=>Le(String(e)),confirmDisabled:Y,children:({onValueChange:e})=>p(r,{className:`px-4 py-4 min-h-[230px]`,children:m(i,{children:[p(ae,{ref:E,className:`!bg-bg1 p-2.5`,rows:4,maxLength:24,placeholder:_(`page.nicknamePlaceholder`),value:I,onChange:t=>{Fe(t),e(t.target.value)},disabled:q}),p(a,{className:`!bg-bg1`,align:`block-end`,children:p(`div`,{className:`text-right w-full`,children:m(`span`,{className:`text-xs`,children:[I.length,`/`,24]})})})]})})}),p(ue,{open:ye,onClose:ze,value:z,onValueChange:Be,onConfirm:Ve,confirmDisabled:Ee}),p(l,{open:V,onClose:()=>H(!1),title:_(`page.signatureLabel`),confirmText:_(`page.submit`),onConfirm:e=>Ge(String(e)),confirmDisabled:X,children:({onValueChange:e})=>p(r,{className:`px-4 py-4 min-h-[230px]`,children:m(i,{children:[p(ae,{ref:D,className:`!bg-bg1 p-2.5`,rows:4,maxLength:100,placeholder:_(`page.signaturePlaceholder`),value:U,onChange:t=>{Ue(t),e(t.target.value)},disabled:q}),p(a,{className:`!bg-bg1`,align:`block-end`,children:p(`div`,{className:`text-right w-full`,children:m(`span`,{className:`text-xs`,children:[U.length,`/`,100]})})})]})})}),p(de,{open:_e,onClose:Ne,imageSrc:M,onConfirm:Me,cropShape:`round`})]})}export{S as EditClient};
2
+ "use client";import{useUserStore as e}from"../../../store/modules/user-store.mjs";import{gUserGetUserEditInfo as t,gUserGetUserInfo as n,pUserEditUserInfo as ee}from"../../../service/generated/client.mjs";import{uploadFile as te}from"../../../utils/upload-file.mjs";import{Avatar as ne,AvatarFallback as re,AvatarImage as ie}from"../../ui/avatar.mjs";import{Box as r}from"../../ui/box.mjs";import{InputGroup as i,InputGroupAddon as a,InputGroupTextarea as ae}from"../../ui/input-group.mjs";import{Field as o,FieldLabel as s}from"../../ui/field.mjs";import{Text as c}from"../../ui/text.mjs";import{useDeleteRequest as oe,useMutation as se,useRequest as ce}from"../../../hooks/query/use-query.mjs";import{HeaderNav as le}from"../../common/header-nav/client.mjs";import{PickerDrawer as l}from"../../common/picker/picker-drawer/picker-drawer.mjs";import{GenderPicker as ue}from"../../common/picker/gender-picker/gender-picker.mjs";import{ImageCropModal as de}from"../../common/image-crop-modal/image-crop-modal.mjs";import{useEffect as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{toast as h}from"sonner";import{useTranslations as fe}from"next-intl";import{produce as pe}from"immer";const g={0:`secret`,1:`male`,2:`female`},_={male:1,female:2,secret:0},v=[`image/jpeg`,`image/png`],me=/^[\u4E00-\u9FFF\w.-]+$/;function he(e){let t=e.name.toLowerCase(),n=e.type.toLowerCase();return v.includes(n)||/\.(?:jpg|jpeg|png)$/i.test(t)}function y(e){return e?_[e]===void 0?g[e]??`secret`:e:`secret`}function b(e){if(!e)return;if(_[e]!==void 0)return _[e];let t=Number(e);return Number.isNaN(t)?void 0:t}function x(e){return{nickname:e?.nick_name??``,gender:y(e?.gender?.toString()),signature:e?.signature??``,avatar:e?.avatar??``}}function S({id:g}){let _=fe(`components.pages.edit`),{userId:v,userInfo:y,setUserInfo:S}=e(),C=g??v,w=oe(),ge={male:_(`page.genderMale`),female:_(`page.genderFemale`),secret:_(`page.genderSecret`)},T=d(null),E=d(null),D=d(null),[O,k]=f(()=>x()),[A,j]=f(!1),[_e,ve]=f(!1),[M,N]=f(``),[P,F]=f(!1),[I,L]=f(``),[ye,R]=f(!1),[z,B]=f(`secret`),[V,H]=f(!1),[U,W]=f(``),be={code:0,message:``,data:{}},xe={code:0,message:``,data:{}},{data:G,isLoading:K}=ce([`user-edit-info`,C],()=>C?t({user_id:C}):Promise.resolve(be)),{data:Se}=ce([`user-info-basic`,C],()=>C?n({user_id:C}):Promise.resolve(xe)),{mutateAsync:Ce,isPending:we}=se(async e=>ee(e)),q=K||we,Te=Se?.data?.display_id||y?.display_id||`--`,J=O.gender||`secret`,Y=q||I.trim()===O.nickname,Ee=q||z===J,X=q||U===O.signature;u(()=>{let e=G?.data;e&&k(x(e))},[G]),u(()=>{if(!P)return;let e=window.setTimeout(()=>{E.current?.focus()},250);return()=>{window.clearTimeout(e)}},[P]),u(()=>{if(!V)return;let e=window.setTimeout(()=>{D.current?.focus()},250);return()=>{window.clearTimeout(e)}},[V]),u(()=>()=>{M&&URL.revokeObjectURL(M)},[M]);function Z(e,t){k(pe(n=>{n[e]=t}))}function De(){M&&(URL.revokeObjectURL(M),N(``))}function Oe(){C&&(w([`user-edit-info`,C]),w([`user-info-basic`,C]),w([`user-profile`,`mine`]),w([`user-profile`,`mine`,C]),w([`user-profile`,`profile`,C]))}function Q(e){!C||C!==v||S({...y,user_id:C,...e})}function ke(e){return{nick_name:e.nickname||void 0,avatar:e.avatar||void 0,signature:e.signature||void 0,gender:b(e.gender)}}async function $(e){if(!C)return h.error(_(`page.userNotFound`)),!1;let t=ke({...O,...e});try{return await Ce({user_id:C,...t}),Oe(),!0}catch(e){return console.error(`更新用户信息失败`,e),h.error(_(`page.updateFailed`)),!1}}function Ae(){q||A||T.current?.click()}function je(e){let t=e.target.files?.[0];if(t){if(!he(t)){h.error(_(`page.imageTypeInvalid`)),e.target&&(e.target.value=``);return}N(URL.createObjectURL(t)),ve(!0),e.target&&(e.target.value=``)}}async function Me(e){try{j(!0);let t=await te(new File([e],`avatar.jpg`,{type:`image/jpeg`}),1);if(!await $({avatar:t.objectKey}))return;Z(`avatar`,t.objectKey),Q({avatar:t.objectKey}),Ne(),h.success(_(`page.avatarUpdateSuccess`))}catch(e){console.error(`上传头像失败`,e),h.error(_(`page.avatarUploadFailed`))}finally{j(!1)}}function Ne(){ve(!1),De()}function Pe(){q||(L(O.nickname),F(!0))}function Fe(e){let t=e.target.value;t.length>24||L(t)}function Ie(e){return e?e.length<2?_(`page.nicknameTooShort`):me.test(e)?``:_(`page.nicknameInvalidChars`):_(`page.nicknameRequired`)}async function Le(e){if(Y)return!1;let t=e.trim(),n=Ie(t);return n?(h.error(n),!1):await $({nickname:t})?(Z(`nickname`,t),Q({nick_name:t}),L(t),h.success(_(`page.nicknameUpdateSuccess`)),!0):!1}function Re(){q||(B(J),R(!0))}function ze(){R(!1)}function Be(e){B(e)}async function Ve(e){let t=e||z||`secret`;if(t===J||!await $({gender:t}))return!1;let n=b(t);return Z(`gender`,t),Q({gender:n}),B(t),h.success(_(`page.genderUpdateSuccess`)),!0}function He(){q||(W(O.signature),H(!0))}function Ue(e){let t=e.target.value;t.length>100||W(t)}function We(e){let t=e.trim();return t.length>0&&t.length<2?_(`page.signatureTooShort`):``}async function Ge(e){if(X)return!1;let t=We(e);return t?(h.error(t),!1):await $({signature:e})?(Z(`signature`,e),Q({signature:e}),W(e),h.success(_(`page.signatureUpdateSuccess`)),!0):!1}return m(r,{className:`bg-bg2 !min-h-screen`,children:[p(le,{className:`!bg-bg2`,title:_(`page.title`)}),m(r,{onClick:Ae,className:`flex bg-bg2 flex-col py-3 items-center justify-center gap-3`,children:[p(`input`,{ref:T,type:`file`,accept:`.jpg,.jpeg,.png,image/jpeg,image/png`,className:`hidden`,onChange:je}),m(ne,{className:`w-21 h-21`,children:[p(ie,{src:O.avatar}),p(re,{})]}),p(c,{className:`text-sm text-text2`,children:K?_(`page.loading`):A?_(`page.avatarUploading`):`${Te}`})]}),m(r,{className:`pb-3`,children:[p(o,{className:`bg-bg2 px-3 cursor-pointer`,onClick:Pe,children:m(`div`,{className:`flex items-center justify-between gap-3`,children:[p(s,{children:_(`page.label`)}),p(c,{className:`text-text2 text-sm text-right max-w-[65%] line-clamp-1 text-ellipsis`,children:O.nickname||_(`page.nicknamePlaceholder`)})]})}),p(o,{className:`!bg-bg2 px-3 border-none cursor-pointer`,onClick:Re,children:m(`div`,{className:`flex items-center justify-between gap-3`,children:[p(s,{children:_(`page.genderLabel`)}),p(c,{className:`text-text2 text-sm`,children:ge[J]||_(`page.genderSecret`)})]})}),p(`div`,{className:`h-2 bg-bg1`}),p(o,{className:`border-none px-3 bg-bg2! mt-2 cursor-pointer`,onClick:He,children:m(`div`,{className:`flex items-center justify-between gap-3`,children:[p(s,{children:_(`page.signatureLabel`)}),p(c,{className:`text-text2 text-sm text-right max-w-[65%] line-clamp-1 text-ellipsis`,children:O.signature||_(`page.signaturePlaceholder`)})]})})]}),p(l,{open:P,onClose:()=>F(!1),title:_(`page.label`),confirmText:_(`page.submit`),onConfirm:e=>Le(String(e)),confirmDisabled:Y,children:({onValueChange:e})=>p(r,{className:`px-4 py-4 min-h-[230px]`,children:m(i,{children:[p(ae,{ref:E,className:`!bg-bg1 p-2.5`,rows:4,maxLength:24,placeholder:_(`page.nicknamePlaceholder`),value:I,onChange:t=>{Fe(t),e(t.target.value)},disabled:q}),p(a,{className:`!bg-bg1`,align:`block-end`,children:p(`div`,{className:`text-right w-full`,children:m(`span`,{className:`text-xs`,children:[I.length,`/`,24]})})})]})})}),p(ue,{open:ye,onClose:ze,value:z,onValueChange:Be,onConfirm:Ve,confirmDisabled:Ee}),p(l,{open:V,onClose:()=>H(!1),title:_(`page.signatureLabel`),confirmText:_(`page.submit`),onConfirm:e=>Ge(String(e)),confirmDisabled:X,children:({onValueChange:e})=>p(r,{className:`px-4 py-4 min-h-[230px]`,children:m(i,{children:[p(ae,{ref:D,className:`!bg-bg1 p-2.5`,rows:4,maxLength:100,placeholder:_(`page.signaturePlaceholder`),value:U,onChange:t=>{Ue(t),e(t.target.value)},disabled:q}),p(a,{className:`!bg-bg1`,align:`block-end`,children:p(`div`,{className:`text-right w-full`,children:m(`span`,{className:`text-xs`,children:[U.length,`/`,100]})})})]})})}),p(de,{open:_e,onClose:Ne,imageSrc:M,onConfirm:Me,cropShape:`round`})]})}export{S as EditClient};
@@ -0,0 +1,16 @@
1
+
2
+ import { ReactNode } from "react";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region components/pages/login/auth-guard.d.ts
6
+ interface AuthGuardProps {
7
+ children: ReactNode;
8
+ }
9
+ /**
10
+ * 鉴权守卫组件。
11
+ */
12
+ declare function AuthGuard({
13
+ children
14
+ }: AuthGuardProps): react_jsx_runtime0.JSX.Element | null;
15
+ //#endregion
16
+ export { AuthGuard };
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{useIsLoggedIn as e,useOpenLogin as t}from"../../../hooks/use-auth.mjs";import{useEffect as n}from"react";import{Fragment as r,jsx as i}from"react/jsx-runtime";function a({children:a}){let o=e(),s=t();return n(()=>{o||s()},[o,s]),o?i(r,{children:a}):null}export{a as AuthGuard};
@@ -1,2 +1,2 @@
1
1
 
2
- import{PublishPageClient as e}from"./page-client.mjs";import{jsx as t}from"react/jsx-runtime";function n(){return t(e,{})}export{n as default};
2
+ import{AuthGuard as e}from"../login/auth-guard.mjs";import{PublishPageClient as t}from"./page-client.mjs";import{jsx as n}from"react/jsx-runtime";function r(){return n(e,{children:n(t,{})})}export{r as default};
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
6
6
  //#region components/ui/badge.d.ts
7
7
  /** badgeVariants 工具定义。 */
8
8
  declare const badgeVariants: (props?: ({
9
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
9
+ variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
10
10
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  /** Badge 组件。 */
12
12
  declare function Badge({
@@ -7,7 +7,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
7
7
  //#region components/ui/button.d.ts
8
8
  /** buttonVariants 工具定义。 */
9
9
  declare const buttonVariants: (props?: ({
10
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
10
+ variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
11
11
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** Button 组件属性。 */
@@ -1,11 +1,11 @@
1
1
 
2
2
  import * as React from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
- import NextImage from "next/image";
4
+ import Image from "next/image";
5
5
 
6
6
  //#region components/ui/image.d.ts
7
7
  /** BaseImageProps 属性定义。 */
8
- type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof NextImage>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
8
+ type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof Image>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
9
9
  type CommonImageProps = BaseImageProps & {
10
10
  /** 图片地址,支持普通 URL、默认资源路径和加密地址。 */src: string; /** 图片替代文本。 */
11
11
  alt?: string; /** 图片类名。 */
@@ -27,6 +27,6 @@ type ImagePropsWithSize = CommonImageProps & {
27
27
  /** ImageProps 属性定义。 */
28
28
  type ImageProps = ImagePropsWithFill | ImagePropsWithSize;
29
29
  /** 图片组件:支持 bnc 解密、默认资源域名拼接与错误占位。 */
30
- declare function Image(props: ImageProps): react_jsx_runtime0.JSX.Element;
30
+ declare function Image$1(props: ImageProps): react_jsx_runtime0.JSX.Element;
31
31
  //#endregion
32
- export { BaseImageProps, CommonImageProps, Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
32
+ export { BaseImageProps, CommonImageProps, Image$1 as Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
package/dist/pages.d.mts CHANGED
@@ -10,6 +10,7 @@ import "./components/pages/feed-series/index.mjs";
10
10
  import { FeedbackPage } from "./components/pages/feedback/index.mjs";
11
11
  import { FullscreenFeedPage } from "./components/pages/fullscreen-feed/index.mjs";
12
12
  import { HomePage } from "./components/pages/home/index.mjs";
13
+ import { AuthGuard } from "./components/pages/login/auth-guard.mjs";
13
14
  import { PostDetailPage } from "./components/pages/post-detail/page.mjs";
14
15
  import "./components/pages/post-detail/index.mjs";
15
16
  import { UserProfilePage } from "./components/pages/profile/index.mjs";
@@ -24,4 +25,4 @@ import { VideoDetailMaterialConfig } from "./components/pages/video-detail/video
24
25
  import { VideoDetailPage } from "./components/pages/video-detail/page.mjs";
25
26
  import "./components/pages/video-detail/index.mjs";
26
27
  import { VideoListPage } from "./components/pages/video-list/index.mjs";
27
- export { CollectionAddPage, CollectionCreatePage, CollectionDetailPage, EditPage, FansPage, FeedSeriesPage, FeedbackPage, FollowedPage, FullscreenFeedPage, HomePage, PostDetailPage, PublishPage, SearchPage, SearchResultPageClient as SearchResultPage, SettingsPage, UserFollowPage, UserProfilePage, type VideoDetailMaterialConfig, VideoDetailPage, VideoListPage };
28
+ export { AuthGuard, CollectionAddPage, CollectionCreatePage, CollectionDetailPage, EditPage, FansPage, FeedSeriesPage, FeedbackPage, FollowedPage, FullscreenFeedPage, HomePage, PostDetailPage, PublishPage, SearchPage, SearchResultPageClient as SearchResultPage, SettingsPage, UserFollowPage, UserProfilePage, type VideoDetailMaterialConfig, VideoDetailPage, VideoListPage };
package/dist/pages.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{FansPage as e}from"./components/pages/(follow)/fans/index.mjs";import{FollowedPage as t}from"./components/pages/(follow)/followed/index.mjs";import{CollectionAddPage as n}from"./components/pages/collection-add/index.mjs";import{CollectionCreatePage as r}from"./components/pages/collection-create/index.mjs";import{CollectionDetailPage as i}from"./components/pages/collection-detail/index.mjs";import{EditPage as a}from"./components/pages/edit/index.mjs";import o from"./components/pages/feed-series/page.mjs";import{FeedbackPage as s}from"./components/pages/feedback/index.mjs";import{FullscreenFeedPage as c}from"./components/pages/fullscreen-feed/index.mjs";import{HomePage as l}from"./components/pages/home/index.mjs";import u from"./components/pages/post-detail/page.mjs";import{UserProfilePage as d}from"./components/pages/profile/index.mjs";import f from"./components/pages/publish/page.mjs";import{SearchPage as p}from"./components/pages/search/index.mjs";import m from"./components/pages/search-result/page-client.mjs";import{SettingsPage as h}from"./components/pages/settings/index.mjs";import{UserFollowPage as g}from"./components/pages/user-follow/index.mjs";import _ from"./components/pages/video-detail/page.mjs";import{VideoListPage as v}from"./components/pages/video-list/index.mjs";export{n as CollectionAddPage,r as CollectionCreatePage,i as CollectionDetailPage,a as EditPage,e as FansPage,o as FeedSeriesPage,s as FeedbackPage,t as FollowedPage,c as FullscreenFeedPage,l as HomePage,u as PostDetailPage,f as PublishPage,p as SearchPage,m as SearchResultPage,h as SettingsPage,g as UserFollowPage,d as UserProfilePage,_ as VideoDetailPage,v as VideoListPage};
2
+ import{FansPage as e}from"./components/pages/(follow)/fans/index.mjs";import{FollowedPage as t}from"./components/pages/(follow)/followed/index.mjs";import{CollectionAddPage as n}from"./components/pages/collection-add/index.mjs";import{CollectionCreatePage as r}from"./components/pages/collection-create/index.mjs";import{CollectionDetailPage as i}from"./components/pages/collection-detail/index.mjs";import{EditPage as a}from"./components/pages/edit/index.mjs";import o from"./components/pages/feed-series/page.mjs";import{FeedbackPage as s}from"./components/pages/feedback/index.mjs";import{FullscreenFeedPage as c}from"./components/pages/fullscreen-feed/index.mjs";import{HomePage as l}from"./components/pages/home/index.mjs";import{AuthGuard as u}from"./components/pages/login/auth-guard.mjs";import d from"./components/pages/post-detail/page.mjs";import{UserProfilePage as f}from"./components/pages/profile/index.mjs";import p from"./components/pages/publish/page.mjs";import{SearchPage as m}from"./components/pages/search/index.mjs";import h from"./components/pages/search-result/page-client.mjs";import{SettingsPage as g}from"./components/pages/settings/index.mjs";import{UserFollowPage as _}from"./components/pages/user-follow/index.mjs";import v from"./components/pages/video-detail/page.mjs";import{VideoListPage as y}from"./components/pages/video-list/index.mjs";export{u as AuthGuard,n as CollectionAddPage,r as CollectionCreatePage,i as CollectionDetailPage,a as EditPage,e as FansPage,o as FeedSeriesPage,s as FeedbackPage,t as FollowedPage,c as FullscreenFeedPage,l as HomePage,d as PostDetailPage,p as PublishPage,m as SearchPage,h as SearchResultPage,g as SettingsPage,_ as UserFollowPage,f as UserProfilePage,v as VideoDetailPage,y as VideoListPage};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funhub/platform",
3
3
  "type": "module",
4
- "version": "0.1.60",
4
+ "version": "0.1.61",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "**/*.css"