@funhub/platform 0.1.33 → 0.1.35

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.
Files changed (58) hide show
  1. package/dist/assets/icons/search/avatar.mjs +2 -0
  2. package/dist/assets/icons/search/video.mjs +2 -0
  3. package/dist/biz.d.mts +2 -2
  4. package/dist/biz.mjs +1 -1
  5. package/dist/components/biz/business/banner-carousel/material.d.mts +1 -1
  6. package/dist/components/biz/business/banner-carousel/schema.d.mts +1 -1
  7. package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
  8. package/dist/components/biz/business/header-search/header-avatar-icon/client.d.mts +1 -1
  9. package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -1
  10. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +2 -2
  11. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
  12. package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +6 -1
  13. package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -1
  14. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +8 -3
  15. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
  16. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.d.mts +2 -2
  17. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -1
  18. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +6 -1
  19. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -1
  20. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +5 -2
  21. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -1
  22. package/dist/components/biz/business/header-search/header-logo-search/client.d.mts +4 -2
  23. package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -1
  24. package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +6 -1
  25. package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -1
  26. package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +8 -3
  27. package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -1
  28. package/dist/components/biz/business/header-search/header-search/client.d.mts +1 -1
  29. package/dist/components/biz/business/header-search/header-search/client.mjs +1 -1
  30. package/dist/components/biz/business/header-search/shared/avatar.mjs +2 -0
  31. package/dist/components/biz/business/header-search/shared/logo.mjs +2 -0
  32. package/dist/components/biz/business/header-search/shared/search.mjs +2 -0
  33. package/dist/components/biz/business/index.d.mts +1 -1
  34. package/dist/components/biz/business/index.mjs +1 -1
  35. package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
  36. package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
  37. package/dist/components/biz/business/large-feature-grid/default.mjs +2 -0
  38. package/dist/components/biz/business/large-feature-grid/types.d.mts +20 -0
  39. package/dist/components/biz/business/marquee/material.d.mts +1 -1
  40. package/dist/components/biz/business/marquee/schema.d.mts +2 -2
  41. package/dist/components/biz/business/profile/index.d.mts +1 -1
  42. package/dist/components/biz/business/profile/profile-header/client.d.mts +1 -0
  43. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
  44. package/dist/components/biz/business/profile/profile-header/index.d.mts +1 -1
  45. package/dist/components/biz/business/profile/profile-header/material.d.mts +3 -1
  46. package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
  47. package/dist/components/biz/business/profile/profile-header/schema.d.mts +4 -2
  48. package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
  49. package/dist/components/ui/badge.d.mts +1 -1
  50. package/dist/components/ui/button-group.d.mts +1 -1
  51. package/dist/components/ui/button.d.mts +2 -2
  52. package/dist/components/ui/field.d.mts +1 -1
  53. package/dist/components/ui/image.d.mts +4 -4
  54. package/dist/materials.d.mts +2 -2
  55. package/dist/materials.mjs +1 -1
  56. package/package.json +5 -3
  57. package/theme.css +106 -0
  58. package/dist/components/biz/business/large-feature-grid/mock.mjs +0 -2
@@ -1,2 +1,2 @@
1
1
 
2
- import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{defaultProps as t}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as n}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as r,basicBannerInspectorPropsSchema as i}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as a}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as o}from"./banner/variants/basic-banner/material.mjs";import s from"./banner/variants/basic-banner/index.mjs";import{defaultProps as c}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as l}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import u from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as d}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as f}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import p from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as m}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as h}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import g from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as v}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import y from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as b}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as x}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import S from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as C}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as w}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import T from"./feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as E}from"./floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as D,floatingBallInspectorPropsSchema as O}from"./floating-ball/schema.mjs";import{FloatingBall as k}from"./floating-ball/server.mjs";import{floatingBallMaterial as A}from"./floating-ball/material.mjs";import{defaultProps as j}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as M}from"../basics/fullscreen-feed/schema/index.mjs";import N from"../basics/fullscreen-feed/index.mjs";import{defaultProps as P}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as F}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import I from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as L}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as R}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import z from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as B}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as V}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as H}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import U from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as W}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as G,homeRecommendGridInspectorPropsSchema as K}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as q}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as J}from"./home-recommend/variants/home-recommend-grid/material.mjs";import Y from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as X}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Z}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as $}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as ee}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as te}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import ne from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as re}from"./marquee/client.mjs";import{marqueeInspectorDefaultProps as ie,marqueeInspectorPropsSchema as ae}from"./marquee/schema.mjs";import{MarqueeServer as oe}from"./marquee/server.mjs";import{marqueeMaterial as se}from"./marquee/material.mjs";import{defaultProps as ce}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as le}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import ue from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as de}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as fe}from"./post-card/variants/basic-post-card/schema/index.mjs";import pe from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as me}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as he,profileHeaderInspectorPropsSchema as ge}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as _e,buildUserProfileHeaderPrefetch as ve}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ye}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as be,profileMainCollectTabOptions as xe,profileMainHistoryTabOptions as Se,profileMainLikeTabOptions as Ce,profileMainMineTabOptions as we,profileMainProfileTabOptions as Te,profileMainTabOptions as Ee}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as De}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as Oe}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ke,profileMainInspectorPropsSchema as Ae}from"./profile/profile-main/schema.mjs";import{CollectTab as je}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Me,buildCollectTabPrefetch as Ne}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as Pe}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as Fe,buildHistoryTabPrefetch as Ie}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Le}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as Re,buildLikeTabPrefetch as ze}from"./profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Be}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Ve,buildPublishTabPrefetch as He}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as Ue}from"./profile/profile-main/server.mjs";import{profileMainMaterial as We}from"./profile/profile-main/material.mjs";import{defaultProps as Ge}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as Ke}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import qe from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Je}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Ye}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import Xe from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ze}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Qe}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import $e from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as et}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as tt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import nt from"./search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as rt}from"./search-history/client.mjs";import{searchHistoryInspectorDefaultProps as it,searchHistoryInspectorPropsSchema as at}from"./search-history/schema.mjs";import{SearchHistoryServer as ot}from"./search-history/server.mjs";import{searchHistoryMaterial as st}from"./search-history/material.mjs";import{SearchInputClient as ct}from"./search-input/client.mjs";import{searchInputInspectorDefaultProps as lt,searchInputInspectorPropsSchema as ut}from"./search-input/schema.mjs";import{SearchInputServer as dt}from"./search-input/server.mjs";import{searchInputMaterial as ft}from"./search-input/material.mjs";import{TabBarClient as pt}from"./tab-bar/client.mjs";import{tabBarInspectorDefaultProps as mt,tabBarInspectorPropsSchema as ht}from"./tab-bar/schema.mjs";import{TabBarServer as gt}from"./tab-bar/server.mjs";import{tabBarMaterial as _t}from"./tab-bar/material.mjs";import{TextRecommendClient as vt}from"./text-recommend/client.mjs";import{textRecommendInspectorDefaultProps as yt,textRecommendInspectorPropsSchema as bt}from"./text-recommend/schema.mjs";import{TextRecommendServer as xt}from"./text-recommend/server.mjs";import{textRecommendMaterial as St}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as Ct}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorDefaultProps as wt,videoHorizontalListInspectorPropsSchema as Tt}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as Et}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as Dt}from"./video-horizontal-list/material.mjs";var Ot=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>N,BasicFullscreenFeedDefaultData:()=>j,BasicFullscreenFeedSchema:()=>M,BasicNavBar:()=>ue,BasicNavBarDefaultData:()=>ce,BasicNavBarSchema:()=>le,BasicPostCard:()=>pe,BasicPostCardDefaultData:()=>de,BasicPostCardSchema:()=>fe,BasicRecommendedUsers:()=>qe,BasicRecommendedUsersDefaultData:()=>Ge,BasicRecommendedUsersSchema:()=>Ke,BasicSearchBar:()=>Xe,BasicSearchBarDefaultData:()=>Je,BasicSearchBarSchema:()=>Ye,CardGrid2x3:()=>u,CardGrid2x3DefaultData:()=>c,CardGrid2x3Infinite:()=>p,CardGrid2x3InfiniteDefaultData:()=>d,CardGrid2x3InfiniteSchema:()=>f,CardGrid2x3Schema:()=>l,CardGrid2x4:()=>g,CardGrid2x4DefaultData:()=>m,CardGrid2x4Schema:()=>h,CardGrid3x3:()=>y,CardGrid3x3DefaultData:()=>_,CardGrid3x3Infinite:()=>S,CardGrid3x3InfiniteDefaultData:()=>b,CardGrid3x3InfiniteSchema:()=>x,CardGrid3x3Schema:()=>v,CollectTab:()=>je,CollectTabServer:()=>Me,DetailSearchBar:()=>U,DetailSearchBarDefaultData:()=>V,DetailSearchBarSchema:()=>H,FilterSearchBar:()=>$e,FilterSearchBarDefaultData:()=>Ze,FilterSearchBarSchema:()=>Qe,FloatingBall:()=>k,FloatingBallClient:()=>E,FullscreenFeedClient:()=>I,FullscreenPostFeedDefaultData:()=>P,FullscreenPostFeedSchema:()=>F,FullscreenVideoClient:()=>z,FullscreenVideoFeedDefaultData:()=>L,FullscreenVideoFeedSchema:()=>R,HistoryTab:()=>Pe,HistoryTabServer:()=>Fe,HomeRecommendGrid:()=>Y,HomeRecommendGridDefaultData:()=>B,HomeRecommendGridMaterialComponent:()=>q,HomeRecommendGridSchema:()=>W,HomeRecommendWaterfall:()=>ne,HomeRecommendWaterfallDefaultData:()=>X,HomeRecommendWaterfallMaterialComponent:()=>ee,HomeRecommendWaterfallSchema:()=>Z,LikeTab:()=>Le,LikeTabServer:()=>Re,MarqueeClient:()=>re,MarqueeServer:()=>oe,PublishTab:()=>Be,PublishTabServer:()=>Ve,SearchHistoryClient:()=>rt,SearchHistoryServer:()=>ot,SearchInputClient:()=>ct,SearchInputServer:()=>dt,TabBarClient:()=>pt,TabBarServer:()=>gt,TagSearchBar:()=>nt,TagSearchBarDefaultData:()=>et,TagSearchBarSchema:()=>tt,TextRecommendClient:()=>vt,TextRecommendServer:()=>xt,UserProfileHeader:()=>_e,UserProfileHeaderClient:()=>me,UserProfileMain:()=>Ue,UserProfileMainClient:()=>Oe,UserProfileMainShell:()=>De,VideoHorizontalListClient:()=>Ct,VideoHorizontalListServer:()=>Et,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o,buildCollectTabPrefetch:()=>Ne,buildHistoryTabPrefetch:()=>Ie,buildLikeTabPrefetch:()=>ze,buildPublishTabPrefetch:()=>He,buildUserProfileHeaderPrefetch:()=>ve,floatingBallInspectorDefaultProps:()=>D,floatingBallInspectorPropsSchema:()=>O,floatingBallMaterial:()=>A,homeRecommendGridInspectorDefaultProps:()=>G,homeRecommendGridInspectorPropsSchema:()=>K,homeRecommendGridMaterial:()=>J,homeRecommendWaterfallInspectorDefaultProps:()=>Q,homeRecommendWaterfallInspectorPropsSchema:()=>$,homeRecommendWaterfallMaterial:()=>te,marqueeInspectorDefaultProps:()=>ie,marqueeInspectorPropsSchema:()=>ae,marqueeMaterial:()=>se,profileHeaderInspectorDefaultProps:()=>he,profileHeaderInspectorPropsSchema:()=>ge,profileHeaderMaterial:()=>ye,profileMainCollectCollectionTabOptions:()=>be,profileMainCollectTabOptions:()=>xe,profileMainHistoryTabOptions:()=>Se,profileMainInspectorDefaultProps:()=>ke,profileMainInspectorPropsSchema:()=>Ae,profileMainLikeTabOptions:()=>Ce,profileMainMaterial:()=>We,profileMainMineTabOptions:()=>we,profileMainProfileTabOptions:()=>Te,profileMainTabOptions:()=>Ee,searchHistoryInspectorDefaultProps:()=>it,searchHistoryInspectorPropsSchema:()=>at,searchHistoryMaterial:()=>st,searchInputInspectorDefaultProps:()=>lt,searchInputInspectorPropsSchema:()=>ut,searchInputMaterial:()=>ft,tabBarInspectorDefaultProps:()=>mt,tabBarInspectorPropsSchema:()=>ht,tabBarMaterial:()=>_t,textRecommendInspectorDefaultProps:()=>yt,textRecommendInspectorPropsSchema:()=>bt,textRecommendMaterial:()=>St,videoHorizontalListInspectorDefaultProps:()=>wt,videoHorizontalListInspectorPropsSchema:()=>Tt,videoHorizontalListMaterial:()=>Dt});export{Ot as business_exports};
2
+ import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{defaultProps as t}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as n}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as r,basicBannerInspectorPropsSchema as i}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as a}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as o}from"./banner/variants/basic-banner/material.mjs";import s from"./banner/variants/basic-banner/index.mjs";import{defaultProps as c}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as l}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import u from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as d}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as f}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import p from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as m}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as h}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import g from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as v}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import y from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as b}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as x}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import S from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as C}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as w}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import T from"./feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as E}from"./floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as D,floatingBallInspectorPropsSchema as O}from"./floating-ball/schema.mjs";import{FloatingBall as k}from"./floating-ball/server.mjs";import{floatingBallMaterial as A}from"./floating-ball/material.mjs";import{defaultProps as j}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as M}from"../basics/fullscreen-feed/schema/index.mjs";import N from"../basics/fullscreen-feed/index.mjs";import{defaultProps as P}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as F}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import I from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as L}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as R}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import z from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as B}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as V}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as H}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import U from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as W}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as G,homeRecommendGridInspectorPropsSchema as K}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as q}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as J}from"./home-recommend/variants/home-recommend-grid/material.mjs";import Y from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as X}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Z}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as $}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as ee}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as te}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import ne from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as re}from"./marquee/client.mjs";import{marqueeInspectorDefaultProps as ie,marqueeInspectorPropsSchema as ae}from"./marquee/schema.mjs";import{MarqueeServer as oe}from"./marquee/server.mjs";import{marqueeMaterial as se}from"./marquee/material.mjs";import{defaultProps as ce}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as le}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import ue from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as de}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as fe}from"./post-card/variants/basic-post-card/schema/index.mjs";import pe from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as me}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as he,profileHeaderInspectorPropsSchema as ge}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as _e,buildUserProfileHeaderPrefetch as ve}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ye,profileHeaderMaterialWithDisabledBackground as be}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as xe,profileMainCollectTabOptions as Se,profileMainHistoryTabOptions as Ce,profileMainLikeTabOptions as we,profileMainMineTabOptions as Te,profileMainProfileTabOptions as Ee,profileMainTabOptions as De}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as Oe}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as ke}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as Ae,profileMainInspectorPropsSchema as je}from"./profile/profile-main/schema.mjs";import{CollectTab as Me}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Ne,buildCollectTabPrefetch as Pe}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as Fe}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as Ie,buildHistoryTabPrefetch as Le}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Re}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as ze,buildLikeTabPrefetch as Be}from"./profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Ve}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as He,buildPublishTabPrefetch as Ue}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as We}from"./profile/profile-main/server.mjs";import{profileMainMaterial as Ge}from"./profile/profile-main/material.mjs";import{defaultProps as Ke}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as qe}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import Je from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Ye}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Xe}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import Ze from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Qe}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as $e}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import et from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as tt}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as nt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import rt from"./search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as it}from"./search-history/client.mjs";import{searchHistoryInspectorDefaultProps as at,searchHistoryInspectorPropsSchema as ot}from"./search-history/schema.mjs";import{SearchHistoryServer as st}from"./search-history/server.mjs";import{searchHistoryMaterial as ct}from"./search-history/material.mjs";import{SearchInputClient as lt}from"./search-input/client.mjs";import{searchInputInspectorDefaultProps as ut,searchInputInspectorPropsSchema as dt}from"./search-input/schema.mjs";import{SearchInputServer as ft}from"./search-input/server.mjs";import{searchInputMaterial as pt}from"./search-input/material.mjs";import{TabBarClient as mt}from"./tab-bar/client.mjs";import{tabBarInspectorDefaultProps as ht,tabBarInspectorPropsSchema as gt}from"./tab-bar/schema.mjs";import{TabBarServer as _t}from"./tab-bar/server.mjs";import{tabBarMaterial as vt}from"./tab-bar/material.mjs";import{TextRecommendClient as yt}from"./text-recommend/client.mjs";import{textRecommendInspectorDefaultProps as bt,textRecommendInspectorPropsSchema as xt}from"./text-recommend/schema.mjs";import{TextRecommendServer as St}from"./text-recommend/server.mjs";import{textRecommendMaterial as Ct}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as wt}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorDefaultProps as Tt,videoHorizontalListInspectorPropsSchema as Et}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as Dt}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as Ot}from"./video-horizontal-list/material.mjs";var kt=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>N,BasicFullscreenFeedDefaultData:()=>j,BasicFullscreenFeedSchema:()=>M,BasicNavBar:()=>ue,BasicNavBarDefaultData:()=>ce,BasicNavBarSchema:()=>le,BasicPostCard:()=>pe,BasicPostCardDefaultData:()=>de,BasicPostCardSchema:()=>fe,BasicRecommendedUsers:()=>Je,BasicRecommendedUsersDefaultData:()=>Ke,BasicRecommendedUsersSchema:()=>qe,BasicSearchBar:()=>Ze,BasicSearchBarDefaultData:()=>Ye,BasicSearchBarSchema:()=>Xe,CardGrid2x3:()=>u,CardGrid2x3DefaultData:()=>c,CardGrid2x3Infinite:()=>p,CardGrid2x3InfiniteDefaultData:()=>d,CardGrid2x3InfiniteSchema:()=>f,CardGrid2x3Schema:()=>l,CardGrid2x4:()=>g,CardGrid2x4DefaultData:()=>m,CardGrid2x4Schema:()=>h,CardGrid3x3:()=>y,CardGrid3x3DefaultData:()=>_,CardGrid3x3Infinite:()=>S,CardGrid3x3InfiniteDefaultData:()=>b,CardGrid3x3InfiniteSchema:()=>x,CardGrid3x3Schema:()=>v,CollectTab:()=>Me,CollectTabServer:()=>Ne,DetailSearchBar:()=>U,DetailSearchBarDefaultData:()=>V,DetailSearchBarSchema:()=>H,FilterSearchBar:()=>et,FilterSearchBarDefaultData:()=>Qe,FilterSearchBarSchema:()=>$e,FloatingBall:()=>k,FloatingBallClient:()=>E,FullscreenFeedClient:()=>I,FullscreenPostFeedDefaultData:()=>P,FullscreenPostFeedSchema:()=>F,FullscreenVideoClient:()=>z,FullscreenVideoFeedDefaultData:()=>L,FullscreenVideoFeedSchema:()=>R,HistoryTab:()=>Fe,HistoryTabServer:()=>Ie,HomeRecommendGrid:()=>Y,HomeRecommendGridDefaultData:()=>B,HomeRecommendGridMaterialComponent:()=>q,HomeRecommendGridSchema:()=>W,HomeRecommendWaterfall:()=>ne,HomeRecommendWaterfallDefaultData:()=>X,HomeRecommendWaterfallMaterialComponent:()=>ee,HomeRecommendWaterfallSchema:()=>Z,LikeTab:()=>Re,LikeTabServer:()=>ze,MarqueeClient:()=>re,MarqueeServer:()=>oe,PublishTab:()=>Ve,PublishTabServer:()=>He,SearchHistoryClient:()=>it,SearchHistoryServer:()=>st,SearchInputClient:()=>lt,SearchInputServer:()=>ft,TabBarClient:()=>mt,TabBarServer:()=>_t,TagSearchBar:()=>rt,TagSearchBarDefaultData:()=>tt,TagSearchBarSchema:()=>nt,TextRecommendClient:()=>yt,TextRecommendServer:()=>St,UserProfileHeader:()=>_e,UserProfileHeaderClient:()=>me,UserProfileMain:()=>We,UserProfileMainClient:()=>ke,UserProfileMainShell:()=>Oe,VideoHorizontalListClient:()=>wt,VideoHorizontalListServer:()=>Dt,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o,buildCollectTabPrefetch:()=>Pe,buildHistoryTabPrefetch:()=>Le,buildLikeTabPrefetch:()=>Be,buildPublishTabPrefetch:()=>Ue,buildUserProfileHeaderPrefetch:()=>ve,floatingBallInspectorDefaultProps:()=>D,floatingBallInspectorPropsSchema:()=>O,floatingBallMaterial:()=>A,homeRecommendGridInspectorDefaultProps:()=>G,homeRecommendGridInspectorPropsSchema:()=>K,homeRecommendGridMaterial:()=>J,homeRecommendWaterfallInspectorDefaultProps:()=>Q,homeRecommendWaterfallInspectorPropsSchema:()=>$,homeRecommendWaterfallMaterial:()=>te,marqueeInspectorDefaultProps:()=>ie,marqueeInspectorPropsSchema:()=>ae,marqueeMaterial:()=>se,profileHeaderInspectorDefaultProps:()=>he,profileHeaderInspectorPropsSchema:()=>ge,profileHeaderMaterial:()=>ye,profileHeaderMaterialWithDisabledBackground:()=>be,profileMainCollectCollectionTabOptions:()=>xe,profileMainCollectTabOptions:()=>Se,profileMainHistoryTabOptions:()=>Ce,profileMainInspectorDefaultProps:()=>Ae,profileMainInspectorPropsSchema:()=>je,profileMainLikeTabOptions:()=>we,profileMainMaterial:()=>Ge,profileMainMineTabOptions:()=>Te,profileMainProfileTabOptions:()=>Ee,profileMainTabOptions:()=>De,searchHistoryInspectorDefaultProps:()=>at,searchHistoryInspectorPropsSchema:()=>ot,searchHistoryMaterial:()=>ct,searchInputInspectorDefaultProps:()=>ut,searchInputInspectorPropsSchema:()=>dt,searchInputMaterial:()=>pt,tabBarInspectorDefaultProps:()=>ht,tabBarInspectorPropsSchema:()=>gt,tabBarMaterial:()=>vt,textRecommendInspectorDefaultProps:()=>bt,textRecommendInspectorPropsSchema:()=>xt,textRecommendMaterial:()=>Ct,videoHorizontalListInspectorDefaultProps:()=>Tt,videoHorizontalListInspectorPropsSchema:()=>Et,videoHorizontalListMaterial:()=>Ot});export{kt as business_exports};
@@ -1,2 +1,2 @@
1
1
 
2
- import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../ui/link.mjs";import i from"../../../../assets/icons/view.mjs";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(e){if(e.duration===void 0||e.duration===null||e.duration===``)return null;let t=String(e.duration);if(t.includes(`集`))return t.startsWith(`全`)?t:`全${t.replace(/\D/g,``)}集`;let n=Number(e.duration);if(!Number.isNaN(n)&&n>0){let e=Math.floor(n),t=Math.floor(e/3600),r=Math.floor(e%3600/60),i=e%60,a=e=>String(e).padStart(2,`0`);return t>0?`${a(t)}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}return String(e.duration)}function c(e){if(e==null||e===``)return null;let t=Number(e);if(Number.isNaN(t))return String(e);if(t<1e3)return String(t);if(t<1e6){let e=(t/1e3).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}K`:`${e}K`}else{let e=(t/1e6).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}M`:`${e}M`}}function l(e){let t=e.tag_image||e.tag_image_url||e.tagImage||e.tagImageUrl;return t?String(t):null}function u({data:u}){return u?a(t,{children:(Array.isArray(u)?u:[u]).map(u=>{let d=u.id?`/video/${u.id}/${u.title?encodeURIComponent(u.title):``}`:`#`,f=(e=>e===1?{text:`新剧`,fromColor:`#FD4C5E`,toColor:`#F05D19`,textColor:`#FFFFFF`}:e===2?{text:`热门`,fromColor:`#FFE485`,toColor:`#CF8125`,textColor:`#674100`}:null)(u.superscript),p=u.tag||f?.text,m=l(u),h=f?{from:f.fromColor,to:f.toColor,text:f.textColor}:{from:`#FD4C5E`,to:`#F05D19`,text:`#FFFFFF`},g=s(u),_=c(u.playCount);return a(t,{children:o(r,{href:d,children:[o(t,{className:`relative w-full overflow-hidden rounded-[12px] bg-neutral-800`,style:{aspectRatio:`16/9`},children:[u.cover&&a(e,{src:u.cover,alt:u.title,fill:!0,objectFit:`cover`}),m&&a(t,{className:`absolute right-0 top-0 z-10 h-[24px] w-[64px]`,children:a(e,{src:m,alt:u.title,fill:!0,objectFit:`contain`})}),!m&&p&&a(t,{className:`absolute right-0 top-0 flex items-center justify-center z-10`,style:{height:`24px`,padding:`0 10px`,borderTopRightRadius:`12px`,borderBottomLeftRadius:`18px`,background:`linear-gradient(to right, ${h.from}, ${h.to})`,color:h.text},children:a(n,{as:`span`,className:`text-[13px] font-medium leading-none`,children:p})}),a(t,{className:`absolute inset-x-0 bottom-0 h-[40px] bg-gradient-to-t from-black/80 to-transparent z-0 pointer-events-none`}),_&&o(t,{className:`absolute bottom-0 left-[8px] mb-[6px] z-10 flex items-center gap-[4px]`,children:[a(i,{className:`h-[14px] w-[14px] text-white`}),a(n,{as:`span`,className:`text-[12px] font-medium text-white drop-shadow-md`,children:_})]}),g&&a(t,{className:`absolute bottom-0 right-[8px] mb-[6px] z-10 flex items-center`,children:a(n,{as:`span`,className:`text-[12px] font-medium text-white drop-shadow-md`,children:g})})]}),o(t,{className:`flex items-center justify-between gap-[12px] pt-[10px] px-2`,children:[o(t,{className:`flex-1 min-w-0`,children:[a(n,{as:`h3`,className:`text-[16px] font-semibold leading-[24px] text-text1 line-clamp-1`,children:u.title}),u.desc&&a(n,{as:`p`,className:`mt-[4px] text-[13px] leading-[20px] text-text2 line-clamp-1`,children:u.desc})]}),a(n,{className:`shrink-0 rounded-[20px] border border-[#FD4C5E] px-[24px] py-[8px] text-[14px] font-normal text-[#FD4C5E]`,children:`观看`})]})]})},u.id||u.title)})}):null}export{u as LargeGridItemClient};
2
+ import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../ui/link.mjs";import i from"../../../../assets/icons/view.mjs";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(e){if(e.duration===void 0||e.duration===null||e.duration===``)return null;let t=String(e.duration);if(t.includes(`集`))return t.startsWith(`全`)?t:`全${t.replace(/\D/g,``)}集`;let n=Number(e.duration);if(!Number.isNaN(n)&&n>0){let e=Math.floor(n),t=Math.floor(e/3600),r=Math.floor(e%3600/60),i=e%60,a=e=>String(e).padStart(2,`0`);return t>0?`${a(t)}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}return String(e.duration)}function c(e){if(e==null||e===``)return null;let t=Number(e);if(Number.isNaN(t))return String(e);if(t<1e3)return String(t);if(t<1e6){let e=(t/1e3).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}K`:`${e}K`}else{let e=(t/1e6).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}M`:`${e}M`}}function l(e,t,n){return t===`showPlayCount`?e.showPlayCount??n:t===`showEpisode`?e.showEpisode??n:n}function u(e){if(!l(e,`showPlayCount`,!0))return;let t=e.playCount,n=Number(e.playCountDelta??0);if(t==null||t===``)return t;let r=Number(t);return Number.isNaN(r)?t:r+(Number.isNaN(n)?0:n)}function d(e){let t=e.tag_image||e.tag_image_url||e.tagImage||e.tagImageUrl;return t?String(t):null}function f({data:f}){return f?a(t,{children:(Array.isArray(f)?f:[f]).map(f=>{let p=f.id?`/video/${f.id}/${f.title?encodeURIComponent(f.title):``}`:`#`,m=(e=>e===1?{text:`新剧`,fromColor:`#FD4C5E`,toColor:`#F05D19`,textColor:`#FFFFFF`}:e===2?{text:`热门`,fromColor:`#FFE485`,toColor:`#CF8125`,textColor:`#674100`}:null)(f.superscript),h=f.tag||m?.text,g=d(f),_=m?{from:m.fromColor,to:m.toColor,text:m.textColor}:{from:`#FD4C5E`,to:`#F05D19`,text:`#FFFFFF`},v=l(f,`showEpisode`,!0)?s(f):null,y=c(u(f));return a(t,{children:o(r,{href:p,children:[o(t,{className:`relative w-full overflow-hidden rounded-[12px] bg-neutral-800`,style:{aspectRatio:`16/9`},children:[f.cover&&a(e,{src:f.cover,alt:f.title,fill:!0,objectFit:`cover`}),g&&a(t,{className:`absolute right-0 top-0 z-10 h-[24px] w-[64px]`,children:a(e,{src:g,alt:f.title,fill:!0,objectFit:`contain`})}),!g&&h&&a(t,{className:`absolute right-0 top-0 flex items-center justify-center z-10`,style:{height:`24px`,padding:`0 10px`,borderTopRightRadius:`12px`,borderBottomLeftRadius:`18px`,background:`linear-gradient(to right, ${_.from}, ${_.to})`,color:_.text},children:a(n,{as:`span`,className:`text-[13px] font-medium leading-none`,children:h})}),a(t,{className:`absolute inset-x-0 bottom-0 h-[40px] bg-gradient-to-t from-black/80 to-transparent z-0 pointer-events-none`}),y&&o(t,{className:`absolute bottom-0 left-[8px] mb-[6px] z-10 flex items-center gap-[4px]`,children:[a(i,{className:`h-[14px] w-[14px] text-white`}),a(n,{as:`span`,className:`text-[12px] font-medium text-white drop-shadow-md`,children:y})]}),v&&a(t,{className:`absolute bottom-0 right-[8px] mb-[6px] z-10 flex items-center`,children:a(n,{as:`span`,className:`text-[12px] font-medium text-white drop-shadow-md`,children:v})})]}),o(t,{className:`flex items-center justify-between gap-[12px] pt-[10px] px-2`,children:[o(t,{className:`flex-1 min-w-0`,children:[a(n,{as:`h3`,className:`text-[16px] font-semibold leading-[24px] text-text1 line-clamp-1`,children:f.title}),f.desc&&a(n,{as:`p`,className:`mt-[4px] text-[13px] leading-[20px] text-text2 line-clamp-1`,children:f.desc})]}),a(n,{className:`shrink-0 rounded-[20px] border border-[#FD4C5E] px-[24px] py-[8px] text-[14px] font-normal text-[#FD4C5E]`,children:`观看`})]})]})},f.id||f.title)})}):null}export{f as LargeGridItemClient};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import n from"../../../ui/link.mjs";import r from"../../../../assets/icons/common/right_arrow.mjs";import{LargeGridItemClient as i}from"./card-item.mjs";import{mockData as a}from"./mock.mjs";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=[];function l({data:l=c}){let u=l.length>0?l:a;if(!u||u.length===0)return null;let d=u[0],f=d?.title,p=d?.moreUrl;return s(e,{className:`p-3`,children:[s(e,{className:`flex items-center justify-between mb-[10px] h-[24px]`,children:[f&&o(t,{as:`h2`,className:`text-[18px] font-bold text-text1 line-clamp-1 flex-1 min-w-0 mr-[12px]`,children:f}),p&&s(n,{href:p,className:`flex items-center text-[14px] text-text2 ml-auto`,children:[`更多`,o(r,{className:`ml-[2px] h-[12px] w-[12px] text-text2`})]})]}),u.map((t,n)=>{let{items:r}=t;return r?o(e,{className:n>0?`mt-3`:``,children:o(i,{data:r})},`large-feature-grid-items-${n}`):null})]})}export{l as LargeFeatureGridClient};
2
+ "use client";import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import n from"../../../ui/link.mjs";import r from"../../../../assets/icons/common/right_arrow.mjs";import{LargeGridItemClient as i}from"./card-item.mjs";import{defaultData as a}from"./default.mjs";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=[];function l(e){return e==null||e===``}function u(e,t){return l(e)?t:e}function d(e,t){return t?{...e,...t,id:u(t.id,e.id),cover:u(t.cover,e.cover),title:u(t.title,e.title),desc:u(t.desc,e.desc),tag:u(t.tag,e.tag),superscript:t.superscript??e.superscript,playCount:u(t.playCount,e.playCount),playCountDelta:t.playCountDelta??e.playCountDelta,showPlayCount:t.showPlayCount??e.showPlayCount,duration:u(t.duration,e.duration),showEpisode:t.showEpisode??e.showEpisode,useContentCover:t.useContentCover??e.useContentCover,tagImageUrl:u(t.tagImageUrl,e.tagImageUrl),tag_image:u(t.tag_image,e.tag_image),tag_image_url:u(t.tag_image_url,e.tag_image_url),tagImage:u(t.tagImage,e.tagImage)}:e}function f(e,t){if(!t)return e;let n=e.items;return{...e,...t,title:u(t.title,e.title),moreUrl:u(t.moreUrl,e.moreUrl),moreLinkType:t.moreLinkType??e.moreLinkType,recommendMode:t.recommendMode??e.recommendMode,items:n?d(n,t.items):t.items}}function p({data:l=c}){let u=Array.isArray(l)&&l.length>0?[f(a[0],l[0])]:a;if(!u||u.length===0)return null;let d=u[0],p=d?.title,m=d?.moreUrl;return s(e,{className:`p-3`,children:[s(e,{className:`flex items-center justify-between mb-[10px] h-[24px]`,children:[p&&o(t,{as:`h2`,className:`text-[18px] font-bold text-text1 line-clamp-1 flex-1 min-w-0 mr-[12px]`,children:p}),m&&s(n,{href:m,className:`flex items-center text-[14px] text-text2 ml-auto`,children:[`更多`,o(r,{className:`ml-[2px] h-[12px] w-[12px] text-text2`})]})]}),u.map((t,n)=>{let{items:r}=t;return r?o(e,{className:n>0?`mt-3`:``,children:o(i,{data:r})},`large-feature-grid-items-${n}`):null})]})}export{p as LargeFeatureGridClient};
@@ -0,0 +1,2 @@
1
+
2
+ const e=[{title:`推荐位名称`,moreUrl:`/channel`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,tag:`独家`,playCount:11111,playCountDelta:0,showPlayCount:!0,duration:3600,showEpisode:!0,useContentCover:!0,title:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`,desc:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`}}];export{e as defaultData};
@@ -14,18 +14,38 @@ interface LargeGridItem {
14
14
  superscript?: 0 | 1 | 2;
15
15
  /** 播放量 */
16
16
  playCount?: string | number;
17
+ /** 播放量增量 */
18
+ playCountDelta?: number;
19
+ /** 是否展示播放量,默认 true */
20
+ showPlayCount?: boolean;
17
21
  /** 视频时长或剧集数 */
18
22
  duration?: string | number;
23
+ /** 是否展示时长/集数,默认 true */
24
+ showEpisode?: boolean;
19
25
  /** 内容标题 */
20
26
  title: string;
21
27
  /** 内容描述 */
22
28
  desc?: string;
29
+ /** 是否沿用内容海报(渲染层只做透传兼容) */
30
+ useContentCover?: boolean;
31
+ /** 角标图 URL(主字段) */
32
+ tagImageUrl?: string;
33
+ /** 角标图 URL(历史兼容字段) */
34
+ tag_image?: string;
35
+ /** 角标图 URL(历史兼容字段) */
36
+ tag_image_url?: string;
37
+ /** 角标图 URL(历史兼容字段) */
38
+ tagImage?: string;
23
39
  }
24
40
  interface LargeGridData {
25
41
  /** 推荐位名称 */
26
42
  title?: string;
27
43
  /** 更多链接地址 */
28
44
  moreUrl?: string;
45
+ /** 更多链接类型(编辑态持久字段) */
46
+ moreLinkType?: 'content-list' | 'content' | 'url';
47
+ /** 推荐位内容类型(编辑态持久字段) */
48
+ recommendMode?: 'content' | 'algorithm';
29
49
  /** 卡片内容 */
30
50
  items?: LargeGridItem;
31
51
  }
@@ -15,7 +15,7 @@ declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, typeof
15
15
  contents: zod.ZodArray<zod.ZodObject<{
16
16
  text: zod.ZodString & SchemaHasDefaultValue;
17
17
  enableClick: zod.ZodBoolean & SchemaHasDefaultValue;
18
- linkType: zod.ZodType<"content" | "url" | "content-list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "url" | "content-list", unknown>> & SchemaHasDefaultValue;
18
+ linkType: zod.ZodType<"content" | "content-list" | "url", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "content-list" | "url", unknown>> & SchemaHasDefaultValue;
19
19
  link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
20
20
  }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
21
21
  showClose: zod.ZodBoolean & SchemaHasDefaultValue;
@@ -11,7 +11,7 @@ declare const marqueeInspectorPropsSchema: z$1.ZodObject<{
11
11
  contents: z$1.ZodArray<z$1.ZodObject<{
12
12
  text: z$1.ZodString & SchemaHasDefaultValue;
13
13
  enableClick: z$1.ZodBoolean & SchemaHasDefaultValue;
14
- linkType: z$1.ZodType<"content" | "url" | "content-list", unknown, z$1.core.$ZodTypeInternals<"content" | "url" | "content-list", unknown>> & SchemaHasDefaultValue;
14
+ linkType: z$1.ZodType<"content" | "content-list" | "url", unknown, z$1.core.$ZodTypeInternals<"content" | "content-list" | "url", unknown>> & SchemaHasDefaultValue;
15
15
  link: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
16
16
  }, z$1.core.$strip>> & SchemaHasDefaultValue;
17
17
  showClose: z$1.ZodBoolean & SchemaHasDefaultValue;
@@ -23,7 +23,7 @@ declare const marqueeInspectorDefaultProps: {
23
23
  contents: {
24
24
  text: string;
25
25
  enableClick: boolean;
26
- linkType: "content" | "url" | "content-list";
26
+ linkType: "content" | "content-list" | "url";
27
27
  link?: string | undefined;
28
28
  }[];
29
29
  showClose: boolean;
@@ -2,7 +2,7 @@
2
2
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./profile-header/schema.mjs";
3
3
  import { UserProfileHeaderClient } from "./profile-header/client.mjs";
4
4
  import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./profile-header/server.mjs";
5
- import { profileHeaderMaterial } from "./profile-header/material.mjs";
5
+ import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./profile-header/material.mjs";
6
6
  import "./profile-header/index.mjs";
7
7
  import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile-main/schema.mjs";
8
8
  import { UserProfileMainClient } from "./profile-main/client.mjs";
@@ -8,6 +8,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
8
8
  */
9
9
  declare function UserProfileHeaderClient({
10
10
  id,
11
+ enableCustomBackground,
11
12
  showBackButton,
12
13
  requireLogin,
13
14
  cookieToken,
@@ -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{Skeleton as c}from"../../../../ui/skeleton.mjs";import{Text as l}from"../../../../ui/text.mjs";import{useDeleteRequest as u,useMutation as d,useRequest as f,useUpdateRequest as p}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as m}from"../../../../../hooks/use-app-context/index.mjs";import{useLoginModalStore as h}from"../../../../../store/modules/login-modal-store.mjs";import{LeftArrowIcon as g}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as _}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as v}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as y}from"./user-profile-cover-background.mjs";import{useEffect as b,useMemo as ee,useState as te}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 ne}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 re({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=h(),c=u(),l=p(),{mutateAsync:f,isPending:m}=d(async e=>a(e)),{mutateAsync:g,isPending:_}=d(async e=>o(e)),v=m||_;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 f({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){l([`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({showBackButton:t=!0,className:n}){return S(s,{className:e(`flex flex-col relative`,n),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(c,{className:e(`w-4 h-4 rounded-sm bg-muted`,{invisible:!t})}),x(c,{className:`w-4 h-4 rounded-sm bg-muted`})]}),x(s,{className:`h-33.75`,children:x(c,{className:`h-full w-full rounded-none bg-white/10`})}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(c,{className:`!absolute bottom-3 left-0 w-22 h-22 rounded-full animate-none`}),S(s,{className:`flex divide-x divide-text1/5 py-4`,children:[S(s,{className:`px-4 flex flex-col items-center gap-1`,children:[x(c,{className:`w-8 h-4`}),x(c,{className:`w-10 h-3`})]}),S(s,{className:`px-4 flex flex-col items-center gap-1`,children:[x(c,{className:`w-8 h-4`}),x(c,{className:`w-10 h-3`})]}),S(s,{className:`px-4 flex flex-col items-center gap-1`,children:[x(c,{className:`w-8 h-4`}),x(c,{className:`w-10 h-3`})]})]})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(c,{className:`h-6 w-26`}),x(c,{className:`h-9 w-20 rounded-full`})]}),x(c,{className:`h-4 w-2/3 mt-2`})]})]})}function A({id:a,showBackButton:o=!0,requireLogin:c=!1,cookieToken:u,cookieUserId:d,isEditorPreview:p=!1,className:C}){let A=w(`components.pages.profile`),j=w(`components.pages.profile.components`),ie=m(),M=p||ie===`editor`,N=!M,ae=ne(),{open:P}=h(),{isLogin:oe,userId:F,token:se}=n(),[I,L]=te(!1);b(()=>{if(!E){L(!0);return}L(E.hasHydrated());let e=E.onHydrate(()=>{L(!1)}),t=E.onFinishHydration(()=>{L(!0)});return()=>{e(),t()}},[]);let R=I?oe&&!!F&&!!se:!!d&&!!u,z=I?F:F||d,B=z,V=a==null||!!a&&!!B&&a===B,ce=!V&&!!a,H=V?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:U}=f(M?[`editor-preview`,...H]:H,()=>a?i({target_user_id:a,user_id:z||a}):r({user_id:a||z||``}),{staleTime:0,enabled:N&&(!!a||!!z)}),W=ee(()=>{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=c&&V&&!R,le=!R&&ce,K=V&&R&&!G,q=!R,ue={name:A(`client.welcomeToPlanet`),description:A(`client.exploreAdventures`),avatar:D,followingCnt:0,followersCnt:0,likeCnt:0,background:O};function J(){P()}function Y(){ae.back()}function X(e){!V||R||(e.preventDefault(),e.stopPropagation(),P())}let de=G?x(t,{className:`rounded-full`,size:`lg`,onClick:J,children:A(`client.loginNow`)}):le?x(t,{className:`rounded-full`,size:`lg`,onClick:J,children:A(`client.follow`)}):R?V?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:A(`client.editProfile`)})}):x(re,{userId:a||``,currentUserId:z,isFollowing:W?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:J,children:A(`client.loginNow`)}),Z=G?ue:W,Q=Z.name||``,$=Z.description||Z.signature||``,fe=Z.followingCnt??0,pe=Z.followersCnt??0,me=Z.likeCnt??0,he=Z.avatar||``;return M?x(k,{showBackButton:o,className:C}):S(s,{className:e(`flex flex-col relative`,C),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:Y,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!o}),children:x(g,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!V}),children:x(_,{})})]}),x(y,{isMine:K,src:Z.background,onUnauthorizedClick:q?J:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(v,{isMine:K,src:he,alt:Q||`avatar`,onUnauthorizedClick:q?J:void 0}),S(s,{className:`flex divide-x divide-text1/5 py-4`,children:[x(T,{href:V?`/followed`:`/followed?user_id=${Z.userId}`,onClick:X,children:S(s,{className:`px-4 flex flex-col items-center`,children:[x(l,{className:`font-bold text-base`,children:fe}),x(l,{className:`font-normal text-sm text-text1/66`,children:j(`userProfileHeader.follow`)})]})}),x(T,{href:V?`/fans`:`/fans?user_id=${Z.userId}`,onClick:X,children:S(s,{className:`px-4 flex flex-col items-center`,children:[x(l,{className:`font-bold text-base`,children:pe}),x(l,{className:`font-normal text-sm text-text1/66`,children:j(`userProfileHeader.fans`)})]})}),S(s,{className:`px-4 flex flex-col items-center`,children:[x(l,{className:`font-bold text-base`,children:me}),x(l,{className:`font-normal text-sm text-text1/66`,children:j(`userProfileHeader.likesReceived`)})]})]})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(l,{as:`p`,className:`text-text1 text-xl line-clamp-2 font-bold`,children:Q}),de]}),$&&x(l,{as:`p`,className:`text-sm py-1 line-clamp-3 text-text1/66`,children:$})]})]})}export{A 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{useDeleteRequest as l,useMutation as u,useRequest as d,useUpdateRequest as f}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as p}from"../../../../../hooks/use-app-context/index.mjs";import{useLoginModalStore as m}from"../../../../../store/modules/login-modal-store.mjs";import{LeftArrowIcon as h}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as g}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as _}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as v}from"./user-profile-cover-background.mjs";import{useEffect as y,useMemo as b,useState as ee}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 te}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 ne({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=m(),c=l(),d=f(),{mutateAsync:p,isPending:h}=u(async e=>a(e)),{mutateAsync:g,isPending:_}=u(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 p({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){d([`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:l=!0,requireLogin:u=!1,cookieToken:f,cookieUserId:C,isEditorPreview:k=!1,className:A}){let j=w(`components.pages.profile`),M=w(`components.pages.profile.components`),re=p(),N=k||re===`editor`,ie=!N,ae=te(),{open:P}=m(),{isLogin:oe,userId:F,token:I}=n(),[L,R]=ee(!1);y(()=>{if(!E){R(!0);return}R(E.hasHydrated());let e=E.onHydrate(()=>{R(!1)}),t=E.onFinishHydration(()=>{R(!0)});return()=>{e(),t()}},[]);let z=N?!1:L?oe&&!!F&&!!I:!!C&&!!f,B=N?``:L?F:F||C,V=B,H=a==null||!!a&&!!V&&a===V,se=!H&&!!a,U=H?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:W}=d(N?[`editor-preview`,...U]:U,()=>a?i({target_user_id:a,user_id:B||a}):r({user_id:a||B||``}),{staleTime:0,enabled:ie&&(!!a||!!B)}),G=b(()=>{let e=W?W.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,W]),K=u&&H&&!z,ce=!z&&se,q=H&&z&&!K,J=!z,le=o&&q,ue=o&&J,de={name:j(`client.welcomeToPlanet`),description:j(`client.exploreAdventures`),avatar:D,followingCnt:0,followersCnt:0,likeCnt:0,background:O};function Y(){P()}function fe(){ae.back()}function X(e){!H||z||(e.preventDefault(),e.stopPropagation(),P())}let pe=K?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.loginNow`)}):ce?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.follow`)}):z?H?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:j(`client.editProfile`)})}):x(ne,{userId:a||``,currentUserId:B,isFollowing:G?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.loginNow`)}),Z=K?de:G,Q=Z.name||``,$=Z.description||Z.signature||``,me=Z.followingCnt??0,he=Z.followersCnt??0,ge=Z.likeCnt??0,_e=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:fe,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!l}),children:x(h,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!H}),children:x(g,{})})]}),x(v,{isMine:le,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ue?Y:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(_,{isMine:q,src:_e,alt:Q||`avatar`,onUnauthorizedClick:J?Y:void 0}),S(s,{className:`flex divide-x divide-text1/5 py-4`,children:[x(T,{href:H?`/followed`:`/followed?user_id=${Z.userId}`,onClick:X,children:S(s,{className:`px-4 flex flex-col items-center`,children:[x(c,{className:`font-bold text-base`,children:me}),x(c,{className:`font-normal text-sm text-text1/66`,children:M(`userProfileHeader.follow`)})]})}),x(T,{href:H?`/fans`:`/fans?user_id=${Z.userId}`,onClick:X,children:S(s,{className:`px-4 flex flex-col items-center`,children:[x(c,{className:`font-bold text-base`,children:he}),x(c,{className:`font-normal text-sm text-text1/66`,children:M(`userProfileHeader.fans`)})]})}),S(s,{className:`px-4 flex flex-col items-center`,children:[x(c,{className:`font-bold text-base`,children:ge}),x(c,{className:`font-normal text-sm text-text1/66`,children:M(`userProfileHeader.likesReceived`)})]})]})]}),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}),pe]}),$&&x(c,{as:`p`,className:`text-sm py-1 line-clamp-3 text-text1/66`,children:$})]})]})}export{k as UserProfileHeaderClient};
@@ -2,4 +2,4 @@
2
2
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./schema.mjs";
3
3
  import { UserProfileHeaderClient } from "./client.mjs";
4
4
  import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./server.mjs";
5
- import { profileHeaderMaterial } from "./material.mjs";
5
+ import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./material.mjs";
@@ -2,10 +2,12 @@
2
2
  import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
3
3
  import { UserProfileHeaderClient } from "./client.mjs";
4
4
  import { UserProfileHeader } from "./server.mjs";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
6
  import * as zod from "zod";
6
7
  import * as zod_v4_core0 from "zod/v4/core";
7
8
 
8
9
  //#region components/biz/business/profile/profile-header/material.d.ts
9
10
  declare const profileHeaderMaterial: DefineMaterialOption<typeof UserProfileHeader, typeof UserProfileHeaderClient, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-header">;
11
+ declare const profileHeaderMaterialWithDisabledBackground: DefineMaterialOption<(props: React.ComponentProps<typeof UserProfileHeader>) => react_jsx_runtime0.JSX.Element, (props: React.ComponentProps<typeof UserProfileHeader>) => react_jsx_runtime0.JSX.Element, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-header-with-disabled-background">;
10
12
  //#endregion
11
- export { profileHeaderMaterial };
13
+ export { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground };
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileHeaderClient as t}from"./client.mjs";import{profileHeaderInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileHeader as r}from"./server.mjs";const i=e({type:`profile-header`,category:`TOP`,name:`用户信息模块`,icon:`/icon/profile-header.png`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as profileHeaderMaterial};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileHeaderClient as t}from"./client.mjs";import{profileHeaderInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileHeader as r}from"./server.mjs";import{jsx as i}from"react/jsx-runtime";const a=e({type:`profile-header`,category:`TOP`,name:`用户信息模块(有背景图)`,icon:`/icon/profile-header.png`,serverComponent:r,clientComponent:t,propsSchema:n}),o=e({type:`profile-header-with-disabled-background`,category:`TOP`,name:`用户信息模块(无背景图)`,icon:`/icon/profile-header-disabled-background.png`,serverComponent:e=>i(r,{...e,enableCustomBackground:!1}),clientComponent:e=>i(t,{...e,enableCustomBackground:!1}),propsSchema:n});export{a as profileHeaderMaterial,o as profileHeaderMaterialWithDisabledBackground};
@@ -6,7 +6,7 @@ import * as zod_v4_core0 from "zod/v4/core";
6
6
 
7
7
  //#region components/biz/business/profile/profile-header/schema.d.ts
8
8
  /**
9
- * 用户资料头部物料暂不对外开放 inspector 配置。
9
+ * 用户资料头部物料 inspector 配置。
10
10
  */
11
11
  declare const profileHeaderInspectorPropsSchema: zod.ZodObject<{}, zod_v4_core0.$strip>;
12
12
  declare const profileHeaderInspectorDefaultProps: {};
@@ -17,6 +17,8 @@ interface UserProfileHeaderAuthConfig {
17
17
  interface UserProfileHeaderClientProps {
18
18
  /** 用户 ID。 */
19
19
  id?: string;
20
+ /** 是否允许自定义背景图。 */
21
+ enableCustomBackground?: boolean;
20
22
  /** 是否显示返回按钮。 */
21
23
  showBackButton?: boolean;
22
24
  /** 是否要求登录。 */
@@ -25,7 +27,7 @@ interface UserProfileHeaderClientProps {
25
27
  cookieToken?: string;
26
28
  /** 服务端透传的当前用户 ID。 */
27
29
  cookieUserId?: string;
28
- /** 是否使用编辑器骨架预览。 */
30
+ /** 是否为编辑器预览模式。 */
29
31
  isEditorPreview?: boolean;
30
32
  /** 头部容器附加类名。 */
31
33
  className?: string;
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{pUserUploadUserBgImage as t}from"../../../../../service/generated/client.mjs";import{uploadFile as n}from"../../../../../utils/upload-file.mjs";import{Image as r}from"../../../../ui/image.mjs";import{Box as i}from"../../../../ui/box.mjs";import{Input as a}from"../../../../ui/input.mjs";import{useDeleteRequest as o}from"../../../../../hooks/query/use-query.mjs";import{BackgroundPreviewModal as s}from"../../../../common/background-preview-modal/background-preview-modal.mjs";import{showImageCrop as c}from"../../../../common/image-crop/show-image-crop.mjs";import{useRef as l,useState as u}from"react";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";import{toast as m}from"sonner";const h=[`image/jpeg`,`image/png`];function g(e){let t=e.name.toLowerCase(),n=e.type.toLowerCase();return h.includes(n)||/\.(?:jpg|jpeg|png)$/i.test(t)}function _({isMine:h,src:_,onUnauthorizedClick:v}){let y=`/images/mine/img_mine_head_bg.png`,b=l(null),{userId:x,setUserInfo:S,userInfo:C}=e(),w=o(),[T,E]=u(!1),[D,O]=u(!1),k=()=>{if(h){T||O(!0);return}v?.()},A=()=>{O(!1)};function j(){T||b.current?.click()}async function M(e){let r=e.target.files?.[0];if(e.target&&(e.target.value=``),r)try{if(!g(r)){m.error(`仅支持 JPG/JPEG/PNG 格式`);return}E(!0);let e=await n(await c(r,{aspectRatio:430/256,cropShape:`rect`,quality:.92,maxWidth:1920,maxHeight:1920}),1);await t({user_id:String(x),bg_image:e.objectKey}),S({...C,bg_image:e.objectKey}),w([`user-profile`,`mine`]),O(!1),m.success(`更换完成`)}catch(e){console.error(`上传背景图失败`,e),e instanceof Error&&e.message!==`用户取消`&&m.error(`背景图上传失败,请稍后再试`)}finally{E(!1)}}return p(d,{children:[f(i,{className:`h-33.75`,children:f(i,{className:`relative h-full w-full`,onClick:k,children:f(r,{alt:`cover background`,fill:!0,objectFit:`cover`,className:`pointer-events-none`,src:_||y})})}),f(s,{open:D,onClose:A,bgUrl:_||y,onUpload:j}),f(a,{ref:b,type:`file`,accept:`.jpg,.jpeg,.png,image/jpeg,image/png`,className:`hidden`,onChange:M})]})}export{_ as UserProfileCoverBackground};
2
+ "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{pUserUploadUserBgImage as t}from"../../../../../service/generated/client.mjs";import{uploadFile as n}from"../../../../../utils/upload-file.mjs";import{Image as r}from"../../../../ui/image.mjs";import{Box as i}from"../../../../ui/box.mjs";import{Input as a}from"../../../../ui/input.mjs";import{useDeleteRequest as o}from"../../../../../hooks/query/use-query.mjs";import{BackgroundPreviewModal as s}from"../../../../common/background-preview-modal/background-preview-modal.mjs";import{showImageCrop as c}from"../../../../common/image-crop/show-image-crop.mjs";import{useEffect as l,useRef as u,useState as d}from"react";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{toast as h}from"sonner";const g=[`image/jpeg`,`image/png`];function _(e){let t=e.name.toLowerCase(),n=e.type.toLowerCase();return g.includes(n)||/\.(?:jpg|jpeg|png)$/i.test(t)}function v({isMine:g,enableCustomBackground:v=!0,src:y,onUnauthorizedClick:b}){let x=`/images/mine/img_mine_head_bg.png`,S=u(null),{userId:C,setUserInfo:w,userInfo:T}=e(),E=o(),[D,O]=d(!1),[k,A]=d(!1),j=v&&(!!g||typeof b==`function`);l(()=>{v||A(!1)},[v]);let M=()=>{if(v){if(g){D||A(!0);return}b?.()}},N=()=>{A(!1)};function P(){D||S.current?.click()}async function F(e){let r=e.target.files?.[0];if(e.target&&(e.target.value=``),r)try{if(!_(r)){h.error(`仅支持 JPG/JPEG/PNG 格式`);return}O(!0);let e=await n(await c(r,{aspectRatio:430/256,cropShape:`rect`,quality:.92,maxWidth:1920,maxHeight:1920}),1);await t({user_id:String(C),bg_image:e.objectKey}),w({...T,bg_image:e.objectKey}),E([`user-profile`,`mine`]),A(!1),h.success(`更换完成`)}catch(e){console.error(`上传背景图失败`,e),e instanceof Error&&e.message!==`用户取消`&&h.error(`背景图上传失败,请稍后再试`)}finally{O(!1)}}return m(f,{children:[p(i,{className:v?`h-33.75`:`h-16`,children:v?p(i,{className:`relative h-full w-full`,onClick:j?M:void 0,children:p(r,{alt:`cover background`,fill:!0,objectFit:`cover`,className:`pointer-events-none`,src:y||x})}):p(i,{className:`h-full w-full bg-bg1`})}),v&&m(f,{children:[p(s,{open:k,onClose:N,bgUrl:y||x,onUpload:P}),p(a,{ref:S,type:`file`,accept:`.jpg,.jpeg,.png,image/jpeg,image/png`,className:`hidden`,onChange:F})]})]})}export{v as UserProfileCoverBackground};
@@ -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" | "outline" | "secondary" | "ghost" | null | undefined;
9
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
10
10
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  /** Badge 组件。 */
12
12
  declare function Badge({
@@ -8,7 +8,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
8
8
  //#region components/ui/button-group.d.ts
9
9
  /** buttonGroupVariants 工具定义。 */
10
10
  declare const buttonGroupVariants: (props?: ({
11
- orientation?: "vertical" | "horizontal" | null | undefined;
11
+ orientation?: "horizontal" | "vertical" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** ButtonGroupText 组件属性。 */
14
14
  type ButtonGroupTextProps = useRender.ComponentProps<'div'>;
@@ -7,8 +7,8 @@ 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" | "outline" | "secondary" | "ghost" | null | undefined;
11
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
10
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
11
+ size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** Button 组件属性。 */
14
14
  type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
@@ -51,7 +51,7 @@ declare function FieldGroup({
51
51
  }: FieldGroupProps): react_jsx_runtime0.JSX.Element;
52
52
  /** fieldVariants 工具定义。 */
53
53
  declare const fieldVariants: (props?: ({
54
- orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
54
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
55
55
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
56
56
  /** Field 组件。 */
57
57
  declare function Field({
@@ -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 };
@@ -15,7 +15,7 @@ import "./components/biz/business/detail/materials/video-detail-actions/index.mj
15
15
  import { videoDetailRecommendMaterial } from "./components/biz/business/detail/materials/video-detail-recommend/material.mjs";
16
16
  import "./components/biz/business/detail/materials/video-detail-recommend/index.mjs";
17
17
  import { marqueeMaterial } from "./components/biz/business/marquee/material.mjs";
18
- import { profileHeaderMaterial } from "./components/biz/business/profile/profile-header/material.mjs";
18
+ import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./components/biz/business/profile/profile-header/material.mjs";
19
19
  import { profileMainMaterial } from "./components/biz/business/profile/profile-main/material.mjs";
20
20
  import { searchHistoryMaterial } from "./components/biz/business/search-history/material.mjs";
21
21
  import { searchInputMaterial } from "./components/biz/business/search-input/material.mjs";
@@ -33,4 +33,4 @@ import { headerSearchMaterial } from "./components/biz/business/header-search/he
33
33
  import "./components/biz/business/header-search/index.mjs";
34
34
  import { largeFeatureGridMaterial } from "./components/biz/business/large-feature-grid/material.mjs";
35
35
  import { shortcutGridMaterial } from "./components/biz/business/shortcut-grid/material.mjs";
36
- export { BannerCarouselMaterial, channelListMaterial, exampleButtonMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, largeFeatureGridMaterial, marqueeMaterial, profileHeaderMaterial, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial, videoHorizontalListMaterial };
36
+ export { BannerCarouselMaterial, channelListMaterial, exampleButtonMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, largeFeatureGridMaterial, marqueeMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial, videoHorizontalListMaterial };
@@ -1,2 +1,2 @@
1
1
 
2
- import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{floatingBallMaterial as t}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as n}from"./components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as r}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs";import{marqueeMaterial as i}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as a}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as o}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as s}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as c}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as l}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as u}from"./components/biz/business/text-recommend/material.mjs";import{videoHorizontalListMaterial as d}from"./components/biz/business/video-horizontal-list/material.mjs";import{exampleButtonMaterial as f}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as p}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as m}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as h}from"./components/biz/business/detail/materials/video-detail-info/material.mjs";import{videoDetailInfoTitleMaterial as g}from"./components/biz/business/detail/materials/video-detail-info-title/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as _}from"./components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as v}from"./components/biz/business/detail/materials/video-detail-player/material.mjs";import{videoDetailRecommendMaterial as y}from"./components/biz/business/detail/materials/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as b}from"./components/biz/business/detail/materials/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as x}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as S}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as C}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as w}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as T}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as E}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as D}from"./components/biz/business/shortcut-grid/material.mjs";var O=e({BannerCarouselMaterial:()=>p,channelListMaterial:()=>m,exampleButtonMaterial:()=>f,floatingBallMaterial:()=>t,headerAvatarIconMaterial:()=>x,headerAvatarLogoSearchIconMaterial:()=>C,headerAvatarLogoSearchMaterial:()=>S,headerLogoSearchMaterial:()=>w,headerSearchMaterial:()=>T,homeRecommendGridMaterial:()=>n,homeRecommendWaterfallMaterial:()=>r,largeFeatureGridMaterial:()=>E,marqueeMaterial:()=>i,profileHeaderMaterial:()=>a,profileMainMaterial:()=>o,searchHistoryMaterial:()=>s,searchInputMaterial:()=>c,shortcutGridMaterial:()=>D,tabBarMaterial:()=>l,textRecommendMaterial:()=>u,videoDetailActionsMaterial:()=>b,videoDetailInfoMaterial:()=>h,videoDetailInfoTitleMaterial:()=>g,videoDetailInfoTitleTagsEpisodesMaterial:()=>_,videoDetailPlayerMaterial:()=>v,videoDetailRecommendMaterial:()=>y,videoHorizontalListMaterial:()=>d});export{p as BannerCarouselMaterial,m as channelListMaterial,f as exampleButtonMaterial,t as floatingBallMaterial,x as headerAvatarIconMaterial,C as headerAvatarLogoSearchIconMaterial,S as headerAvatarLogoSearchMaterial,w as headerLogoSearchMaterial,T as headerSearchMaterial,n as homeRecommendGridMaterial,r as homeRecommendWaterfallMaterial,E as largeFeatureGridMaterial,i as marqueeMaterial,O as materials_exports,a as profileHeaderMaterial,o as profileMainMaterial,s as searchHistoryMaterial,c as searchInputMaterial,D as shortcutGridMaterial,l as tabBarMaterial,u as textRecommendMaterial,b as videoDetailActionsMaterial,h as videoDetailInfoMaterial,g as videoDetailInfoTitleMaterial,_ as videoDetailInfoTitleTagsEpisodesMaterial,v as videoDetailPlayerMaterial,y as videoDetailRecommendMaterial,d as videoHorizontalListMaterial};
2
+ import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{floatingBallMaterial as t}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as n}from"./components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as r}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs";import{marqueeMaterial as i}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as a,profileHeaderMaterialWithDisabledBackground as o}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as s}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as c}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as l}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as u}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as d}from"./components/biz/business/text-recommend/material.mjs";import{videoHorizontalListMaterial as f}from"./components/biz/business/video-horizontal-list/material.mjs";import{exampleButtonMaterial as p}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as m}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as h}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as g}from"./components/biz/business/detail/materials/video-detail-info/material.mjs";import{videoDetailInfoTitleMaterial as _}from"./components/biz/business/detail/materials/video-detail-info-title/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as v}from"./components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as y}from"./components/biz/business/detail/materials/video-detail-player/material.mjs";import{videoDetailRecommendMaterial as b}from"./components/biz/business/detail/materials/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as x}from"./components/biz/business/detail/materials/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as S}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as C}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as w}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as T}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as E}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as D}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as O}from"./components/biz/business/shortcut-grid/material.mjs";var k=e({BannerCarouselMaterial:()=>m,channelListMaterial:()=>h,exampleButtonMaterial:()=>p,floatingBallMaterial:()=>t,headerAvatarIconMaterial:()=>S,headerAvatarLogoSearchIconMaterial:()=>w,headerAvatarLogoSearchMaterial:()=>C,headerLogoSearchMaterial:()=>T,headerSearchMaterial:()=>E,homeRecommendGridMaterial:()=>n,homeRecommendWaterfallMaterial:()=>r,largeFeatureGridMaterial:()=>D,marqueeMaterial:()=>i,profileHeaderMaterial:()=>a,profileHeaderMaterialWithDisabledBackground:()=>o,profileMainMaterial:()=>s,searchHistoryMaterial:()=>c,searchInputMaterial:()=>l,shortcutGridMaterial:()=>O,tabBarMaterial:()=>u,textRecommendMaterial:()=>d,videoDetailActionsMaterial:()=>x,videoDetailInfoMaterial:()=>g,videoDetailInfoTitleMaterial:()=>_,videoDetailInfoTitleTagsEpisodesMaterial:()=>v,videoDetailPlayerMaterial:()=>y,videoDetailRecommendMaterial:()=>b,videoHorizontalListMaterial:()=>f});export{m as BannerCarouselMaterial,h as channelListMaterial,p as exampleButtonMaterial,t as floatingBallMaterial,S as headerAvatarIconMaterial,w as headerAvatarLogoSearchIconMaterial,C as headerAvatarLogoSearchMaterial,T as headerLogoSearchMaterial,E as headerSearchMaterial,n as homeRecommendGridMaterial,r as homeRecommendWaterfallMaterial,D as largeFeatureGridMaterial,i as marqueeMaterial,k as materials_exports,a as profileHeaderMaterial,o as profileHeaderMaterialWithDisabledBackground,s as profileMainMaterial,c as searchHistoryMaterial,l as searchInputMaterial,O as shortcutGridMaterial,u as tabBarMaterial,d as textRecommendMaterial,x as videoDetailActionsMaterial,g as videoDetailInfoMaterial,_ as videoDetailInfoTitleMaterial,v as videoDetailInfoTitleTagsEpisodesMaterial,y as videoDetailPlayerMaterial,b as videoDetailRecommendMaterial,f as videoHorizontalListMaterial};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funhub/platform",
3
3
  "type": "module",
4
- "version": "0.1.33",
4
+ "version": "0.1.35",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "**/*.css"
@@ -59,11 +59,13 @@
59
59
  "types": "./config/tailwind/index.d.ts",
60
60
  "import": "./config/tailwind/index.mjs",
61
61
  "require": "./config/tailwind/index.cjs"
62
- }
62
+ },
63
+ "./theme.css": "./theme.css"
63
64
  },
64
65
  "files": [
65
66
  "config",
66
- "dist"
67
+ "dist",
68
+ "theme.css"
67
69
  ],
68
70
  "scripts": {
69
71
  "dev:web": "next dev",
package/theme.css ADDED
@@ -0,0 +1,106 @@
1
+ :root {
2
+ /* 默认是白天模式的颜色 */
3
+ --color-bg1: #ffffff;
4
+ --color-bg2: #f9f9f9;
5
+ --color-bg3: #f2f5fa;
6
+ --color-bg4: rgba(253, 76, 94, 0.1);
7
+ --color-text1: #333333;
8
+ --color-text2: #666666;
9
+ --color-text3: #999999;
10
+ --color-text4: rgb(253, 76, 94);
11
+ --color-line1: rgba(0, 0, 0, 0.05);
12
+ --color-line2: rgba(253, 76, 94, 0.4);
13
+ --color-theme1: #1fa7ff;
14
+ --color-theme2: linear-gradient(135deg, #4fd8ff 0%, #07bfff 100%);
15
+ --color-theme3: rgba(0, 173, 251, 0.2);
16
+ --color-theme4: #00adfb;
17
+ --color-theme5: rgb(253, 76, 94);
18
+ --color-theme6: #cd3f4e;
19
+
20
+ /* shadcn/ui */
21
+ --background: oklch(1 0 0);
22
+ --foreground: oklch(0.145 0 0);
23
+ --card: oklch(1 0 0);
24
+ --card-foreground: oklch(0.145 0 0);
25
+ --popover: oklch(1 0 0);
26
+ --popover-foreground: oklch(0.145 0 0);
27
+ --primary: rgb(253, 76, 94);
28
+ --primary-foreground: oklch(0.97 0.01 343);
29
+ --secondary: oklch(0.967 0.001 286.375);
30
+ --secondary-foreground: oklch(0.21 0.006 285.885);
31
+ --muted: oklch(0.97 0 0);
32
+ --muted-foreground: oklch(0.556 0 0);
33
+ --accent: oklch(0.97 0 0);
34
+ --accent-foreground: oklch(0.205 0 0);
35
+ --destructive: oklch(0.58 0.22 27);
36
+ --border: oklch(0.922 0 0);
37
+ --input: oklch(0.922 0 0);
38
+ --ring: oklch(0.708 0 0);
39
+ --chart-1: oklch(0.82 0.11 346);
40
+ --chart-2: oklch(0.73 0.18 350);
41
+ --chart-3: rgb(253, 76, 94);
42
+ --chart-4: rgb(253, 76, 94);
43
+ --chart-5: oklch(0.52 0.2 4);
44
+ --radius: 0.625rem;
45
+ --sidebar: oklch(0.985 0 0);
46
+ --sidebar-foreground: oklch(0.145 0 0);
47
+ --sidebar-primary: rgb(253, 76, 94);
48
+ --sidebar-primary-foreground: oklch(0.97 0.01 343);
49
+ --sidebar-accent: oklch(0.97 0 0);
50
+ --sidebar-accent-foreground: oklch(0.205 0 0);
51
+ --sidebar-border: oklch(0.922 0 0);
52
+ --sidebar-ring: oklch(0.708 0 0);
53
+ }
54
+
55
+ .dark {
56
+ /* 黑夜模式的颜色 */
57
+ --color-bg1: #171717;
58
+ --color-bg2: #222222;
59
+ --color-bg3: #fe5a5c;
60
+ --color-bg4: rgba(253, 76, 94, 0.1);
61
+ --color-text1: #d7d7d7;
62
+ --color-text2: #a3a3a3;
63
+ --color-text3: #717171;
64
+ --color-text4: #f2f5fa;
65
+ --color-line1: rgba(255, 255, 255, 0.05);
66
+ --color-line2: rgba(253, 76, 94, 0.4);
67
+ --color-theme1: #1fa7ff;
68
+ --color-theme2: linear-gradient(135deg, #4fd8ff 0%, #07bfff 100%);
69
+ --color-theme3: rgba(0, 173, 251, 0.2);
70
+ --color-theme4: #00adfb;
71
+ --color-theme5: rgb(253, 76, 94);
72
+ --color-theme6: #cd3f4e;
73
+
74
+ /* shadcn/ui */
75
+ --background: oklch(0.145 0 0);
76
+ --foreground: oklch(0.985 0 0);
77
+ --card: oklch(0.205 0 0);
78
+ --card-foreground: oklch(0.985 0 0);
79
+ --popover: oklch(0.205 0 0);
80
+ --popover-foreground: oklch(0.985 0 0);
81
+ --primary: rgb(253, 76, 94);
82
+ --primary-foreground: oklch(0.97 0.01 343);
83
+ --secondary: oklch(0.274 0.006 286.033);
84
+ --secondary-foreground: oklch(0.985 0 0);
85
+ --muted: oklch(0.269 0 0);
86
+ --muted-foreground: oklch(0.708 0 0);
87
+ --accent: oklch(0.371 0 0);
88
+ --accent-foreground: oklch(0.985 0 0);
89
+ --destructive: oklch(0.704 0.191 22.216);
90
+ --border: oklch(1 0 0 / 10%);
91
+ --input: oklch(1 0 0 / 15%);
92
+ --ring: oklch(0.556 0 0);
93
+ --chart-1: oklch(0.82 0.11 346);
94
+ --chart-2: oklch(0.73 0.18 350);
95
+ --chart-3: rgb(253, 76, 94);
96
+ --chart-4: rgb(253, 76, 94);
97
+ --chart-5: oklch(0.52 0.2 4);
98
+ --sidebar: oklch(0.205 0 0);
99
+ --sidebar-foreground: oklch(0.985 0 0);
100
+ --sidebar-primary: oklch(0.73 0.18 350);
101
+ --sidebar-primary-foreground: oklch(0.97 0.01 343);
102
+ --sidebar-accent: oklch(0.269 0 0);
103
+ --sidebar-accent-foreground: oklch(0.985 0 0);
104
+ --sidebar-border: oklch(1 0 0 / 10%);
105
+ --sidebar-ring: oklch(0.556 0 0);
106
+ }
@@ -1,2 +0,0 @@
1
-
2
- const e=[{title:`推荐位名称`,moreUrl:`/channel`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,tag:`独家`,playCount:1205,duration:3665,title:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`,desc:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`}},{items:{id:`242686c512b41c98`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/2c/2cd615a5e471d2bc8a9ccd95038c9067.jpg`,tag:`独家`,playCount:1205,duration:3665,title:`老神医都治不好老爷子的绝症,美女总裁路边随便拉来的穷小伙竟一针救活,老爷子醒后直接把女总裁嫁他,九世的有缘无分换来今世的相守终生`,desc:`老神医都治不好老爷子的绝症,美女总裁路边随便拉来的穷小伙竟一针救活,老爷子醒后直接把女总裁嫁他,九世的有缘无分换来今世的相守终生`}}];export{e as mockData};