@funhub/platform 0.1.134 → 0.1.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/biz.d.mts +12 -12
- package/dist/cli/init/create-client.mjs +2 -0
- package/dist/cli/init/create-sdk.mjs +2 -0
- package/dist/cli/init/shared/command.mjs +2 -0
- package/dist/cli/init/shared/constants.mjs +2 -0
- package/dist/cli/init/shared/create-project.mjs +3 -0
- package/dist/cli/init/shared/file.mjs +2 -0
- package/dist/cli/init/shared/package-manager.mjs +2 -0
- package/dist/cli/init/shared/prompts.mjs +2 -0
- package/dist/cli/init/shared/template.mjs +2 -0
- package/dist/cli.d.mts +2 -0
- package/dist/cli.mjs +4 -0
- package/dist/components/biz/business/banner/index.d.mts +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/index.d.mts +2 -2
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.d.mts +25 -3
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.d.mts +20 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.d.mts +2 -1
- package/dist/components/biz/business/banner-carousel/material.d.mts +23 -1
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/schema.d.mts +28 -0
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/server.d.mts +18 -0
- package/dist/components/biz/business/channel-list/client.d.mts +8 -0
- package/dist/components/biz/business/channel-list/material.d.mts +19 -1
- package/dist/components/biz/business/channel-list/material.mjs +1 -1
- package/dist/components/biz/business/channel-list/schema.d.mts +30 -0
- package/dist/components/biz/business/channel-list/schema.mjs +1 -1
- package/dist/components/biz/business/detail/shared/registry.d.mts +75 -2
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.d.mts +12 -2
- package/dist/components/biz/business/detail/video-detail-actions/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-actions/material.d.mts +13 -1
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/schema.d.mts +20 -1
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/server.d.mts +15 -2
- package/dist/components/biz/business/detail/video-detail-info/client.d.mts +14 -2
- package/dist/components/biz/business/detail/video-detail-info/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info/material.d.mts +16 -1
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info/schema.d.mts +22 -1
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info/server.d.mts +15 -2
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.d.mts +14 -2
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.d.mts +16 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.d.mts +22 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.d.mts +15 -2
- package/dist/components/biz/business/detail/video-detail-player/client.d.mts +13 -2
- package/dist/components/biz/business/detail/video-detail-player/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-player/material.d.mts +13 -1
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +22 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/server.d.mts +10 -2
- package/dist/components/biz/business/detail/video-detail-recommend/client.d.mts +22 -2
- package/dist/components/biz/business/detail/video-detail-recommend/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-recommend/material.d.mts +40 -1
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/schema.d.mts +42 -1
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/server.d.mts +10 -2
- package/dist/components/biz/business/floating-ball/index.d.mts +2 -2
- package/dist/components/biz/business/floating-ball/material.d.mts +16 -1
- package/dist/components/biz/business/floating-ball/material.mjs +1 -1
- package/dist/components/biz/business/floating-ball/schema.d.mts +16 -3
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/client.d.mts +13 -2
- package/dist/components/biz/business/header-search/header-avatar-icon/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-icon/material.d.mts +13 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.d.mts +18 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/server.d.mts +10 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +11 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +16 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +22 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.d.mts +10 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.d.mts +11 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +16 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +20 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.d.mts +10 -2
- package/dist/components/biz/business/header-search/header-logo-search/client.d.mts +13 -2
- package/dist/components/biz/business/header-search/header-logo-search/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +16 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +22 -1
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/server.d.mts +10 -2
- package/dist/components/biz/business/header-search/header-search/client.d.mts +13 -2
- package/dist/components/biz/business/header-search/header-search/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-search/material.d.mts +13 -1
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/schema.d.mts +18 -1
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/server.d.mts +10 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.d.mts +2 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +52 -3
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +43 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.d.mts +2 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +47 -3
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +40 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -1
- package/dist/components/biz/business/home-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/image-text-recommend/client.d.mts +2 -1
- package/dist/components/biz/business/image-text-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/image-text-recommend/material.d.mts +35 -1
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/schema.d.mts +31 -1
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +11 -11
- package/dist/components/biz/business/large-feature-grid/material.d.mts +9 -1
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/client.d.mts +2 -1
- package/dist/components/biz/business/marquee/index.d.mts +2 -2
- package/dist/components/biz/business/marquee/material.d.mts +34 -1
- package/dist/components/biz/business/marquee/material.mjs +1 -1
- package/dist/components/biz/business/marquee/schema.d.mts +30 -1
- package/dist/components/biz/business/marquee/schema.mjs +1 -1
- package/dist/components/biz/business/profile/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +31 -2
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +11 -3
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-main/material.d.mts +13 -1
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/schema.d.mts +11 -3
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.d.mts +2 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.d.mts +2 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +2 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.d.mts +2 -1
- package/dist/components/biz/business/search-history/client.d.mts +2 -1
- package/dist/components/biz/business/search-history/index.d.mts +2 -2
- package/dist/components/biz/business/search-history/material.d.mts +16 -1
- package/dist/components/biz/business/search-history/material.mjs +1 -1
- package/dist/components/biz/business/search-history/schema.d.mts +13 -1
- package/dist/components/biz/business/search-history/schema.mjs +1 -1
- package/dist/components/biz/business/search-input/index.d.mts +2 -2
- package/dist/components/biz/business/search-input/material.d.mts +13 -1
- package/dist/components/biz/business/search-input/material.mjs +1 -1
- package/dist/components/biz/business/search-input/schema.d.mts +11 -3
- package/dist/components/biz/business/search-input/schema.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/client.d.mts +12 -0
- package/dist/components/biz/business/shortcut-grid/material.d.mts +22 -1
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +26 -0
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/server.d.mts +11 -0
- package/dist/components/biz/business/tab-bar/index.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/material.d.mts +13 -1
- package/dist/components/biz/business/tab-bar/material.mjs +1 -1
- package/dist/components/biz/business/tab-bar/schema.d.mts +11 -3
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -1
- package/dist/components/biz/business/text-recommend/client.d.mts +2 -1
- package/dist/components/biz/business/text-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/text-recommend/material.d.mts +19 -1
- package/dist/components/biz/business/text-recommend/material.mjs +1 -1
- package/dist/components/biz/business/text-recommend/schema.d.mts +15 -1
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -1
- package/dist/components/biz/example/button/index.d.mts +2 -2
- package/dist/components/biz/example/button/material.d.mts +24 -1
- package/dist/components/biz/example/button/material.mjs +1 -1
- package/dist/components/biz/example/button/schema.d.mts +30 -3
- package/dist/components/biz/example/button/schema.mjs +1 -1
- package/dist/components/biz/renderer/renderer.d.mts +2 -1
- package/dist/components/biz/renderer/renderer.mjs +1 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +3 -3
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/components/ui/empty.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/components/ui/item.d.mts +1 -1
- package/dist/materials.d.mts +10 -10
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/material.d.mts +1 -1
- package/dist/utils/schema/schema.d.mts +35 -0
- package/dist/utils.d.mts +3 -3
- package/package.json +8 -3
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../../utils.mjs";
|
|
5
|
+
import { HomeRecommendGridClient } from "./client.mjs";
|
|
6
|
+
import { HomeRecommendGrid } from "./server.mjs";
|
|
7
|
+
import * as zod from "zod";
|
|
8
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
|
+
|
|
2
10
|
//#region components/biz/business/home-recommend/home-recommend-grid/material.d.ts
|
|
3
|
-
declare const homeRecommendGridMaterial:
|
|
11
|
+
declare const homeRecommendGridMaterial: DefineMaterialOption<typeof HomeRecommendGrid, typeof HomeRecommendGridClient, zod.ZodObject<{
|
|
12
|
+
rows: zod.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
+
columns: zod.ZodNumber & SchemaHasDefaultValue;
|
|
14
|
+
smartTagEnabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
15
|
+
title: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
showPlayCount: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
17
|
+
playCountDelta: zod.ZodNumber & SchemaHasDefaultValue;
|
|
18
|
+
showEpisode: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
19
|
+
enableInfinite: zod.ZodOptional<zod.ZodBoolean> & SchemaHasDefaultValue;
|
|
20
|
+
moreLink: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
21
|
+
smartTagIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
22
|
+
catId: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
23
|
+
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
24
|
+
contentId: zod.ZodString;
|
|
25
|
+
coverMode: zod.ZodOptional<zod.ZodEnum<{
|
|
26
|
+
content: "content";
|
|
27
|
+
upload: "upload";
|
|
28
|
+
}>>;
|
|
29
|
+
coverUrl: zod.ZodOptional<zod.ZodString>;
|
|
30
|
+
badge_url: zod.ZodOptional<zod.ZodString>;
|
|
31
|
+
titleMode: zod.ZodOptional<zod.ZodEnum<{
|
|
32
|
+
content: "content";
|
|
33
|
+
custom: "custom";
|
|
34
|
+
}>>;
|
|
35
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
36
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
37
|
+
showPlayCount: zod.ZodOptional<zod.ZodBoolean>;
|
|
38
|
+
playCountDelta: zod.ZodOptional<zod.ZodNumber>;
|
|
39
|
+
showEpisode: zod.ZodOptional<zod.ZodBoolean>;
|
|
40
|
+
}, zod_v4_core0.$strip>>>;
|
|
41
|
+
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
42
|
+
renderer: "renderer";
|
|
43
|
+
editor: "editor";
|
|
44
|
+
}>>;
|
|
45
|
+
}, zod_v4_core0.$strip>, "home-recommend-grid", "内容组件">;
|
|
4
46
|
//#endregion
|
|
5
47
|
export { homeRecommendGridMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import e from"./client.mjs";import{homeRecommendGridInspectorPropsSchema as
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import t from"./client.mjs";import{homeRecommendGridInspectorPropsSchema as n}from"./inspector-schema.mjs";import{HomeRecommendGrid as r}from"./server.mjs";const i=e({type:`home-recommend-grid`,name:`两列宫格`,icon:`/static/components-thumb/grid_two_column_single_row.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as homeRecommendGridMaterial};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
|
|
2
|
+
import { MaterialComponentMode } from "../../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../../utils.mjs";
|
|
2
4
|
import { HomeRecommendData } from "../types.mjs";
|
|
3
5
|
import { HomeRecommendWaterfallInspectorProps } from "./inspector-schema.mjs";
|
|
4
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
-
import { MaterialComponentMode } from "create-funhub/sdk";
|
|
6
7
|
|
|
7
8
|
//#region components/biz/business/home-recommend/home-recommend-waterfall/client.d.ts
|
|
8
9
|
interface HomeRecommendWaterfallClientProps extends Partial<Omit<HomeRecommendWaterfallInspectorProps, 'mode'>> {
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema } from "./inspector-schema.mjs";
|
|
3
3
|
import { HomeRecommendWaterfallClient, HomeRecommendWaterfallClientProps } from "./client.mjs";
|
|
4
4
|
import { schema } from "./schema.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { HomeRecommendWaterfall, HomeRecommendWaterfallProps } from "./server.mjs";
|
|
6
|
+
import { homeRecommendWaterfallMaterial } from "./material.mjs";
|
package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts
CHANGED
|
@@ -1,13 +1,57 @@
|
|
|
1
1
|
|
|
2
2
|
import "../../../utils/index.mjs";
|
|
3
|
-
import { InferSchemaProps } from "
|
|
3
|
+
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
4
|
+
import "../../../../../utils.mjs";
|
|
5
|
+
import z$1 from "zod";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.ts
|
|
6
8
|
/**
|
|
7
9
|
* HomeRecommendWaterfall 物料属性 schema 定义。
|
|
8
10
|
*/
|
|
9
|
-
declare const homeRecommendWaterfallInspectorPropsSchema:
|
|
10
|
-
|
|
11
|
+
declare const homeRecommendWaterfallInspectorPropsSchema: z$1.ZodObject<{
|
|
12
|
+
smartTagEnabled: z$1.ZodBoolean & SchemaHasDefaultValue;
|
|
13
|
+
title: z$1.ZodString & SchemaHasDefaultValue;
|
|
14
|
+
showPlayCount: z$1.ZodBoolean & SchemaHasDefaultValue;
|
|
15
|
+
playCountDelta: z$1.ZodNumber & SchemaHasDefaultValue;
|
|
16
|
+
showEpisode: z$1.ZodBoolean & SchemaHasDefaultValue;
|
|
17
|
+
enableInfinite: z$1.ZodBoolean & SchemaHasDefaultValue;
|
|
18
|
+
moreLink: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
19
|
+
smartTagIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
20
|
+
catId: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
21
|
+
items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
22
|
+
contentId: z$1.ZodString;
|
|
23
|
+
coverMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
24
|
+
content: "content";
|
|
25
|
+
upload: "upload";
|
|
26
|
+
}>>;
|
|
27
|
+
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
28
|
+
badge_url: z$1.ZodOptional<z$1.ZodString>;
|
|
29
|
+
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
30
|
+
content: "content";
|
|
31
|
+
custom: "custom";
|
|
32
|
+
}>>;
|
|
33
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
34
|
+
showPlayCount: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
35
|
+
playCountDelta: z$1.ZodOptional<z$1.ZodNumber>;
|
|
36
|
+
showEpisode: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
37
|
+
}, z$1.core.$strip>>>;
|
|
38
|
+
mode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
39
|
+
renderer: "renderer";
|
|
40
|
+
editor: "editor";
|
|
41
|
+
}>>;
|
|
42
|
+
}, z$1.core.$strip>;
|
|
43
|
+
declare const homeRecommendWaterfallInspectorDefaultProps: {
|
|
44
|
+
smartTagIds: never[];
|
|
45
|
+
items: never[];
|
|
46
|
+
smartTagEnabled: boolean;
|
|
47
|
+
title: string;
|
|
48
|
+
showPlayCount: boolean;
|
|
49
|
+
playCountDelta: number;
|
|
50
|
+
showEpisode: boolean;
|
|
51
|
+
enableInfinite: boolean;
|
|
52
|
+
moreLink: string;
|
|
53
|
+
catId: string;
|
|
54
|
+
};
|
|
11
55
|
type HomeRecommendWaterfallInspectorProps = InferSchemaProps<typeof homeRecommendWaterfallInspectorPropsSchema>;
|
|
12
56
|
//#endregion
|
|
13
57
|
export { HomeRecommendWaterfallInspectorProps, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema };
|
package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../../utils/schema/schema.mjs";import{HOME_RECOMMEND_DEFAULT_ENABLE_INFINITE as a,HOME_RECOMMEND_DEFAULT_PLAY_COUNT_DELTA as o,HOME_RECOMMEND_DEFAULT_SHOW_EPISODE as s,HOME_RECOMMEND_DEFAULT_SHOW_PLAY_COUNT as c,HOME_RECOMMEND_DEFAULT_SMART_TAG_ENABLED as l,HOME_RECOMMEND_DEFAULT_TITLE as u}from"../shared/home-recommend-default-config.mjs";import d from"zod";const f=e({smartTagEnabled:n({label:`智能铺设`,defaultValue:l}),title:r({label:`推荐位名称`,defaultValue:u}),showPlayCount:n({label:`显示播放量`,defaultValue:c}),playCountDelta:t({label:`播放量浮动`,defaultValue:o}),showEpisode:n({label:`显示集数`,defaultValue:s}),enableInfinite:n({label:`无限下拉`,defaultValue:a}),moreLink:r({label:`更多`,description:``,required:!1,defaultValue:``}),smartTagIds:d.array(d.string()).optional(),catId:r({label:`分类 ID`,description:`透传热门接口 cat_id`,required:!1,defaultValue:``}),items:d.array(d.object({contentId:d.string(),coverMode:d.enum([`upload`,`content`]).optional(),coverUrl:d.string().optional(),badge_url:d.string().optional(),titleMode:d.enum([`custom`,`content`]).optional(),title:d.string().optional(),showPlayCount:d.boolean().optional(),playCountDelta:d.number().optional(),showEpisode:d.boolean().optional()})).optional()}),p={...i(f),smartTagIds:[],items:[]},m={smartTagEnabled:{type:`boolean`,title:`智能铺设`,default:p.smartTagEnabled},title:{type:`string`,title:`推荐位名称`,default:p.title},showPlayCount:{type:`boolean`,title:`显示播放量`,default:p.showPlayCount},playCountDelta:{type:`number`,title:`播放量浮动`,default:p.playCountDelta},showEpisode:{type:`boolean`,title:`显示集数`,default:p.showEpisode},enableInfinite:{type:`boolean`,title:`无限下拉`,default:p.enableInfinite},moreLink:{type:`string`,title:`更多`,description:``,default:p.moreLink},smartTagIds:{type:`array`,title:`智能铺设标签`,default:p.smartTagIds,items:{type:`string`,title:`标签 ID`}},catId:{type:`string`,title:`分类 ID`,description:`透传热门接口 cat_id`,default:p.catId},items:{type:`array`,title:`推荐项`,default:p.items,items:{type:`object`,title:`推荐项`,properties:{contentId:{type:`string`,title:`内容 ID`},coverMode:{type:`string`,title:`封面模式`},coverUrl:{type:`string`,title:`封面地址`},badge_url:{type:`string`,title:`角标地址`},titleMode:{type:`string`,title:`标题模式`},title:{type:`string`,title:`标题`},showPlayCount:{type:`boolean`,title:`显示播放量`},playCountDelta:{type:`number`,title:`播放量浮动`},showEpisode:{type:`boolean`,title:`显示集数`}}}}};export{p as homeRecommendWaterfallInspectorDefaultProps,f as homeRecommendWaterfallInspectorPropsSchema,m as homeRecommendWaterfallPropsSchema};
|
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../../utils.mjs";
|
|
5
|
+
import { HomeRecommendWaterfallClient } from "./client.mjs";
|
|
6
|
+
import { HomeRecommendWaterfall } from "./server.mjs";
|
|
7
|
+
import * as zod from "zod";
|
|
8
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
|
+
|
|
2
10
|
//#region components/biz/business/home-recommend/home-recommend-waterfall/material.d.ts
|
|
3
|
-
declare const homeRecommendWaterfallMaterial:
|
|
11
|
+
declare const homeRecommendWaterfallMaterial: DefineMaterialOption<typeof HomeRecommendWaterfall, typeof HomeRecommendWaterfallClient, zod.ZodObject<{
|
|
12
|
+
smartTagEnabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
13
|
+
title: zod.ZodString & SchemaHasDefaultValue;
|
|
14
|
+
showPlayCount: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
15
|
+
playCountDelta: zod.ZodNumber & SchemaHasDefaultValue;
|
|
16
|
+
showEpisode: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
17
|
+
enableInfinite: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
18
|
+
moreLink: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
19
|
+
smartTagIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
20
|
+
catId: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
21
|
+
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
22
|
+
contentId: zod.ZodString;
|
|
23
|
+
coverMode: zod.ZodOptional<zod.ZodEnum<{
|
|
24
|
+
content: "content";
|
|
25
|
+
upload: "upload";
|
|
26
|
+
}>>;
|
|
27
|
+
coverUrl: zod.ZodOptional<zod.ZodString>;
|
|
28
|
+
badge_url: zod.ZodOptional<zod.ZodString>;
|
|
29
|
+
titleMode: zod.ZodOptional<zod.ZodEnum<{
|
|
30
|
+
content: "content";
|
|
31
|
+
custom: "custom";
|
|
32
|
+
}>>;
|
|
33
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
34
|
+
showPlayCount: zod.ZodOptional<zod.ZodBoolean>;
|
|
35
|
+
playCountDelta: zod.ZodOptional<zod.ZodNumber>;
|
|
36
|
+
showEpisode: zod.ZodOptional<zod.ZodBoolean>;
|
|
37
|
+
}, zod_v4_core0.$strip>>>;
|
|
38
|
+
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
39
|
+
renderer: "renderer";
|
|
40
|
+
editor: "editor";
|
|
41
|
+
}>>;
|
|
42
|
+
}, zod_v4_core0.$strip>, "home-recommend-waterfall", "内容组件">;
|
|
4
43
|
//#endregion
|
|
5
44
|
export { homeRecommendWaterfallMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import e from"./client.mjs";import{homeRecommendWaterfallInspectorPropsSchema as
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import t from"./client.mjs";import{homeRecommendWaterfallInspectorPropsSchema as n}from"./inspector-schema.mjs";import{HomeRecommendWaterfall as r}from"./server.mjs";const i=e({type:`home-recommend-waterfall`,name:`瀑布流`,icon:`/static/components-thumb/grid_waterfall_two_column.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as homeRecommendWaterfallMaterial};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema } from "./home-recommend-grid/inspector-schema.mjs";
|
|
3
3
|
import { HomeRecommendGridClient } from "./home-recommend-grid/client.mjs";
|
|
4
4
|
import { schema } from "./home-recommend-grid/schema.mjs";
|
|
5
|
-
import { homeRecommendGridMaterial } from "./home-recommend-grid/material.mjs";
|
|
6
5
|
import { HomeRecommendGrid } from "./home-recommend-grid/server.mjs";
|
|
6
|
+
import { homeRecommendGridMaterial } from "./home-recommend-grid/material.mjs";
|
|
7
7
|
import "./home-recommend-grid/index.mjs";
|
|
8
8
|
import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema } from "./home-recommend-waterfall/inspector-schema.mjs";
|
|
9
9
|
import { HomeRecommendWaterfallClient } from "./home-recommend-waterfall/client.mjs";
|
|
10
10
|
import { schema as schema$1 } from "./home-recommend-waterfall/schema.mjs";
|
|
11
|
-
import { homeRecommendWaterfallMaterial } from "./home-recommend-waterfall/material.mjs";
|
|
12
11
|
import { HomeRecommendWaterfall } from "./home-recommend-waterfall/server.mjs";
|
|
12
|
+
import { homeRecommendWaterfallMaterial } from "./home-recommend-waterfall/material.mjs";
|
|
13
13
|
import "./home-recommend-waterfall/index.mjs";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
2
4
|
import { imageTextRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import { InferSchemaProps } from "create-funhub/sdk";
|
|
5
6
|
|
|
6
7
|
//#region components/biz/business/image-text-recommend/client.d.ts
|
|
7
8
|
type ImageTextRecommendProps = InferSchemaProps<typeof imageTextRecommendInspectorPropsSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { imageTextRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
3
3
|
import { ImageTextRecommendClient, ImageTextRecommendProps } from "./client.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ImageTextRecommendServer } from "./server.mjs";
|
|
5
|
+
import { imageTextRecommendMaterial } from "./material.mjs";
|
|
@@ -1,8 +1,42 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils.mjs";
|
|
5
|
+
import { ImageTextRecommendClient } from "./client.mjs";
|
|
6
|
+
import { ImageTextRecommendServer } from "./server.mjs";
|
|
7
|
+
import * as zod from "zod";
|
|
8
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
|
+
|
|
2
10
|
//#region components/biz/business/image-text-recommend/material.d.ts
|
|
3
11
|
/**
|
|
4
12
|
* 图文推荐物料定义
|
|
5
13
|
*/
|
|
6
|
-
declare const imageTextRecommendMaterial:
|
|
14
|
+
declare const imageTextRecommendMaterial: DefineMaterialOption<typeof ImageTextRecommendServer, typeof ImageTextRecommendClient, zod.ZodObject<{
|
|
15
|
+
title: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
moduleCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
17
|
+
layout: zod.ZodObject<{
|
|
18
|
+
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
19
|
+
readonly tags: zod.ZodArray<zod.ZodString> & SchemaHasDefaultValue;
|
|
20
|
+
}, zod_v4_core0.$strip> | zod.ZodOptional<zod.ZodObject<{
|
|
21
|
+
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
22
|
+
readonly tags: zod.ZodArray<zod.ZodString> & SchemaHasDefaultValue;
|
|
23
|
+
}, zod_v4_core0.$strip>>;
|
|
24
|
+
commonPlayCount: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
25
|
+
commonEpisodes: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
26
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
27
|
+
contentId: zod.ZodString & SchemaHasDefaultValue;
|
|
28
|
+
title: zod.ZodString & SchemaHasDefaultValue;
|
|
29
|
+
contentDescription: zod.ZodString & SchemaHasDefaultValue;
|
|
30
|
+
cover: zod.ZodString & SchemaHasDefaultValue;
|
|
31
|
+
useVideoPoster: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
32
|
+
showPlayCount: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
33
|
+
showEpisodes: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
34
|
+
badge: zod.ZodString & SchemaHasDefaultValue;
|
|
35
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
36
|
+
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
37
|
+
renderer: "renderer";
|
|
38
|
+
editor: "editor";
|
|
39
|
+
}>>;
|
|
40
|
+
}, zod_v4_core0.$strip>, "image-text-recommend", "内容组件">;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { imageTextRecommendMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{ImageTextRecommendClient as t}from"./client.mjs";import{imageTextRecommendInspectorPropsSchema as n}from"./schema.mjs";import{ImageTextRecommendServer as r}from"./server.mjs";const i=e({type:`image-text-recommend`,name:`图文推荐`,icon:`/static/components-thumb/search_recommend_media.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as imageTextRecommendMaterial};
|
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
2
6
|
//#region components/biz/business/image-text-recommend/schema.d.ts
|
|
3
7
|
/**
|
|
4
8
|
* 图文推荐物料属性定义
|
|
5
9
|
*/
|
|
6
|
-
declare const imageTextRecommendInspectorPropsSchema:
|
|
10
|
+
declare const imageTextRecommendInspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
title: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
+
moduleCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
+
layout: z.ZodObject<{
|
|
14
|
+
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
15
|
+
readonly tags: z.ZodArray<z.ZodString> & SchemaHasDefaultValue;
|
|
16
|
+
}, z.core.$strip> | z.ZodOptional<z.ZodObject<{
|
|
17
|
+
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
18
|
+
readonly tags: z.ZodArray<z.ZodString> & SchemaHasDefaultValue;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
commonPlayCount: z.ZodBoolean & SchemaHasDefaultValue;
|
|
21
|
+
commonEpisodes: z.ZodBoolean & SchemaHasDefaultValue;
|
|
22
|
+
items: z.ZodArray<z.ZodObject<{
|
|
23
|
+
contentId: z.ZodString & SchemaHasDefaultValue;
|
|
24
|
+
title: z.ZodString & SchemaHasDefaultValue;
|
|
25
|
+
contentDescription: z.ZodString & SchemaHasDefaultValue;
|
|
26
|
+
cover: z.ZodString & SchemaHasDefaultValue;
|
|
27
|
+
useVideoPoster: z.ZodBoolean & SchemaHasDefaultValue;
|
|
28
|
+
showPlayCount: z.ZodBoolean & SchemaHasDefaultValue;
|
|
29
|
+
showEpisodes: z.ZodBoolean & SchemaHasDefaultValue;
|
|
30
|
+
badge: z.ZodString & SchemaHasDefaultValue;
|
|
31
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
32
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
renderer: "renderer";
|
|
34
|
+
editor: "editor";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { imageTextRecommendInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineNumberPropSchema as n,defineObjectPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a}from"../../../../utils/schema/schema.mjs";import{z as o}from"zod";const s=o.object({contentId:a({label:`推荐位内容`,defaultValue:``}),title:a({label:`推荐位内容名称`,defaultValue:`视频标题`}),contentDescription:a({label:`内容说明简介`,defaultValue:``}),cover:a({label:`推荐位封面`,defaultValue:``}),useVideoPoster:i({label:`沿用视频海报`,defaultValue:!0}),showPlayCount:i({label:`播放量显示`,defaultValue:!1}),showEpisodes:i({label:`集数展示`,defaultValue:!0}),badge:a({label:`推荐位角标`,defaultValue:``,description:`角标图片地址,可通过低代码平台配置上传;留空则使用默认角标图`})}),c=t({title:a({label:`推荐位名称`,defaultValue:`推荐视频`}),moduleCount:n({label:`推荐模块数`,defaultValue:1}),layout:r({enabled:i({label:`智能铺设`,defaultValue:!1}),tags:e(o.string(),{label:`取数范围标签`,defaultValue:[`电影`]})},{label:`智能铺设`,defaultValue:{enabled:!1,tags:[`电影`]}}),commonPlayCount:i({label:`通用播放量`,defaultValue:!0}),commonEpisodes:i({label:`通用集数`,defaultValue:!0}),items:e(s,{label:`推荐位模块`,defaultValue:[{contentId:`d6a35ba3279e6f0d`,title:`视频标题 1`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``},{contentId:`eaf60eab4938489d`,title:`视频标题 2`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``},{contentId:`c45fe58f91d1c986`,title:`视频标题 3`,contentDescription:``,cover:``,useVideoPoster:!0,showPlayCount:!0,showEpisodes:!0,badge:``}]})});export{c as imageTextRecommendInspectorPropsSchema};
|
|
@@ -6,8 +6,8 @@ import { defaultProps as defaultProps$1 } from "./banner/variants/basic-banner/d
|
|
|
6
6
|
import { BasicBannerClient } from "./banner/variants/basic-banner/runtime/client.mjs";
|
|
7
7
|
import { schema as schema$1 } from "./banner/variants/basic-banner/schema/index.mjs";
|
|
8
8
|
import { basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema } from "./banner/variants/basic-banner/inspector-schema.mjs";
|
|
9
|
-
import { basicBannerMaterial } from "./banner/variants/basic-banner/material.mjs";
|
|
10
9
|
import { BasicBanner } from "./banner/variants/basic-banner/server.mjs";
|
|
10
|
+
import { basicBannerMaterial } from "./banner/variants/basic-banner/material.mjs";
|
|
11
11
|
import "./banner/index.mjs";
|
|
12
12
|
import { defaultProps as defaultProps$2 } from "./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";
|
|
13
13
|
import { CardGrid2x3Client } from "./card-grid/variants/card-grid-2x3/runtime/client.mjs";
|
|
@@ -31,8 +31,8 @@ import { schema as schema$7 } from "./feature-grid/variants/basic-feature-grid/s
|
|
|
31
31
|
import "./feature-grid/index.mjs";
|
|
32
32
|
import { FloatingBallInspectorProps, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema } from "./floating-ball/schema.mjs";
|
|
33
33
|
import { FloatingBallClient, FloatingBallClientProps } from "./floating-ball/client.mjs";
|
|
34
|
-
import { floatingBallMaterial } from "./floating-ball/material.mjs";
|
|
35
34
|
import { FloatingBall } from "./floating-ball/server.mjs";
|
|
35
|
+
import { floatingBallMaterial } from "./floating-ball/material.mjs";
|
|
36
36
|
import "./floating-ball/index.mjs";
|
|
37
37
|
import { defaultProps as defaultProps$8 } from "./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";
|
|
38
38
|
import { FullscreenPostFeedClient } from "./fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs";
|
|
@@ -44,23 +44,23 @@ import "./fullscreen-feed/index.mjs";
|
|
|
44
44
|
import { homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema } from "./home-recommend/home-recommend-grid/inspector-schema.mjs";
|
|
45
45
|
import { HomeRecommendGridClient } from "./home-recommend/home-recommend-grid/client.mjs";
|
|
46
46
|
import { schema as schema$10 } from "./home-recommend/home-recommend-grid/schema.mjs";
|
|
47
|
-
import { homeRecommendGridMaterial } from "./home-recommend/home-recommend-grid/material.mjs";
|
|
48
47
|
import { HomeRecommendGrid } from "./home-recommend/home-recommend-grid/server.mjs";
|
|
48
|
+
import { homeRecommendGridMaterial } from "./home-recommend/home-recommend-grid/material.mjs";
|
|
49
49
|
import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema } from "./home-recommend/home-recommend-waterfall/inspector-schema.mjs";
|
|
50
50
|
import { HomeRecommendWaterfallClient } from "./home-recommend/home-recommend-waterfall/client.mjs";
|
|
51
51
|
import { schema as schema$11 } from "./home-recommend/home-recommend-waterfall/schema.mjs";
|
|
52
|
-
import { homeRecommendWaterfallMaterial } from "./home-recommend/home-recommend-waterfall/material.mjs";
|
|
53
52
|
import { HomeRecommendWaterfall } from "./home-recommend/home-recommend-waterfall/server.mjs";
|
|
53
|
+
import { homeRecommendWaterfallMaterial } from "./home-recommend/home-recommend-waterfall/material.mjs";
|
|
54
54
|
import "./home-recommend/index.mjs";
|
|
55
55
|
import { imageTextRecommendInspectorPropsSchema } from "./image-text-recommend/schema.mjs";
|
|
56
56
|
import { ImageTextRecommendClient, ImageTextRecommendProps } from "./image-text-recommend/client.mjs";
|
|
57
|
-
import { imageTextRecommendMaterial } from "./image-text-recommend/material.mjs";
|
|
58
57
|
import { ImageTextRecommendServer } from "./image-text-recommend/server.mjs";
|
|
58
|
+
import { imageTextRecommendMaterial } from "./image-text-recommend/material.mjs";
|
|
59
59
|
import "./image-text-recommend/index.mjs";
|
|
60
60
|
import { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
|
|
61
61
|
import { MarqueeClient, MarqueeProps } from "./marquee/client.mjs";
|
|
62
|
-
import { marqueeMaterial } from "./marquee/material.mjs";
|
|
63
62
|
import { MarqueeServer } from "./marquee/server.mjs";
|
|
63
|
+
import { marqueeMaterial } from "./marquee/material.mjs";
|
|
64
64
|
import "./marquee/index.mjs";
|
|
65
65
|
import { defaultProps as defaultProps$10 } from "./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";
|
|
66
66
|
import { BasicNavBarClient } from "./nav-bar/variants/basic-nav-bar/runtime/client.mjs";
|
|
@@ -75,8 +75,8 @@ import { UserProfileHeaderClient } from "./profile/profile-header/client.mjs";
|
|
|
75
75
|
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./profile/profile-header/material.mjs";
|
|
76
76
|
import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile/profile-main/schema.mjs";
|
|
77
77
|
import { UserProfileMainClient } from "./profile/profile-main/client.mjs";
|
|
78
|
-
import { profileMainMaterial } from "./profile/profile-main/material.mjs";
|
|
79
78
|
import { UserProfileMain } from "./profile/profile-main/server.mjs";
|
|
79
|
+
import { profileMainMaterial } from "./profile/profile-main/material.mjs";
|
|
80
80
|
import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./profile/profile-main/shell.mjs";
|
|
81
81
|
import { CollectTab, CollectTabProps } from "./profile/profile-main/tabs/collect-tab/client.mjs";
|
|
82
82
|
import { CollectTabServer } from "./profile/profile-main/tabs/collect-tab/server.mjs";
|
|
@@ -107,21 +107,21 @@ import { schema as schema$18 } from "./search-bar/variants/tag-search-bar/schema
|
|
|
107
107
|
import "./search-bar/index.mjs";
|
|
108
108
|
import { searchHistoryInspectorPropsSchema } from "./search-history/schema.mjs";
|
|
109
109
|
import { SearchHistoryClient, SearchHistoryProps } from "./search-history/client.mjs";
|
|
110
|
-
import { searchHistoryMaterial } from "./search-history/material.mjs";
|
|
111
110
|
import { SearchHistoryServer } from "./search-history/server.mjs";
|
|
111
|
+
import { searchHistoryMaterial } from "./search-history/material.mjs";
|
|
112
112
|
import "./search-history/index.mjs";
|
|
113
113
|
import { SearchInputInspectorProps, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema } from "./search-input/schema.mjs";
|
|
114
114
|
import { SearchInputClient, SearchInputProps } from "./search-input/client.mjs";
|
|
115
|
-
import { searchInputMaterial } from "./search-input/material.mjs";
|
|
116
115
|
import { SearchInputServer } from "./search-input/server.mjs";
|
|
116
|
+
import { searchInputMaterial } from "./search-input/material.mjs";
|
|
117
117
|
import "./search-input/index.mjs";
|
|
118
118
|
import { TabBarInspectorProps, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema } from "./tab-bar/schema.mjs";
|
|
119
119
|
import { TabBarClient, TabBarItem, TabBarItemConfigType, TabBarProps } from "./tab-bar/client.mjs";
|
|
120
|
-
import { tabBarMaterial } from "./tab-bar/material.mjs";
|
|
121
120
|
import { TabBarServer } from "./tab-bar/server.mjs";
|
|
121
|
+
import { tabBarMaterial } from "./tab-bar/material.mjs";
|
|
122
122
|
import "./tab-bar/index.mjs";
|
|
123
123
|
import { textRecommendInspectorPropsSchema } from "./text-recommend/schema.mjs";
|
|
124
124
|
import { TextRecommendClient, TextRecommendProps } from "./text-recommend/client.mjs";
|
|
125
|
-
import { textRecommendMaterial } from "./text-recommend/material.mjs";
|
|
126
125
|
import { TextRecommendServer } from "./text-recommend/server.mjs";
|
|
126
|
+
import { textRecommendMaterial } from "./text-recommend/material.mjs";
|
|
127
127
|
import "./text-recommend/index.mjs";
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
import { DefineMaterialOption, MaterialCategory } from "../../../../utils/schema/material.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
4
|
+
import * as react from "react";
|
|
5
|
+
import * as zod from "zod";
|
|
6
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
7
|
+
|
|
2
8
|
//#region components/biz/business/large-feature-grid/material.d.ts
|
|
3
|
-
declare const largeFeatureGridMaterial: any
|
|
9
|
+
declare const largeFeatureGridMaterial: DefineMaterialOption<react.ComponentType<any>, react.ComponentType<any>, zod.ZodObject<Readonly<{
|
|
10
|
+
[k: string]: zod_v4_core0.$ZodType<unknown, unknown, zod_v4_core0.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
+
}>, zod_v4_core0.$strip>, string, MaterialCategory>;
|
|
4
12
|
//#endregion
|
|
5
13
|
export { largeFeatureGridMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{largeFeatureGridInspectorPropsSchema as t}from"./schema.mjs";import{LargeFeatureGridClient as n}from"./client.mjs";import{LargeFeatureGrid as r}from"./server.mjs";const i=e({type:`large-feature-grid`,name:`大图推荐`,icon:`/static/components-thumb/grid_large_feature.png`,category:`内容组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as largeFeatureGridMaterial};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../utils/schema/schema.mjs";import a from"zod";const o=t({data:e(a.object({title:r({label:`推荐位名称`,required:!1}),moreUrl:r({label:`更多链接`,required:!1}),moreLinkType:r({label:`更多链接类型`,required:!1,defaultValue:`content-list`}),items:t({id:r({label:`内容ID`}),cover:r({label:`封面`}),play_count:r({label:`播放量`,required:!1}),showPlayCount:n({label:`展示播放量`,required:!1,defaultValue:!0}),episodeText:r({label:`集数文案`,required:!1}),showEpisode:n({label:`展示集数`,required:!1,defaultValue:!0}),useContentCover:n({label:`沿用内容海报`,required:!1,defaultValue:!0}),title:r({label:`内容标题`}),desc:r({label:`内容简介`,required:!1}),tagImageUrl:r({label:`角标图`,required:!1})})}),{label:`大图推荐数据`,required:!1,defaultValue:[{title:`推荐位名称`,moreUrl:`/channel`,moreLinkType:`content-list`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,play_count:`11111`,showPlayCount:!0,episodeText:`连载中`,showEpisode:!0,useContentCover:!0,title:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`,desc:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`}}]})}),s=i(o);export{s as largeFeatureGridInspectorDefaultProps,o as largeFeatureGridInspectorPropsSchema};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
2
4
|
import { marqueeInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import { InferSchemaProps } from "create-funhub/sdk";
|
|
5
6
|
|
|
6
7
|
//#region components/biz/business/marquee/client.d.ts
|
|
7
8
|
type MarqueeProps = InferSchemaProps<typeof marqueeInspectorPropsSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema } from "./schema.mjs";
|
|
3
3
|
import { MarqueeClient, MarqueeProps } from "./client.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { MarqueeServer } from "./server.mjs";
|
|
5
|
+
import { marqueeMaterial } from "./material.mjs";
|
|
@@ -1,8 +1,41 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../utils.mjs";
|
|
5
|
+
import { MarqueeClient } from "./client.mjs";
|
|
6
|
+
import { MarqueeServer } from "./server.mjs";
|
|
7
|
+
import * as zod from "zod";
|
|
8
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
|
+
|
|
2
10
|
//#region components/biz/business/marquee/material.d.ts
|
|
3
11
|
/**
|
|
4
12
|
* 跑马灯物料定义
|
|
5
13
|
*/
|
|
6
|
-
declare const marqueeMaterial:
|
|
14
|
+
declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, typeof MarqueeClient, zod.ZodObject<{
|
|
15
|
+
marqueeKey: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
contents: zod.ZodArray<zod.ZodObject<{
|
|
17
|
+
text: zod.ZodString & SchemaHasDefaultValue;
|
|
18
|
+
link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
19
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
20
|
+
click: zod.ZodObject<{
|
|
21
|
+
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
22
|
+
readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
|
|
23
|
+
readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
24
|
+
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
25
|
+
close: zod.ZodObject<{
|
|
26
|
+
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
27
|
+
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
28
|
+
displayStrategy: zod.ZodObject<{
|
|
29
|
+
readonly rule: zod.ZodType<"once" | "daily", unknown, zod_v4_core0.$ZodTypeInternals<"once" | "daily", unknown>> & SchemaHasDefaultValue;
|
|
30
|
+
readonly period: zod.ZodOptional<zod.ZodObject<{
|
|
31
|
+
readonly start: zod.ZodString;
|
|
32
|
+
readonly end: zod.ZodString;
|
|
33
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
34
|
+
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
35
|
+
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
36
|
+
renderer: "renderer";
|
|
37
|
+
editor: "editor";
|
|
38
|
+
}>>;
|
|
39
|
+
}, zod_v4_core0.$strip>, "marquee", "内容组件">;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { marqueeMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{marqueeInspectorPropsSchema as t}from"./schema.mjs";import{MarqueeClient as n}from"./client.mjs";import{MarqueeServer as r}from"./server.mjs";const i=e({type:`marquee`,name:`跑马灯`,icon:`/static/components-thumb/marquee_clickable_closable.png`,category:`内容组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as marqueeMaterial};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
2
6
|
//#region components/biz/business/marquee/schema.d.ts
|
|
3
7
|
declare function getDefaultMarqueePeriod(): {
|
|
4
8
|
start: string;
|
|
@@ -11,6 +15,31 @@ declare const defaultMarqueePeriod: {
|
|
|
11
15
|
/**
|
|
12
16
|
* 跑马灯物料属性定义
|
|
13
17
|
*/
|
|
14
|
-
declare const marqueeInspectorPropsSchema:
|
|
18
|
+
declare const marqueeInspectorPropsSchema: z.ZodObject<{
|
|
19
|
+
marqueeKey: z.ZodString & SchemaHasDefaultValue;
|
|
20
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
21
|
+
text: z.ZodString & SchemaHasDefaultValue;
|
|
22
|
+
link: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
23
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
24
|
+
click: z.ZodObject<{
|
|
25
|
+
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
26
|
+
readonly redirectType: z.ZodOptional<z.ZodType<"content" | "link" | "content_list", unknown, z.core.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
|
|
27
|
+
readonly link: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
28
|
+
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
29
|
+
close: z.ZodObject<{
|
|
30
|
+
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
31
|
+
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
32
|
+
displayStrategy: z.ZodObject<{
|
|
33
|
+
readonly rule: z.ZodType<"once" | "daily", unknown, z.core.$ZodTypeInternals<"once" | "daily", unknown>> & SchemaHasDefaultValue;
|
|
34
|
+
readonly period: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
readonly start: z.ZodString;
|
|
36
|
+
readonly end: z.ZodString;
|
|
37
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
38
|
+
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
39
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
renderer: "renderer";
|
|
41
|
+
editor: "editor";
|
|
42
|
+
}>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
15
44
|
//#endregion
|
|
16
45
|
export { defaultMarqueePeriod, getDefaultMarqueePeriod, marqueeInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineObjectPropSchema as n,defineSelectEnumPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a,defineTimeRangePropSchema as o}from"../../../../utils/schema/schema.mjs";import{z as s}from"zod";import c from"dayjs";function l(){return{start:c().startOf(`day`).format(`YYYY-MM-DD HH:mm:ss`),end:c().endOf(`day`).format(`YYYY-MM-DD HH:mm:ss`)}}const u=l(),d=s.object({text:a({label:`文本内容`,defaultValue:``}),link:a({label:`跳转链接`,defaultValue:``,required:!1})}),f=t({marqueeKey:a({label:`状态唯一标识`,defaultValue:``,required:!0,description:`外部传入唯一 marqueeKey,用于本地展示状态持久化`}),contents:e(d,{label:`消息内容`,defaultValue:[{text:`请输入跑马灯内容`}],description:`支持多条消息循环播放`}),click:n({enabled:i({label:`支持点击`,defaultValue:!0}),redirectType:r([`content_list`,`content`,`link`],{label:`跳转指向`,defaultValue:`link`,required:!1}),link:a({label:`跳转链接`,defaultValue:``,required:!1})},{label:`点击配置`,defaultValue:{enabled:!0,redirectType:`link`,link:``}}),close:n({enabled:i({label:`支持关闭`,defaultValue:!0})},{label:`关闭配置`,defaultValue:{enabled:!0}}),displayStrategy:n({rule:r([`once`,`daily`],{label:`展示规则`,defaultValue:`once`,description:`「只展示1次」即当前消息只展示1次;「每天展示1次」即当前消息每天展示1次,0点刷新`}),period:o({label:`展示周期`,defaultValue:u,required:!1})},{label:`展示策略`,defaultValue:{rule:`once`,period:u}})});export{u as defaultMarqueePeriod,l as getDefaultMarqueePeriod,f as marqueeInspectorPropsSchema};
|
|
@@ -5,8 +5,8 @@ import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } fr
|
|
|
5
5
|
import "./profile-header/index.mjs";
|
|
6
6
|
import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile-main/schema.mjs";
|
|
7
7
|
import { UserProfileMainClient } from "./profile-main/client.mjs";
|
|
8
|
-
import { profileMainMaterial } from "./profile-main/material.mjs";
|
|
9
8
|
import { UserProfileMain } from "./profile-main/server.mjs";
|
|
9
|
+
import { profileMainMaterial } from "./profile-main/material.mjs";
|
|
10
10
|
import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./profile-main/shell.mjs";
|
|
11
11
|
import { CollectTab, CollectTabProps } from "./profile-main/tabs/collect-tab/client.mjs";
|
|
12
12
|
import { CollectTabServer } from "./profile-main/tabs/collect-tab/server.mjs";
|