@funhub/platform 0.2.26 → 0.2.27

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.
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{gUserViewUserInfo as t}from"../../../../../service/generated/client.mjs";import{useRequest as n}from"../../../../../hooks/query/use-query.mjs";import{UserProfileMainShell as r}from"./shell.mjs";import{CollectTab as i}from"./tabs/collect-tab/client.mjs";import{HistoryTab as a}from"./tabs/history-tab/client.mjs";import{LikeTab as o}from"./tabs/like-tab/client.mjs";import{PublishTab as s}from"./tabs/publish-tab/client.mjs";import{getProfileMainTabOptions as c}from"./variants.mjs";import{useMemo as l}from"react";import{jsx as u}from"react/jsx-runtime";import{parseAsString as d,useQueryState as f}from"nuqs";const p=[];function m({contentTypes:e,tab:t}){let n=c(e);return t&&n.includes(t)?t:n[0]}function h(e,t){return e&&(t===`collect`||t===`like`)}function g({contentTypes:g=p,id:_,showCreateAction:v=!1,requireLogin:y=!1,className:b,currentUserId:x,mode:S=`renderer`,tab:C}){let w=S===`renderer`,T=e(e=>e.userId),[E]=f(`tab`,d),D=S===`editor`?``:x||T||``,O=_==null||!!D&&_===D,k=!O&&!!_,A=O?D:_?String(_):void 0,j=O?[`user-profile`,`mine`]:[`user-profile`,`profile`,_],M=l(()=>c(g),[g]),N=l(()=>m({contentTypes:g,tab:E??C}),[g,C,E]),P=w&&h(k,N)&&!!_,{data:F}=n([`user-profile`,`privacy`,_,D],async()=>await t({target_user_id:String(_),user_id:D||String(_)}),{staleTime:0,enabled:P}),I=`content`;if(S===`editor`)I=`content`;else if(y&&O&&!D)I=`login-required`;else if(P&&F){let e=F.data??{},t=Number(e.collections_open??1)>0,n=Number(e.like_open??1)>0;N===`collect`&&!t&&(I=`privacy-collect`),N===`like`&&!n&&(I=`privacy-like`)}let L=I===`content`&&(!P||!!F),R=null;if(L&&S!==`editor`)switch(N){case`like`:R=u(o,{mode:S,isMine:O,targetUserId:A,queryKeyPrefix:j});break;case`history`:R=u(a,{mode:S,targetUserId:A,queryKeyPrefix:j});break;case`publish`:R=u(s,{mode:S,targetUserId:A,queryKeyPrefix:j,isMine:O});break;default:R=u(i,{mode:S,isMine:O,userId:A,showCreateAction:v&&O,queryKeyPrefix:j});break}return u(r,{profileId:_,currentUserId:D,isMine:O,tabs:M,renderMode:I,className:b,children:R})}export{g as UserProfileMainClient};
2
+ "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{gUserViewUserInfo as t}from"../../../../../service/generated/client.mjs";import{useRequest as n}from"../../../../../hooks/query/use-query.mjs";import{UserProfileMainShell as r}from"./shell.mjs";import{CollectTab as i}from"./tabs/collect-tab/client.mjs";import{HistoryTab as a}from"./tabs/history-tab/client.mjs";import{LikeTab as o}from"./tabs/like-tab/client.mjs";import{PublishTab as s}from"./tabs/publish-tab/client.mjs";import{getProfileMainTabOptions as c}from"./variants.mjs";import{useMemo as l}from"react";import{jsx as u}from"react/jsx-runtime";import{parseAsString as d,useQueryState as f}from"nuqs";const p=[];function m({contentTypes:e,tab:t}){let n=c(e);return t&&n.includes(t)?t:n[0]}function h(e,t){return e&&(t===`collect`||t===`like`)}function g({contentTypes:g=p,id:_,showCreateAction:v=!1,requireLogin:y=!1,className:b,currentUserId:x,mode:S=`renderer`,tab:C}){let w=S===`renderer`,T=e(e=>e.userId),[E]=f(`tab`,d),D=S===`editor`?``:x||T||``,O=_==null||!!D&&_===D,k=!O&&!!_,A=O?D:_?String(_):void 0,j=O?[`user-profile`,`mine`]:[`user-profile`,`profile`,_],M=l(()=>c(g),[g]),N=l(()=>m({contentTypes:g,tab:E??C}),[g,C,E]),P=w&&h(k,N)&&!!_,{data:F}=n([`user-profile`,`privacy`,_,D],async()=>await t({target_user_id:String(_),user_id:D||String(_)}),{staleTime:0,enabled:P}),I=`content`;if(S===`editor`)I=`content`;else if(y&&O&&!D)I=`login-required`;else if(P&&F){let e=F.data??{},t=Number(e.collections_open??1)>0,n=Number(e.like_open??1)>0;N===`collect`&&!t&&(I=`privacy-collect`),N===`like`&&!n&&(I=`privacy-like`)}let L=I===`content`&&(!P||!!F),R=null;if(L&&S!==`editor`)switch(N){case`like`:R=u(o,{mode:S,isMine:O,targetUserId:A,queryKeyPrefix:j});break;case`history`:R=u(a,{mode:S,targetUserId:A,queryKeyPrefix:j});break;case`publish`:R=u(s,{mode:S,targetUserId:A,queryKeyPrefix:j,isMine:O});break;default:R=u(i,{mode:S,isMine:O,userId:A,showCreateAction:v&&O,queryKeyPrefix:j});break}return u(r,{profileId:_,currentUserId:D,isMine:O,tabs:M,activeTab:S===`editor`?M[0]:void 0,renderMode:I,className:b,children:R})}export{g as UserProfileMainClient};
@@ -14,6 +14,8 @@ interface UserProfileMainShellProps extends PropsWithChildren {
14
14
  isMine: boolean;
15
15
  /** 当前允许展示的主 Tab 列表。 */
16
16
  tabs: ProfileMainTabKey[];
17
+ /** 外部强制指定当前激活主 Tab。 */
18
+ activeTab?: ProfileMainTabKey;
17
19
  /** 当前内容区渲染模式。 */
18
20
  renderMode: UserProfileMainRenderMode;
19
21
  /** 主体容器附加类名。 */
@@ -27,6 +29,7 @@ declare function UserProfileMainShell({
27
29
  currentUserId,
28
30
  isMine,
29
31
  tabs,
32
+ activeTab,
30
33
  renderMode,
31
34
  className,
32
35
  children
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{Button as n}from"../../../../ui/button.mjs";import{Box as r}from"../../../../ui/box.mjs";import{EmptyState as i}from"../../../../ui/empty.mjs";import{Text as a}from"../../../../ui/text.mjs";import{Tabs as o,TabsList as s,TabsTrigger as c}from"../../../../ui/tabs.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{trackProfilePageClick as u}from"../tracking.mjs";import{useEffect as d,useId as f,useMemo as p,useRef as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{useTranslations as _}from"next-intl";import{parseAsString as v,useQueryState as y}from"nuqs";function b(e){let t=f();return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`37`,height:`10`,viewBox:`0 0 37 10`,fill:`none`,...e,children:[h(`path`,{d:`M32.8921 0.212888C34.4317 -0.398985 36.1765 0.353067 36.7886 1.89258C37.4004 3.43219 36.6484 5.17704 35.1089 5.78906L29.9204 7.85058C26.0475 9.38961 21.7156 9.29046 17.9175 7.57519C15.9234 6.67463 13.6771 6.5 11.5679 7.08203L3.79833 9.22656C2.20143 9.66708 0.549808 8.72958 0.108873 7.13281C-0.331916 5.53567 0.605478 3.88317 2.20262 3.44238L9.97118 1.29785C13.431 0.342993 17.1161 0.629191 20.3872 2.10644C22.7028 3.15218 25.3434 3.21271 27.7046 2.27441L32.8921 0.212888Z`,fill:`url(#${t})`}),h(`defs`,{children:g(`linearGradient`,{id:t,x1:`3.00047`,y1:`5.00097`,x2:`34.0005`,y2:`5.00097`,gradientUnits:`userSpaceOnUse`,children:[h(`stop`,{stopColor:`var(--color-brand-tag-gradient-start)`}),h(`stop`,{offset:`1`,stopColor:`var(--color-brand-tag-gradient-end)`})]})})]})}function x(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`68`,height:`58`,viewBox:`0 0 68 58`,fill:`none`,...e,children:[h(`rect`,{x:`0.5`,y:`0.5`,width:`67`,height:`57`,rx:`7.5`,fill:`#1B1829`,stroke:`#322F3E`}),h(`path`,{d:`M27.1175 33.8211L27.118 23.9652C27.1182 21.7159 29.502 20.2667 31.4989 21.3021L40.5835 26.0125C42.6976 27.1086 42.7531 30.1126 40.681 31.2861L31.5959 36.4317C29.596 37.5644 27.1173 36.1195 27.1175 33.8211Z`,fill:`#54525E`})]})}function S(e,t){return t.includes(e)?e:t[0]}function C(e){let t=window.getComputedStyle(e);return/auto|scroll|overlay/.test(t.overflowY)}function w(e){if(typeof window>`u`)return null;let t=e?.parentElement??null;for(;t;){if(C(t))return t;t=t.parentElement}return null}function T(e){return typeof window>`u`?0:e?e.scrollTop:window.scrollY||window.pageYOffset||0}function E(e,t){if(!(typeof window>`u`)){if(e){e.scrollTo({top:t});return}window.scrollTo({top:t,left:0})}}function D({profileId:f,currentUserId:C,isMine:D,tabs:O,renderMode:k,className:A,children:j}){let M=_(`components.pages.profile`),N=m(null),P=l(e=>e.open),F=t(e=>e.userId),I=m(``),[L,R]=y(`tab`,v.withDefault(`collect`)),z=p(()=>S(L,O),[L,O]),B=C||F||``,V=D?B:f,H=p(()=>`profile-scroll:${V||(D?`mine`:`guest`)}:${z}`,[D,z,V]);d(()=>{L!==z&&R(z,{shallow:!1})},[z,R,L]),d(()=>{if(typeof window>`u`)return;let e=`${D?`mine`:`profile`}:${V||``}:${z}`;I.current!==e&&(I.current=e)},[D,f,B,z,V]),d(()=>{if(typeof window>`u`)return;let e=w(N.current),t=window.sessionStorage.getItem(H),n=t?Number(t):0;Number.isFinite(n)&&n>0&&requestAnimationFrame(()=>{E(e,n)});let r=!1,i=()=>{r||(r=!0,requestAnimationFrame(()=>{window.sessionStorage.setItem(H,String(T(e))),r=!1}))};return e?(e.addEventListener(`scroll`,i,{passive:!0}),()=>{e.removeEventListener(`scroll`,i)}):(window.addEventListener(`scroll`,i,{passive:!0}),()=>{window.removeEventListener(`scroll`,i)})},[H]);let U={collect:M(`client.collect`),publish:M(`client.publish`),like:M(`client.like`),history:M(`client.history`)},W=j;return k===`login-required`?W=g(r,{className:`flex flex-col items-center pt-[132px] text-center`,children:[h(x,{className:`h-[58px] w-[68px]`}),h(a,{className:`mt-[16px] text-[15px] leading-[normal] text-[#54525E]`,children:M(`client.loginToSeeMoreVideos`)}),h(n,{type:`button`,onClick:P,className:`mt-[16px] h-[40px] min-w-[100px] rounded-[8px] border-0 bg-[linear-gradient(90deg,#9756E3_0%,#6C43EE_100%)] px-[24px] py-0 text-[16px] font-normal leading-[24px] text-white active:opacity-90`,children:M(`client.loginNow`)})]}):k===`privacy-collect`?W=h(i,{type:`no-content`,text:M(`client.collectionNotPublic`)}):k===`privacy-like`&&(W=h(i,{type:`no-content`,text:M(`client.likeNotPublic`)})),g(r,{ref:N,className:e(`relative grow overflow-hidden rounded-t-[24px] bg-[var(--color-surface-panel-dark)]`,A),children:[h(r,{className:`sticky top-0 z-10 bg-[var(--color-surface-panel-dark)] px-4 pt-8`,children:h(o,{value:z,onValueChange:e=>{R(e,{shallow:!1})},className:`h-6 w-full`,children:h(s,{variant:`default`,className:`h-6 w-fit gap-8 px-0`,children:O.map(t=>g(c,{value:t,onClick:e=>{u(e,`${t}_tab`)},className:e(`group/profile-main-tab !flex-none !h-6 min-w-8 !px-0 !py-0 !pb-0 text-[16px] !font-normal leading-6 text-[var(--color-text-secondary)]`,`data-[active]:!text-text1 data-[active]:!font-semibold data-[active]:!text-[18px]`,`data-[state=active]:!text-text1 data-[state=active]:!font-semibold data-[state=active]:!text-[18px]`,`after:hidden`),children:[h(b,{"aria-hidden":`true`,className:e(`pointer-events-none absolute bottom-0 left-1/2 h-[10px] w-[37px] -translate-x-1/2 opacity-0 transition-opacity duration-200`,`group-data-[active]/profile-main-tab:opacity-100`,`group-data-[state=active]/profile-main-tab:opacity-100`)}),h(`span`,{className:`relative z-10`,children:U[t]})]},t))})})}),h(r,{className:`relative px-4 pb-6 pt-7`,children:W})]})}export{D as UserProfileMainShell};
2
+ "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{Button as n}from"../../../../ui/button.mjs";import{Box as r}from"../../../../ui/box.mjs";import{EmptyState as i}from"../../../../ui/empty.mjs";import{Text as a}from"../../../../ui/text.mjs";import{Tabs as o,TabsList as s,TabsTrigger as c}from"../../../../ui/tabs.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{trackProfilePageClick as u}from"../tracking.mjs";import{useEffect as d,useId as f,useMemo as p,useRef as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{useTranslations as _}from"next-intl";import{parseAsString as v,useQueryState as y}from"nuqs";function b(e){let t=f();return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`37`,height:`10`,viewBox:`0 0 37 10`,fill:`none`,...e,children:[h(`path`,{d:`M32.8921 0.212888C34.4317 -0.398985 36.1765 0.353067 36.7886 1.89258C37.4004 3.43219 36.6484 5.17704 35.1089 5.78906L29.9204 7.85058C26.0475 9.38961 21.7156 9.29046 17.9175 7.57519C15.9234 6.67463 13.6771 6.5 11.5679 7.08203L3.79833 9.22656C2.20143 9.66708 0.549808 8.72958 0.108873 7.13281C-0.331916 5.53567 0.605478 3.88317 2.20262 3.44238L9.97118 1.29785C13.431 0.342993 17.1161 0.629191 20.3872 2.10644C22.7028 3.15218 25.3434 3.21271 27.7046 2.27441L32.8921 0.212888Z`,fill:`url(#${t})`}),h(`defs`,{children:g(`linearGradient`,{id:t,x1:`3.00047`,y1:`5.00097`,x2:`34.0005`,y2:`5.00097`,gradientUnits:`userSpaceOnUse`,children:[h(`stop`,{stopColor:`var(--color-brand-tag-gradient-start)`}),h(`stop`,{offset:`1`,stopColor:`var(--color-brand-tag-gradient-end)`})]})})]})}function x(e){return g(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`68`,height:`58`,viewBox:`0 0 68 58`,fill:`none`,...e,children:[h(`rect`,{x:`0.5`,y:`0.5`,width:`67`,height:`57`,rx:`7.5`,fill:`#1B1829`,stroke:`#322F3E`}),h(`path`,{d:`M27.1175 33.8211L27.118 23.9652C27.1182 21.7159 29.502 20.2667 31.4989 21.3021L40.5835 26.0125C42.6976 27.1086 42.7531 30.1126 40.681 31.2861L31.5959 36.4317C29.596 37.5644 27.1173 36.1195 27.1175 33.8211Z`,fill:`#54525E`})]})}function S(e,t){return t.includes(e)?e:t[0]}function C(e){let t=window.getComputedStyle(e);return/auto|scroll|overlay/.test(t.overflowY)}function w(e){if(typeof window>`u`)return null;let t=e?.parentElement??null;for(;t;){if(C(t))return t;t=t.parentElement}return null}function T(e){return typeof window>`u`?0:e?e.scrollTop:window.scrollY||window.pageYOffset||0}function E(e,t){if(!(typeof window>`u`)){if(e){e.scrollTo({top:t});return}window.scrollTo({top:t,left:0})}}function D({profileId:f,currentUserId:C,isMine:D,tabs:O,activeTab:k,renderMode:A,className:j,children:M}){let N=_(`components.pages.profile`),P=m(null),F=l(e=>e.open),I=t(e=>e.userId),L=m(``),[R,z]=y(`tab`,v.withDefault(`collect`)),B=p(()=>k&&O.includes(k)?k:S(R,O),[k,R,O]),V=C||I||``,H=D?V:f,U=p(()=>`profile-scroll:${H||(D?`mine`:`guest`)}:${B}`,[D,B,H]);d(()=>{k||R!==B&&z(B,{shallow:!1})},[k,B,z,R]),d(()=>{if(typeof window>`u`)return;let e=`${D?`mine`:`profile`}:${H||``}:${B}`;L.current!==e&&(L.current=e)},[D,f,V,B,H]),d(()=>{if(typeof window>`u`)return;let e=w(P.current),t=window.sessionStorage.getItem(U),n=t?Number(t):0;Number.isFinite(n)&&n>0&&requestAnimationFrame(()=>{E(e,n)});let r=!1,i=()=>{r||(r=!0,requestAnimationFrame(()=>{window.sessionStorage.setItem(U,String(T(e))),r=!1}))};return e?(e.addEventListener(`scroll`,i,{passive:!0}),()=>{e.removeEventListener(`scroll`,i)}):(window.addEventListener(`scroll`,i,{passive:!0}),()=>{window.removeEventListener(`scroll`,i)})},[U]);let W={collect:N(`client.collect`),publish:N(`client.publish`),like:N(`client.like`),history:N(`client.history`)},G=M;return A===`login-required`?G=g(r,{className:`flex flex-col items-center pt-[132px] text-center`,children:[h(x,{className:`h-[58px] w-[68px]`}),h(a,{className:`mt-[16px] text-[15px] leading-[normal] text-[#54525E]`,children:N(`client.loginToSeeMoreVideos`)}),h(n,{type:`button`,onClick:F,className:`mt-[16px] h-[40px] min-w-[100px] rounded-[8px] border-0 bg-[linear-gradient(90deg,#9756E3_0%,#6C43EE_100%)] px-[24px] py-0 text-[16px] font-normal leading-[24px] text-white active:opacity-90`,children:N(`client.loginNow`)})]}):A===`privacy-collect`?G=h(i,{type:`no-content`,text:N(`client.collectionNotPublic`)}):A===`privacy-like`&&(G=h(i,{type:`no-content`,text:N(`client.likeNotPublic`)})),g(r,{ref:P,className:e(`relative grow overflow-hidden rounded-t-[24px] bg-[var(--color-surface-panel-dark)]`,j),children:[h(r,{className:`sticky top-0 z-10 bg-[var(--color-surface-panel-dark)] px-4 pt-8`,children:h(o,{value:B,onValueChange:e=>{k||z(e,{shallow:!1})},className:`h-6 w-full`,children:h(s,{variant:`default`,className:`h-6 w-fit gap-8 px-0`,children:O.map(t=>g(c,{value:t,onClick:e=>{u(e,`${t}_tab`)},className:e(`group/profile-main-tab !flex-none !h-6 min-w-8 !px-0 !py-0 !pb-0 text-[16px] !font-normal leading-6 text-[var(--color-text-secondary)]`,`data-[active]:!text-text1 data-[active]:!font-semibold data-[active]:!text-[18px]`,`data-[state=active]:!text-text1 data-[state=active]:!font-semibold data-[state=active]:!text-[18px]`,`after:hidden`),children:[h(b,{"aria-hidden":`true`,className:e(`pointer-events-none absolute bottom-0 left-1/2 h-[10px] w-[37px] -translate-x-1/2 opacity-0 transition-opacity duration-200`,`group-data-[active]/profile-main-tab:opacity-100`,`group-data-[state=active]/profile-main-tab:opacity-100`)}),h(`span`,{className:`relative z-10`,children:W[t]})]},t))})})}),h(r,{className:`relative px-4 pb-6 pt-7`,children:G})]})}export{D as UserProfileMainShell};
@@ -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,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" | "secondary" | "outline" | "ghost" | null | undefined;
11
- size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
10
+ variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
11
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** Button 组件属性。 */
14
14
  type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
@@ -22,7 +22,7 @@ import { homeRecommendGridMaterial } from "./components/biz/business/home-recomm
22
22
  import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
23
23
  import { imageTextRecommendMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
24
24
  import { marqueeMaterial } from "./components/biz/business/marquee/material.mjs";
25
- import { myProfileHeaderMaterial, visitorProfileHeaderMaterial } from "./components/biz/business/profile/profile-header/material.mjs";
25
+ import { myProfileHeaderMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, visitorProfileHeaderMaterial } from "./components/biz/business/profile/profile-header/material.mjs";
26
26
  import { profileMainMaterial } from "./components/biz/business/profile/profile-main/material.mjs";
27
27
  import { searchHistoryMaterial } from "./components/biz/business/search-history/material.mjs";
28
28
  import { searchInputMaterial } from "./components/biz/business/search-input/material.mjs";
@@ -39,4 +39,4 @@ import { headerSearchMaterial } from "./components/biz/business/header-search/he
39
39
  import "./components/biz/business/header-search/index.mjs";
40
40
  import { largeFeatureGridMaterial } from "./components/biz/business/large-feature-grid/material.mjs";
41
41
  import { shortcutGridMaterial } from "./components/biz/business/shortcut-grid/material.mjs";
42
- export { BannerCarouselMaterial, bannerAdMaterial, channelListMaterial, exampleButtonMaterial, floatingAdMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, iconAdMaterial, imageTextRecommendMaterial, largeFeatureGridMaterial, marqueeMaterial, myProfileHeaderMaterial, popupAdMaterial, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textAdMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerBridgeOnlyMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial, visitorProfileHeaderMaterial };
42
+ export { BannerCarouselMaterial, bannerAdMaterial, channelListMaterial, exampleButtonMaterial, floatingAdMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, iconAdMaterial, imageTextRecommendMaterial, largeFeatureGridMaterial, marqueeMaterial, myProfileHeaderMaterial, popupAdMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textAdMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerBridgeOnlyMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial, visitorProfileHeaderMaterial };
@@ -1,2 +1,2 @@
1
1
 
2
- import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{bannerAdMaterial as t}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{floatingAdMaterial as n}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdMaterial as r}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{popupAdMaterial as i}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdMaterial as a}from"./components/biz/business/advertisement/text-ad/material.mjs";import{floatingBallMaterial as o}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as s}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as c}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{imageTextRecommendMaterial as l}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as u}from"./components/biz/business/marquee/material.mjs";import{myProfileHeaderMaterial as d,visitorProfileHeaderMaterial as f}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as p}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as m}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as h}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as g}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as _}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as v}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as y}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as b}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as x}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as S}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as C}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailPlayerBridgeOnlyMaterial as w}from"./components/biz/business/detail/video-detail-player-bridge-only/material.mjs";import{videoDetailRecommendMaterial as T}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as E}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as D}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as O}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as k}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as A}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as j}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as M}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as N}from"./components/biz/business/shortcut-grid/material.mjs";var P=e({BannerCarouselMaterial:()=>y,bannerAdMaterial:()=>t,channelListMaterial:()=>b,exampleButtonMaterial:()=>v,floatingAdMaterial:()=>n,floatingBallMaterial:()=>o,headerAvatarIconMaterial:()=>D,headerAvatarLogoSearchIconMaterial:()=>k,headerAvatarLogoSearchMaterial:()=>O,headerLogoSearchMaterial:()=>A,headerSearchMaterial:()=>j,homeRecommendGridMaterial:()=>s,homeRecommendWaterfallMaterial:()=>c,iconAdMaterial:()=>r,imageTextRecommendMaterial:()=>l,largeFeatureGridMaterial:()=>M,marqueeMaterial:()=>u,myProfileHeaderMaterial:()=>d,popupAdMaterial:()=>i,profileMainMaterial:()=>p,searchHistoryMaterial:()=>m,searchInputMaterial:()=>h,shortcutGridMaterial:()=>N,tabBarMaterial:()=>g,textAdMaterial:()=>a,textRecommendMaterial:()=>_,videoDetailActionsMaterial:()=>E,videoDetailInfoMaterial:()=>x,videoDetailInfoTitleTagsEpisodesMaterial:()=>S,videoDetailPlayerBridgeOnlyMaterial:()=>w,videoDetailPlayerMaterial:()=>C,videoDetailRecommendMaterial:()=>T,visitorProfileHeaderMaterial:()=>f});export{y as BannerCarouselMaterial,t as bannerAdMaterial,b as channelListMaterial,v as exampleButtonMaterial,n as floatingAdMaterial,o as floatingBallMaterial,D as headerAvatarIconMaterial,k as headerAvatarLogoSearchIconMaterial,O as headerAvatarLogoSearchMaterial,A as headerLogoSearchMaterial,j as headerSearchMaterial,s as homeRecommendGridMaterial,c as homeRecommendWaterfallMaterial,r as iconAdMaterial,l as imageTextRecommendMaterial,M as largeFeatureGridMaterial,u as marqueeMaterial,P as materials_exports,d as myProfileHeaderMaterial,i as popupAdMaterial,p as profileMainMaterial,m as searchHistoryMaterial,h as searchInputMaterial,N as shortcutGridMaterial,g as tabBarMaterial,a as textAdMaterial,_ as textRecommendMaterial,E as videoDetailActionsMaterial,x as videoDetailInfoMaterial,S as videoDetailInfoTitleTagsEpisodesMaterial,w as videoDetailPlayerBridgeOnlyMaterial,C as videoDetailPlayerMaterial,T as videoDetailRecommendMaterial,f as visitorProfileHeaderMaterial};
2
+ import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{bannerAdMaterial as t}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{floatingAdMaterial as n}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdMaterial as r}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{popupAdMaterial as i}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdMaterial as a}from"./components/biz/business/advertisement/text-ad/material.mjs";import{floatingBallMaterial as o}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as s}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as c}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{imageTextRecommendMaterial as l}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as u}from"./components/biz/business/marquee/material.mjs";import{myProfileHeaderMaterial as d,profileHeaderMaterial as f,profileHeaderMaterialWithDisabledBackground as p,visitorProfileHeaderMaterial as m}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as h}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as g}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as _}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as v}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as y}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as b}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as x}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as S}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as C}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as w}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as T}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailPlayerBridgeOnlyMaterial as E}from"./components/biz/business/detail/video-detail-player-bridge-only/material.mjs";import{videoDetailRecommendMaterial as D}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as O}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as k}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as A}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as j}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as M}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as N}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as P}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as F}from"./components/biz/business/shortcut-grid/material.mjs";var I=e({BannerCarouselMaterial:()=>x,bannerAdMaterial:()=>t,channelListMaterial:()=>S,exampleButtonMaterial:()=>b,floatingAdMaterial:()=>n,floatingBallMaterial:()=>o,headerAvatarIconMaterial:()=>k,headerAvatarLogoSearchIconMaterial:()=>j,headerAvatarLogoSearchMaterial:()=>A,headerLogoSearchMaterial:()=>M,headerSearchMaterial:()=>N,homeRecommendGridMaterial:()=>s,homeRecommendWaterfallMaterial:()=>c,iconAdMaterial:()=>r,imageTextRecommendMaterial:()=>l,largeFeatureGridMaterial:()=>P,marqueeMaterial:()=>u,myProfileHeaderMaterial:()=>d,popupAdMaterial:()=>i,profileHeaderMaterial:()=>f,profileHeaderMaterialWithDisabledBackground:()=>p,profileMainMaterial:()=>h,searchHistoryMaterial:()=>g,searchInputMaterial:()=>_,shortcutGridMaterial:()=>F,tabBarMaterial:()=>v,textAdMaterial:()=>a,textRecommendMaterial:()=>y,videoDetailActionsMaterial:()=>O,videoDetailInfoMaterial:()=>C,videoDetailInfoTitleTagsEpisodesMaterial:()=>w,videoDetailPlayerBridgeOnlyMaterial:()=>E,videoDetailPlayerMaterial:()=>T,videoDetailRecommendMaterial:()=>D,visitorProfileHeaderMaterial:()=>m});export{x as BannerCarouselMaterial,t as bannerAdMaterial,S as channelListMaterial,b as exampleButtonMaterial,n as floatingAdMaterial,o as floatingBallMaterial,k as headerAvatarIconMaterial,j as headerAvatarLogoSearchIconMaterial,A as headerAvatarLogoSearchMaterial,M as headerLogoSearchMaterial,N as headerSearchMaterial,s as homeRecommendGridMaterial,c as homeRecommendWaterfallMaterial,r as iconAdMaterial,l as imageTextRecommendMaterial,P as largeFeatureGridMaterial,u as marqueeMaterial,I as materials_exports,d as myProfileHeaderMaterial,i as popupAdMaterial,f as profileHeaderMaterial,p as profileHeaderMaterialWithDisabledBackground,h as profileMainMaterial,g as searchHistoryMaterial,_ as searchInputMaterial,F as shortcutGridMaterial,v as tabBarMaterial,a as textAdMaterial,y as textRecommendMaterial,O as videoDetailActionsMaterial,C as videoDetailInfoMaterial,w as videoDetailInfoTitleTagsEpisodesMaterial,E as videoDetailPlayerBridgeOnlyMaterial,T as videoDetailPlayerMaterial,D as videoDetailRecommendMaterial,m as visitorProfileHeaderMaterial};
@@ -6,10 +6,10 @@ type InspectorFieldOption<T> = Omit<T, 'type'>;
6
6
  declare const stringInspectorFieldSchema: z.ZodObject<{
7
7
  type: z.ZodLiteral<"string">;
8
8
  fieldType: z.ZodOptional<z.ZodEnum<{
9
- select: "select";
10
9
  input: "input";
11
10
  textarea: "textarea";
12
11
  color: "color";
12
+ select: "select";
13
13
  }>>;
14
14
  defaultValue: z.ZodOptional<z.ZodString>;
15
15
  label: z.ZodOptional<z.ZodString>;
@@ -68,10 +68,10 @@ type ObjectInspectorFieldOption = InspectorFieldOption<z.infer<typeof objectInsp
68
68
  declare const componentInspectorFieldMetaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
69
69
  type: z.ZodLiteral<"string">;
70
70
  fieldType: z.ZodOptional<z.ZodEnum<{
71
- select: "select";
72
71
  input: "input";
73
72
  textarea: "textarea";
74
73
  color: "color";
74
+ select: "select";
75
75
  }>>;
76
76
  defaultValue: z.ZodOptional<z.ZodString>;
77
77
  label: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funhub/platform",
3
3
  "type": "module",
4
- "version": "0.2.26",
4
+ "version": "0.2.27",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "**/*.css"