@funhub/platform 0.1.105 → 0.1.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/biz/business/detail/shared/registry.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-recommend/material.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-recommend/schema.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +2 -2
- package/dist/components/biz/business/marquee/material.d.mts +1 -1
- package/dist/components/biz/business/marquee/schema.d.mts +1 -1
- package/dist/components/biz/business/search-history/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/package.json +1 -1
|
@@ -58,13 +58,13 @@ declare const videoDetailMaterials: MaterialMap<readonly [DefineMaterialOption<t
|
|
|
58
58
|
items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
59
59
|
contentId: z$1.ZodString;
|
|
60
60
|
coverMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
61
|
-
content: "content";
|
|
62
61
|
upload: "upload";
|
|
62
|
+
content: "content";
|
|
63
63
|
}>>;
|
|
64
64
|
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
65
65
|
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
66
|
-
content: "content";
|
|
67
66
|
custom: "custom";
|
|
67
|
+
content: "content";
|
|
68
68
|
}>>;
|
|
69
69
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
70
70
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -21,13 +21,13 @@ declare const videoDetailRecommendMaterial: DefineMaterialOption<typeof VideoDet
|
|
|
21
21
|
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
22
22
|
contentId: zod.ZodString;
|
|
23
23
|
coverMode: zod.ZodOptional<zod.ZodEnum<{
|
|
24
|
-
content: "content";
|
|
25
24
|
upload: "upload";
|
|
25
|
+
content: "content";
|
|
26
26
|
}>>;
|
|
27
27
|
coverUrl: zod.ZodOptional<zod.ZodString>;
|
|
28
28
|
titleMode: zod.ZodOptional<zod.ZodEnum<{
|
|
29
|
-
content: "content";
|
|
30
29
|
custom: "custom";
|
|
30
|
+
content: "content";
|
|
31
31
|
}>>;
|
|
32
32
|
title: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
description: zod.ZodOptional<zod.ZodString>;
|
|
@@ -17,13 +17,13 @@ declare const videoDetailRecommendInspectorPropsSchema: z$1.ZodObject<{
|
|
|
17
17
|
items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
18
18
|
contentId: z$1.ZodString;
|
|
19
19
|
coverMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
20
|
-
content: "content";
|
|
21
20
|
upload: "upload";
|
|
21
|
+
content: "content";
|
|
22
22
|
}>>;
|
|
23
23
|
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
24
24
|
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
25
|
-
content: "content";
|
|
26
25
|
custom: "custom";
|
|
26
|
+
content: "content";
|
|
27
27
|
}>>;
|
|
28
28
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
29
29
|
description: z$1.ZodOptional<z$1.ZodString>;
|
package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts
CHANGED
|
@@ -23,14 +23,14 @@ declare const homeRecommendGridInspectorPropsSchema: z$1.ZodObject<{
|
|
|
23
23
|
items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
24
24
|
contentId: z$1.ZodString;
|
|
25
25
|
coverMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
26
|
-
content: "content";
|
|
27
26
|
upload: "upload";
|
|
27
|
+
content: "content";
|
|
28
28
|
}>>;
|
|
29
29
|
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
30
30
|
badge_url: z$1.ZodOptional<z$1.ZodString>;
|
|
31
31
|
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
32
|
-
content: "content";
|
|
33
32
|
custom: "custom";
|
|
33
|
+
content: "content";
|
|
34
34
|
}>>;
|
|
35
35
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
36
36
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -23,14 +23,14 @@ declare const homeRecommendGridMaterial: DefineMaterialOption<typeof HomeRecomme
|
|
|
23
23
|
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
24
24
|
contentId: zod.ZodString;
|
|
25
25
|
coverMode: zod.ZodOptional<zod.ZodEnum<{
|
|
26
|
-
content: "content";
|
|
27
26
|
upload: "upload";
|
|
27
|
+
content: "content";
|
|
28
28
|
}>>;
|
|
29
29
|
coverUrl: zod.ZodOptional<zod.ZodString>;
|
|
30
30
|
badge_url: zod.ZodOptional<zod.ZodString>;
|
|
31
31
|
titleMode: zod.ZodOptional<zod.ZodEnum<{
|
|
32
|
-
content: "content";
|
|
33
32
|
custom: "custom";
|
|
33
|
+
content: "content";
|
|
34
34
|
}>>;
|
|
35
35
|
title: zod.ZodOptional<zod.ZodString>;
|
|
36
36
|
description: zod.ZodOptional<zod.ZodString>;
|
package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts
CHANGED
|
@@ -21,14 +21,14 @@ declare const homeRecommendWaterfallInspectorPropsSchema: z$1.ZodObject<{
|
|
|
21
21
|
items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
22
22
|
contentId: z$1.ZodString;
|
|
23
23
|
coverMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
24
|
-
content: "content";
|
|
25
24
|
upload: "upload";
|
|
25
|
+
content: "content";
|
|
26
26
|
}>>;
|
|
27
27
|
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
28
28
|
badge_url: z$1.ZodOptional<z$1.ZodString>;
|
|
29
29
|
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
30
|
-
content: "content";
|
|
31
30
|
custom: "custom";
|
|
31
|
+
content: "content";
|
|
32
32
|
}>>;
|
|
33
33
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
34
34
|
showPlayCount: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -21,14 +21,14 @@ declare const homeRecommendWaterfallMaterial: DefineMaterialOption<typeof HomeRe
|
|
|
21
21
|
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
22
22
|
contentId: zod.ZodString;
|
|
23
23
|
coverMode: zod.ZodOptional<zod.ZodEnum<{
|
|
24
|
-
content: "content";
|
|
25
24
|
upload: "upload";
|
|
25
|
+
content: "content";
|
|
26
26
|
}>>;
|
|
27
27
|
coverUrl: zod.ZodOptional<zod.ZodString>;
|
|
28
28
|
badge_url: zod.ZodOptional<zod.ZodString>;
|
|
29
29
|
titleMode: zod.ZodOptional<zod.ZodEnum<{
|
|
30
|
-
content: "content";
|
|
31
30
|
custom: "custom";
|
|
31
|
+
content: "content";
|
|
32
32
|
}>>;
|
|
33
33
|
title: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
showPlayCount: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -19,7 +19,7 @@ declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, typeof
|
|
|
19
19
|
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
20
20
|
click: zod.ZodObject<{
|
|
21
21
|
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
22
|
-
readonly redirectType: zod.ZodOptional<zod.ZodType<"
|
|
22
|
+
readonly redirectType: zod.ZodOptional<zod.ZodType<"link" | "content" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"link" | "content" | "content_list", unknown>>> & SchemaHasDefaultValue;
|
|
23
23
|
readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
24
24
|
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
25
25
|
close: zod.ZodObject<{
|
|
@@ -23,7 +23,7 @@ declare const marqueeInspectorPropsSchema: z.ZodObject<{
|
|
|
23
23
|
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
24
24
|
click: z.ZodObject<{
|
|
25
25
|
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
26
|
-
readonly redirectType: z.ZodOptional<z.ZodType<"
|
|
26
|
+
readonly redirectType: z.ZodOptional<z.ZodType<"link" | "content" | "content_list", unknown, z.core.$ZodTypeInternals<"link" | "content" | "content_list", unknown>>> & SchemaHasDefaultValue;
|
|
27
27
|
readonly link: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
28
28
|
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
29
29
|
close: z.ZodObject<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../../ui/button.mjs";import t from"../../../../utils/event-bus.mjs";import{Box as n}from"../../../ui/box.mjs";import{Text as r}from"../../../ui/text.mjs";import{eventKey as i}from"../../../../constants/event-key.mjs";import{DeleteConfirmDialog as a}from"../../../common/delete-confirm-dialog/delete-confirm-dialog.mjs";import{useCallback as o,useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{usePathname as f,useRouter as p,useSearchParams as m}from"next/navigation";function h(e,t){let n=Array.from(e);return n.length<=t?e:`${n.slice(0,t).join(``)}...`}function g(g){let{title:_,rows:v=1,clearText:y,confirmDescription:b,storageKey:x=`guest`,onHistoryClick:S,mode:C=`renderer`}=g,w=_??`搜索历史`,T=y??`清空`,E=b??`确定要清除所有搜索历史吗?`,D=c(()=>[`搜索历史1`,`搜索历史2`,`搜索历史3`],[]),[O,k]=l([]),[A,j]=l(!1),M=p(),N=f(),P=m(),F=`search_history_${x}`,I=o(()=>{let e=[];try{let t=localStorage.getItem(F);if(t)try{let n=JSON.parse(t);e=Array.isArray(n)?n:[]}catch{e=[]}k(e)}catch(e){console.error(`Failed to parse search history`,e),k([])}},[F]);s(()=>(I(),t.on(i.SEARCH_HISTORY_UPDATE,I),()=>t.off(i.SEARCH_HISTORY_UPDATE,I)),[I]);let L=()=>{k([]),localStorage.removeItem(F),j(!1),t.emit(i.SEARCH_HISTORY_UPDATE)},R=c(()=>(O.length?O:C===`editor`?D:[]).slice(0,v*10),[O,C,D,v]);if(R.length===0)return null;let z=e=>{if(S){S(e);return}let t=new URLSearchParams(P.toString());t.set(`q`,e);let n=N.includes(`/search-result`)?N:`/search-result`;M.push(`${n}?${t.toString()}`)};return d(n,{className:`px-4 py-2`,children:[d(n,{className:`flex justify-between items-center mb-2`,children:[u(r,{className:`text-[16px] font-bold text-text1`,children:w}),u(e,{variant:`ghost`,size:`sm`,className:`text-text3 text-[12px] p-0 h-auto`,onClick:()=>j(!0),children:T})]}),u(n,{className:`flex flex-wrap gap-2 overflow-hidden`,style:{maxHeight
|
|
2
|
+
"use client";import{Button as e}from"../../../ui/button.mjs";import t from"../../../../utils/event-bus.mjs";import{Box as n}from"../../../ui/box.mjs";import{Text as r}from"../../../ui/text.mjs";import{eventKey as i}from"../../../../constants/event-key.mjs";import{DeleteConfirmDialog as a}from"../../../common/delete-confirm-dialog/delete-confirm-dialog.mjs";import{useCallback as o,useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{usePathname as f,useRouter as p,useSearchParams as m}from"next/navigation";function h(e,t){let n=Array.from(e);return n.length<=t?e:`${n.slice(0,t).join(``)}...`}function g(g){let{title:_,rows:v=1,clearText:y,confirmDescription:b,storageKey:x=`guest`,onHistoryClick:S,mode:C=`renderer`}=g,w=_??`搜索历史`,T=y??`清空`,E=b??`确定要清除所有搜索历史吗?`,D=c(()=>[`搜索历史1`,`搜索历史2`,`搜索历史3`],[]),[O,k]=l([]),[A,j]=l(!1),M=p(),N=f(),P=m(),F=`search_history_${x}`,I=o(()=>{let e=[];try{let t=localStorage.getItem(F);if(t)try{let n=JSON.parse(t);e=Array.isArray(n)?n:[]}catch{e=[]}k(e)}catch(e){console.error(`Failed to parse search history`,e),k([])}},[F]);s(()=>(I(),t.on(i.SEARCH_HISTORY_UPDATE,I),()=>t.off(i.SEARCH_HISTORY_UPDATE,I)),[I]);let L=()=>{k([]),localStorage.removeItem(F),j(!1),t.emit(i.SEARCH_HISTORY_UPDATE)},R=c(()=>(O.length?O:C===`editor`?D:[]).slice(0,v*10),[O,C,D,v]);if(R.length===0)return null;let z=e=>{if(S){S(e);return}let t=new URLSearchParams(P.toString());t.set(`q`,e);let n=N.includes(`/search-result`)?N:`/search-result`;M.push(`${n}?${t.toString()}`)};return d(n,{className:`px-4 py-2`,children:[d(n,{className:`flex justify-between items-center mb-2`,children:[u(r,{className:`text-[16px] font-bold text-text1`,children:w}),u(e,{variant:`ghost`,size:`sm`,className:`text-text3 text-[12px] p-0 h-auto`,onClick:()=>j(!0),children:T})]}),u(n,{className:`flex flex-wrap gap-2 overflow-hidden`,style:{maxHeight:`${v*30}px`},children:R.map((e,t)=>u(n,{className:`px-3 py-1 bg-bg2 rounded-full cursor-pointer`,onClick:()=>z(e),children:u(r,{className:`text-[14px] text-text2`,children:h(e,8)})},t))}),u(a,{open:A,onOpenChange:j,onConfirm:L,title:``,description:E})]})}export{g as SearchHistoryClient};
|
|
@@ -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?: "default" | "link" | "destructive" | "
|
|
9
|
+
variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
11
|
/** Badge 组件。 */
|
|
12
12
|
declare function Badge({
|
|
@@ -8,7 +8,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
8
8
|
//#region components/ui/button-group.d.ts
|
|
9
9
|
/** buttonGroupVariants 工具定义。 */
|
|
10
10
|
declare const buttonGroupVariants: (props?: ({
|
|
11
|
-
orientation?: "
|
|
11
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
13
|
/** ButtonGroupText 组件属性。 */
|
|
14
14
|
type ButtonGroupTextProps = useRender.ComponentProps<'div'>;
|
|
@@ -7,8 +7,8 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
7
7
|
//#region components/ui/button.d.ts
|
|
8
8
|
/** buttonVariants 工具定义。 */
|
|
9
9
|
declare const buttonVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "link" | "destructive" | "
|
|
11
|
-
size?: "default" | "
|
|
10
|
+
variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
11
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
13
|
/** Button 组件属性。 */
|
|
14
14
|
type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
|
|
@@ -51,7 +51,7 @@ declare function FieldGroup({
|
|
|
51
51
|
}: FieldGroupProps): react_jsx_runtime0.JSX.Element;
|
|
52
52
|
/** fieldVariants 工具定义。 */
|
|
53
53
|
declare const fieldVariants: (props?: ({
|
|
54
|
-
orientation?: "
|
|
54
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
55
55
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
56
56
|
/** Field 组件。 */
|
|
57
57
|
declare function Field({
|