@funhub/platform 0.1.57 → 0.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/assets/icons/filter_dark.mjs +1 -1
  2. package/dist/biz.d.mts +15 -15
  3. package/dist/biz.mjs +1 -1
  4. package/dist/components/biz/business/comment/comment-list.mjs +1 -1
  5. package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +2 -0
  6. package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +2 -0
  7. package/dist/components/biz/business/detail/shared/detail-info-title.mjs +2 -0
  8. package/dist/components/biz/business/detail/shared/detail-introduction.mjs +2 -0
  9. package/dist/components/biz/business/detail/shared/detail-operate.mjs +2 -0
  10. package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +2 -0
  11. package/dist/components/biz/business/detail/{materials → shared}/registry.d.mts +20 -20
  12. package/dist/components/biz/business/detail/shared/registry.mjs +2 -0
  13. package/dist/components/biz/business/detail/shared/seo-config.mjs +2 -0
  14. package/dist/components/biz/business/detail/shared/video-hero.mjs +2 -0
  15. package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/client.d.mts +1 -1
  16. package/dist/components/biz/business/detail/video-detail-actions/client.mjs +2 -0
  17. package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/material.d.mts +2 -2
  18. package/dist/components/biz/business/detail/video-detail-actions/material.mjs +2 -0
  19. package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/schema.d.mts +3 -3
  20. package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +2 -0
  21. package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/server.d.mts +1 -1
  22. package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/client.d.mts +1 -1
  23. package/dist/components/biz/business/detail/video-detail-info/client.mjs +2 -0
  24. package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/material.d.mts +4 -4
  25. package/dist/components/biz/business/detail/video-detail-info/material.mjs +2 -0
  26. package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/schema.d.mts +3 -3
  27. package/dist/components/biz/business/detail/video-detail-info/schema.mjs +2 -0
  28. package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/server.d.mts +1 -1
  29. package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/client.d.mts +1 -1
  30. package/dist/components/biz/business/detail/video-detail-info-title/client.mjs +2 -0
  31. package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/material.d.mts +2 -2
  32. package/dist/components/biz/business/detail/video-detail-info-title/material.mjs +2 -0
  33. package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/schema.d.mts +3 -3
  34. package/dist/components/biz/business/detail/video-detail-info-title/schema.mjs +2 -0
  35. package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/server.d.mts +1 -1
  36. package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/client.d.mts +1 -1
  37. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +2 -0
  38. package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/material.d.mts +4 -4
  39. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +2 -0
  40. package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/schema.d.mts +3 -3
  41. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +2 -0
  42. package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/server.d.mts +1 -1
  43. package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/client.d.mts +1 -1
  44. package/dist/components/biz/business/detail/video-detail-player/client.mjs +2 -0
  45. package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/material.d.mts +2 -2
  46. package/dist/components/biz/business/detail/video-detail-player/material.mjs +2 -0
  47. package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/schema.d.mts +3 -3
  48. package/dist/components/biz/business/detail/video-detail-player/schema.mjs +2 -0
  49. package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/server.d.mts +1 -1
  50. package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/client.d.mts +1 -1
  51. package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +2 -0
  52. package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/material.d.mts +4 -4
  53. package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +2 -0
  54. package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/schema.d.mts +3 -3
  55. package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +2 -0
  56. package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/server.d.mts +1 -1
  57. package/dist/components/biz/business/home-recommend/home-recommend-grid/client.d.mts +24 -0
  58. package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +2 -0
  59. package/dist/components/biz/business/home-recommend/home-recommend-grid/index.d.mts +6 -0
  60. package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +2 -0
  61. package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/inspector-schema.d.mts +4 -4
  62. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +2 -0
  63. package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/material.d.mts +6 -6
  64. package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +2 -0
  65. package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.d.mts +11 -0
  66. package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +2 -0
  67. package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/server.d.mts +2 -2
  68. package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +2 -0
  69. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.d.mts +24 -0
  70. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +2 -0
  71. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.d.mts +6 -0
  72. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +2 -0
  73. package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/inspector-schema.d.mts +7 -4
  74. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +2 -0
  75. package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/material.d.mts +8 -6
  76. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +2 -0
  77. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.d.mts +11 -0
  78. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +2 -0
  79. package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/server.d.mts +2 -2
  80. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +2 -0
  81. package/dist/components/biz/business/home-recommend/index.d.mts +12 -12
  82. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
  83. package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -1
  84. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -1
  85. package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -1
  86. package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -1
  87. package/dist/components/biz/business/home-recommend/types.d.mts +1 -5
  88. package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/client.d.mts +14 -3
  89. package/dist/components/biz/business/image-text-recommend/client.mjs +2 -0
  90. package/dist/components/biz/business/image-text-recommend/index.d.mts +5 -0
  91. package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/material.d.mts +2 -3
  92. package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/schema.d.mts +1 -2
  93. package/dist/components/biz/business/image-text-recommend/schema.mjs +2 -0
  94. package/dist/components/biz/business/image-text-recommend/server.d.mts +13 -0
  95. package/dist/components/biz/business/image-text-recommend/server.mjs +2 -0
  96. package/dist/components/biz/business/index.d.mts +16 -16
  97. package/dist/components/biz/business/marquee/material.d.mts +1 -1
  98. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
  99. package/dist/components/biz/business/profile/profile-header/server.d.mts +1 -1
  100. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
  101. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -1
  102. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -1
  103. package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -1
  104. package/dist/components/biz/utils/transformers/data.mjs +1 -1
  105. package/dist/components/pages/collection-detail/detail.mjs +1 -1
  106. package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
  107. package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
  108. package/dist/components/pages/video-detail/page.mjs +1 -1
  109. package/dist/components/pages/video-detail/video-detail-client.d.mts +1 -1
  110. package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
  111. package/dist/components/pages/video-list/index.mjs +1 -1
  112. package/dist/components/pages/video-list/video-list-client.mjs +1 -1
  113. package/dist/components/ui/badge.d.mts +1 -1
  114. package/dist/components/ui/button.d.mts +2 -2
  115. package/dist/hooks/video-horizontal-list.d.mts +17 -0
  116. package/dist/hooks/video-horizontal-list.mjs +2 -0
  117. package/dist/hooks.d.mts +2 -1
  118. package/dist/hooks.mjs +1 -1
  119. package/dist/i18n/locales/en.mjs +1 -1
  120. package/dist/i18n/locales/zh-CN.mjs +1 -1
  121. package/dist/materials.d.mts +15 -15
  122. package/dist/materials.mjs +1 -1
  123. package/dist/service/generated/client.d.mts +171 -275
  124. package/dist/service/generated/client.mjs +1 -1
  125. package/dist/service/generated/tanstack.d.mts +172 -302
  126. package/dist/service/generated/tanstack.mjs +1 -1
  127. package/dist/service.d.mts +3 -6
  128. package/dist/service.mjs +1 -1
  129. package/dist/types/community-types.d.mts +46 -0
  130. package/dist/types.d.mts +2732 -5699
  131. package/dist/utils/follow-service.d.mts +4 -4
  132. package/package.json +1 -1
  133. package/dist/components/biz/business/detail/detail-follow-action.mjs +0 -2
  134. package/dist/components/biz/business/detail/detail-info-tags.mjs +0 -2
  135. package/dist/components/biz/business/detail/detail-info-title.mjs +0 -2
  136. package/dist/components/biz/business/detail/detail-introduction.mjs +0 -2
  137. package/dist/components/biz/business/detail/detail-operate.mjs +0 -2
  138. package/dist/components/biz/business/detail/materials/registry.mjs +0 -2
  139. package/dist/components/biz/business/detail/materials/video-detail-actions/client.mjs +0 -2
  140. package/dist/components/biz/business/detail/materials/video-detail-actions/material.mjs +0 -2
  141. package/dist/components/biz/business/detail/materials/video-detail-actions/schema.mjs +0 -2
  142. package/dist/components/biz/business/detail/materials/video-detail-info/client.mjs +0 -2
  143. package/dist/components/biz/business/detail/materials/video-detail-info/material.mjs +0 -2
  144. package/dist/components/biz/business/detail/materials/video-detail-info/schema.mjs +0 -2
  145. package/dist/components/biz/business/detail/materials/video-detail-info-title/client.mjs +0 -2
  146. package/dist/components/biz/business/detail/materials/video-detail-info-title/material.mjs +0 -2
  147. package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.mjs +0 -2
  148. package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.mjs +0 -2
  149. package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.mjs +0 -2
  150. package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.mjs +0 -2
  151. package/dist/components/biz/business/detail/materials/video-detail-player/client.mjs +0 -2
  152. package/dist/components/biz/business/detail/materials/video-detail-player/material.mjs +0 -2
  153. package/dist/components/biz/business/detail/materials/video-detail-player/schema.mjs +0 -2
  154. package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +0 -2
  155. package/dist/components/biz/business/detail/materials/video-detail-recommend/material.mjs +0 -2
  156. package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.mjs +0 -2
  157. package/dist/components/biz/business/detail/post-recommend-list.mjs +0 -2
  158. package/dist/components/biz/business/detail/seo-config.mjs +0 -2
  159. package/dist/components/biz/business/detail/video-hero.mjs +0 -2
  160. package/dist/components/biz/business/home-recommend/shared/home-recommend-feed-mode.mjs +0 -2
  161. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.d.mts +0 -6
  162. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs +0 -2
  163. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs +0 -2
  164. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs +0 -2
  165. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/prefetch-client.d.mts +0 -27
  166. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/prefetch-client.mjs +0 -2
  167. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/component.mjs +0 -2
  168. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/data.schema.mjs +0 -2
  169. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/event.schema.mjs +0 -2
  170. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.d.mts +0 -8
  171. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs +0 -2
  172. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/style.schema.mjs +0 -2
  173. package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs +0 -2
  174. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.d.mts +0 -6
  175. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs +0 -2
  176. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs +0 -2
  177. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs +0 -2
  178. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/prefetch-client.d.mts +0 -27
  179. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/prefetch-client.mjs +0 -2
  180. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/component.mjs +0 -2
  181. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/data.schema.mjs +0 -2
  182. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/event.schema.mjs +0 -2
  183. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.d.mts +0 -8
  184. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs +0 -2
  185. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/style.schema.mjs +0 -2
  186. package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs +0 -2
  187. package/dist/components/biz/business/video-horizontal-list/client.mjs +0 -2
  188. package/dist/components/biz/business/video-horizontal-list/index.d.mts +0 -5
  189. package/dist/components/biz/business/video-horizontal-list/schema.mjs +0 -2
  190. package/dist/components/biz/business/video-horizontal-list/server.d.mts +0 -12
  191. package/dist/components/biz/business/video-horizontal-list/server.mjs +0 -2
  192. package/dist/service/batch-get-video-detail.d.mts +0 -21
  193. package/dist/service/batch-get-video-detail.mjs +0 -2
  194. package/dist/service/content-batch-get-video-detail.d.mts +0 -21
  195. package/dist/service/content-batch-get-video-detail.mjs +0 -2
  196. package/dist/service/get-popular-video-list-post.d.mts +0 -8
  197. package/dist/service/get-popular-video-list-post.mjs +0 -2
  198. /package/dist/components/biz/business/detail/{detail-structured-data.mjs → shared/detail-structured-data.mjs} +0 -0
  199. /package/dist/components/biz/business/detail/{materials → shared}/editor-preview.mjs +0 -0
  200. /package/dist/components/biz/business/detail/{metadata-utils.mjs → shared/metadata-utils.mjs} +0 -0
  201. /package/dist/components/biz/business/detail/{materials → shared}/runtime-context-provider.mjs +0 -0
  202. /package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/index.d.mts +0 -0
  203. /package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/server.mjs +0 -0
  204. /package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/index.d.mts +0 -0
  205. /package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/server.mjs +0 -0
  206. /package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/index.d.mts +0 -0
  207. /package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/server.mjs +0 -0
  208. /package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/index.d.mts +0 -0
  209. /package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/server.mjs +0 -0
  210. /package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/index.d.mts +0 -0
  211. /package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/server.mjs +0 -0
  212. /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/index.d.mts +0 -0
  213. /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/server.mjs +0 -0
  214. /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/utils.mjs +0 -0
  215. /package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/material.mjs +0 -0
@@ -1,11 +1,11 @@
1
1
 
2
- import { DefineMaterialOption } from "../../../../../../utils/schema/material.mjs";
2
+ import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
3
3
  import { VideoDetailInfoTitleClient } from "./client.mjs";
4
4
  import { VideoDetailInfoTitle } from "./server.mjs";
5
5
  import * as zod from "zod";
6
6
  import * as zod_v4_core0 from "zod/v4/core";
7
7
 
8
- //#region components/biz/business/detail/materials/video-detail-info-title/material.d.ts
8
+ //#region components/biz/business/detail/video-detail-info-title/material.d.ts
9
9
  declare const videoDetailInfoTitleMaterial: DefineMaterialOption<typeof VideoDetailInfoTitle, typeof VideoDetailInfoTitleClient, zod.ZodObject<{
10
10
  mode: zod.ZodOptional<zod.ZodEnum<{
11
11
  renderer: "renderer";
@@ -0,0 +1,2 @@
1
+
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleClient as t}from"./client.mjs";import{videoDetailInfoTitleInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitle as r}from"./server.mjs";const i=e({type:`video-detail-info-title`,name:`专辑信息样式1`,icon:`/static/components-thumb/media_info_basic.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoTitleMaterial};
@@ -1,10 +1,10 @@
1
1
 
2
- import { InferSchemaProps } from "../../../../../../utils/schema/schema.mjs";
3
- import "../../../../../../utils/schema/index.mjs";
2
+ import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
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
- //#region components/biz/business/detail/materials/video-detail-info-title/schema.d.ts
7
+ //#region components/biz/business/detail/video-detail-info-title/schema.d.ts
8
8
  /**
9
9
  * 媒体信息物料暂不对外开放配置。
10
10
  */
@@ -0,0 +1,2 @@
1
+
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";const n=e({});t(n);export{n as videoDetailInfoTitleInspectorPropsSchema};
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailInfoTitleProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-info-title/server.d.ts
5
+ //#region components/biz/business/detail/video-detail-info-title/server.d.ts
6
6
  /**
7
7
  * 媒体信息物料服务端组件。
8
8
  */
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailInfoTitleTagsEpisodesProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.d.ts
5
+ //#region components/biz/business/detail/video-detail-info-title-tags-episodes/client.d.ts
6
6
  /**
7
7
  * 媒体信息-选集物料客户端组件。
8
8
  */
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{Box as e}from"../../../../ui/box.mjs";import{useCardDecoration as t}from"../../../../../hooks/use-card-decoration.mjs";import{SeriesEpisodes as n}from"../../../../common/series-episodes/index.mjs";import{DetailInfoTags as r}from"../shared/detail-info-tags.mjs";import{DetailInfoTitle as i}from"../shared/detail-info-title.mjs";import{editorPreviewInformation as a}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as o}from"../shared/runtime-context-provider.mjs";import{jsx as s,jsxs as c}from"react/jsx-runtime";function l({showTags:l=!0,showEpisodes:u=!0,mode:d=`renderer`}){let f=o(),p=f?.information,m=f?.currentSeriesNum??1,h=f?.onEpisodeChange,g=d===`editor`||!p,_=g?a:p,v=Math.max(1,Number(m||1)),y=g?e=>{}:h??(()=>{}),{getTitleText:b}=t(),x=b(_),S=_?.is_more_link===`y`&&(_?.links?.length??0)>0,C=l&&(_.tags?.length??0)>0,w=u&&S;return!x&&!C&&!w?null:c(e,{className:`w-full mt-[16px] ${g?`pointer-events-none`:``}`,children:[c(e,{className:`px-[12px]`,children:[x&&s(i,{title:x}),C&&s(r,{tags:_.tags||[],className:`mt-[12px]`})]}),w&&s(n,{mode:`detail`,series_num:v,information:_,onEpisodeChange:y})]})}export{l as VideoDetailInfoTitleTagsEpisodesClient};
@@ -1,13 +1,13 @@
1
1
 
2
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
3
- import { DefineMaterialOption } from "../../../../../../utils/schema/material.mjs";
4
- import "../../../../../../utils/schema/index.mjs";
2
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
3
+ import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
4
+ import "../../../../../utils/schema/index.mjs";
5
5
  import { VideoDetailInfoTitleTagsEpisodesClient } from "./client.mjs";
6
6
  import { VideoDetailInfoTitleTagsEpisodes } from "./server.mjs";
7
7
  import * as zod from "zod";
8
8
  import * as zod_v4_core0 from "zod/v4/core";
9
9
 
10
- //#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.d.ts
10
+ //#region components/biz/business/detail/video-detail-info-title-tags-episodes/material.d.ts
11
11
  declare const videoDetailInfoTitleTagsEpisodesMaterial: DefineMaterialOption<typeof VideoDetailInfoTitleTagsEpisodes, typeof VideoDetailInfoTitleTagsEpisodesClient, zod.ZodObject<{
12
12
  showTags: zod.ZodBoolean & SchemaHasDefaultValue;
13
13
  showEpisodes: zod.ZodBoolean & SchemaHasDefaultValue;
@@ -0,0 +1,2 @@
1
+
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleTagsEpisodesClient as t}from"./client.mjs";import{videoDetailInfoTitleTagsEpisodesInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitleTagsEpisodes as r}from"./server.mjs";const i=e({type:`video-detail-info-title-tags-episodes`,name:`专辑信息样式3`,icon:`/static/components-thumb/media_info_episode_list.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoTitleTagsEpisodesMaterial};
@@ -1,10 +1,10 @@
1
1
 
2
- import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
3
- import "../../../../../../utils/schema/index.mjs";
2
+ import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
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
- //#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.d.ts
7
+ //#region components/biz/business/detail/video-detail-info-title-tags-episodes/schema.d.ts
8
8
  /**
9
9
  * 媒体信息-选集物料暂不对外开放配置。
10
10
  */
@@ -0,0 +1,2 @@
1
+
2
+ import{defineComponentPropsSchema as e,defineSwitchPropSchema as t,getSchemaDefaultProps as n}from"../../../../../utils/schema/schema.mjs";const r=e({showTags:t({label:`显示标签`,defaultValue:!0}),showEpisodes:t({label:`显示选集`,defaultValue:!0})});n(r);export{r as videoDetailInfoTitleTagsEpisodesInspectorPropsSchema};
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailInfoTitleTagsEpisodesProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/server.d.ts
5
+ //#region components/biz/business/detail/video-detail-info-title-tags-episodes/server.d.ts
6
6
  /**
7
7
  * 媒体信息-选集物料服务端组件。
8
8
  */
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailPlayerProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-player/client.d.ts
5
+ //#region components/biz/business/detail/video-detail-player/client.d.ts
6
6
  /**
7
7
  * 视频播放器物料客户端组件。
8
8
  */
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{editorPreviewInformation as e}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as t}from"../shared/runtime-context-provider.mjs";import{DetailHero as n}from"../shared/video-hero.mjs";import{jsx as r}from"react/jsx-runtime";function i({mode:i=`renderer`}){let a=t(),o=a?.information,s=a?.episodeIndex??0,c=a?.resumeProgressSeconds??0,l=i===`editor`||!o,u=l?{...e,id:``,mid:``}:o;return r(`div`,{className:l?`pointer-events-none`:void 0,children:r(n,{mode:i,isVideo:!0,information:u,episodeIndex:l?0:s,resumeProgressSeconds:l?0:c})})}export{i as VideoDetailPlayerClient};
@@ -1,11 +1,11 @@
1
1
 
2
- import { DefineMaterialOption } from "../../../../../../utils/schema/material.mjs";
2
+ import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
3
3
  import { VideoDetailPlayerClient } from "./client.mjs";
4
4
  import { VideoDetailPlayer } from "./server.mjs";
5
5
  import * as zod from "zod";
6
6
  import * as zod_v4_core0 from "zod/v4/core";
7
7
 
8
- //#region components/biz/business/detail/materials/video-detail-player/material.d.ts
8
+ //#region components/biz/business/detail/video-detail-player/material.d.ts
9
9
  declare const videoDetailPlayerMaterial: DefineMaterialOption<typeof VideoDetailPlayer, typeof VideoDetailPlayerClient, zod.ZodObject<{
10
10
  mode: zod.ZodOptional<zod.ZodEnum<{
11
11
  renderer: "renderer";
@@ -0,0 +1,2 @@
1
+
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{VideoDetailPlayerClient as t}from"./client.mjs";import{videoDetailPlayerInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailPlayer as r}from"./server.mjs";const i=e({type:`video-detail-player`,name:`视频播放器`,icon:`/static/components-thumb/video_player.png`,category:`视频模块`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailPlayerMaterial};
@@ -1,10 +1,10 @@
1
1
 
2
- import { InferSchemaProps } from "../../../../../../utils/schema/schema.mjs";
3
- import "../../../../../../utils/schema/index.mjs";
2
+ import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
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
- //#region components/biz/business/detail/materials/video-detail-player/schema.d.ts
7
+ //#region components/biz/business/detail/video-detail-player/schema.d.ts
8
8
  /**
9
9
  * 播放器物料暂不对外开放配置。
10
10
  */
@@ -0,0 +1,2 @@
1
+
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";const n=e({});t(n);export{n as videoDetailPlayerInspectorPropsSchema};
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailPlayerProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-player/server.d.ts
5
+ //#region components/biz/business/detail/video-detail-player/server.d.ts
6
6
  /**
7
7
  * 视频播放器物料服务端组件。
8
8
  */
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailRecommendProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-recommend/client.d.ts
5
+ //#region components/biz/business/detail/video-detail-recommend/client.d.ts
6
6
  /**
7
7
  * 推荐模块客户端组件。
8
8
  */
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{gContentGetGuessYouLikeVideos as e}from"../../../../../service/generated/client.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{useRequest as r}from"../../../../../hooks/query/use-query.mjs";import i from"../../../../../assets/icons/detail/video_flag.mjs";import{MiniThreeCard as a}from"../../../../common/cards/mini-three-card.mjs";import{useCardDecoration as o}from"../../../../../hooks/use-card-decoration.mjs";import{buildEditorPreviewRecommendList as s}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as c}from"../shared/runtime-context-provider.mjs";import{buildEpisodeLabel as l,clampColumns as u,mergeManualAndPool as d,mockPagedList as f,resolveRows as p}from"./utils.mjs";import{useEffect as m,useMemo as h,useRef as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";function b({rows:b,columns:te,smartTagEnabled:C,smartTagIds:w,title:ne,showPlayCount:re,playCountDelta:ie,showEpisode:T,enableInfinite:E,items:D,mode:O=`renderer`}){let k=c()?.detailId||``,A=O===`editor`,j=A||!k,{getVerticalHoCoverImageUrl:M,getTitleText:N}=o(),[P,F]=_(1),I=g(null),L=h(()=>w??[],[w]),R=h(()=>D??[],[D]),z=!!E&&!A,B=p(b,z),V=u(te),H=B*V,U=h(()=>s(H),[H]),{data:W}=r([`video-detail-recommend`,k],async()=>!k||j?null:await e(),{enabled:!j&&!!k}),G=h(()=>{if(j)return U;let e=W?.data?.videos;return Array.isArray(e)?e.map(e=>x(e)).filter(e=>!k||!e.id||e.id!==k):[]},[W?.data?.videos,k,U,j]),K=h(()=>C?new Set:new Set(R.map(e=>e.contentId)),[R,C]),q=h(()=>{if(j)return G;let e=G.filter(e=>!K.has(e.id));if(!C||L.length===0)return e;let t=new Set(L.map(String));return e.filter(e=>(Array.isArray(e.source_tags)?e.source_tags:String(e.source_tags||``).split(`,`).filter(Boolean)).some(e=>t.has(String(e?.id??e))))},[j,K,G,C,L]),J=h(()=>{if(C||!R.length)return[];let e=new Map(q.map(e=>[e.id,e]));return R.map((t,n)=>{let r=U[n%Math.max(1,U.length)],i=e.get(t.contentId)??(j?{...r,id:t.contentId||r.id||`preview-manual-${n+1}`,name:r.name||`猜你喜欢 ${n+1}`}:null);if(!i)return null;let a=t.titleMode===`custom`?t.title:N(i),o=t.coverMode===`upload`?t.coverUrl:M(i);return{info:{...i,name:a||i.name,img_y:o||i.img_y,img_x:o||i.img_x},config:{showPlayCount:t.showPlayCount,playCountDelta:t.playCountDelta,showEpisode:t.showEpisode}}}).filter(Boolean)},[U,q,N,M,j,R,C]),Y=h(()=>q.map(e=>({info:e})),[q]),X=h(()=>d(J,Y,H),[J,H,Y]),Z=h(()=>{if(!z)return X;let e=f(Y,P,H,5);return P===1?X:X.concat(e)},[X,P,H,Y,z]),Q=z&&P<5&&Y.length>0,$=String(ne||``).trim();return m(()=>{z&&F(1)},[k,z]),m(()=>{if(!z)return;let e=I.current;if(!e||!Q)return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&F(e=>Math.min(e+1,5))});return t.observe(e),()=>{t.disconnect()}},[Q,z]),Z.length?y(t,{className:`w-full mt-[16px] ${j?`pointer-events-none`:``}`,children:[$?v(n,{className:`block pl-[12px] mb-[8px] text-text1 text-[18px] leading-[26px] font-bold`,children:$}):null,v(t,{className:`w-full flex flex-wrap px-[12px]`,children:Z.map((e,t)=>{let r=N(e.info),o=re!==!1&&(e.config?.showPlayCount??!0),s=e.config?.showEpisode??T,c=S(e.info.play_count||0),u=l(Number(e.info.update_status)===1?`done`:`updating`,e.info.episode_cnt||e.info.links?.length,e.info.episode_cnt||e.info.links?.length),d=Number.isFinite(V)&&V>0?V:3,f=`${100/d}%`,p=t%d,m=d>1?{paddingLeft:8*p/d,paddingRight:8*(d-p-1)/d}:null;return v(a,{url:M(e.info),text:r,textChild:v(n,{as:`h3`,className:`text-text1 text-[16px] h-[24px] leading-[24px] mt-[4px] line-clamp-1`,children:r}),style:{width:f,...m||{}},bottomLeftChild:o?y(`div`,{className:`h-[20px] leading-[20px] text-[#fff] text-[12px] px-[4px] rounded-[4px] bg-[#333] ml-[4px] flex items-center`,children:[v(i,{className:`w-[16px] h-[auto] text-[#fff] mr-[4px]`}),c]}):null,bottomRightChild:s&&u?v(`div`,{className:`text-[#fff] text-[12px] leading-[20px] pr-2`,children:u}):null,linkPath:j?``:ee(e.info)},`guess-like-${t}`)})}),z&&v(`div`,{ref:I,className:`h-[1px] w-full`})]}):null}function x(e){return{id:e.video_id||``,mid:``,name:e.name||``,cat_id:``,cat_name:``,status:`1`,status_text:``,create_time:``,content_type:0,episode_cnt:e.episode_count||0,show_at:e.show_at??``,position:``,img_type:e.img_type??``,img_x:e.img_x??``,img_y:e.img_y??``,img_width:``,img_height:``,play_count:e.play_count,preview_images:[],duration:String(e.duration??``),score:String(e.score??``),is_more_link:e.is_more_link?`y`:`n`,update_status:String(e.update_status??``),description:e.description??``,language:``,director:``,actor:``,area:``,issue_date:``,publisher:``,series:``,number:``,tags:[],source_tags:e.source_tags??``,source_actor:[],links:Array.isArray(e.episodes)?e.episodes.map(e=>({id:e.id??``,name:e.name??``,preview_m3u8_url:e.preview_m3u8_url??``,m3u8_url:e.m3u8_url??``})):[],money:``,up_user:``,source_username:``,task_id:``,file_status:``}}function S(e){let t=Number(e||`0`);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function ee(e){if(e.content_type===0){let t=encodeURIComponent(e.name||``);return`/video/${e.id}/${t}/episode/1`}return`/post/${e.id}`}export{b as VideoDetailRecommendClient};
@@ -1,13 +1,13 @@
1
1
 
2
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
3
- import { DefineMaterialOption } from "../../../../../../utils/schema/material.mjs";
4
- import "../../../../../../utils/schema/index.mjs";
2
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
3
+ import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
4
+ import "../../../../../utils/schema/index.mjs";
5
5
  import { VideoDetailRecommendClient } from "./client.mjs";
6
6
  import { VideoDetailRecommend } from "./server.mjs";
7
7
  import * as zod from "zod";
8
8
  import * as zod_v4_core0 from "zod/v4/core";
9
9
 
10
- //#region components/biz/business/detail/materials/video-detail-recommend/material.d.ts
10
+ //#region components/biz/business/detail/video-detail-recommend/material.d.ts
11
11
  declare const videoDetailRecommendMaterial: DefineMaterialOption<typeof VideoDetailRecommend, typeof VideoDetailRecommendClient, zod.ZodObject<{
12
12
  rows: zod.ZodNumber & SchemaHasDefaultValue;
13
13
  columns: zod.ZodNumber & SchemaHasDefaultValue;
@@ -0,0 +1,2 @@
1
+
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{VideoDetailRecommendClient as t}from"./client.mjs";import{videoDetailRecommendInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailRecommend as r}from"./server.mjs";const i=e({type:`video-detail-recommend`,name:`详情页-推荐模块`,icon:`/static/components-thumb/video_guess_you_like.png`,category:`详情页`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailRecommendMaterial};
@@ -1,9 +1,9 @@
1
1
 
2
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
3
- import "../../../../../../utils/schema/index.mjs";
2
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
3
+ import "../../../../../utils/schema/index.mjs";
4
4
  import z$1 from "zod";
5
5
 
6
- //#region components/biz/business/detail/materials/video-detail-recommend/schema.d.ts
6
+ //#region components/biz/business/detail/video-detail-recommend/schema.d.ts
7
7
  declare const videoDetailRecommendInspectorPropsSchema: z$1.ZodObject<{
8
8
  rows: z$1.ZodNumber & SchemaHasDefaultValue;
9
9
  columns: z$1.ZodNumber & SchemaHasDefaultValue;
@@ -0,0 +1,2 @@
1
+
2
+ import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../../utils/schema/schema.mjs";import a from"zod";const o=e({rows:t({label:`行数`,defaultValue:1}),columns:t({label:`列数`,defaultValue:2}),smartTagEnabled:n({label:`智能铺设`,defaultValue:!1}),title:r({label:`推荐位名称`,defaultValue:`猜你喜欢`}),showPlayCount:n({label:`显示播放量`,defaultValue:!0}),playCountDelta:t({label:`播放量浮动`,defaultValue:0}),showEpisode:n({label:`显示集数`,defaultValue:!0}),enableInfinite:n({label:`无限下拉`,defaultValue:!1}),smartTagIds:a.array(a.string()).optional(),items:a.array(a.object({contentId:a.string(),coverMode:a.enum([`upload`,`content`]).optional(),coverUrl:a.string().optional(),titleMode:a.enum([`custom`,`content`]).optional(),title:a.string().optional(),description:a.string().optional(),showPlayCount:a.boolean().optional(),playCountDelta:a.number().optional(),showEpisode:a.boolean().optional()})).optional()});({...i(o)});export{o as videoDetailRecommendInspectorPropsSchema};
@@ -2,7 +2,7 @@
2
2
  import { VideoDetailRecommendProps } from "./schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/detail/materials/video-detail-recommend/server.d.ts
5
+ //#region components/biz/business/detail/video-detail-recommend/server.d.ts
6
6
  /**
7
7
  * 推荐模块服务端组件。
8
8
  */
@@ -0,0 +1,24 @@
1
+
2
+ import { MaterialComponentMode } from "../../../../../utils/schema/schema.mjs";
3
+ import "../../../../../utils/schema/index.mjs";
4
+ import { HomeRecommendData } from "../types.mjs";
5
+ import { HomeRecommendGridInspectorProps } from "./inspector-schema.mjs";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+
8
+ //#region components/biz/business/home-recommend/home-recommend-grid/client.d.ts
9
+ interface HomeRecommendGridClientProps extends Partial<Omit<HomeRecommendGridInspectorProps, 'mode'>> {
10
+ /** 预取数据(可选)。 */
11
+ prefetchData?: HomeRecommendData;
12
+ /** 渲染模式。 */
13
+ mode?: MaterialComponentMode;
14
+ }
15
+ /**
16
+ * 首页推荐两列宫格布局(支持预取数据)。
17
+ */
18
+ declare function HomeRecommendGridClient({
19
+ prefetchData,
20
+ mode,
21
+ ...propsConfig
22
+ }: HomeRecommendGridClientProps): react_jsx_runtime0.JSX.Element;
23
+ //#endregion
24
+ export { HomeRecommendGridClient, HomeRecommendGridClientProps };
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{buildHomeRecommendEditorPreviewData as e}from"../shared/home-recommend-preview.mjs";import t from"../shared/home-recommend-base.mjs";import{useMemo as n}from"react";import{jsx as r}from"react/jsx-runtime";function i({prefetchData:i,mode:a=`renderer`,...o}){let s=a===`editor`,c=o,l=n(()=>s?e({variant:`grid`,schemaTitle:c.title,enableInfinite:c.enableInfinite,smartTagEnabled:c.smartTagEnabled,rows:c.rows,columns:c.columns,items:c.items}):i,[s,i,c.columns,c.enableInfinite,c.items,c.rows,c.smartTagEnabled,c.title]);return r(`div`,{className:s?`pointer-events-none`:void 0,children:r(t,{variant:`grid`,props:c,data:l,mode:a})})}export{i as default};
@@ -0,0 +1,6 @@
1
+
2
+ import { homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema } from "./inspector-schema.mjs";
3
+ import { HomeRecommendGridClient, HomeRecommendGridClientProps } from "./client.mjs";
4
+ import { schema } from "./schema.mjs";
5
+ import { HomeRecommendGrid, HomeRecommendGridProps } from "./server.mjs";
6
+ import { homeRecommendGridMaterial } from "./material.mjs";
@@ -0,0 +1,2 @@
1
+
2
+ import e from"./client.mjs";import{homeRecommendGridInspectorDefaultProps as t,homeRecommendGridInspectorPropsSchema as n}from"./inspector-schema.mjs";import{schema as r}from"./schema.mjs";import{HomeRecommendGrid as i}from"./server.mjs";import{homeRecommendGridMaterial as a}from"./material.mjs";var o=e;export{o as default};
@@ -1,10 +1,10 @@
1
1
 
2
- import "../../../../utils/index.mjs";
3
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
4
- import "../../../../../../utils/schema/index.mjs";
2
+ import "../../../utils/index.mjs";
3
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
4
+ import "../../../../../utils/schema/index.mjs";
5
5
  import z$1 from "zod";
6
6
 
7
- //#region components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.d.ts
7
+ //#region components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.ts
8
8
  /**
9
9
  * HomeRecommendGrid 物料属性 schema 定义。
10
10
  */
@@ -0,0 +1,2 @@
1
+
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_GRID_COLUMNS as o,HOME_RECOMMEND_DEFAULT_GRID_ROWS as s,HOME_RECOMMEND_DEFAULT_PLAY_COUNT_DELTA as c,HOME_RECOMMEND_DEFAULT_SHOW_EPISODE as l,HOME_RECOMMEND_DEFAULT_SHOW_PLAY_COUNT as u,HOME_RECOMMEND_DEFAULT_SMART_TAG_ENABLED as d,HOME_RECOMMEND_DEFAULT_TITLE as f}from"../shared/home-recommend-default-config.mjs";import p from"zod";const m=e({rows:t({label:`行数`,defaultValue:s}),columns:t({label:`列数`,defaultValue:o}),smartTagEnabled:n({label:`智能铺设`,defaultValue:d}),title:r({label:`推荐位名称`,defaultValue:f}),showPlayCount:n({label:`显示播放量`,defaultValue:u}),playCountDelta:t({label:`播放量浮动`,defaultValue:c}),showEpisode:n({label:`显示集数`,defaultValue:l}),enableInfinite:n({label:`无限下拉`,defaultValue:a,required:!1}),moreLink:r({label:`更多`,description:``,required:!1,defaultValue:``}),smartTagIds:p.array(p.string()).optional(),items:p.array(p.object({contentId:p.string(),coverMode:p.enum([`upload`,`content`]).optional(),coverUrl:p.string().optional(),badge_url:p.string().optional(),titleMode:p.enum([`custom`,`content`]).optional(),title:p.string().optional(),description:p.string().optional(),showPlayCount:p.boolean().optional(),playCountDelta:p.number().optional(),showEpisode:p.boolean().optional()})).optional()}),h={...i(m),smartTagIds:[],items:[]},g={rows:{type:`number`,title:`行数`,default:h.rows},columns:{type:`number`,title:`列数`,default:h.columns},smartTagEnabled:{type:`boolean`,title:`智能铺设`,default:h.smartTagEnabled},title:{type:`string`,title:`推荐位名称`,default:h.title},showPlayCount:{type:`boolean`,title:`显示播放量`,default:h.showPlayCount},playCountDelta:{type:`number`,title:`播放量浮动`,default:h.playCountDelta},showEpisode:{type:`boolean`,title:`显示集数`,default:h.showEpisode},enableInfinite:{type:`boolean`,title:`无限下拉`,default:h.enableInfinite},moreLink:{type:`string`,title:`更多`,description:``,default:h.moreLink},smartTagIds:{type:`array`,title:`智能铺设标签`,default:h.smartTagIds,items:{type:`string`,title:`标签 ID`}},items:{type:`array`,title:`推荐项`,default:h.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:`标题`},description:{type:`string`,title:`简介`},showPlayCount:{type:`boolean`,title:`显示播放量`},playCountDelta:{type:`number`,title:`播放量浮动`},showEpisode:{type:`boolean`,title:`显示集数`}}}}};export{h as homeRecommendGridInspectorDefaultProps,m as homeRecommendGridInspectorPropsSchema,g as homeRecommendGridPropsSchema};
@@ -1,14 +1,14 @@
1
1
 
2
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
3
- import { DefineMaterialOption } from "../../../../../../utils/schema/material.mjs";
4
- import "../../../../../../utils/schema/index.mjs";
5
- import { HomeRecommendGridPrefetchClient } from "./runtime/prefetch-client.mjs";
2
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
3
+ import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
4
+ import "../../../../../utils/schema/index.mjs";
5
+ import { HomeRecommendGridClient } from "./client.mjs";
6
6
  import { HomeRecommendGrid } from "./server.mjs";
7
7
  import * as zod from "zod";
8
8
  import * as zod_v4_core0 from "zod/v4/core";
9
9
 
10
- //#region components/biz/business/home-recommend/variants/home-recommend-grid/material.d.ts
11
- declare const homeRecommendGridMaterial: DefineMaterialOption<typeof HomeRecommendGrid, typeof HomeRecommendGridPrefetchClient, zod.ZodObject<{
10
+ //#region components/biz/business/home-recommend/home-recommend-grid/material.d.ts
11
+ declare const homeRecommendGridMaterial: DefineMaterialOption<typeof HomeRecommendGrid, typeof HomeRecommendGridClient, zod.ZodObject<{
12
12
  rows: zod.ZodNumber & SchemaHasDefaultValue;
13
13
  columns: zod.ZodNumber & SchemaHasDefaultValue;
14
14
  smartTagEnabled: zod.ZodBoolean & SchemaHasDefaultValue;
@@ -0,0 +1,2 @@
1
+
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};
@@ -0,0 +1,11 @@
1
+
2
+ import { ComponentSchema } from "../../../utils/schema/component.mjs";
3
+ import "../../../utils/index.mjs";
4
+
5
+ //#region components/biz/business/home-recommend/home-recommend-grid/schema.d.ts
6
+ /**
7
+ * HomeRecommendGrid 组件 Schema 定义。
8
+ */
9
+ declare const schema: ComponentSchema;
10
+ //#endregion
11
+ export { schema };
@@ -0,0 +1,2 @@
1
+
2
+ import{commonStyleSchema as e}from"../../../utils/styles/schema.mjs";import{homeRecommendGridPropsSchema as t}from"./inspector-schema.mjs";const n={componentName:`HomeRecommendGrid`,displayName:`两列宫格推荐位`,category:`HomeRecommend`,categoryName:`内容组件`,enabled:!0,propsSchema:t,dataSchema:{dataBinding:{field:`videos`,sourceType:`dynamic`}},styleSchema:{...e},eventSchema:{}};export{n as schema};
@@ -2,7 +2,7 @@
2
2
  import { HomeRecommendGridInspectorProps } from "./inspector-schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/home-recommend/variants/home-recommend-grid/server.d.ts
5
+ //#region components/biz/business/home-recommend/home-recommend-grid/server.d.ts
6
6
  /** HomeRecommendGrid 物料组件 props。 */
7
7
  type HomeRecommendGridProps = HomeRecommendGridInspectorProps;
8
8
  /**
@@ -11,4 +11,4 @@ type HomeRecommendGridProps = HomeRecommendGridInspectorProps;
11
11
  */
12
12
  declare function HomeRecommendGrid(props: HomeRecommendGridProps): Promise<react_jsx_runtime0.JSX.Element>;
13
13
  //#endregion
14
- export { HomeRecommendGrid };
14
+ export { HomeRecommendGrid, HomeRecommendGridProps };
@@ -0,0 +1,2 @@
1
+
2
+ import e from"./client.mjs";import{resolveHomeRecommendServerData as t}from"../shared/home-recommend-server-data.mjs";import{jsx as n}from"react/jsx-runtime";function r({rows:e,columns:t}){let n=Number(e),r=Number(t);if(!Number.isFinite(n)||!Number.isFinite(r))return 16;let i=Math.floor(n)*Math.floor(r);return!Number.isFinite(i)||i<=0?16:i}async function i(i){let{mode:a=`renderer`,...o}=i;if(a!==`renderer`)return n(e,{...o,mode:a});let s=await t({smartTagEnabled:o.smartTagEnabled,pageSize:r(o),items:o.items});return n(e,{...o,prefetchData:s.data,mode:a})}export{i as HomeRecommendGrid};
@@ -0,0 +1,24 @@
1
+
2
+ import { MaterialComponentMode } from "../../../../../utils/schema/schema.mjs";
3
+ import "../../../../../utils/schema/index.mjs";
4
+ import { HomeRecommendData } from "../types.mjs";
5
+ import { HomeRecommendWaterfallInspectorProps } from "./inspector-schema.mjs";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+
8
+ //#region components/biz/business/home-recommend/home-recommend-waterfall/client.d.ts
9
+ interface HomeRecommendWaterfallClientProps extends Partial<Omit<HomeRecommendWaterfallInspectorProps, 'mode'>> {
10
+ /** 预取数据(可选)。 */
11
+ prefetchData?: HomeRecommendData;
12
+ /** 渲染模式。 */
13
+ mode?: MaterialComponentMode;
14
+ }
15
+ /**
16
+ * 首页推荐瀑布流布局(支持预取数据)。
17
+ */
18
+ declare function HomeRecommendWaterfallClient({
19
+ prefetchData,
20
+ mode,
21
+ ...propsConfig
22
+ }: HomeRecommendWaterfallClientProps): react_jsx_runtime0.JSX.Element;
23
+ //#endregion
24
+ export { HomeRecommendWaterfallClient, HomeRecommendWaterfallClientProps };
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{buildHomeRecommendEditorPreviewData as e}from"../shared/home-recommend-preview.mjs";import t from"../shared/home-recommend-base.mjs";import{useMemo as n}from"react";import{jsx as r}from"react/jsx-runtime";function i({prefetchData:i,mode:a=`renderer`,...o}){let s=a===`editor`,c=o,l=n(()=>s?e({variant:`waterfall`,schemaTitle:c.title,enableInfinite:c.enableInfinite,smartTagEnabled:c.smartTagEnabled,items:c.items}):i,[s,i,c.enableInfinite,c.items,c.smartTagEnabled,c.title]);return r(`div`,{className:s?`pointer-events-none`:void 0,children:r(t,{variant:`waterfall`,props:c,data:l,mode:a})})}export{i as default};
@@ -0,0 +1,6 @@
1
+
2
+ import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema } from "./inspector-schema.mjs";
3
+ import { HomeRecommendWaterfallClient, HomeRecommendWaterfallClientProps } from "./client.mjs";
4
+ import { schema } from "./schema.mjs";
5
+ import { HomeRecommendWaterfall, HomeRecommendWaterfallProps } from "./server.mjs";
6
+ import { homeRecommendWaterfallMaterial } from "./material.mjs";
@@ -0,0 +1,2 @@
1
+
2
+ import e from"./client.mjs";import{homeRecommendWaterfallInspectorDefaultProps as t,homeRecommendWaterfallInspectorPropsSchema as n}from"./inspector-schema.mjs";import{schema as r}from"./schema.mjs";import{HomeRecommendWaterfall as i}from"./server.mjs";import{homeRecommendWaterfallMaterial as a}from"./material.mjs";var o=e;export{o as default};
@@ -1,10 +1,10 @@
1
1
 
2
- import "../../../../utils/index.mjs";
3
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
4
- import "../../../../../../utils/schema/index.mjs";
2
+ import "../../../utils/index.mjs";
3
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
4
+ import "../../../../../utils/schema/index.mjs";
5
5
  import z$1 from "zod";
6
6
 
7
- //#region components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.d.ts
7
+ //#region components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.ts
8
8
  /**
9
9
  * HomeRecommendWaterfall 物料属性 schema 定义。
10
10
  */
@@ -15,6 +15,7 @@ declare const homeRecommendWaterfallInspectorPropsSchema: z$1.ZodObject<{
15
15
  playCountDelta: z$1.ZodNumber & SchemaHasDefaultValue;
16
16
  showEpisode: z$1.ZodBoolean & SchemaHasDefaultValue;
17
17
  enableInfinite: z$1.ZodBoolean & SchemaHasDefaultValue;
18
+ moreLink: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
18
19
  smartTagIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
19
20
  items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
20
21
  contentId: z$1.ZodString;
@@ -23,6 +24,7 @@ declare const homeRecommendWaterfallInspectorPropsSchema: z$1.ZodObject<{
23
24
  upload: "upload";
24
25
  }>>;
25
26
  coverUrl: z$1.ZodOptional<z$1.ZodString>;
27
+ badge_url: z$1.ZodOptional<z$1.ZodString>;
26
28
  titleMode: z$1.ZodOptional<z$1.ZodEnum<{
27
29
  content: "content";
28
30
  custom: "custom";
@@ -46,6 +48,7 @@ declare const homeRecommendWaterfallInspectorDefaultProps: {
46
48
  playCountDelta: number;
47
49
  showEpisode: boolean;
48
50
  enableInfinite: boolean;
51
+ moreLink: string;
49
52
  };
50
53
  type HomeRecommendWaterfallInspectorProps = z$1.infer<typeof homeRecommendWaterfallInspectorPropsSchema>;
51
54
  //#endregion
@@ -0,0 +1,2 @@
1
+
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(),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`}},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,20 +1,21 @@
1
1
 
2
- import { SchemaHasDefaultValue } from "../../../../../../utils/schema/schema.mjs";
3
- import { DefineMaterialOption } from "../../../../../../utils/schema/material.mjs";
4
- import "../../../../../../utils/schema/index.mjs";
5
- import { HomeRecommendWaterfallPrefetchClient } from "./runtime/prefetch-client.mjs";
2
+ import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
3
+ import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
4
+ import "../../../../../utils/schema/index.mjs";
5
+ import { HomeRecommendWaterfallClient } from "./client.mjs";
6
6
  import { HomeRecommendWaterfall } from "./server.mjs";
7
7
  import * as zod from "zod";
8
8
  import * as zod_v4_core0 from "zod/v4/core";
9
9
 
10
- //#region components/biz/business/home-recommend/variants/home-recommend-waterfall/material.d.ts
11
- declare const homeRecommendWaterfallMaterial: DefineMaterialOption<typeof HomeRecommendWaterfall, typeof HomeRecommendWaterfallPrefetchClient, zod.ZodObject<{
10
+ //#region components/biz/business/home-recommend/home-recommend-waterfall/material.d.ts
11
+ declare const homeRecommendWaterfallMaterial: DefineMaterialOption<typeof HomeRecommendWaterfall, typeof HomeRecommendWaterfallClient, zod.ZodObject<{
12
12
  smartTagEnabled: zod.ZodBoolean & SchemaHasDefaultValue;
13
13
  title: zod.ZodString & SchemaHasDefaultValue;
14
14
  showPlayCount: zod.ZodBoolean & SchemaHasDefaultValue;
15
15
  playCountDelta: zod.ZodNumber & SchemaHasDefaultValue;
16
16
  showEpisode: zod.ZodBoolean & SchemaHasDefaultValue;
17
17
  enableInfinite: zod.ZodBoolean & SchemaHasDefaultValue;
18
+ moreLink: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
18
19
  smartTagIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
19
20
  items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20
21
  contentId: zod.ZodString;
@@ -23,6 +24,7 @@ declare const homeRecommendWaterfallMaterial: DefineMaterialOption<typeof HomeRe
23
24
  upload: "upload";
24
25
  }>>;
25
26
  coverUrl: zod.ZodOptional<zod.ZodString>;
27
+ badge_url: zod.ZodOptional<zod.ZodString>;
26
28
  titleMode: zod.ZodOptional<zod.ZodEnum<{
27
29
  content: "content";
28
30
  custom: "custom";
@@ -0,0 +1,2 @@
1
+
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};
@@ -0,0 +1,11 @@
1
+
2
+ import { ComponentSchema } from "../../../utils/schema/component.mjs";
3
+ import "../../../utils/index.mjs";
4
+
5
+ //#region components/biz/business/home-recommend/home-recommend-waterfall/schema.d.ts
6
+ /**
7
+ * HomeRecommendWaterfall 组件 Schema 定义。
8
+ */
9
+ declare const schema: ComponentSchema;
10
+ //#endregion
11
+ export { schema };
@@ -0,0 +1,2 @@
1
+
2
+ import{commonStyleSchema as e}from"../../../utils/styles/schema.mjs";import{homeRecommendWaterfallPropsSchema as t}from"./inspector-schema.mjs";const n={componentName:`HomeRecommendWaterfall`,displayName:`瀑布流`,category:`HomeRecommend`,categoryName:`内容组件`,enabled:!0,propsSchema:t,dataSchema:{dataBinding:{field:`videos`,sourceType:`dynamic`}},styleSchema:{...e},eventSchema:{}};export{n as schema};
@@ -2,7 +2,7 @@
2
2
  import { HomeRecommendWaterfallInspectorProps } from "./inspector-schema.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region components/biz/business/home-recommend/variants/home-recommend-waterfall/server.d.ts
5
+ //#region components/biz/business/home-recommend/home-recommend-waterfall/server.d.ts
6
6
  /** HomeRecommendWaterfall 物料组件 props。 */
7
7
  type HomeRecommendWaterfallProps = HomeRecommendWaterfallInspectorProps;
8
8
  /**
@@ -11,4 +11,4 @@ type HomeRecommendWaterfallProps = HomeRecommendWaterfallInspectorProps;
11
11
  */
12
12
  declare function HomeRecommendWaterfall(props: HomeRecommendWaterfallProps): Promise<react_jsx_runtime0.JSX.Element>;
13
13
  //#endregion
14
- export { HomeRecommendWaterfall };
14
+ export { HomeRecommendWaterfall, HomeRecommendWaterfallProps };
@@ -0,0 +1,2 @@
1
+
2
+ import e from"./client.mjs";import{resolveHomeRecommendServerData as t}from"../shared/home-recommend-server-data.mjs";import{jsx as n}from"react/jsx-runtime";function r(e){let t=Array.isArray(e)?e.length:0;return t>0?t:16}async function i(i){let{mode:a=`renderer`,...o}=i;if(a!==`renderer`)return n(e,{...o,mode:a});let s=await t({smartTagEnabled:o.smartTagEnabled,pageSize:r(o.items),items:o.items});return n(e,{...o,prefetchData:s.data,mode:a})}export{i as HomeRecommendWaterfall};