@funhub/platform 0.1.30 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/tailwind/index.cjs +115 -1
- package/config/tailwind/index.d.ts +3 -0
- package/config/tailwind/index.mjs +115 -1
- package/dist/biz.d.mts +29 -25
- package/dist/biz.mjs +1 -1
- package/dist/common.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -1
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.d.mts +2 -2
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -1
- package/dist/components/biz/business/channel-list/material.d.mts +2 -2
- package/dist/components/biz/business/comment/comment-item.mjs +1 -1
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -1
- package/dist/components/biz/business/contact/contact-list.mjs +1 -1
- package/dist/components/biz/business/detail/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-actions/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-player/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-hero.mjs +1 -1
- package/dist/components/biz/business/floating-ball/client.d.mts +2 -2
- package/dist/components/biz/business/floating-ball/client.mjs +1 -1
- package/dist/components/biz/business/floating-ball/index.d.mts +5 -0
- package/dist/components/biz/business/floating-ball/material.d.mts +6 -1
- package/dist/components/biz/business/floating-ball/schema.d.mts +11 -4
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -1
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +29 -24
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +2 -0
- package/dist/components/biz/business/large-feature-grid/client.d.mts +8 -5
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/mock.mjs +2 -0
- package/dist/components/biz/business/large-feature-grid/server.d.mts +4 -2
- package/dist/components/biz/business/large-feature-grid/types.d.mts +33 -0
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +1 -7
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +14 -14
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/material.d.mts +1 -12
- package/dist/components/biz/business/profile/profile-main/schema.d.mts +14 -24
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/search-history/client.mjs +1 -1
- package/dist/components/biz/business/search-input/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/text-recommend/client.mjs +1 -1
- package/dist/components/common/at-element/index.mjs +1 -1
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -1
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -1
- package/dist/components/common/header-nav/client.mjs +1 -1
- package/dist/components/common/info-card/card-header.mjs +1 -1
- package/dist/components/common/list/post-list/post-list.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -1
- package/dist/components/common/list/video-list/video-list.mjs +1 -1
- package/dist/components/common/media-preview/index.mjs +1 -1
- package/dist/components/common/popup-video/index.mjs +1 -1
- package/dist/components/common/share-popup/share-popup.mjs +1 -1
- package/dist/components/common/tab-bar/index.mjs +1 -1
- package/dist/components/common/top-nav-bar/client.mjs +1 -1
- package/dist/components/common/video-player/index.mjs +2 -2
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -1
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -1
- package/dist/components/pages/collection-create/form.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
- package/dist/components/pages/feed-series/page.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
- package/dist/components/pages/home/client.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/profile/_components/user-profile-container/client.mjs +1 -1
- package/dist/components/pages/publish/components/collection.mjs +1 -1
- package/dist/components/pages/publish/components/header.mjs +1 -1
- package/dist/components/pages/publish/page-client.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/search/top-header.mjs +1 -1
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -1
- package/dist/components/pages/video-detail/page.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button-group.d.mts +1 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/components/ui/field.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/hooks/use-content-operate.mjs +1 -1
- package/dist/i18n.d.mts +1 -1
- package/dist/i18n.mjs +1 -1
- package/dist/materials.d.mts +5 -5
- package/dist/materials.mjs +1 -1
- package/dist/utils/share-manager.mjs +1 -1
- package/dist/utils.d.mts +4 -4
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/components/biz/business/large-feature-grid/schema.d.mts +0 -14
|
@@ -5,8 +5,8 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
5
5
|
//#region components/biz/business/floating-ball/client.d.ts
|
|
6
6
|
type FloatingBallClientProps = FloatingBallInspectorProps;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 悬浮球
|
|
9
9
|
*/
|
|
10
|
-
declare function FloatingBallClient(
|
|
10
|
+
declare function FloatingBallClient(props: FloatingBallClientProps): react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { FloatingBallClient, FloatingBallClientProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{jsx as n}from"react/jsx-runtime";import r from"next/link";function i(i){let{icon:a,href:o}=i;return n(r,{href:o,className:`fixed bottom-[100px] right-[20px] z-50 block h-[50px] w-[50px] overflow-hidden rounded-[16px]`,children:n(t,{className:`flex h-full w-full shadow-lg relative`,"aria-label":`悬浮球`,children:n(e,{src:a,alt:`悬浮球`,fill:!0,className:`object-cover`})})})}export{i as FloatingBallClient};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { FloatingBallInspectorProps, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { FloatingBallClient, FloatingBallClientProps } from "./client.mjs";
|
|
4
|
+
import { FloatingBall } from "./server.mjs";
|
|
5
|
+
import { floatingBallMaterial } from "./material.mjs";
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
2
3
|
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils/schema/index.mjs";
|
|
3
5
|
import { FloatingBallClient } from "./client.mjs";
|
|
4
6
|
import { FloatingBall } from "./server.mjs";
|
|
5
7
|
import * as zod from "zod";
|
|
6
8
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
7
9
|
|
|
8
10
|
//#region components/biz/business/floating-ball/material.d.ts
|
|
9
|
-
declare const floatingBallMaterial: DefineMaterialOption<typeof FloatingBall, typeof FloatingBallClient, zod.ZodObject<{
|
|
11
|
+
declare const floatingBallMaterial: DefineMaterialOption<typeof FloatingBall, typeof FloatingBallClient, zod.ZodObject<{
|
|
12
|
+
icon: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
+
href: zod.ZodString & SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>, "floating-ball">;
|
|
10
15
|
//#endregion
|
|
11
16
|
export { floatingBallMaterial };
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
2
|
+
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils/schema/index.mjs";
|
|
4
4
|
import * as zod from "zod";
|
|
5
5
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
6
|
|
|
7
7
|
//#region components/biz/business/floating-ball/schema.d.ts
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* 悬浮球物料:图片链接 + 跳转链接。
|
|
10
10
|
*/
|
|
11
|
-
declare const floatingBallInspectorPropsSchema: zod.ZodObject<{
|
|
11
|
+
declare const floatingBallInspectorPropsSchema: zod.ZodObject<{
|
|
12
|
+
icon: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
+
href: zod.ZodString & SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>;
|
|
15
|
+
declare const floatingBallInspectorDefaultProps: {
|
|
16
|
+
icon: string;
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
12
19
|
type FloatingBallInspectorProps = InferSchemaProps<typeof floatingBallInspectorPropsSchema>;
|
|
13
20
|
//#endregion
|
|
14
|
-
export { FloatingBallInspectorProps };
|
|
21
|
+
export { FloatingBallInspectorProps, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,getSchemaDefaultProps as
|
|
2
|
+
import{defineComponentPropsSchema as e,defineTextPropSchema as t,getSchemaDefaultProps as n}from"../../../../utils/schema/schema.mjs";const r=e({icon:t({label:`图片链接`,required:!0,defaultValue:`/images/2026/01/21/6970431b570c52b14f085d7c/0f1bb13e-3cf1-441c-9036-ed26341d4199.jpgxxx`}),href:t({label:`跳转链接`,required:!0,defaultValue:`/publish`})}),i=n(r);export{i as floatingBallInspectorDefaultProps,r as floatingBallInspectorPropsSchema};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../utils/styles/helpers.mjs";import{useUserStore as t}from"../../../../../../store/modules/user-store.mjs";import{gContentGetAppChannelBlockData as n}from"../../../../../../service/generated/client.mjs";import{checkFollowStatus as r}from"../../../../../../utils/follow-service.mjs";import{useKeepAliveEffect as i,useKeepAliveState as a}from"../../../../../common/keep-scroll-position/index.mjs";import{
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../utils/styles/helpers.mjs";import{useUserStore as t}from"../../../../../../store/modules/user-store.mjs";import{gContentGetAppChannelBlockData as n}from"../../../../../../service/generated/client.mjs";import{checkFollowStatus as r}from"../../../../../../utils/follow-service.mjs";import{useKeepAliveEffect as i,useKeepAliveState as a}from"../../../../../common/keep-scroll-position/index.mjs";import{defaultProps as o}from"../../../../basics/fullscreen-feed/defaults/default-props.mjs";import{adaptFeedItemToSafeInformation as s,normalizeToFeedItem as ee}from"../../../../basics/fullscreen-feed/runtime/adapters.mjs";import{batchQueryContentInteractions as te}from"../../../../../../hooks/use-content-operate.mjs";import{buildInteractionMap as ne,collectPendingInteractionIds as re,mergeInteractionIntoFeedItems as ie}from"../../../../basics/fullscreen-feed/runtime/interaction-sync.mjs";import{useCallback as c,useEffect as l,useMemo as u,useRef as d}from"react";function f(e){return!!e&&typeof e==`object`&&(`data`in e||`props`in e||`styles`in e||`events`in e)}function p(e){let t=String(e?.content_id??e?.id??``),n=e?.author,r=Array.isArray(e?.medias)?e.medias:[],i=String(e?.content||``),a=e?.title?String(e.title):i.length>18?`${i.slice(0,18)}...`:i;return{id:t,mid:t,show_at:e?.create_time||``,name:a,img_y:e?.cover_image||``,preview_images:r,description:e?.content||``,tags:[],links:[],up_user:e?.user_id||n?.user_id||``,source_username:n?.nick_name||``,type:e?.type,is_liked:!!e?.is_liked,is_dislike:!!e?.is_dislike,is_collected:!!e?.is_collected,is_followed:!!e?.is_followed,author:n?{user_id:n.user_id||``,nick_name:n.nick_name||``,user_name:n.user_name||n.username||n.nick_name||``,avatar:n.avatar||``,is_verified:!!n.is_verified}:void 0,static:{like_cnt:e?.like_count||0,dislike_cnt:e?.dislike_count||0,comment_cnt:e?.comment_count||0,share_cnt:e?.share_count||0,browse_cnt:e?.view_count||0,collect_cnt:0}}}function m(e){let t=p(e);return t.id?{kind:`post`,id:t.id,title:t.name,content:e?.content||``,images:t.preview_images||[],originalData:t}:null}function ae(e){return!e||typeof e!=`object`?null:`kind`in e&&`originalData`in e?e:`content_id`in e||`comment_count`in e||`like_count`in e?m(e):ee(s(e))}function oe(e){if(Array.isArray(e))return e;if(!e||typeof e!=`object`)return[];let t=e.list||e.contents||e.videos||e.items;return Array.isArray(t)?t:[]}function h(s){let ee=s.data||{},f=s.styles,p=u(()=>s.events||{},[s.events]),m=s.data,h={...o,...ee},g=String(m?.block_id||m?.blockId||h.block_id||h.blockId||``),_=String(m?.app_id||h.app_id||h.appId||``)||void 0,se=m?.cursor||h.cursor,v=se==null?``:String(se),y=Number(m?.refresh_key??m?.refreshKey??h.refresh_key??h.refreshKey??0),ce=String(m?.keep_alive_key||m?.keepAliveKey||h.keep_alive_key||h.keepAliveKey||``),b=u(()=>ce||`fullscreen-feed-runtime:${_||`app`}:${g||`unknown`}`,[_,g,ce]),x=u(()=>oe(m).map(e=>ae(e)).filter(Boolean),[m]),S=u(()=>{let e=Number(h.initialActiveIndex??0);return Number.isFinite(e)?e:0},[h.initialActiveIndex]),[le,C]=a(`${b}-active-index`,S),[ue,w]=a(`${b}-user-interacted`,!1),[T,E]=a(`${b}-follow-ids`,Array.isArray(h.followIds)?h.followIds:[]),D=d(T),[O,k]=a(`${b}-items`,x),A=d(O);A.current=O;let[de,fe]=a(`${b}-refresh-key`,y),{userId:pe,userInfo:me}=t(),j=pe||me?.userId||``,[M,N]=a(`${b}-checked-interaction-ids`,{video:[],post:[]}),P=d({video:new Set(M.video),post:new Set(M.post)}),F=d(M);F.current=M;let[I,L]=a(`${b}-checked-followee-ids`,[]),R=d(new Set(I)),z=d(I);z.current=I;let B=d(new Set),V=d(!1),H=c(e=>{let t=e.originalData;return t?.author?.user_id||t?.up_user||``},[]),U=c(async()=>{if(V.current||!j||B.current.size===0)return;V.current=!0;let e=Array.from(B.current);B.current=new Set;let t=await r({app_id:0,follower_id:j,followee_ids:e});if(t.success&&t.data?.is_following_map){let n=t.data.is_following_map;k(e=>{let t=!1,r=e.map(e=>{let r=H(e);if(!r||!(r in n))return e;let i=!!n[r];return e.originalData?.is_followed===i?e:(t=!0,{...e,originalData:{...e.originalData,is_followed:i}})});return t?r:e}),E(t=>{let r=new Set(t);e.forEach(e=>{n[e]?r.add(e):r.delete(e)});let i=Array.from(r);return D.current=i,i})}V.current=!1,B.current.size>0&&U()},[H,j,E,k]),W=c(e=>{if(!j)return;let t=e.map(e=>H(e)).filter(e=>!!e);t.length!==0&&(t.forEach(e=>{R.current.has(e)||(R.current.add(e),B.current.add(e))}),B.current.size>0&&L(Array.from(R.current)),U())},[U,H,j,L]),G=c(e=>{if(e.size===0)return e;let t=new Map;return e.forEach((e,n)=>{if(!e)return;let{is_followed:r,...i}=e;t.set(n,i)}),t},[]),K=c(async e=>{if(!j)return;let{pendingVideoIds:t,pendingPostIds:n}=re(e,P.current);if(t.length===0&&n.length===0)return;N({video:Array.from(P.current.video),post:Array.from(P.current.post)});let[r,i]=await Promise.all([t.length>0?te(t,1):Promise.resolve(null),n.length>0?te(n,2):Promise.resolve(null)]),a=G(ne(r?.interaction_list)),o=G(ne(i?.interaction_list));k(e=>{let t=ie(e,a,o);if(t===e)return e;if(R.current.size===0)return t;let n=!1,r=t.map(e=>{let t=H(e);if(!t||!R.current.has(t))return e;let r=D.current.includes(t);return e.originalData?.is_followed===r?e:(n=!0,{...e,originalData:{...e.originalData,is_followed:r}})});return n?r:t})},[H,j,N,k,G]),[q,J]=a(`${b}-cursor`,v),Y=d(q),X=d(!1),[Z,Q]=a(`${b}-has-more`,!!(v&&v.trim()));l(()=>{Y.current=q},[q]),l(()=>{D.current=T},[T]),l(()=>{P.current={video:new Set(F.current.video),post:new Set(F.current.post)}},[F,j]),l(()=>{P.current={video:new Set,post:new Set},N({video:[],post:[]})},[j,N]),l(()=>{R.current=new Set(z.current)},[z,j]),l(()=>{R.current=new Set,B.current=new Set,L([]),j&&A.current.length!==0&&W(A.current)},[b,W,j,L]),l(()=>{j&&O.length!==0&&W(O)},[O,W,j]),l(()=>{j&&O.length!==0&&K(O)},[O,K,j]),i(()=>{y!==de&&(O.length>0||(k(x),J(v),Y.current=v,Q(!!(v&&v.trim())),C(S),w(!1),R.current=new Set,L([]),P.current={video:new Set,post:new Set},N({video:[],post:[]})),fe(y))},[S,v,x,O.length,y,C,J,Q,k,N,fe,w,de],`fullscreen-feed-runtime-refresh-${b}`);let he=h.onSwipeTo||p.onSwipeTo,ge=h.onCustomActionRender,_e=h.onRequireLogin||p.onRequireLogin,ve=h.onFollowIdsChange||p.onFollowIdsChange,ye=p.onControlsVisibilityChange,be=p.onGestureStart,xe=p.onGestureEnd,Se=p.onSwipeCancel,Ce=h.onDataUpdate||p.onDataUpdate,we=h.onOpenComment||p.onOpenComment,Te=f?e(f,{}):void 0,Ee={loop:h.loop,autoNext:h.autoNext,...h.videoConfig||{}},$=c(async()=>{if(!g||!Z||X.current)return;let e=Y.current;if(!e||!e.trim()){Q(!1);return}X.current=!0;try{let t=(await n({app_id:_,block_id:g,cursor:e||void 0})).data?.block?.data,r=t?.cursor,i=r==null?``:String(r),a=[];Array.isArray(t?.videos)&&a.push(...t.videos),Array.isArray(t?.contents)&&a.push(...t.contents);let o=a.map(e=>ae(e)).filter(Boolean);o.length>0&&(k(e=>{let t=new Set(e.map(e=>`${e.kind}:${e.id}`)),n=[...e];return o.forEach(e=>{if(!e.id)return;let r=`${e.kind}:${e.id}`;t.has(r)||(t.add(r),n.push(e))}),n}),W(o),K(o)),Y.current=i,J(i),Q(!!(i&&i.trim()))}catch(e){console.error(`FullscreenFeed runtime fetchMore failed:`,e),Q(!1)}finally{X.current=!1}},[_,g,Z,J]),De=c(()=>{w(!0),p.onUserInteracted?.()},[p,w]),Oe=c((e,t)=>{C(e),he?.({activeIndex:e,items:A.current,direction:t});let n=A.current.length;g&&Z&&n>0&&e>=n-2&&$()},[g,$,Z,he,C]),ke=c(e=>{D.current=e,E(e),ve?.(e)},[ve,E]),Ae=c(e=>{let t=p.getNavigationInfo;if(t)return t(e);let n=O[e+1];return{showSeriesButton:!1,nextItemText:n?`\u4E0B\u4E00\u6761${n.title?`\u00B7${n.title}`:``}`:``}},[O,p]);return{items:O,activeIndex:le,...h,top:h.top,bottom:h.bottom,currentUserId:h.currentUserId,videoConfig:Ee,userInteracted:ue,onUserInteracted:De,onActiveIndexChange:Oe,onDataUpdate:(e,t)=>Ce?.(e,t),onOpenComment:we,getNavigationInfo:Ae,onControlsVisibilityChange:ye,onGestureStart:be,onGestureEnd:xe,onSwipeCancel:Se,onCustomActionRender:ge,followIds:T,onFollowIdsChange:ke,onRequireLogin:_e,style:Te}}export{f as isRuntimeBaseComponentProps,h as useFullscreenFeedRuntimeCompat};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{gContentGetAppChannelBlockData as e}from"../../../../../service/generated/client.mjs";import{Image as t}from"../../../../ui/image.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Text as r}from"../../../../ui/text.mjs";import{usePaginated as i}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as a}from"../../../../../hooks/use-app-context/index.mjs";import
|
|
2
|
+
"use client";import{gContentGetAppChannelBlockData as e}from"../../../../../service/generated/client.mjs";import{Image as t}from"../../../../ui/image.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Text as r}from"../../../../ui/text.mjs";import{usePaginated as i}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as a}from"../../../../../hooks/use-app-context/index.mjs";import o from"../../../../../assets/icons/detail/video_flag.mjs";import{MiniThreeCard as s}from"../../../../common/cards/mini-three-card.mjs";import{useCallback as c,useEffect as l,useLayoutEffect as u,useMemo as d,useRef as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{useRouter as g}from"next/navigation";const _={},v={list:[]};function y({variant:e,props:t=_,data:i=v}){let o=a(),s=g(),{list:y,title:x,cursor:S,block_id:w,channel_id:T}=i,E=Array.isArray(i.icons)?i.icons:[],{moreLink:D}=t,[O,k]=p(0),j=f(null),{items:P,icons:F,hasNextPage:I,isFetchingNextPage:L,fetchNextPage:R}=N({blockId:w||``,initialCursor:S||``,initialIcons:E,initialList:y,pageSize:16,enabled:o===`renderer`}),z=e===`waterfall`?6:4,B=P.length>=z?P.length-z:-1,V=f(null),H=f(!1),U=x||``,W=C(D,w||``,T||``),G=!!(S&&S.trim()),K=o===`renderer`&&(G||I===!0),q=c(()=>{W&&(W.startsWith(`http`)?window.location.href=W:s.push(W))},[W,s]);u(()=>{let t=j.current;if(!t||e!==`waterfall`)return;let n=()=>{let e=t.clientWidth||0;k(e>0?(e-12)/2:0)};n();let r=new ResizeObserver(n);return r.observe(t),()=>{r.disconnect()}},[e]),l(()=>{let e=V.current;if(!e||!K||P.length<16)return;let t=document.getElementById(`app-scroll-container`)||null,n=new IntersectionObserver(e=>{e[0]?.isIntersecting&&(L||H.current||(H.current=!0,R().finally(()=>{H.current=!1})))},{root:t,threshold:0});return n.observe(e),()=>{n.disconnect()}},[K,R,L,P.length,B]);let J=d(()=>e===`waterfall`?A(P,F,O):{left:[],right:[]},[O,P,F,e]);return P.length?h(n,{className:`w-full mt-[16px]`,children:[h(n,{className:`flex items-center justify-between px-[12px] mb-[8px]`,children:[m(r,{className:`text-text1 text-[18px] leading-[26px] font-bold line-clamp-1`,children:U}),m(r,{className:`text-text3 text-[12px] leading-[18px] ${W?`cursor-pointer`:``}`,onClick:q,children:`更多`})]}),e===`grid`&&m(n,{className:`w-full flex flex-wrap px-[12px]`,children:P.map((e,t)=>{let n=F[t];return m(`div`,{ref:t===B?V:void 0,className:`w-1/2 px-[6px]`,children:m(b,{item:e,icon:n,index:t,widthStyle:{width:`100%`}})},M(e,t))})}),e===`waterfall`&&h(n,{ref:j,className:`w-full px-[12px] flex gap-[12px]`,children:[m(n,{className:`flex-1 min-w-0 flex flex-col`,children:J.left.map(e=>m(`div`,{ref:e.index===B?V:void 0,children:m(b,{item:e.item,icon:e.icon,index:e.index,widthStyle:{width:`100%`}})},M(e.item,e.index)))}),m(n,{className:`flex-1 min-w-0 flex flex-col`,children:J.right.map(e=>m(`div`,{ref:e.index===B?V:void 0,children:m(b,{item:e.item,icon:e.icon,index:e.index,widthStyle:{width:`100%`}})},M(e.item,e.index)))})]})]}):null}function b({item:e,icon:t,index:i,widthStyle:a}){let c=w(e),l=e.name||``,u=E(e.static?.browse_cnt??0),d=T(e),f=k(e,t,i);return m(s,{url:c,text:l,className:`w-full`,style:a,topRightChild:f?m(x,{url:f}):void 0,bottomLeftChild:h(n,{className:`h-[20px] leading-[20px] text-[#fff] text-[12px] px-[4px] rounded-[4px] bg-[#333] ml-[4px] flex items-center`,children:[m(o,{className:`w-[16px] h-[auto] text-[#fff] mr-[4px]`}),u]}),textChild:h(n,{className:`mt-[4px]`,children:[m(r,{as:`h3`,className:`text-text1 text-[14px] leading-[20px] line-clamp-1`,children:l}),d&&m(r,{className:`text-text3 text-[12px] leading-[18px]`,children:d})]}),linkPath:S(e)})}function x({url:e}){return m(n,{className:`relative w-[40px] h-[20px] mr-[6px] mt-[6px]`,children:m(t,{src:e,alt:`corner`,fill:!0,objectFit:`contain`})})}function S(e){let t=encodeURIComponent(e.name||``);return`/video/${e.id||``}/${t}/episode/1`}function C(e,t,n){if(e)return e;if(!t)return``;let r=new URLSearchParams({blockId:t});return n&&r.set(`channelId`,n),`/featured?${r.toString()}`}function w(e){return e.img_y||e.img_x||``}function T(e){if((e.type??0)===2){let t=Number(e.episode_cnt||e.links?.length||0);return t>0?`全${t}集`:``}return O(Number(e.duration||0))}function E(e){return!Number.isFinite(e)||e<=0?`0`:e>=1e6?`${D(e/1e6)}M`:e>=1e3?`${D(e/1e3)}k`:Math.floor(e).toString()}function D(e){let t=e.toFixed(1);return t.endsWith(`.0`)?t.slice(0,-2):t}function O(e){if(!Number.isFinite(e)||e<=0)return``;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return n>0?`${a(n)}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}function k(e,t,n){let r=e;return r.corner_icon_url||r.corner_icon||r.icon_url||t?.material_url||``}function A(e,t,n){let r=[],i=[],a=0,o=0;return e.forEach((e,s)=>{let c=t[s],l=j(n,e);a<=o?(r.push({item:e,icon:c,index:s}),a+=l):(i.push({item:e,icon:c,index:s}),o+=l)}),{left:r,right:i}}function j(e,t){if(!e)return 0;let n=e*1.3461538461538463,r=T(t)?18:0;return n+20+r+6+16}function M(e,t){return e.id?`home-recommend-${e.id}`:`home-recommend-${t}`}function N({blockId:t,initialList:n,initialCursor:r,initialIcons:a,pageSize:o,enabled:s}){let m=n.length>0,h=f(n),g=f(a),[_,v]=p(!1);l(()=>{h.current=n,g.current=a},[a,n]);let y=d(()=>{if(!m)return;let e=r&&r.trim()?r:void 0;return{pages:[{data:{block:{data:{videos:n,icons:a,cursor:r||``}}}}],pageParams:[e]}},[m,r,a,n]),{data:b,fetchNextPage:x,hasNextPage:S,isFetchingNextPage:C}=i({key:[`home-recommend`,t],queryFn:n=>e({block_id:t,cursor:n||void 0,page_size:o}),getNextPageParam:e=>{let t=e.data?.block?.data?.cursor;return t&&t.trim()?t:void 0},options:{enabled:s&&!!t,initialData:y,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1},initialPageParam:m&&r&&r.trim()?r:void 0});u(()=>{v(!0)},[]);let w=d(()=>{if(!_)return{items:m?[...h.current]:[],icons:m?[...g.current]:[]};let e=b?.pages||[],t=[],n=[],r=m?1:0;m&&(t.push(...h.current),n.push(...g.current));for(let i=r;i<e.length;i++){let r=e[i].data?.block?.data,a=r?.videos||[],o=r?.icons||[];t.push(...a),n.push(...o)}return{items:t,icons:n}},[m,_,b?.pages]),T=c(async()=>{await x()},[x]);return{items:w.items,icons:w.icons,hasNextPage:S,isFetchingNextPage:C,fetchNextPage:T}}export{y as default};
|
|
@@ -2,30 +2,6 @@
|
|
|
2
2
|
import { defaultProps } from "../basics/fullscreen-feed/defaults/default-props.mjs";
|
|
3
3
|
import { FullscreenFeedClient } from "../basics/fullscreen-feed/runtime/client.mjs";
|
|
4
4
|
import { schema } from "../basics/fullscreen-feed/schema/index.mjs";
|
|
5
|
-
import { MarqueeInspectorProps, MarqueeProps, marqueeInspectorDefaultProps, marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
|
|
6
|
-
import { MarqueeClient } from "./marquee/client.mjs";
|
|
7
|
-
import { MarqueeServer } from "./marquee/server.mjs";
|
|
8
|
-
import { marqueeMaterial } from "./marquee/material.mjs";
|
|
9
|
-
import { SearchHistoryInspectorProps, SearchHistoryProps, searchHistoryInspectorDefaultProps, searchHistoryInspectorPropsSchema } from "./search-history/schema.mjs";
|
|
10
|
-
import { SearchHistoryClient } from "./search-history/client.mjs";
|
|
11
|
-
import { SearchHistoryServer } from "./search-history/server.mjs";
|
|
12
|
-
import { searchHistoryMaterial } from "./search-history/material.mjs";
|
|
13
|
-
import { SearchInputClient } from "./search-input/client.mjs";
|
|
14
|
-
import { SearchInputInspectorProps, SearchInputProps, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema } from "./search-input/schema.mjs";
|
|
15
|
-
import { SearchInputServer } from "./search-input/server.mjs";
|
|
16
|
-
import { searchInputMaterial } from "./search-input/material.mjs";
|
|
17
|
-
import { TabBarInspectorProps, TabBarProps, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema } from "./tab-bar/schema.mjs";
|
|
18
|
-
import { TabBarClient } from "./tab-bar/client.mjs";
|
|
19
|
-
import { TabBarServer } from "./tab-bar/server.mjs";
|
|
20
|
-
import { tabBarMaterial } from "./tab-bar/material.mjs";
|
|
21
|
-
import { TextRecommendClient } from "./text-recommend/client.mjs";
|
|
22
|
-
import { TextRecommendInspectorProps, TextRecommendProps, textRecommendInspectorDefaultProps, textRecommendInspectorPropsSchema } from "./text-recommend/schema.mjs";
|
|
23
|
-
import { TextRecommendServer } from "./text-recommend/server.mjs";
|
|
24
|
-
import { textRecommendMaterial } from "./text-recommend/material.mjs";
|
|
25
|
-
import { VideoHorizontalListInspectorProps, VideoHorizontalListProps, videoHorizontalListInspectorDefaultProps, videoHorizontalListInspectorPropsSchema } from "./video-horizontal-list/schema.mjs";
|
|
26
|
-
import { VideoHorizontalListClient } from "./video-horizontal-list/client.mjs";
|
|
27
|
-
import { VideoHorizontalListServer } from "./video-horizontal-list/server.mjs";
|
|
28
|
-
import { videoHorizontalListMaterial } from "./video-horizontal-list/material.mjs";
|
|
29
5
|
import { defaultProps as defaultProps$1 } from "./banner/variants/basic-banner/defaults/default-props.mjs";
|
|
30
6
|
import { BasicBannerClient } from "./banner/variants/basic-banner/runtime/client.mjs";
|
|
31
7
|
import { schema as schema$1 } from "./banner/variants/basic-banner/schema/index.mjs";
|
|
@@ -53,6 +29,11 @@ import { defaultProps as defaultProps$7 } from "./feature-grid/variants/basic-fe
|
|
|
53
29
|
import { BasicFeatureGridClient } from "./feature-grid/variants/basic-feature-grid/runtime/client.mjs";
|
|
54
30
|
import { schema as schema$7 } from "./feature-grid/variants/basic-feature-grid/schema/index.mjs";
|
|
55
31
|
import "./feature-grid/index.mjs";
|
|
32
|
+
import { FloatingBallInspectorProps, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema } from "./floating-ball/schema.mjs";
|
|
33
|
+
import { FloatingBallClient, FloatingBallClientProps } from "./floating-ball/client.mjs";
|
|
34
|
+
import { FloatingBall } from "./floating-ball/server.mjs";
|
|
35
|
+
import { floatingBallMaterial } from "./floating-ball/material.mjs";
|
|
36
|
+
import "./floating-ball/index.mjs";
|
|
56
37
|
import { defaultProps as defaultProps$8 } from "./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";
|
|
57
38
|
import { FullscreenPostFeedClient } from "./fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs";
|
|
58
39
|
import { schema as schema$8 } from "./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";
|
|
@@ -73,6 +54,10 @@ import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInsp
|
|
|
73
54
|
import { HomeRecommendWaterfall } from "./home-recommend/variants/home-recommend-waterfall/server.mjs";
|
|
74
55
|
import { homeRecommendWaterfallMaterial } from "./home-recommend/variants/home-recommend-waterfall/material.mjs";
|
|
75
56
|
import "./home-recommend/index.mjs";
|
|
57
|
+
import { MarqueeInspectorProps, MarqueeProps, marqueeInspectorDefaultProps, marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
|
|
58
|
+
import { MarqueeClient } from "./marquee/client.mjs";
|
|
59
|
+
import { MarqueeServer } from "./marquee/server.mjs";
|
|
60
|
+
import { marqueeMaterial } from "./marquee/material.mjs";
|
|
76
61
|
import "./marquee/index.mjs";
|
|
77
62
|
import { defaultProps as defaultProps$12 } from "./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";
|
|
78
63
|
import { BasicNavBarClient } from "./nav-bar/variants/basic-nav-bar/runtime/client.mjs";
|
|
@@ -118,8 +103,28 @@ import { defaultProps as defaultProps$18 } from "./search-bar/variants/tag-searc
|
|
|
118
103
|
import { TagSearchBarClient } from "./search-bar/variants/tag-search-bar/runtime/client.mjs";
|
|
119
104
|
import { schema as schema$18 } from "./search-bar/variants/tag-search-bar/schema/index.mjs";
|
|
120
105
|
import "./search-bar/index.mjs";
|
|
106
|
+
import { SearchHistoryInspectorProps, SearchHistoryProps, searchHistoryInspectorDefaultProps, searchHistoryInspectorPropsSchema } from "./search-history/schema.mjs";
|
|
107
|
+
import { SearchHistoryClient } from "./search-history/client.mjs";
|
|
108
|
+
import { SearchHistoryServer } from "./search-history/server.mjs";
|
|
109
|
+
import { searchHistoryMaterial } from "./search-history/material.mjs";
|
|
121
110
|
import "./search-history/index.mjs";
|
|
111
|
+
import { SearchInputClient } from "./search-input/client.mjs";
|
|
112
|
+
import { SearchInputInspectorProps, SearchInputProps, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema } from "./search-input/schema.mjs";
|
|
113
|
+
import { SearchInputServer } from "./search-input/server.mjs";
|
|
114
|
+
import { searchInputMaterial } from "./search-input/material.mjs";
|
|
122
115
|
import "./search-input/index.mjs";
|
|
116
|
+
import { TabBarInspectorProps, TabBarProps, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema } from "./tab-bar/schema.mjs";
|
|
117
|
+
import { TabBarClient } from "./tab-bar/client.mjs";
|
|
118
|
+
import { TabBarServer } from "./tab-bar/server.mjs";
|
|
119
|
+
import { tabBarMaterial } from "./tab-bar/material.mjs";
|
|
123
120
|
import "./tab-bar/index.mjs";
|
|
121
|
+
import { TextRecommendClient } from "./text-recommend/client.mjs";
|
|
122
|
+
import { TextRecommendInspectorProps, TextRecommendProps, textRecommendInspectorDefaultProps, textRecommendInspectorPropsSchema } from "./text-recommend/schema.mjs";
|
|
123
|
+
import { TextRecommendServer } from "./text-recommend/server.mjs";
|
|
124
|
+
import { textRecommendMaterial } from "./text-recommend/material.mjs";
|
|
124
125
|
import "./text-recommend/index.mjs";
|
|
126
|
+
import { VideoHorizontalListInspectorProps, VideoHorizontalListProps, videoHorizontalListInspectorDefaultProps, videoHorizontalListInspectorPropsSchema } from "./video-horizontal-list/schema.mjs";
|
|
127
|
+
import { VideoHorizontalListClient } from "./video-horizontal-list/client.mjs";
|
|
128
|
+
import { VideoHorizontalListServer } from "./video-horizontal-list/server.mjs";
|
|
129
|
+
import { videoHorizontalListMaterial } from "./video-horizontal-list/material.mjs";
|
|
125
130
|
import "./video-horizontal-list/index.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{MarqueeClient as t}from"./marquee/client.mjs";import{marqueeInspectorDefaultProps as n,marqueeInspectorPropsSchema as r}from"./marquee/schema.mjs";import{MarqueeServer as i}from"./marquee/server.mjs";import{marqueeMaterial as a}from"./marquee/material.mjs";import{SearchHistoryClient as o}from"./search-history/client.mjs";import{searchHistoryInspectorDefaultProps as s,searchHistoryInspectorPropsSchema as c}from"./search-history/schema.mjs";import{SearchHistoryServer as l}from"./search-history/server.mjs";import{searchHistoryMaterial as u}from"./search-history/material.mjs";import{defaultProps as d}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as f}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import p from"./search-bar/variants/detail-search-bar/index.mjs";import{SearchInputClient as m}from"./search-input/client.mjs";import{searchInputInspectorDefaultProps as h,searchInputInspectorPropsSchema as g}from"./search-input/schema.mjs";import{SearchInputServer as _}from"./search-input/server.mjs";import{searchInputMaterial as v}from"./search-input/material.mjs";import{TabBarClient as y}from"./tab-bar/client.mjs";import{tabBarInspectorDefaultProps as b,tabBarInspectorPropsSchema as x}from"./tab-bar/schema.mjs";import{TabBarServer as S}from"./tab-bar/server.mjs";import{tabBarMaterial as C}from"./tab-bar/material.mjs";import{TextRecommendClient as w}from"./text-recommend/client.mjs";import{textRecommendInspectorDefaultProps as T,textRecommendInspectorPropsSchema as E}from"./text-recommend/schema.mjs";import{TextRecommendServer as D}from"./text-recommend/server.mjs";import{textRecommendMaterial as O}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as k}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorDefaultProps as A,videoHorizontalListInspectorPropsSchema as j}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as M}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as N}from"./video-horizontal-list/material.mjs";import{defaultProps as P}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as F}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as I,basicBannerInspectorPropsSchema as L}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as R}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as z}from"./banner/variants/basic-banner/material.mjs";import B from"./banner/variants/basic-banner/index.mjs";import{defaultProps as V}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as H}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import U from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as W}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as G}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import K from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as q}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as J}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import Y from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as X}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as Z}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import Q from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as $}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as ee}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import te from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as ne}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as re}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import ie from"./feature-grid/variants/basic-feature-grid/index.mjs";import{defaultProps as ae}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as oe}from"../basics/fullscreen-feed/schema/index.mjs";import se from"../basics/fullscreen-feed/index.mjs";import{defaultProps as ce}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as le}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import ue from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as de}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as fe}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import pe from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as me}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{schema as he}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as ge,homeRecommendGridInspectorPropsSchema as _e}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as ve}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as ye}from"./home-recommend/variants/home-recommend-grid/material.mjs";import be from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as xe}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Se}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Ce,homeRecommendWaterfallInspectorPropsSchema as we}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as Te}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Ee}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import De from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{defaultProps as Oe}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as ke}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import Ae from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as je}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as Me}from"./post-card/variants/basic-post-card/schema/index.mjs";import Ne from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Pe}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Fe,profileHeaderInspectorPropsSchema as Ie}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as Le,buildUserProfileHeaderPrefetch as Re}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ze}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Be,profileMainCollectTabOptions as Ve,profileMainHistoryTabOptions as He,profileMainLikeTabOptions as Ue,profileMainMineTabOptions as We,profileMainProfileTabOptions as Ge,profileMainTabOptions as Ke}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as qe}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as Je}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as Ye,profileMainInspectorPropsSchema as Xe}from"./profile/profile-main/schema.mjs";import{CollectTab as Ze}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Qe,buildCollectTabPrefetch as $e}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as et}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as tt,buildHistoryTabPrefetch as nt}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as rt}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as it,buildLikeTabPrefetch as at}from"./profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as ot}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as st,buildPublishTabPrefetch as ct}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as lt}from"./profile/profile-main/server.mjs";import{profileMainMaterial as ut}from"./profile/profile-main/material.mjs";import{defaultProps as dt}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as ft}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import pt from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as mt}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as ht}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import gt from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as _t}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as vt}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import yt from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as bt}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as xt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import St from"./search-bar/variants/tag-search-bar/index.mjs";var Ct=e({BasicBanner:()=>B,BasicBannerDefaultData:()=>P,BasicBannerMaterialComponent:()=>R,BasicBannerSchema:()=>F,BasicFeatureGrid:()=>ie,BasicFeatureGridDefaultData:()=>ne,BasicFeatureGridSchema:()=>re,BasicFullscreenFeed:()=>se,BasicFullscreenFeedDefaultData:()=>ae,BasicFullscreenFeedSchema:()=>oe,BasicNavBar:()=>Ae,BasicNavBarDefaultData:()=>Oe,BasicNavBarSchema:()=>ke,BasicPostCard:()=>Ne,BasicPostCardDefaultData:()=>je,BasicPostCardSchema:()=>Me,BasicRecommendedUsers:()=>pt,BasicRecommendedUsersDefaultData:()=>dt,BasicRecommendedUsersSchema:()=>ft,BasicSearchBar:()=>gt,BasicSearchBarDefaultData:()=>mt,BasicSearchBarSchema:()=>ht,CardGrid2x3:()=>U,CardGrid2x3DefaultData:()=>V,CardGrid2x3Infinite:()=>K,CardGrid2x3InfiniteDefaultData:()=>W,CardGrid2x3InfiniteSchema:()=>G,CardGrid2x3Schema:()=>H,CardGrid2x4:()=>Y,CardGrid2x4DefaultData:()=>q,CardGrid2x4Schema:()=>J,CardGrid3x3:()=>Q,CardGrid3x3DefaultData:()=>X,CardGrid3x3Infinite:()=>te,CardGrid3x3InfiniteDefaultData:()=>$,CardGrid3x3InfiniteSchema:()=>ee,CardGrid3x3Schema:()=>Z,CollectTab:()=>Ze,CollectTabServer:()=>Qe,DetailSearchBar:()=>p,DetailSearchBarDefaultData:()=>d,DetailSearchBarSchema:()=>f,FilterSearchBar:()=>yt,FilterSearchBarDefaultData:()=>_t,FilterSearchBarSchema:()=>vt,FullscreenFeedClient:()=>ue,FullscreenPostFeedDefaultData:()=>ce,FullscreenPostFeedSchema:()=>le,FullscreenVideoClient:()=>pe,FullscreenVideoFeedDefaultData:()=>de,FullscreenVideoFeedSchema:()=>fe,HistoryTab:()=>et,HistoryTabServer:()=>tt,HomeRecommendGrid:()=>be,HomeRecommendGridDefaultData:()=>me,HomeRecommendGridMaterialComponent:()=>ve,HomeRecommendGridSchema:()=>he,HomeRecommendWaterfall:()=>De,HomeRecommendWaterfallDefaultData:()=>xe,HomeRecommendWaterfallMaterialComponent:()=>Te,HomeRecommendWaterfallSchema:()=>Se,LikeTab:()=>rt,LikeTabServer:()=>it,MarqueeClient:()=>t,MarqueeServer:()=>i,PublishTab:()=>ot,PublishTabServer:()=>st,SearchHistoryClient:()=>o,SearchHistoryServer:()=>l,SearchInputClient:()=>m,SearchInputServer:()=>_,TabBarClient:()=>y,TabBarServer:()=>S,TagSearchBar:()=>St,TagSearchBarDefaultData:()=>bt,TagSearchBarSchema:()=>xt,TextRecommendClient:()=>w,TextRecommendServer:()=>D,UserProfileHeader:()=>Le,UserProfileHeaderClient:()=>Pe,UserProfileMain:()=>lt,UserProfileMainClient:()=>Je,UserProfileMainShell:()=>qe,VideoHorizontalListClient:()=>k,VideoHorizontalListServer:()=>M,basicBannerInspectorDefaultProps:()=>I,basicBannerInspectorPropsSchema:()=>L,basicBannerMaterial:()=>z,buildCollectTabPrefetch:()=>$e,buildHistoryTabPrefetch:()=>nt,buildLikeTabPrefetch:()=>at,buildPublishTabPrefetch:()=>ct,buildUserProfileHeaderPrefetch:()=>Re,homeRecommendGridInspectorDefaultProps:()=>ge,homeRecommendGridInspectorPropsSchema:()=>_e,homeRecommendGridMaterial:()=>ye,homeRecommendWaterfallInspectorDefaultProps:()=>Ce,homeRecommendWaterfallInspectorPropsSchema:()=>we,homeRecommendWaterfallMaterial:()=>Ee,marqueeInspectorDefaultProps:()=>n,marqueeInspectorPropsSchema:()=>r,marqueeMaterial:()=>a,profileHeaderInspectorDefaultProps:()=>Fe,profileHeaderInspectorPropsSchema:()=>Ie,profileHeaderMaterial:()=>ze,profileMainCollectCollectionTabOptions:()=>Be,profileMainCollectTabOptions:()=>Ve,profileMainHistoryTabOptions:()=>He,profileMainInspectorDefaultProps:()=>Ye,profileMainInspectorPropsSchema:()=>Xe,profileMainLikeTabOptions:()=>Ue,profileMainMaterial:()=>ut,profileMainMineTabOptions:()=>We,profileMainProfileTabOptions:()=>Ge,profileMainTabOptions:()=>Ke,searchHistoryInspectorDefaultProps:()=>s,searchHistoryInspectorPropsSchema:()=>c,searchHistoryMaterial:()=>u,searchInputInspectorDefaultProps:()=>h,searchInputInspectorPropsSchema:()=>g,searchInputMaterial:()=>v,tabBarInspectorDefaultProps:()=>b,tabBarInspectorPropsSchema:()=>x,tabBarMaterial:()=>C,textRecommendInspectorDefaultProps:()=>T,textRecommendInspectorPropsSchema:()=>E,textRecommendMaterial:()=>O,videoHorizontalListInspectorDefaultProps:()=>A,videoHorizontalListInspectorPropsSchema:()=>j,videoHorizontalListMaterial:()=>N});export{Ct 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}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};
|
|
@@ -0,0 +1,2 @@
|
|
|
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};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { BaseComponentProps } from "../../utils/types/component.mjs";
|
|
3
|
+
import "../../utils/index.mjs";
|
|
4
|
+
import { LargeGridData } from "./types.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/large-feature-grid/client.d.ts
|
|
6
|
-
type LargeFeatureGridClientProps = LargeFeatureGridInspectorProps;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* 大图推荐客户端组件。
|
|
9
10
|
*/
|
|
10
|
-
declare function LargeFeatureGridClient(
|
|
11
|
+
declare function LargeFeatureGridClient({
|
|
12
|
+
data
|
|
13
|
+
}: BaseComponentProps<LargeGridData[]>): react_jsx_runtime0.JSX.Element | null;
|
|
11
14
|
//#endregion
|
|
12
|
-
export { LargeFeatureGridClient
|
|
15
|
+
export { LargeFeatureGridClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
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};
|
|
@@ -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: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};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { BaseComponentProps } from "../../utils/types/component.mjs";
|
|
3
|
+
import "../../utils/index.mjs";
|
|
4
|
+
import { LargeGridData } from "./types.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/large-feature-grid/server.d.ts
|
|
6
8
|
/**
|
|
7
9
|
* 大图推荐服务端组件,直接渲染客户端组件。
|
|
8
10
|
*/
|
|
9
|
-
declare function LargeFeatureGrid(props:
|
|
11
|
+
declare function LargeFeatureGrid(props: BaseComponentProps<LargeGridData[]>): react_jsx_runtime0.JSX.Element;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { LargeFeatureGrid };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
//#region components/biz/business/large-feature-grid/types.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* LargeFeatureGrid 组件类型定义
|
|
5
|
+
*/
|
|
6
|
+
interface LargeGridItem {
|
|
7
|
+
/** 内容ID */
|
|
8
|
+
id: string;
|
|
9
|
+
/** 封面图 URL */
|
|
10
|
+
cover: string;
|
|
11
|
+
/** 自定义角标文字 */
|
|
12
|
+
tag?: string;
|
|
13
|
+
/** 角标枚举 */
|
|
14
|
+
superscript?: 0 | 1 | 2;
|
|
15
|
+
/** 播放量 */
|
|
16
|
+
playCount?: string | number;
|
|
17
|
+
/** 视频时长或剧集数 */
|
|
18
|
+
duration?: string | number;
|
|
19
|
+
/** 内容标题 */
|
|
20
|
+
title: string;
|
|
21
|
+
/** 内容描述 */
|
|
22
|
+
desc?: string;
|
|
23
|
+
}
|
|
24
|
+
interface LargeGridData {
|
|
25
|
+
/** 推荐位名称 */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** 更多链接地址 */
|
|
28
|
+
moreUrl?: string;
|
|
29
|
+
/** 卡片内容 */
|
|
30
|
+
items?: LargeGridItem;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { LargeGridData };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import e
|
|
2
|
+
"use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../../assets/icons/clear.mjs";import i from"../../../../assets/icons/right_arrow.mjs";import a from"../../../../assets/images/marquee.mjs";import{useEffect as o,useMemo as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useRouter as d}from"next/navigation";function f({contents:f,showClose:p,startTime:m,endTime:h,displayStrategy:g}){let _=d(),[v,y]=c(!0),[b,x]=c(0),[S,C]=c(!1);o(()=>{C(!0)},[]);let w=s(()=>{if(!m&&!h)return!0;let e=Date.now(),t=m?new Date(m).getTime():0,n=h?new Date(h).getTime():2**53-1;return e>=t&&e<=n},[m,h]);if(o(()=>{if(!S)return;let e=`marquee_closed_${g}`,t=localStorage.getItem(e);t&&(g===`once`||g===`daily`&&new Date(Number(t)).toLocaleDateString()===new Date().toLocaleDateString())&&y(!1)},[S,g]),o(()=>{if(!f||f.length<=1)return;let e=setInterval(()=>{x(e=>(e+1)%f.length)},3e3);return()=>clearInterval(e)},[f]),!S||!v||!w||!f||f.length===0)return null;let T=f[b],E=T.enableClick&&!!T.link;return l(t,{className:`px-[12px] py-[8px] w-full bg-bg1`,children:u(t,{className:`flex items-center pl-[2px] pr-[12px] py-[2px] rounded-[8px] w-full cursor-pointer relative overflow-hidden`,style:{backgroundImage:`linear-gradient(154deg, rgba(255, 228, 133, 0.2) 9.14%, rgba(207, 129, 37, 0.05) 90.86%)`},onClick:()=>{E&&T.link&&_.push(T.link)},children:[l(t,{className:`relative shrink-0 w-[36px] h-[36px]`,children:l(e,{src:typeof a==`string`?a:a.src,alt:`notice`,fill:!0,className:`object-cover`,unoptimized:!0})}),l(t,{className:`flex-1 overflow-hidden relative h-[22px]`,children:l(t,{className:`absolute inset-0 flex items-center transition-transform duration-500 ease-in-out`,style:{transform:`translateY(0)`},children:l(n,{className:`text-[14px] text-[#f59e0b] leading-[22px] truncate w-full`,children:T.text})})}),u(t,{className:`flex items-center gap-[12px] shrink-0 ml-[4px]`,children:[E&&l(i,{className:`w-[16px] h-[16px] text-[#f59e0b]`}),p&&l(t,{className:`opacity-30 hover:opacity-100 transition-opacity p-1`,onClick:e=>{e.stopPropagation(),y(!1);let t=`marquee_closed_${g}`;localStorage.setItem(t,Date.now().toString())},children:l(r,{className:`w-[12px] h-[12px] text-[#999]`})})]})]})})}export{f as MarqueeClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import r from"../../../../../../ui/link.mjs";import{useSticky as i}from"../../../../../../../hooks/use-sticky.mjs";import a,{loadHiddenChannelIdsFromStorage as o}from"./channel-filter-dialog.mjs";import{urlPrefix as s}from"../../../../../../../constants/url-prefix.mjs";import c from"../../../../../../../assets/icons/search.mjs";import{defaultProps as l}from"../defaults/default-props.mjs";import u from"../../../../../../../assets/icons/filter_dark.mjs";import{clsx as d}from"clsx";import{useEffect as f,useMemo as p,useState as m}from"react";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";const v={},y={list:[],currentChannelId:null,isFullfeed:!1};function b(e,t){return t===0?`/`:`${s.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function x({props:s=v,styles:x,events:S,data:C=y}){let{searchUrl:w,searchIconSize:T,filterIconSize:E,channelItemHeight:D,channelItemFontSize:O,channelItemActiveFontSize:k,channelItemGap:A}={...l,...s},[j,M]=m(!1),{isSticky:N,ref:P}=i(),[F,I]=m(C.list),L=p(()=>C.currentChannelId??null,[C.currentChannelId]);f(()=>{let e=o();I(C.list.filter(t=>!e.includes(t.id)))},[C.list]);let R=e=>{I(e)},z=(e,t)=>{S?.onChannelChange?.(e,t)},B=()=>{M(!0),S?.onFilterClick?.()},V=()=>{S?.onSearchClick?.()},H=x?e(x,{}):void 0,U=N?E+T+24:E+16;return _(h,{children:[N&&g(n,{className:`w-full`,style:{height:t(44)}}),g(n,{as:`nav`,ref:P,className:d(`w-full transition-all duration-200`,!C.isFullfeed&&N&&`fixed top-0 left-0 right-0 z-50`,C.isFullfeed&&`fixed top-[54px] left-0 z-10 w-full`,!C.isFullfeed&&`bg-bg1`),style:H,children:_(n,{className:`relative flex items-center h-[44px]`,children:[g(n,{className:`flex-1 overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitOverflowScrolling:`touch`},children:g(n,{className:`flex items-center h-full`,style:{paddingLeft:t(16),paddingRight:t(U+16),gap:t(A)},children:F.map((e,n)=>{let i=L===e.id||L===null&&n===0;return g(r,{href:b(e,n),className:d(`whitespace-nowrap cursor-pointer transition-all duration-200`,`flex items-center justify-center`),style:{height:t(D),fontSize:t(i?k:O),fontWeight:i?`bold`:`normal`,color:i?`var(--color-theme5)`:`var(--color-text2)`},onClick:()=>z(e,n),children:e.cn_name},e.id||`channel-${n}`)})})}),_(n,{className:`flex items-center gap-[12px] px-[8px]`,children:[g(n,{className:`flex items-center justify-center cursor-pointer`,style:{width:t(E+8),height:t(E+8)},onClick:B,children:g(u,{width:t(E),height:t(E),style:{color:`var(--color-text1)`}})}),N&&g(r,{href:w,onClick:V,children:g(n,{className:`flex items-center justify-center cursor-pointer`,style:{width:t(T+8),height:t(T+8)},children:g(c,{width:t(T),height:t(T),style:{color:`var(--color-text1)`}})})})]})]})}),g(a,{open:j,onOpenChange:M,channels:C.list,currentChannelId:L,onChannelClick:z,onChannelsChange:R})]})}export{x as default};
|
|
@@ -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{
|
|
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};
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
2
|
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
|
-
import "../../../../../utils/schema/index.mjs";
|
|
5
3
|
import { UserProfileHeaderClient } from "./client.mjs";
|
|
6
4
|
import { UserProfileHeader } from "./server.mjs";
|
|
7
5
|
import * as zod from "zod";
|
|
8
6
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
7
|
|
|
10
8
|
//#region components/biz/business/profile/profile-header/material.d.ts
|
|
11
|
-
declare const profileHeaderMaterial: DefineMaterialOption<typeof UserProfileHeader, typeof UserProfileHeaderClient, zod.ZodObject<{
|
|
12
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
13
|
-
showBackButton: zod.ZodOptional<zod.ZodBoolean> & SchemaHasDefaultValue;
|
|
14
|
-
requireLogin: zod.ZodOptional<zod.ZodBoolean> & SchemaHasDefaultValue;
|
|
15
|
-
}, zod_v4_core0.$strip>, "profile-header">;
|
|
9
|
+
declare const profileHeaderMaterial: DefineMaterialOption<typeof UserProfileHeader, typeof UserProfileHeaderClient, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-header">;
|
|
16
10
|
//#endregion
|
|
17
11
|
export { profileHeaderMaterial };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../../utils/schema/index.mjs";
|
|
4
|
-
import
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
6
|
|
|
6
7
|
//#region components/biz/business/profile/profile-header/schema.d.ts
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* 用户资料头部物料暂不对外开放 inspector 配置。
|
|
9
10
|
*/
|
|
10
|
-
declare const profileHeaderInspectorPropsSchema:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
requireLogin: z$1.ZodOptional<z$1.ZodBoolean> & SchemaHasDefaultValue;
|
|
14
|
-
}, z$1.core.$strip>;
|
|
15
|
-
declare const profileHeaderInspectorDefaultProps: {
|
|
16
|
-
showBackButton: boolean;
|
|
17
|
-
requireLogin: boolean;
|
|
18
|
-
};
|
|
19
|
-
type ProfileHeaderInspectorProps = z$1.infer<typeof profileHeaderInspectorPropsSchema>;
|
|
11
|
+
declare const profileHeaderInspectorPropsSchema: zod.ZodObject<{}, zod_v4_core0.$strip>;
|
|
12
|
+
declare const profileHeaderInspectorDefaultProps: {};
|
|
13
|
+
type ProfileHeaderInspectorProps = InferSchemaProps<typeof profileHeaderInspectorPropsSchema>;
|
|
20
14
|
interface UserProfileHeaderAuthConfig {
|
|
21
15
|
headers?: Record<string, string>;
|
|
22
16
|
}
|
|
23
|
-
interface UserProfileHeaderClientProps
|
|
17
|
+
interface UserProfileHeaderClientProps {
|
|
18
|
+
/** 用户 ID。 */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** 是否显示返回按钮。 */
|
|
21
|
+
showBackButton?: boolean;
|
|
22
|
+
/** 是否要求登录。 */
|
|
23
|
+
requireLogin?: boolean;
|
|
24
24
|
/** 服务端透传的登录 Token。 */
|
|
25
25
|
cookieToken?: string;
|
|
26
26
|
/** 服务端透传的当前用户 ID。 */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";const n=e({}),r=t(n);export{r as profileHeaderInspectorDefaultProps,n as profileHeaderInspectorPropsSchema};
|