@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.
- package/dist/assets/icons/filter_dark.mjs +1 -1
- package/dist/biz.d.mts +15 -15
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/business/comment/comment-list.mjs +1 -1
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +2 -0
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +2 -0
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +2 -0
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +2 -0
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +2 -0
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +2 -0
- package/dist/components/biz/business/detail/{materials → shared}/registry.d.mts +20 -20
- package/dist/components/biz/business/detail/shared/registry.mjs +2 -0
- package/dist/components/biz/business/detail/shared/seo-config.mjs +2 -0
- package/dist/components/biz/business/detail/shared/video-hero.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/material.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/material.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title/client.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/material.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-info-title/material.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info-title/schema.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/material.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/material.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/material.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +2 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/server.d.mts +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.d.mts +24 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.d.mts +6 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +2 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/inspector-schema.d.mts +4 -4
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/material.d.mts +6 -6
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.d.mts +11 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/server.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.d.mts +24 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.d.mts +6 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +2 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/inspector-schema.d.mts +7 -4
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/material.d.mts +8 -6
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.d.mts +11 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/server.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +2 -0
- package/dist/components/biz/business/home-recommend/index.d.mts +12 -12
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -1
- package/dist/components/biz/business/home-recommend/types.d.mts +1 -5
- package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/client.d.mts +14 -3
- package/dist/components/biz/business/image-text-recommend/client.mjs +2 -0
- package/dist/components/biz/business/image-text-recommend/index.d.mts +5 -0
- package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/material.d.mts +2 -3
- package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/schema.d.mts +1 -2
- package/dist/components/biz/business/image-text-recommend/schema.mjs +2 -0
- package/dist/components/biz/business/image-text-recommend/server.d.mts +13 -0
- package/dist/components/biz/business/image-text-recommend/server.mjs +2 -0
- package/dist/components/biz/business/index.d.mts +16 -16
- package/dist/components/biz/business/marquee/material.d.mts +1 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/server.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/utils/transformers/data.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/video-detail/page.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.d.mts +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/index.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/hooks/video-horizontal-list.d.mts +17 -0
- package/dist/hooks/video-horizontal-list.mjs +2 -0
- package/dist/hooks.d.mts +2 -1
- package/dist/hooks.mjs +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/materials.d.mts +15 -15
- package/dist/materials.mjs +1 -1
- package/dist/service/generated/client.d.mts +171 -275
- package/dist/service/generated/client.mjs +1 -1
- package/dist/service/generated/tanstack.d.mts +172 -302
- package/dist/service/generated/tanstack.mjs +1 -1
- package/dist/service.d.mts +3 -6
- package/dist/service.mjs +1 -1
- package/dist/types/community-types.d.mts +46 -0
- package/dist/types.d.mts +2732 -5699
- package/dist/utils/follow-service.d.mts +4 -4
- package/package.json +1 -1
- package/dist/components/biz/business/detail/detail-follow-action.mjs +0 -2
- package/dist/components/biz/business/detail/detail-info-tags.mjs +0 -2
- package/dist/components/biz/business/detail/detail-info-title.mjs +0 -2
- package/dist/components/biz/business/detail/detail-introduction.mjs +0 -2
- package/dist/components/biz/business/detail/detail-operate.mjs +0 -2
- package/dist/components/biz/business/detail/materials/registry.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.mjs +0 -2
- package/dist/components/biz/business/detail/post-recommend-list.mjs +0 -2
- package/dist/components/biz/business/detail/seo-config.mjs +0 -2
- package/dist/components/biz/business/detail/video-hero.mjs +0 -2
- package/dist/components/biz/business/home-recommend/shared/home-recommend-feed-mode.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.d.mts +0 -6
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/prefetch-client.d.mts +0 -27
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/prefetch-client.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/component.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/data.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/event.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.d.mts +0 -8
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/style.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.d.mts +0 -6
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/prefetch-client.d.mts +0 -27
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/prefetch-client.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/component.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/data.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/event.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.d.mts +0 -8
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/style.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/client.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/index.d.mts +0 -5
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/server.d.mts +0 -12
- package/dist/components/biz/business/video-horizontal-list/server.mjs +0 -2
- package/dist/service/batch-get-video-detail.d.mts +0 -21
- package/dist/service/batch-get-video-detail.mjs +0 -2
- package/dist/service/content-batch-get-video-detail.d.mts +0 -21
- package/dist/service/content-batch-get-video-detail.mjs +0 -2
- package/dist/service/get-popular-video-list-post.d.mts +0 -8
- package/dist/service/get-popular-video-list-post.mjs +0 -2
- /package/dist/components/biz/business/detail/{detail-structured-data.mjs → shared/detail-structured-data.mjs} +0 -0
- /package/dist/components/biz/business/detail/{materials → shared}/editor-preview.mjs +0 -0
- /package/dist/components/biz/business/detail/{metadata-utils.mjs → shared/metadata-utils.mjs} +0 -0
- /package/dist/components/biz/business/detail/{materials → shared}/runtime-context-provider.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/server.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/server.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/server.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/server.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/server.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/server.mjs +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/utils.mjs +0 -0
- /package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/material.mjs +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import*as e from"react";const t=t=>e.createElement(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`path`,{d:`M0.888673 3.52304C0.397856 3.52292 9.67317e-07 3.12521 1.01023e-06 2.63437C5.82151e-06 2.14353 0.397858 1.74582 0.888673 1.7457L15.1113 1.7457C15.6021 1.74581 16 2.14353 16 2.63437C16 3.12522 15.6021 3.52292 15.1113 3.52304L0.888673 3.52304ZM0.888672 8.85702C0.397855 8.8569 5.01091e-07 8.45822 5.44002e-07 7.96738C0.000212303 7.47671 0.397986 7.07882 0.888672 7.0787L15.1113 7.0787C15.602 7.07882 15.9998 7.47671 16 7.96738C16 8.45822 15.6021 8.85691 15.1113 8.85703L0.888672 8.85702ZM5.09082 14.19C4.60008 14.19 4.20237 13.7921 4.20215 13.3014C4.20215 12.8105 4.59994 12.4118 5.09082 12.4117L15.1113 12.4117C15.6021 12.4118 16 12.8105 16 13.3014C15.9998 13.792 15.602 14.1899 15.1113 14.19L5.09082 14.19Z`,fill:`
|
|
2
|
+
import*as e from"react";const t=t=>e.createElement(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`path`,{d:`M0.888673 3.52304C0.397856 3.52292 9.67317e-07 3.12521 1.01023e-06 2.63437C5.82151e-06 2.14353 0.397858 1.74582 0.888673 1.7457L15.1113 1.7457C15.6021 1.74581 16 2.14353 16 2.63437C16 3.12522 15.6021 3.52292 15.1113 3.52304L0.888673 3.52304ZM0.888672 8.85702C0.397855 8.8569 5.01091e-07 8.45822 5.44002e-07 7.96738C0.000212303 7.47671 0.397986 7.07882 0.888672 7.0787L15.1113 7.0787C15.602 7.07882 15.9998 7.47671 16 7.96738C16 8.45822 15.6021 8.85691 15.1113 8.85703L0.888672 8.85702ZM5.09082 14.19C4.60008 14.19 4.20237 13.7921 4.20215 13.3014C4.20215 12.8105 4.59994 12.4118 5.09082 12.4117L15.1113 12.4117C15.6021 12.4118 16 12.8105 16 13.3014C15.9998 13.792 15.602 14.1899 15.1113 14.19L5.09082 14.19Z`,fill:`currentColor`}));export{t as default};
|
package/dist/biz.d.mts
CHANGED
|
@@ -73,16 +73,20 @@ import { schema as schema$19 } from "./components/biz/business/fullscreen-feed/v
|
|
|
73
73
|
import { defaultProps as defaultProps$20 } from "./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";
|
|
74
74
|
import { FullscreenVideoFeedClient } from "./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs";
|
|
75
75
|
import { schema as schema$20 } from "./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";
|
|
76
|
-
import { homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema } from "./components/biz/business/home-recommend/
|
|
77
|
-
import {
|
|
78
|
-
import { schema as schema$21 } from "./components/biz/business/home-recommend/
|
|
79
|
-
import { HomeRecommendGrid } from "./components/biz/business/home-recommend/
|
|
80
|
-
import { homeRecommendGridMaterial } from "./components/biz/business/home-recommend/
|
|
81
|
-
import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema } from "./components/biz/business/home-recommend/
|
|
82
|
-
import {
|
|
83
|
-
import { schema as schema$22 } from "./components/biz/business/home-recommend/
|
|
84
|
-
import { HomeRecommendWaterfall } from "./components/biz/business/home-recommend/
|
|
85
|
-
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/
|
|
76
|
+
import { homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema } from "./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";
|
|
77
|
+
import { HomeRecommendGridClient } from "./components/biz/business/home-recommend/home-recommend-grid/client.mjs";
|
|
78
|
+
import { schema as schema$21 } from "./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";
|
|
79
|
+
import { HomeRecommendGrid } from "./components/biz/business/home-recommend/home-recommend-grid/server.mjs";
|
|
80
|
+
import { homeRecommendGridMaterial } from "./components/biz/business/home-recommend/home-recommend-grid/material.mjs";
|
|
81
|
+
import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema } from "./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";
|
|
82
|
+
import { HomeRecommendWaterfallClient } from "./components/biz/business/home-recommend/home-recommend-waterfall/client.mjs";
|
|
83
|
+
import { schema as schema$22 } from "./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";
|
|
84
|
+
import { HomeRecommendWaterfall } from "./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";
|
|
85
|
+
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
|
|
86
|
+
import { videoHorizontalListInspectorPropsSchema } from "./components/biz/business/image-text-recommend/schema.mjs";
|
|
87
|
+
import { VideoHorizontalListClient, VideoHorizontalListInitialData, VideoHorizontalListProps } from "./components/biz/business/image-text-recommend/client.mjs";
|
|
88
|
+
import { VideoHorizontalListServer } from "./components/biz/business/image-text-recommend/server.mjs";
|
|
89
|
+
import { videoHorizontalListMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
|
|
86
90
|
import { marqueeInspectorPropsSchema } from "./components/biz/business/marquee/schema.mjs";
|
|
87
91
|
import { MarqueeClient, MarqueeProps } from "./components/biz/business/marquee/client.mjs";
|
|
88
92
|
import { MarqueeServer } from "./components/biz/business/marquee/server.mjs";
|
|
@@ -142,10 +146,6 @@ import { textRecommendInspectorPropsSchema } from "./components/biz/business/tex
|
|
|
142
146
|
import { TextRecommendClient, TextRecommendProps } from "./components/biz/business/text-recommend/client.mjs";
|
|
143
147
|
import { TextRecommendServer } from "./components/biz/business/text-recommend/server.mjs";
|
|
144
148
|
import { textRecommendMaterial } from "./components/biz/business/text-recommend/material.mjs";
|
|
145
|
-
import { videoHorizontalListInspectorPropsSchema } from "./components/biz/business/video-horizontal-list/schema.mjs";
|
|
146
|
-
import { VideoHorizontalListClient, VideoHorizontalListProps } from "./components/biz/business/video-horizontal-list/client.mjs";
|
|
147
|
-
import { VideoHorizontalListServer } from "./components/biz/business/video-horizontal-list/server.mjs";
|
|
148
|
-
import { videoHorizontalListMaterial } from "./components/biz/business/video-horizontal-list/material.mjs";
|
|
149
149
|
import "./components/biz/business/index.mjs";
|
|
150
150
|
import { ButtonInspectorProps, ButtonProps, buttonInspectorDefaultProps, buttonInspectorPropsSchema } from "./components/biz/example/button/schema.mjs";
|
|
151
151
|
import { ButtonClient } from "./components/biz/example/button/client.mjs";
|
|
@@ -154,4 +154,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
|
|
|
154
154
|
import "./components/biz/example/button/index.mjs";
|
|
155
155
|
import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
|
|
156
156
|
import "./components/biz/renderer/index.mjs";
|
|
157
|
-
export { BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabAuthConfig, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabAuthConfig, HistoryTabProps, HistoryTabServer,
|
|
157
|
+
export { BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabAuthConfig, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabAuthConfig, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, ProfileHeaderInspectorProps, ProfileMainAuthConfig, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeader, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileHeaderProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, VideoHorizontalListClient, VideoHorizontalListInitialData, VideoHorizontalListProps, VideoHorizontalListServer, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildCollectTabPrefetch, buildContentUrl, buildHistoryTabPrefetch, buildLikeTabPrefetch, buildPublishTabPrefetch, buildUserProfileHeaderPrefetch, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, customStylesToInline, exampleButtonMaterial, extractDataByComponentType, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getCardSpecConfig, getChannelList, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorPropsSchema, searchInputMaterial, tabBarInspectorPropsSchema, tabBarMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem, videoHorizontalListInspectorPropsSchema, videoHorizontalListMaterial };
|
package/dist/biz.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as S}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import C from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{defaultProps as w}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as T}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import E from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as D}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import O from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as k,homeRecommendGridInspectorPropsSchema as A}from"./components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{schema as j}from"./components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as M,homeRecommendWaterfallInspectorPropsSchema as N}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{schema as P}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{schema as F}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as I}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as L}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as R,extractDataByComponentType as z}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as B}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as H}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as U}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as W}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import G from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as $}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as ze}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as Be}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ve}from"./components/biz/business/marquee/material.mjs";import{defaultProps as He}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ue}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import We from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ge}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Ke from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as qe}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Je,profileHeaderInspectorPropsSchema as Ye}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as Xe,buildUserProfileHeaderPrefetch as Ze}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as Qe,profileHeaderMaterialWithDisabledBackground as $e}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as et,profileMainCollectTabOptions as tt,profileMainHistoryTabOptions as nt,profileMainLikeTabOptions as rt,profileMainMineTabOptions as it,profileMainProfileTabOptions as at,profileMainTabOptions as ot}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as st}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as ct}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as lt,profileMainInspectorPropsSchema as ut}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as dt}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as ft,buildCollectTabPrefetch as pt}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as mt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as ht,buildHistoryTabPrefetch as gt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as _t}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as vt,buildLikeTabPrefetch as yt}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as bt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as xt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as St}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Ct,buildPublishTabPrefetch as wt}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import Tt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Et}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Dt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Ot from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as kt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as At}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import jt from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Mt}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Nt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Pt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Ft}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as It}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Lt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Rt}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as zt}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as Bt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Vt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Ht}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Ut}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Wt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Gt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Kt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as qt}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Jt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Yt}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Xt}from"./components/biz/business/text-recommend/material.mjs";import{VideoHorizontalListClient as Zt}from"./components/biz/business/video-horizontal-list/client.mjs";import{videoHorizontalListInspectorPropsSchema as Qt}from"./components/biz/business/video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as $t}from"./components/biz/business/video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as en}from"./components/biz/business/video-horizontal-list/material.mjs";import{ButtonClient as tn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nn,buttonInspectorPropsSchema as rn}from"./components/biz/example/button/schema.mjs";import{Button as an}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as on}from"./components/biz/example/button/material.mjs";import{Renderer as sn}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,G as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,W as BasicFullscreenFeedSchema,C as BasicLogo,y as BasicLogoDefaultData,S as BasicLogoSchema,We as BasicNavBar,He as BasicNavBarDefaultData,Ue as BasicNavBarSchema,Ke as BasicPostCard,Ge as BasicPostCardDefaultData,F as BasicPostCardSchema,Tt as BasicRecommendedUsers,I as BasicRecommendedUsersDefaultData,L as BasicRecommendedUsersSchema,q as BasicSearch,Ot as BasicSearchBar,Et as BasicSearchBarDefaultData,Dt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,an as Button,tn as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,B as CardItemDefaultData,V as CardItemSchema,H as CardLayoutDefaultData,U as CardLayoutSchema,te as CardSpec,dt as CollectTab,ft as CollectTabServer,R as ComponentType,r as DataBindingUIMode,i as DataSourceType,O as DetailSearchBar,x as DetailSearchBarDefaultData,D as DetailSearchBarSchema,X as FilterSearch,jt as FilterSearchBar,kt as FilterSearchBarDefaultData,At as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,mt as HistoryTab,ht as HistoryTabServer,Fe as HomeRecommendGrid,k as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,j as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,M as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,P as HomeRecommendWaterfallSchema,_t as LikeTab,vt as LikeTabServer,$ as MarqueeClient,Be as MarqueeServer,St as PublishTab,Ct as PublishTabServer,sn as Renderer,Ft as SearchHistoryClient,Lt as SearchHistoryServer,zt as SearchInputClient,Vt as SearchInputServer,E as SimpleSearch,w as SimpleSearchDefaultData,T as SimpleSearchSchema,Ut as TabBarClient,Gt as TabBarServer,ne as TagSearch,Pt as TagSearchBar,Mt as TagSearchBarDefaultData,Nt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,qt as TextRecommendClient,Yt as TextRecommendServer,Xe as UserProfileHeader,qe as UserProfileHeaderClient,bt as UserProfileMain,ct as UserProfileMainClient,st as UserProfileMainShell,Zt as VideoHorizontalListClient,$t as VideoHorizontalListServer,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,pt as buildCollectTabPrefetch,n as buildContentUrl,gt as buildHistoryTabPrefetch,yt as buildLikeTabPrefetch,wt as buildPublishTabPrefetch,Ze as buildUserProfileHeaderPrefetch,nn as buttonInspectorDefaultProps,rn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,on as exampleButtonMaterial,z as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,k as homeRecommendGridInspectorDefaultProps,A as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,M as homeRecommendWaterfallInspectorDefaultProps,N as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,ze as marqueeInspectorPropsSchema,Ve as marqueeMaterial,s as mergeStyles,Je as profileHeaderInspectorDefaultProps,Ye as profileHeaderInspectorPropsSchema,Qe as profileHeaderMaterial,$e as profileHeaderMaterialWithDisabledBackground,et as profileMainCollectCollectionTabOptions,tt as profileMainCollectTabOptions,nt as profileMainHistoryTabOptions,lt as profileMainInspectorDefaultProps,ut as profileMainInspectorPropsSchema,rt as profileMainLikeTabOptions,xt as profileMainMaterial,it as profileMainMineTabOptions,at as profileMainProfileTabOptions,ot as profileMainTabOptions,It as searchHistoryInspectorPropsSchema,Rt as searchHistoryMaterial,Bt as searchInputInspectorPropsSchema,Ht as searchInputMaterial,Wt as tabBarInspectorPropsSchema,Kt as tabBarMaterial,Jt as textRecommendInspectorPropsSchema,Xt as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem,Qt as videoHorizontalListInspectorPropsSchema,en as videoHorizontalListMaterial};
|
|
2
|
+
import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{VideoHorizontalListClient as $}from"./components/biz/business/image-text-recommend/client.mjs";import{videoHorizontalListInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{VideoHorizontalListServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{videoHorizontalListMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{MarqueeClient as He}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as Ue}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as We}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ge}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ke}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as qe}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Je from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ye}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Xe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Ze}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Qe,profileHeaderInspectorPropsSchema as $e}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as et,buildUserProfileHeaderPrefetch as tt}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as nt,profileHeaderMaterialWithDisabledBackground as rt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as it,profileMainCollectTabOptions as at,profileMainHistoryTabOptions as ot,profileMainLikeTabOptions as st,profileMainMineTabOptions as ct,profileMainProfileTabOptions as lt,profileMainTabOptions as ut}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as dt}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as ft}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pt,profileMainInspectorPropsSchema as mt}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as ht}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as gt,buildCollectTabPrefetch as _t}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as vt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as yt,buildHistoryTabPrefetch as bt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as xt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as St,buildLikeTabPrefetch as Ct}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as wt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Tt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as Et}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Dt,buildPublishTabPrefetch as Ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import kt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as At}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as jt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Mt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Nt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Pt}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Ft from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as It}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Lt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Rt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as zt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Bt}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Vt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Ht}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Ut}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as Wt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Gt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Kt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as qt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Jt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Yt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Xt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Zt}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Qt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as $t}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as en}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as tn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nn,buttonInspectorPropsSchema as rn}from"./components/biz/example/button/schema.mjs";import{Button as an}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as on}from"./components/biz/example/button/material.mjs";import{Renderer as sn}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,Je as BasicNavBar,Ke as BasicNavBarDefaultData,qe as BasicNavBarSchema,Xe as BasicPostCard,Ye as BasicPostCardDefaultData,N as BasicPostCardSchema,kt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Mt as BasicSearchBar,At as BasicSearchBarDefaultData,jt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,an as Button,tn as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,ht as CollectTab,gt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,Ft as FilterSearchBar,Nt as FilterSearchBarDefaultData,Pt as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,vt as HistoryTab,yt as HistoryTabServer,Fe as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,xt as LikeTab,St as LikeTabServer,He as MarqueeClient,We as MarqueeServer,Et as PublishTab,Dt as PublishTabServer,sn as Renderer,zt as SearchHistoryClient,Vt as SearchHistoryServer,Ut as SearchInputClient,Gt as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,qt as TabBarClient,Yt as TabBarServer,ne as TagSearch,Rt as TagSearchBar,It as TagSearchBarDefaultData,Lt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Zt as TextRecommendClient,$t as TextRecommendServer,et as UserProfileHeader,Ze as UserProfileHeaderClient,wt as UserProfileMain,ft as UserProfileMainClient,dt as UserProfileMainShell,$ as VideoHorizontalListClient,Be as VideoHorizontalListServer,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,_t as buildCollectTabPrefetch,n as buildContentUrl,bt as buildHistoryTabPrefetch,Ct as buildLikeTabPrefetch,Ot as buildPublishTabPrefetch,tt as buildUserProfileHeaderPrefetch,nn as buttonInspectorDefaultProps,rn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,on as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,Ue as marqueeInspectorPropsSchema,Ge as marqueeMaterial,s as mergeStyles,Qe as profileHeaderInspectorDefaultProps,$e as profileHeaderInspectorPropsSchema,nt as profileHeaderMaterial,rt as profileHeaderMaterialWithDisabledBackground,it as profileMainCollectCollectionTabOptions,at as profileMainCollectTabOptions,ot as profileMainHistoryTabOptions,pt as profileMainInspectorDefaultProps,mt as profileMainInspectorPropsSchema,st as profileMainLikeTabOptions,Tt as profileMainMaterial,ct as profileMainMineTabOptions,lt as profileMainProfileTabOptions,ut as profileMainTabOptions,Bt as searchHistoryInspectorPropsSchema,Ht as searchHistoryMaterial,Wt as searchInputInspectorPropsSchema,Kt as searchInputMaterial,Jt as tabBarInspectorPropsSchema,Xt as tabBarMaterial,Qt as textRecommendInspectorPropsSchema,en as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem,ze as videoHorizontalListInspectorPropsSchema,Ve as videoHorizontalListMaterial};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{debounceFun as t,getCurrentSecondTime as n,parseTextAtUserIds as r,replaceAtUserElement as i}from"../../../../utils/common.mjs";import{useUserStore as a}from"../../../../store/modules/user-store.mjs";import{gCommunityGetComments as o,pCommunityCreateComment as s,pCommunityDislikeComment as c,pCommunityLikeComment as l}from"../../../../service/generated/client.mjs";import{Box as u}from"../../../ui/box.mjs";import{InfiniteScroll as ee}from"../../../ui/infinite-scroll.mjs";import{Text as d}from"../../../ui/text.mjs";import{useLoginModalStore as te}from"../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as ne}from"../../../../hooks/query/use-query.mjs";import{useLikeDislike as re}from"../../../../hooks/use-like-dislike.mjs";import{useKeepAliveEffect as ie,useKeepAliveState as f}from"../../../common/keep-scroll-position/index.mjs";import{isMobileIOS as ae}from"../../../../utils/tools.mjs";import{MediaPreview as oe}from"../../../common/media-preview/index.mjs";import{mapApiCommentToComment as p}from"../../../../types/safe-comment.mjs";import se from"../../../../assets/icons/common/solid-arrow.mjs";import ce from"./comment-input.mjs";import{CommentItem as le}from"./comment-item.mjs";import ue from"./reply-detail.mjs";import{memo as m,useCallback as h,useEffect as de,useMemo as g,useRef as fe,useState as pe}from"react";import{Fragment as me,jsx as _,jsxs as v}from"react/jsx-runtime";import{toast as he}from"sonner";import{useTranslations as ge}from"next-intl";const _e=t(e=>{e()},0),ve=t(e=>{e()},10),ye=t(e=>{try{l({comment_id:e.id,is_like:e.like_flag!==`1`},{revalidate:!1})}catch(e){console.error(`点赞评论失败:`,e)}},200),be=t(e=>{try{c({comment_id:e.id,is_dislike:e.like_flag!==`2`},{revalidate:!1})}catch(e){console.error(`点踩评论失败:`,e)}},200);function xe(e){if(e==null)return 0;let t=typeof e==`number`?e:Number(e);if(!Number.isNaN(t)&&t>0)return t>0xe8d4a51000?Math.floor(t/1e3):Math.floor(t);let n=Date.parse(String(e));return Number.isNaN(n)?0:Math.floor(n/1e3)}function y(e,t,n){let r=[];return Array.isArray(n)&&n.length>0?(n.forEach(e=>{let t=!!e?.is_video,n=String(e?.media_url||``),i=String(e?.cover_image||``);!n&&!i||r.push({cover_image:i,cover_image_thumbnail:i,cover_image_radio:1,cover_image_resolution:String(e?.cover_image_resolution||``),image_url:t?``:n,image_thumbnail:t?``:n,image_radio:1,image_resolution:String(e?.image_resolution||``),is_video:t,resolution:String(e?.video_resolution||``),video_duration:Number(e?.video_duration||0),video_url:t?n:``,video_size:Number(e?.video_size||0),video_codec_info:{hls_info:[],video_codec_deal:!1}})}),r):(e?.length&&e.forEach(e=>{r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:e,image_thumbnail:e,image_radio:1,image_resolution:``,is_video:!1,resolution:``,video_duration:0,video_url:``,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}),t?.length&&t.forEach(e=>{r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:``,image_thumbnail:``,image_radio:1,image_resolution:``,is_video:!0,resolution:``,video_duration:0,video_url:e,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}),r)}function Se(e){let t=typeof e.reply_count==`number`?e.reply_count:0,n=Array.isArray(e.sub_comments)?e.sub_comments.length:0,r=t>0?t:n,i=e.is_liked?`1`:e.is_dislike?`2`:`0`,a=b(e.mentioned_users),o=a.length>0?a:Ce(e.content||``),s=String(e.comment_id??e.id??``),c=typeof e.like_count==`number`?e.like_count:0,l=e.is_liked&&c===0?1:c;return p({id:s,reply_cnt:r.toString(),like_cnt:l,dislike_cnt:0,created_at:xe(e.create_time),text:e.content||``,type:`4`,like_flag:i,user_id:e.user_id||``,user_name:e.user?.nickname||e.user?.username||``,avatar:e.user?.avatar_url||``,files:[],at_users:o,nine_grid_content_info:y(e?.images,e?.videos,e?.medias),is_follow:!1})}function b(e){return Array.isArray(e)?e.map(e=>({user_id:e.user_id||``,name:e.nickname||e.username||``,avatar:e.avatar_url||``,birthday:``,signature:e.signature||``})):[]}function Ce(e){if(!e)return[];let t=new Map,n=/<span[^>]*class=['"]mention['"][^>]*data-id=['"]([^'"]+)['"][^>]*>@([^<]*)<\/span>/g,r;for(;(r=n.exec(e))!==null;){let e=r[1]?String(r[1]):``,n=(r[2]?String(r[2]):``).replace(/^@/,``)||e;!e||t.has(e)||t.set(e,{user_id:e,name:n,avatar:``,birthday:``,signature:``})}if(t.size>0)return Array.from(t.values());let i=/<@_user>(\w+)<\/@_user>/g;for(;(r=i.exec(e))!==null;){let e=r[1]?String(r[1]):``;!e||t.has(e)||t.set(e,{user_id:e,name:e,avatar:``,birthday:``,signature:``})}return Array.from(t.values())}function we(e){return!Array.isArray(e)||e.length===0?[]:e.map(e=>{let t=!!e.is_video,n=t?String(e.video_url||``):String(e.image_url||e.cover_image||``),r=String(e.cover_image||e.image_url||``);return{media_url:n,is_video:t,image_resolution:String(e.image_resolution||``),cover_image:r,cover_image_resolution:String(e.cover_image_resolution||``),video_resolution:String(e.resolution||``),video_duration:Number(e.video_duration||0),video_size:Number(e.video_size||0)}}).filter(e=>!!e.media_url)}const x=m(({information:t,listQueryKey:c,contentId:l,contentType:m,isShow:xe=!0,isClickLoad:y=!1,initialComments:b,initialTotal:x,initialHasMore:S,addCommentCount:Te,onCommentAdded:Ee,onRequireLogin:C,onTotalChange:w,onReplyDetailVisibleChange:T,className:De})=>{let{userInfo:E,userId:Oe,isLogin:D}=a(),{open:ke}=te(),O=ge(`components.biz.business.comment`),Ae=Te??Ee??(()=>{});function je(e){if(!e)return``;if(Array.isArray(e))return String(e[0]||``);if(typeof e==`object`){if(Object.prototype.hasOwnProperty.call(e,`comment_id`))return String(e.comment_id??``);if(Array.isArray(e.data))return String(e.data[0]||``)}return``}let k=h(()=>{C?C():ke()},[C,ke]),A=y?5:20,j=g(()=>b?.length?b.map(Se):[],[b]),M=b!==void 0||typeof x==`number`||typeof S==`boolean`,Me=g(()=>typeof S==`boolean`?S:typeof x==`number`?j.length<x:M?j.length===0?!1:j.length>=A:!0,[M,S,j.length,x,A]),[N,P]=f(`info-detail-comment-list-${l}`,j),[F,I]=f(`info-detail-comment-list-has-more-${l}`,Me),[L,Ne]=f(`info-comment-detail-page-${l}`,j.length>0?2:1),[Pe,R]=f(`info-detail-comment-list-loading-${l}`,!1),[z,B]=f(`info-detail-selected-comment-${l}`,p({id:``,user_id:``})),[V,H]=f(`info-detail-reply-detail-visible-${l}`,!1),[U,W]=pe(!1),G=fe(null),K=h(e=>{typeof window>`u`||window.dispatchEvent(new CustomEvent(`funhub:comment-reply-detail-visible-change`,{detail:{visible:e}}))},[]);de(()=>{K(V),T?.(V)},[K,T,V]),de(()=>()=>{K(!1),T?.(!1)},[K,T]);let q=g(()=>Pe||F&&N.length===0?O(`commentList.loading`):N.length>0&&!F?O(`commentList.noMore`):N.length===0&&!F?O(`commentList.emptyPrompt`):``,[N.length,F,Pe,O]),Fe=g(()=>U?`回复@${z.user_name}`:``,[U,z.user_name]),{getLikedListData:Ie,getDislikedListData:J}=re(),Le=h(()=>{P(e=>e.map(e=>e.id===z.id?{...e,reply_cnt:(Number(e.reply_cnt||0)+1).toString()}:e)),B(e=>({...e,reply_cnt:(Number(e.reply_cnt||0)+1).toString()}))},[z.id,P,B]),Y=h(async()=>{if(l)try{let e=await o({content_id:l,page:L,page_size:A,sort_by:`latest`});if(e.code!==0)throw Error(e.message||O(`commentList.fetchCommentsFailed`));let t=(e.data?.data?.comments??[]).map(Se),n=e.data?.data?.total??0;L===1&&w&&w(n),((e.data?.data?.has_more??!1)===!1||t.length<A)&&I(!1),P(e=>{let n=new Set(e.map(e=>e.id)),r=t.filter(e=>!n.has(e.id));return[...e,...r]}),Ne(L+1)}catch(e){console.error(`获取评论列表失败:`,e),I(!1)}},[l,L,A,P,I,Ne]),X=h(async()=>{R(!0);try{await Y()}catch(e){console.error(`获取评论列表失败:`,e)}R(!1)},[Y,R]);ie(()=>{y&&!M&&X()},[M,y,X],`info-detail-comment-initial-load-more-${l}`),ie(()=>{!M||!w||typeof x==`number`&&w(x)},[M,x,w],`info-detail-comment-initial-total-${l}`);function Re(){_e(()=>{W(!1)})}async function ze({text:e,imageVideoInfoList:t}){try{if(!D)return k(),{success:!1,message:O(`commentList.loginRequired`)};let a=E?.userId||E?.user_id||Oe||``;if(!a)return k(),{success:!1,message:O(`commentList.loginRequired`)};let o=E?.nick_name||E?.nickname||E?.name||E?.user_name||E?.username||``,c=E?.avatar||E?.avatar_url||``,u=we(t),ee=r(e),d=await s({content_id:l,content:i(e),medias:u,mentioned_users:ee,source_type:m===`video`?1:2},{revalidate:!1});if(d.code===0){let r=je(d.data);if(!r||r===`0`)return{success:!1,message:O(`commentList.publishCommentFailed`)};let i=Ce(e),s=p({text:e,id:r,avatar:c,user_id:a,user_name:o,like_cnt:d.data.like_count,created_at:n(),nine_grid_content_info:t,at_users:i});return P(e=>[s,...e]),{success:!0}}else return{success:!1,message:d.message||O(`commentList.publishCommentFailed`)}}catch(e){return console.error(e),{success:!1,message:O(`commentList.publishCommentFailed`)}}}let Z=h(async({text:e,imageVideoInfoList:t,callback:n})=>{try{if(!D)return k(),{success:!1,message:O(`commentList.loginRequired`)};if(!z?.id||z.id===`0`)return{success:!1,message:O(`commentList.invalidReplyTarget`)};let a=we(t),o=r(e),c=await s({content_id:l,content:i(e),medias:a,mentioned_users:o,parent_id:z.id,source_type:m===`video`?1:2},{revalidate:!1});if(c.code!==0)return{success:!1,message:c.message||O(`commentList.publishReplyFailed`)};P(e=>e.map(e=>e.id===z.id?{...e,reply_cnt:(Number(e.reply_cnt)+1).toString()}:e));let u=je(c.data);return!u||u===`0`?{success:!1,message:O(`commentList.publishReplyFailed`)}:(n?.(u),{success:!0})}catch(e){return console.error(`发布回复评论失败:`,e),{success:!1,message:O(`commentList.publishReplyFailed`)}}},[l,m,D,k,z.id,P,O]);async function Be({text:e,imageVideoInfoList:t}){let n=e=>e.success?e:(he.error(e.message||O(`commentList.publishCommentFailed`)),{...e,toastHandled:!0});if(U){let r=await Z({text:e,imageVideoInfoList:t,callback:e=>{}});return W(!1),n(r)}else{let r=await ze({text:e,imageVideoInfoList:t});return r.success&&Ae(),W(!1),n(r)}}let Q=h(e=>{B(e),ae()&&G.current?.focus(),ve(()=>{W(!0),G.current?.focus()})},[B]),$=h(e=>{B(e),H(!0)},[H,B]),Ve=h(e=>{if(e.reply_cnt===`0`){Q(e);return}$(e)},[Q,$]),He=h(e=>{if(!D){C?.();return}P(Ie(N,e.id)),ye(e)},[N,Ie,D,C,P]),Ue=h(e=>{if(!D){C?.();return}e.like_flag!==`2`&&he.message(O(`commentList.dislikeHint`)),P(J(N,e.id)),be(e)},[N,J,D,C,P,O]),We=ne();function Ge(){c&&We(c),H(!1)}return v(me,{children:[v(u,{className:e(`w-full pb-[60px]`,De),children:[N.map((e,t)=>_(le,{comment:e,onReply:Q,onViewReplies:$,onReplyAction:Ve,onLike:He,onDislike:Ue,isLogin:D,onRequireLogin:k},`${e.id}-${t}-comment`)),xe&&_(ee,{loadMore:async()=>{await Y()},hasMore:F,initialLoad:!y&&N.length===0&&F!==!1}),y&&v(u,{className:`w-full my-[8px]`,children:[!q&&v(u,{className:`w-[fit-content] h-[42px] flex items-center justify-center mx-[auto]`,onClick:()=>{X()},children:[_(d,{className:`text-text3 text-[14px]`,children:O(`commentList.viewMore`)}),_(se,{className:`w-[8px] h-[auto] ml-[4px] text-text3`})]}),q&&_(u,{className:`w-full h-[42px] flex items-center justify-center`,children:_(d,{className:`text-text3 text-[12px]`,children:q})})]}),_(ce,{placeholder:Fe,onPublish:({text:e,imageVideoInfoList:t})=>Be({text:e,imageVideoInfoList:t}),onInputBlur:Re,onRequireLogin:k,ref:G})]}),_(ue,{visible:V,comment:z,information:t,contentType:m,onClose:Ge,onReplyComment:Z,onReplyAdded:Le,onRequireLogin:k},z.id),_(oe,{})]})});export{x as default};
|
|
2
|
+
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{debounceFun as t,getCurrentSecondTime as n,parseTextAtUserIds as r,replaceAtUserElement as i}from"../../../../utils/common.mjs";import{useUserStore as a}from"../../../../store/modules/user-store.mjs";import{gCommunityGetComments as o,pCommunityCreateComment as s,pCommunityDislikeComment as c,pCommunityLikeComment as l}from"../../../../service/generated/client.mjs";import{Box as u}from"../../../ui/box.mjs";import{InfiniteScroll as ee}from"../../../ui/infinite-scroll.mjs";import{Text as d}from"../../../ui/text.mjs";import{useLoginModalStore as te}from"../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as ne}from"../../../../hooks/query/use-query.mjs";import{useLikeDislike as re}from"../../../../hooks/use-like-dislike.mjs";import{useKeepAliveEffect as ie,useKeepAliveState as f}from"../../../common/keep-scroll-position/index.mjs";import{isMobileIOS as ae}from"../../../../utils/tools.mjs";import{MediaPreview as oe}from"../../../common/media-preview/index.mjs";import{mapApiCommentToComment as p}from"../../../../types/safe-comment.mjs";import se from"../../../../assets/icons/common/solid-arrow.mjs";import ce from"./comment-input.mjs";import{CommentItem as le}from"./comment-item.mjs";import ue from"./reply-detail.mjs";import{memo as m,useCallback as h,useEffect as de,useMemo as g,useRef as fe,useState as pe}from"react";import{Fragment as me,jsx as _,jsxs as v}from"react/jsx-runtime";import{toast as he}from"sonner";import{useTranslations as ge}from"next-intl";const _e=t(e=>{e()},0),ve=t(e=>{e()},10),ye=t(e=>{try{l({comment_id:e.id,is_like:e.like_flag!==`1`},{revalidate:!1})}catch(e){console.error(`点赞评论失败:`,e)}},200),be=t(e=>{try{c({comment_id:e.id,is_dislike:e.like_flag!==`2`},{revalidate:!1})}catch(e){console.error(`点踩评论失败:`,e)}},200);function xe(e){if(e==null)return 0;let t=typeof e==`number`?e:Number(e);if(!Number.isNaN(t)&&t>0)return t>0xe8d4a51000?Math.floor(t/1e3):Math.floor(t);let n=Date.parse(String(e));return Number.isNaN(n)?0:Math.floor(n/1e3)}function y(e,t,n){let r=[];return Array.isArray(n)&&n.length>0?(n.forEach(e=>{let t=!!e?.is_video,n=String(e?.media_url||``),i=String(e?.cover_image||``);!n&&!i||r.push({cover_image:i,cover_image_thumbnail:i,cover_image_radio:1,cover_image_resolution:String(e?.cover_image_resolution||``),image_url:t?``:n,image_thumbnail:t?``:n,image_radio:1,image_resolution:String(e?.image_resolution||``),is_video:t,resolution:String(e?.video_resolution||``),video_duration:Number(e?.video_duration||0),video_url:t?n:``,video_size:Number(e?.video_size||0),video_codec_info:{hls_info:[],video_codec_deal:!1}})}),r):(e?.length&&e.forEach(e=>{r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:e,image_thumbnail:e,image_radio:1,image_resolution:``,is_video:!1,resolution:``,video_duration:0,video_url:``,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}),t?.length&&t.forEach(e=>{r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:``,image_thumbnail:``,image_radio:1,image_resolution:``,is_video:!0,resolution:``,video_duration:0,video_url:e,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}),r)}function Se(e){let t=typeof e.reply_count==`number`?e.reply_count:0,n=Array.isArray(e.sub_comments)?e.sub_comments.length:0,r=t>0?t:n,i=e.is_liked?`1`:e.is_dislike?`2`:`0`,a=b(e.mentioned_users),o=a.length>0?a:Ce(e.content||``),s=String(e.comment_id??e.id??``),c=typeof e.like_count==`number`?e.like_count:0,l=e.is_liked&&c===0?1:c;return p({id:s,reply_cnt:r.toString(),like_cnt:l,dislike_cnt:0,created_at:xe(e.create_time),text:e.content||``,type:`4`,like_flag:i,user_id:e.user_id||``,user_name:e.user?.nickname||e.user?.username||``,avatar:e.user?.avatar_url||``,files:[],at_users:o,nine_grid_content_info:y(e?.images,e?.videos,e?.medias),is_follow:!1})}function b(e){return Array.isArray(e)?e.map(e=>({user_id:e.user_id||``,name:e.nickname||e.username||``,avatar:e.avatar_url||``,birthday:``,signature:e.signature||``})):[]}function Ce(e){if(!e)return[];let t=new Map,n=/<span[^>]*class=['"]mention['"][^>]*data-id=['"]([^'"]+)['"][^>]*>@([^<]*)<\/span>/g,r;for(;(r=n.exec(e))!==null;){let e=r[1]?String(r[1]):``,n=(r[2]?String(r[2]):``).replace(/^@/,``)||e;!e||t.has(e)||t.set(e,{user_id:e,name:n,avatar:``,birthday:``,signature:``})}if(t.size>0)return Array.from(t.values());let i=/<@_user>(\w+)<\/@_user>/g;for(;(r=i.exec(e))!==null;){let e=r[1]?String(r[1]):``;!e||t.has(e)||t.set(e,{user_id:e,name:e,avatar:``,birthday:``,signature:``})}return Array.from(t.values())}function we(e){return!Array.isArray(e)||e.length===0?[]:e.map(e=>{let t=!!e.is_video,n=t?String(e.video_url||``):String(e.image_url||e.cover_image||``),r=String(e.cover_image||e.image_url||``);return{media_url:n,is_video:t,image_resolution:String(e.image_resolution||``),cover_image:r,cover_image_resolution:String(e.cover_image_resolution||``),video_resolution:String(e.resolution||``),video_duration:Number(e.video_duration||0),video_size:Number(e.video_size||0)}}).filter(e=>!!e.media_url)}const x=m(({information:t,listQueryKey:c,contentId:l,contentType:m,isShow:xe=!0,isClickLoad:y=!1,initialComments:b,initialTotal:x,initialHasMore:S,addCommentCount:Te,onCommentAdded:Ee,onRequireLogin:C,onTotalChange:w,onReplyDetailVisibleChange:T,className:De})=>{let{userInfo:E,userId:Oe,isLogin:D}=a(),{open:ke}=te(),O=ge(`components.biz.business.comment`),Ae=Te??Ee??(()=>{});function je(e){if(!e)return``;if(Array.isArray(e))return String(e[0]||``);if(typeof e==`object`){if(Object.prototype.hasOwnProperty.call(e,`comment_id`))return String(e.comment_id??``);if(Array.isArray(e.data))return String(e.data[0]||``)}return``}let k=h(()=>{C?C():ke()},[C,ke]),A=y?5:20,j=g(()=>b?.length?b.map(Se):[],[b]),M=b!==void 0||typeof x==`number`||typeof S==`boolean`,Me=g(()=>typeof S==`boolean`?S:typeof x==`number`?j.length<x:M?j.length===0?!1:j.length>=A:!0,[M,S,j.length,x,A]),[N,P]=f(`info-detail-comment-list-${l}`,j),[F,I]=f(`info-detail-comment-list-has-more-${l}`,Me),[L,Ne]=f(`info-comment-detail-page-${l}`,j.length>0?2:1),[Pe,R]=f(`info-detail-comment-list-loading-${l}`,!1),[z,B]=f(`info-detail-selected-comment-${l}`,p({id:``,user_id:``})),[V,H]=f(`info-detail-reply-detail-visible-${l}`,!1),[U,W]=pe(!1),G=fe(null),K=h(e=>{typeof window>`u`||window.dispatchEvent(new CustomEvent(`funhub:comment-reply-detail-visible-change`,{detail:{visible:e}}))},[]);de(()=>{K(V),T?.(V)},[K,T,V]),de(()=>()=>{K(!1),T?.(!1)},[K,T]);let q=g(()=>Pe||F&&N.length===0?O(`commentList.loading`):N.length>0&&!F?O(`commentList.noMore`):N.length===0&&!F?O(`commentList.emptyPrompt`):``,[N.length,F,Pe,O]),Fe=g(()=>U?`回复@${z.user_name}`:``,[U,z.user_name]),{getLikedListData:Ie,getDislikedListData:J}=re(),Le=h(()=>{P(e=>e.map(e=>e.id===z.id?{...e,reply_cnt:(Number(e.reply_cnt||0)+1).toString()}:e)),B(e=>({...e,reply_cnt:(Number(e.reply_cnt||0)+1).toString()}))},[z.id,P,B]),Y=h(async()=>{if(l)try{let e=await o({content_id:l,page:L,page_size:A,sort_by:`latest`});if(e.code!==0)throw Error(e.message||O(`commentList.fetchCommentsFailed`));let t=(e.data?.data?.comments??[]).map(Se),n=e.data?.data?.total??0;L===1&&w&&w(n),((e.data?.data?.has_more??!1)===!1||t.length<A)&&I(!1),P(e=>{let n=new Set(e.map(e=>e.id)),r=t.filter(e=>!n.has(e.id));return[...e,...r]}),Ne(L+1)}catch(e){console.error(`获取评论列表失败:`,e),I(!1)}},[l,L,A,P,I,Ne]),X=h(async()=>{R(!0);try{await Y()}catch(e){console.error(`获取评论列表失败:`,e)}R(!1)},[Y,R]);ie(()=>{y&&!M&&X()},[M,y,X],`info-detail-comment-initial-load-more-${l}`),ie(()=>{!M||!w||typeof x==`number`&&w(x)},[M,x,w],`info-detail-comment-initial-total-${l}`);function Re(){_e(()=>{W(!1)})}async function ze({text:e,imageVideoInfoList:t}){try{if(!D)return k(),{success:!1,message:O(`commentList.loginRequired`)};let a=E?.userId||E?.user_id||Oe||``;if(!a)return k(),{success:!1,message:O(`commentList.loginRequired`)};let o=E?.nick_name||E?.nickname||E?.name||E?.user_name||E?.username||``,c=E?.avatar||E?.avatar_url||``,u=we(t),ee=r(e),d=await s({content_id:l,content:i(e),medias:u,mentioned_users:ee,source_type:m===`video`?1:2},{revalidate:!1});if(d.code===0){let r=je(d.data);if(!r||r===`0`)return{success:!1,message:O(`commentList.publishCommentFailed`)};let i=Ce(e),s=p({text:e,id:r,avatar:c,user_id:a,user_name:o,like_cnt:d.data?.like_count??0,created_at:n(),nine_grid_content_info:t,at_users:i});return P(e=>[s,...e]),{success:!0}}else return{success:!1,message:d.message||O(`commentList.publishCommentFailed`)}}catch(e){return console.error(e),{success:!1,message:O(`commentList.publishCommentFailed`)}}}let Z=h(async({text:e,imageVideoInfoList:t,callback:n})=>{try{if(!D)return k(),{success:!1,message:O(`commentList.loginRequired`)};if(!z?.id||z.id===`0`)return{success:!1,message:O(`commentList.invalidReplyTarget`)};let a=we(t),o=r(e),c=await s({content_id:l,content:i(e),medias:a,mentioned_users:o,parent_id:z.id,source_type:m===`video`?1:2},{revalidate:!1});if(c.code!==0)return{success:!1,message:c.message||O(`commentList.publishReplyFailed`)};P(e=>e.map(e=>e.id===z.id?{...e,reply_cnt:(Number(e.reply_cnt)+1).toString()}:e));let u=je(c.data);return!u||u===`0`?{success:!1,message:O(`commentList.publishReplyFailed`)}:(n?.(u),{success:!0})}catch(e){return console.error(`发布回复评论失败:`,e),{success:!1,message:O(`commentList.publishReplyFailed`)}}},[l,m,D,k,z.id,P,O]);async function Be({text:e,imageVideoInfoList:t}){let n=e=>e.success?e:(he.error(e.message||O(`commentList.publishCommentFailed`)),{...e,toastHandled:!0});if(U){let r=await Z({text:e,imageVideoInfoList:t,callback:e=>{}});return W(!1),n(r)}else{let r=await ze({text:e,imageVideoInfoList:t});return r.success&&Ae(),W(!1),n(r)}}let Q=h(e=>{B(e),ae()&&G.current?.focus(),ve(()=>{W(!0),G.current?.focus()})},[B]),$=h(e=>{B(e),H(!0)},[H,B]),Ve=h(e=>{if(e.reply_cnt===`0`){Q(e);return}$(e)},[Q,$]),He=h(e=>{if(!D){C?.();return}P(Ie(N,e.id)),ye(e)},[N,Ie,D,C,P]),Ue=h(e=>{if(!D){C?.();return}e.like_flag!==`2`&&he.message(O(`commentList.dislikeHint`)),P(J(N,e.id)),be(e)},[N,J,D,C,P,O]),We=ne();function Ge(){c&&We(c),H(!1)}return v(me,{children:[v(u,{className:e(`w-full pb-[60px]`,De),children:[N.map((e,t)=>_(le,{comment:e,onReply:Q,onViewReplies:$,onReplyAction:Ve,onLike:He,onDislike:Ue,isLogin:D,onRequireLogin:k},`${e.id}-${t}-comment`)),xe&&_(ee,{loadMore:async()=>{await Y()},hasMore:F,initialLoad:!y&&N.length===0&&F!==!1}),y&&v(u,{className:`w-full my-[8px]`,children:[!q&&v(u,{className:`w-[fit-content] h-[42px] flex items-center justify-center mx-[auto]`,onClick:()=>{X()},children:[_(d,{className:`text-text3 text-[14px]`,children:O(`commentList.viewMore`)}),_(se,{className:`w-[8px] h-[auto] ml-[4px] text-text3`})]}),q&&_(u,{className:`w-full h-[42px] flex items-center justify-center`,children:_(d,{className:`text-text3 text-[12px]`,children:q})})]}),_(ce,{placeholder:Fe,onPublish:({text:e,imageVideoInfoList:t})=>Be({text:e,imageVideoInfoList:t}),onInputBlur:Re,onRequireLogin:k,ref:G})]}),_(ue,{visible:V,comment:z,information:t,contentType:m,onClose:Ge,onReplyComment:Z,onReplyAdded:Le,onRequireLogin:k},z.id),_(oe,{})]})});export{x as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{cn as e}from"../../../../../utils/cn.mjs";import{useFollowIdsState as t}from"../../../../../store/modules/follow-ids-store.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{followUser as r,unfollowUser as i}from"../../../../../utils/follow-service.mjs";import a from"../../../../../assets/icons/common/follow_sel.mjs";import o from"../../../../../assets/icons/common/follow_user.mjs";import{UnfollowConfirmDialog as s}from"../../../../common/follow-button/unfollow-confirm-dialog.mjs";import{useEffect as c,useState as l}from"react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{useTranslations as p}from"next-intl";function m({information:e,onUpdate:a}){let{userId:o,userInfo:p}=n(),m=o||p?.userId||``,g=e.author,_=e.up_user||g?.user_id||``,v=!!(m&&_&&m===_),[y,b]=l(!!e.is_followed),[x,S]=l(!1),[C,w]=l(!1);c(()=>{b(!!e.is_followed)},[e.id,e.is_followed]);async function T(){if(!_){console.warn(`用户信息不完整,无法执行关注操作`);return}w(!0);let e=!y;try{let n;if(n=e?await r({app_id:0,follower_id:m,followee_id:_}):await i({app_id:0,follower_id:m,followee_id:_}),n.success){b(e),a({is_followed:e});let{followIds:n,setFollowIds:r}=t.getState(),i=new Set(n);e?i.add(_):i.delete(_),r(Array.from(i))}else console.error(`关注操作失败:`,n.message)}catch(e){console.error(`关注操作异常:`,e)}finally{w(!1)}}function E(){if(!C){if(y){S(!0);return}T()}}function D(){S(!1),T()}function O(){S(!1)}return f(u,{children:[e.up_user&&_&&!v?d(h,{followed:y,loading:C,onToggle:E}):null,d(s,{open:x,onOpenChange:S,onCancel:O,onConfirm:D})]})}function h({followed:t,loading:n=!1,onToggle:r}){let i=p(`components.biz.business.detail`);return d(`button`,{type:`button`,disabled:n,className:e(`flex h-7 items-center rounded-full border border-solid px-3 text-xs font-medium transition-colors`,n&&`opacity-50 cursor-not-allowed`,t?`border-text3 text-text3`:`border-theme5 text-theme5`),onClick:r,children:t?f(u,{children:[d(a,{className:`w-[12px] h-[12px] text-text3 shrink-0`}),d(`span`,{className:`text-text3 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:i(`detailFollowAction.following`)})]}):f(u,{children:[d(o,{className:`block w-[12px] h-[12px] text-theme5 shrink-0`}),d(`span`,{className:`block text-theme5 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:i(`detailFollowAction.follow`)})]})})}export{m as DetailFollowAction};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{Box as e}from"../../../../ui/box.mjs";import{Text as t}from"../../../../ui/text.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({tags:i,className:a=``}){return!i||i.length===0?null:n(e,{className:`flex items-center gap-[6px] overflow-x-auto overflow-y-hidden flex-nowrap [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${a}`,children:i.map((e,i)=>n(`div`,{className:`shrink-0 h-[28px] border-line1 border-[1px] rounded-[6px] px-[6px] flex items-center`,children:r(t,{className:`text-[14px] text-text1 leading-[20px]`,children:[`#`,e.name]})},`${i}-tag-${e.id}`))})}export{i as DetailInfoTags};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{Box as e}from"../../../../ui/box.mjs";import t from"../../../../../assets/icons/common/right_arrow.mjs";import{useEffect as n,useMemo as r,useRef as i,useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c({title:c,className:l=``}){let[u,d]=a(!1),[f,p]=a(!1),m=i(null),h=i(null),g=i(null),_=r(()=>c?.trim()??``,[c]);if(n(()=>{d(!1)},[_]),n(()=>{if(u){p(!0);return}if(!_){p(!1);return}let e=h.current,t=g.current;if(!e||!t){p(!1);return}let n=()=>{let n=e.clientWidth||e.getBoundingClientRect().width,r=t.getBoundingClientRect().width;p(r>n+1)};n();let r=new ResizeObserver(n);return r.observe(e),m.current&&r.observe(m.current),()=>{r.disconnect()}},[u,_]),!_)return null;function v(){d(e=>!e)}return s(e,{ref:m,className:`relative flex items-start min-w-0 ${l}`,children:[o(`span`,{ref:g,className:`absolute invisible whitespace-nowrap text-[20px] leading-[28px] font-bold`,children:_}),o(`p`,{ref:h,className:`flex-1 min-w-0 text-[20px] leading-[28px] font-bold text-text1 ${u?``:`line-clamp-1`}`,children:_}),f&&o(`button`,{type:`button`,className:`ml-[8px] h-[24px] w-[24px] flex items-center justify-center`,onClick:v,children:o(t,{className:`h-[12px] w-[12px] text-text2 transition-transform ${u?`-rotate-90`:`rotate-90`}`})})]})}export{c as DetailInfoTitle};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{Box as e}from"../../../../ui/box.mjs";import{Text as t}from"../../../../ui/text.mjs";import{useCardDecoration as n}from"../../../../../hooks/use-card-decoration.mjs";import{DetailInfoTags as r}from"./detail-info-tags.mjs";import{DetailInfoTitle as i}from"./detail-info-title.mjs";import{useMemo as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{useTranslations as c}from"next-intl";function l({information:l,isShow:d,showTags:f=!0}){let p=c(`components.biz.business.detail`),{getTitleText:m}=n(),h=a(()=>m(l),[m,l]),g=a(()=>l.description||``,[l.description]),_=a(()=>u(l.score),[l.score]),v=l.tags||[],y=f&&v.length>0;return!h&&!g&&!y?null:s(e,{className:`w-full mt-4 px-[12px]`,children:[s(e,{className:`w-full flex items-start justify-between min-w-0`,children:[o(e,{className:`flex-1 pr-[12px] min-w-0`,children:o(i,{title:h})}),s(e,{className:`ml-4 shrink-0 flex flex-col items-center`,children:[o(e,{className:`text-[28px] leading-[36px] h-[36px] font-bold text-[#FF9F1A]`,children:_}),o(t,{className:`text-[12px] text-text2 leading-4`,children:p(`detailIntroduction.score`)})]})]}),g&&d&&o(t,{className:`mt-[12px] text-[14px] leading-[22px] text-text2`,children:g}),y&&o(r,{tags:v,className:`mt-[12px]`})]})}function u(e){let t=Number(e||`0`);return Number.isFinite(t)?(t>10?t/10:t).toFixed(1):`0`}export{l as DetailIntroduction};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{useLoginModalStore as r}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as i}from"../../../../../hooks/query/use-query.mjs";import{debounceFun as a}from"../../../../../utils/tools.mjs";import o from"../../../../common/interaction-animations.module.mjs";import s from"../../../../common/collection-popup/index.mjs";import{useContentOperate as c}from"../../../../../hooks/use-content-operate.mjs";import l from"../../../../../assets/icons/detail/check-ok.mjs";import u from"../../../../../assets/icons/detail/collect_nor.mjs";import d from"../../../../../assets/icons/detail/collect_sel.mjs";import f from"../../../../../assets/icons/detail/give_like.mjs";import p from"../../../../../assets/icons/detail/give_like_sel.mjs";import m from"../../../../../assets/icons/detail/share.mjs";import{useCallback as h,useMemo as g,useRef as _,useState as v}from"react";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{toast as x}from"sonner";import{useTranslations as S}from"next-intl";function C({mode:C=`renderer`,information:E,onUpdate:D}){let O=C===`editor`||!E?.id||E.id.startsWith(`preview-`),k=S(`components.biz.business.detail`),[A,j]=v(!1),[M,N]=v(!1),P=_(0),F=e(e=>e.userId),I=e(e=>e.isLogin),L=i(),R=h(()=>{F&&(L([`user-profile`,`mine`,F,`user-like-video`]),L([`user-profile`,`mine`,F,`user-like-post`]),L([`user-profile`,`mine`,F,`user-collect-video`,F]),L([`user-profile`,`mine`,F,`user-collect-post`,F]))},[L,F]),{likeAnimation:z,handleLikeOperate:B,handleDefaultCollectionOperate:V,handleShareOperate:H}=c({id:E.id,isLike:E.like||!1,isDislike:E.dislike||!1,isCollect:E.collect||!1,likeCnt:T(E.static?.like_cnt),dislikeCnt:T(E.static?.dislike_cnt),contentType:E.content_type,prefetchDefaultCollection:!O,animationClasses:{like:o.likeShakeAnimation,dislike:o.dislikeShakeAnimation}}),U=h(e=>{D?.({...e})},[D]),W=h(async()=>{if(A)return;if(!I){r.getState().open();return}let e=Date.now();if(e-P.current<300)return;P.current=e,j(!0);let t=E.like||!1,n=E.dislike||!1,i=T(E.static?.like_cnt),a=T(E.static?.dislike_cnt),o=!t,s=Math.max(0,i+(o?1:-1)),c=o?!1:n,l=o&&n?Math.max(0,a-1):a;U({like:o,dislike:c,static:{...E.static,like_cnt:s,dislike_cnt:l}});try{let e=await B();if(!e){U({like:t,dislike:n,static:{...E.static,like_cnt:i,dislike_cnt:a}});return}U({like:e.isLike,dislike:e.isDislike??c,static:{...E.static,like_cnt:e.likeCnt,dislike_cnt:e.dislikeCnt??l}}),R(),window.sensors?.track?.(`detail_like_click`,{object_id:E.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),x.error(k(`detailOperate.operateFailed`))}finally{j(!1)}},[B,E,R,A,I,k,U]),G=g(()=>E.id,[E.id]),K=h(()=>{H(({isCollect:e})=>{U({collect:e})},G)},[H,G,U]);async function q(e){return await new Promise(e=>setTimeout(e,300)),e}let J=h(()=>{s.show({mode:`select`,onCollect:async e=>{try{await q({contentId:E.id,collectionId:e}),U({collect:!0}),R(),x.success(k(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),x.error(k(`detailOperate.collectFailed`))}}})},[E.id,R,k,U]),Y=h(e=>{let t=e||k(`detailOperate.defaultCollection`);x.custom(e=>b(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[b(`div`,{className:`flex items-center gap-[10px]`,children:[y(`div`,{className:`w-[24px] h-[24px] rounded-full bg-white flex items-center justify-center`,children:y(l,{className:`w-[14px] h-[14px]`})}),b(`div`,{className:`flex items-center gap-[6px]`,children:[y(`span`,{className:`text-[14px] leading-[20px]`,children:k(`detailOperate.collectAdded`)}),y(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),y(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{x.dismiss(e),J()},children:k(`detailOperate.modifyCollection`)})]}))},[J,k]),X=h(async()=>{if(M)return;if(!I){r.getState().open();return}let e=E.collect||!1;N(!0),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:e?`取消收藏`:`收藏`});try{let t=await V({currentCollect:e,onUpdate:({isCollect:e})=>{U({collect:e})}});if(!t?.success){x.error(t?.message||k(`detailOperate.collectFailed`));return}R(),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:t.isCollect?`收藏`:`取消收藏`}),!e&&t.isCollect&&Y(t.collectionTitle)}catch(e){console.error(`收藏操作失败:`,e),x.error(e?.message||k(`detailOperate.collectFailed`))}finally{N(!1)}},[V,E.collect,E.id,R,M,I,Y,k,U]),Z=g(()=>a(X,300),[X]);return b(t,{className:`w-full h-[42px] mt-[16px] flex items-center justify-between ${O?`pointer-events-none`:``}`,children:[b(t,{className:`w-[25%] h-full flex flex-col items-center justify-center ${A?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:W,children:[E.like?y(p,{className:`w-[20px] h-[20px] ${z.animationClass}`}):y(f,{className:`w-[20px] h-[20px] text-text2`}),y(n,{className:`text-[12px] text-text2 leading-[20px]`,children:E.static?E.static.like_cnt===0?k(`detailOperate.like`):w(E.static?.like_cnt):k(`detailOperate.like`)})]}),b(t,{className:`w-[25%] h-full flex flex-col items-center justify-center ${M?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:Z,children:[E.collect?y(d,{className:`w-[20px] h-[20px]`}):y(u,{className:`w-[20px] h-[20px] text-text2`}),y(n,{className:`text-[12px] text-text2 leading-[20px]`,children:k(`detailOperate.collection`)})]}),b(t,{className:`w-[25%] h-full flex flex-col items-center justify-center cursor-pointer`,onClick:K,children:[y(m,{className:`w-[20px] h-[20px] text-text2`}),y(n,{className:`text-[12px] text-text2 leading-[20px]`,children:k(`detailOperate.share`)})]})]})}function w(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 T(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}export{C as DetailOperate};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{useFollowIdsState as e}from"../../../../../store/modules/follow-ids-store.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{checkFollowStatus as n}from"../../../../../utils/follow-service.mjs";import{useKeepAliveState as r}from"../../../../common/keep-scroll-position/index.mjs";import{UserActivityListItem as i}from"../../../../common/list/user-activity-list/user-activity-list-item.mjs";import a from"../../../../common/follow-button/index.mjs";import{useCallback as o,useEffect as s,useMemo as c,useRef as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useTranslations as f}from"next-intl";function p(e){let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:0}function m(e){return typeof e==`string`?e.trim():typeof e==`number`?String(e):``}function h(e){let t=e?.medias;return Array.isArray(t)&&t.length>0?t:(Array.isArray(e.preview_images)?e.preview_images:[]).filter(Boolean).map(e=>({media_url:e,is_video:!1,cover_image:``}))}function g({information:g,initRecommendList:_}){let v=f(`components.biz.business.detail`),{isLogin:y,userInfo:b,userId:x}=t(),S=x||b?.userId||``,[C,w]=r(`post-detail-recommend-list-${g.id}`,_),{followIds:T,setFollowIds:E}=e(),D=l(new Set),O=c(()=>{let e=new Set;for(let t of C||[]){let n=m(t.author?.user_id??t?.up_user);n&&e.add(n)}return Array.from(e)},[C]);s(()=>{if(!y||!S||!O||O.length===0)return;let e=O.filter(e=>e!==S).filter(e=>!D.current.has(e));if(e.length===0)return;let t=!0;async function r(){let r=await n({app_id:0,follower_id:S,followee_ids:e});if(!t||!r?.success)return;let i=r.data?.is_following_map||{},a=new Set(T);for(let t of e)i[t]?a.add(t):a.delete(t),D.current.add(t);E(Array.from(a))}return r(),()=>{t=!1}},[S,T,y,O,E]);let k=o((e,t)=>{e&&w(n=>{let r=n.findIndex(t=>t.id===e);if(r===-1)return n;let i=[...n];return i[r]={...i[r],...t},i})},[w]);return!C||C.length===0?null:d(`section`,{className:`w-full mt-[-40px] border-t-[8px] border-bg2 pb-[68px]`,children:[u(`div`,{className:`w-full px-[16px] h-[40px] border-b-[1px] border-line1 flex items-center`,children:u(`p`,{className:`text-[16px] text-text1 font-bold`,children:v(`postRecommendList.title`)})}),C.map((e,t)=>{let n=m(e.author?.user_id??e?.up_user),r=!!(S&&n&&S===n),o=!!(n&&T.includes(n)),s=n&&!r?u(`div`,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:u(a,{userId:n,hasFollow:o})}):null;return u(`div`,{className:`border-b border-line1`,children:u(i,{type:2,content_id:e.id,rightSlot:s,author:{user_id:n,nick_name:e.author?.nickname||e.author?.name||``,avatar:e.author?.avatar_url||e.author?.avatar||``},create_time:e.show_at,content:e.description||e.info?.text||e.name,medias:h(e),like_count:p(e?.statics_cnt?.like_cnt??e.static?.like_cnt),dislike_count:p(e?.statics_cnt?.dislike_cnt??e.static?.dislike_cnt),comment_count:p(e?.statics_cnt?.comment_cnt??e.static?.comment_cnt),is_liked:!!e.like,is_dislike:!!e.dislike,onLikeSuccess:({isLiked:t,count:n})=>{let r=!!e.dislike,i=p(e?.statics_cnt?.dislike_cnt??e.static?.dislike_cnt),a=t&&r,o=a?Math.max(0,i-1):i;k(e.id,{like:t,dislike:a?!1:e.dislike,statics_cnt:{...e.statics_cnt,like_cnt:String(n),dislike_cnt:String(o)},static:{...e.static,like_cnt:n,dislike_cnt:o}})},onDislikeSuccess:({isDisliked:t,count:n})=>{let r=!!e.like,i=p(e?.statics_cnt?.like_cnt??e.static?.like_cnt),a=t&&r,o=a?Math.max(0,i-1):i;k(e.id,{dislike:t,like:a?!1:e.like,statics_cnt:{...e.statics_cnt,like_cnt:String(o),dislike_cnt:String(n)},static:{...e.static,like_cnt:o,dislike_cnt:n}})}})},`post-recommend-${e.id||t}`)})]})}export{g as PostRecommendList};
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
3
|
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
4
|
import { MaterialMap } from "../../../../../utils/schema/utils.mjs";
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import "
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import "
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import "
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import "
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import "
|
|
5
|
+
import { VideoDetailPlayerClient } from "../video-detail-player/client.mjs";
|
|
6
|
+
import { VideoDetailPlayer } from "../video-detail-player/server.mjs";
|
|
7
|
+
import "../video-detail-player/index.mjs";
|
|
8
|
+
import { VideoDetailInfoClient } from "../video-detail-info/client.mjs";
|
|
9
|
+
import { VideoDetailInfo } from "../video-detail-info/server.mjs";
|
|
10
|
+
import "../video-detail-info/index.mjs";
|
|
11
|
+
import { VideoDetailInfoTitleClient } from "../video-detail-info-title/client.mjs";
|
|
12
|
+
import { VideoDetailInfoTitle } from "../video-detail-info-title/server.mjs";
|
|
13
|
+
import "../video-detail-info-title/index.mjs";
|
|
14
|
+
import { VideoDetailInfoTitleTagsEpisodesClient } from "../video-detail-info-title-tags-episodes/client.mjs";
|
|
15
|
+
import { VideoDetailInfoTitleTagsEpisodes } from "../video-detail-info-title-tags-episodes/server.mjs";
|
|
16
|
+
import "../video-detail-info-title-tags-episodes/index.mjs";
|
|
17
|
+
import { VideoDetailActionsClient } from "../video-detail-actions/client.mjs";
|
|
18
|
+
import { VideoDetailActions } from "../video-detail-actions/server.mjs";
|
|
19
|
+
import "../video-detail-actions/index.mjs";
|
|
20
|
+
import { VideoDetailRecommendClient } from "../video-detail-recommend/client.mjs";
|
|
21
|
+
import { VideoDetailRecommend } from "../video-detail-recommend/server.mjs";
|
|
22
|
+
import "../video-detail-recommend/index.mjs";
|
|
23
|
+
import "../../../../../utils.mjs";
|
|
24
24
|
import z$1 from "zod";
|
|
25
25
|
|
|
26
|
-
//#region components/biz/business/detail/
|
|
26
|
+
//#region components/biz/business/detail/shared/registry.d.ts
|
|
27
27
|
declare const videoDetailMaterials: MaterialMap<readonly [DefineMaterialOption<typeof VideoDetailPlayer, typeof VideoDetailPlayerClient, z$1.ZodObject<{
|
|
28
28
|
mode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
29
29
|
renderer: "renderer";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{getSchemaDefaultProps as e}from"../../../../../utils/schema/schema.mjs";import{generateMaterialMap as t}from"../../../../../utils/schema/utils.mjs";import{videoDetailInfoMaterial as n}from"../video-detail-info/material.mjs";import{videoDetailInfoTitleMaterial as r}from"../video-detail-info-title/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as i}from"../video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as a}from"../video-detail-player/material.mjs";import{videoDetailRecommendMaterial as o}from"../video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as s}from"../video-detail-actions/material.mjs";function c(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>typeof t==`number`&&Number.isFinite(t)?[e,String(t)]:[e,t]))}function l(t,n){let r={...e(t.propsSchema),...n??{}},i=t.propsSchema.safeParse(r);if(i.success)return{isValid:!0,props:i.data};let a=c(r),o=t.propsSchema.safeParse(a);return o.success?{isValid:!0,props:o.data}:{isValid:!1,props:r}}const u=t([a,n,r,i,s,o]);export{l as resolveMaterialProps,u as videoDetailMaterials};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{site as e}from"../../../../../constants/site.mjs";const t={siteName:e.APP_NAME,siteUrl:e.URL,logoUrl:`${e.URL}/favicon.png`,common:{title:e.TITLE,description:e.DESCRIPTION,keywords:e.KEYWORDS,index:{index:!0,follow:!0}},category:[],urls:[]};let n=null;function r(){return n||(n=t,n)}export{t as SEO_CONFIG,r as getSeoConfig};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{cn as e}from"../../../../../utils/cn.mjs";import{pxToVw as t}from"../../../../../utils/helper.mjs";import{Image as n}from"../../../../ui/image.mjs";import{Box as r}from"../../../../ui/box.mjs";import{Text as i}from"../../../../ui/text.mjs";import{useBrowseReport as a}from"../../../../../hooks/use-browse-report.mjs";import{MediaPreview as o,useMediaPreview as s}from"../../../../common/media-preview/index.mjs";import c from"../../../../common/video-player/index.mjs";import{UserActivityMediaGrid as l}from"../../../../common/list/user-activity-list/user-activity-list-item.mjs";import{memo as u,useCallback as d,useEffect as f,useMemo as p,useRef as m}from"react";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{useTranslations as v}from"next-intl";const y=u(({mode:t=`renderer`,information:n,isVideo:a,episodeIndex:c=0,resumeProgressSeconds:u=0,className:f=``})=>{let m=t===`editor`,h=p(()=>({id:n.id,name:n.name,preview_images:n.preview_images,img_y:n.img_y,img_x:n.img_x}),[n.id,n.name,n.preview_images,n.img_y,n.img_x]),v=p(()=>{let e=n?.medias,t=Array.isArray(e)?e.filter(Boolean):[];return t.length>0?t:(h.preview_images?.length?h.preview_images:[h.img_y||h.img_x||``].filter(Boolean)).filter(Boolean).map(e=>({media_url:e,is_video:!1,cover_image:``}))},[h.img_x,h.img_y,h.preview_images,n]),y=s(),x=p(()=>v.filter(Boolean).map(e=>{let t=e?.is_video?`video`:`image`,r=String(e?.media_url||``),i=e?.cover_image||n.img_y||n.img_x;return{src:r,type:t,...i?{cover:String(i)}:{}}}).filter(e=>!!e.src),[n.img_x,n.img_y,v]),S=d(e=>{m||!x.length||y.open(x,e)},[m,y,x]);return m?g(`img`,{src:`/static/components-thumb/video_player.png`,alt:`video-preview`,className:`w-full block`}):a?g(b,{information:n,episodeIndex:c,resumeProgressSeconds:u,isEditor:m}):_(`div`,{className:e(`w-full`,f),children:[_(r,{className:`mt-3 px-[12px] space-y-1`,children:[g(i,{as:`p`,className:`break-all`,dangerouslySetInnerHTML:{__html:n.description}}),g(l,{medias:v,onItemClick:S})]}),g(o,{})]})});y.displayName=`DetailHero`;const b=u(({information:e,episodeIndex:t,resumeProgressSeconds:n,isEditor:r})=>{let i=p(()=>({id:e.id,mid:e.mid,img_width:e.img_width,img_height:e.img_height,img_y:e.img_y,img_x:e.img_x,preview_images:e.preview_images}),[e.id,e.mid,e.img_width,e.img_height,e.img_y,e.img_x,e.preview_images]);return g(x,{information:{...e,...i},episodeIndex:t,resumeProgressSeconds:n,isEditor:r})},(e,t)=>{let n=e.information,r=t.information;return n.id===r.id&&n.mid===r.mid&&n.img_width===r.img_width&&n.img_height===r.img_height&&n.img_y===r.img_y&&n.img_x===r.img_x&&e.resumeProgressSeconds===t.resumeProgressSeconds&&e.episodeIndex===t.episodeIndex&&e.isEditor===t.isEditor});b.displayName=`StableDetailPlayerBox`;function x({information:e,episodeIndex:i,resumeProgressSeconds:o,isEditor:s}){let l=v(`components.biz.business.detail`),u=m(0),y=m(0),b=Math.max(0,Number(i)||0),x=b+1,T=p(()=>e?.id,[e?.id]),E=p(()=>({id:e.id,mid:e.mid,img_width:e.img_width,img_height:e.img_height,img_y:e.img_y,img_x:e.img_x,preview_images:e.preview_images,links:e.links}),[e.id,e.mid,e.img_width,e.img_height,e.img_y,e.img_x,e.preview_images,e.links]),D=p(()=>E.mid||E.id,[E.id,E.mid]),O=p(()=>{let e=E.links?.[b]?.id;return e?String(e):`ep-${b+1}`},[b,E.links]),k=p(()=>`__reportData_detail_page__${E.id}:${O}`,[O,E.id]),A=p(()=>{if(s||typeof window>`u`)return 0;try{let e=sessionStorage.getItem(k);if(!e)return 0;let t=JSON.parse(e),n=Number(t.currentTime||0),r=Number(t.duration||0);if(!Number.isFinite(n)||!Number.isFinite(r))return 0;if(n>0&&r>0)return n}catch(e){console.error(`读取 sessionStorage 数据失败:`,e)}return 0},[s,k]),j=p(()=>{let e=Number(o||0);return Number.isFinite(e)&&e>0?e:0},[o]),M=p(()=>j>0?j:A,[j,A]),N=p(()=>{let t=w(e),n=t[t.length?Math.max(0,Math.min(b,t.length-1)):0]?.url||``,r=!!t.length;if(!r)return{hasVideo:!1,hlsList:[],videoUrl:``,width:1,height:1,resolution:`0x0`,aspectRatio:1,poster:``};let i=Number(E.img_width||0)||1,a=Number(E.img_height||0)||1;return{hasVideo:r,hlsList:t,videoUrl:n,width:i,height:a,resolution:S(i,a),aspectRatio:(i||1)/(a||1),poster:E.img_y||E.img_x||E.preview_images?.[0]||``}},[e.id,e.links,b,E.img_width,E.img_height,E.img_y,E.img_x,E.preview_images]),P=d((e,t)=>{u.current=e,y.current=t},[]),F=p(()=>N.videoUrl.endsWith(`m3u8`)?{startTimeSeconds:M,preload:`none`}:{startTimeSeconds:M},[M,N.videoUrl]);f(()=>{u.current=0,y.current=0},[T,b]);let I=a({contentId:T,browseEpisode:x,contentType:1,enabled:!s&&!!T,intervalMs:60*1e3,getCurrentTimeSeconds:()=>u.current,getDurationSeconds:()=>y.current});if(f(()=>{if(s)return;let e=()=>{if(!(typeof window>`u`)&&!(u.current<=0||y.current<=0))try{sessionStorage.setItem(k,JSON.stringify({episodeId:O,currentTime:u.current,duration:y.current}))}catch(e){console.error(`写入 sessionStorage 失败:`,e)}},t=()=>{e()},n=()=>{document.visibilityState===`hidden`&&e()},r=()=>{e()};return window.addEventListener(`beforeunload`,t),document.addEventListener(`visibilitychange`,n),window.addEventListener(`popstate`,r),()=>{window.removeEventListener(`beforeunload`,t),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`popstate`,r),e()}},[O,s,k]),!N.hasVideo)return g(`div`,{className:`mt-3 rounded-xl bg-bg1 px-3 py-10 text-center text-text3`,children:l(`videoHero.noVideos`)});let L=C(430,N.aspectRatio,242),R=L.height>0?t(L.height):`auto`,z=t(242);return _(h,{children:[g(r,{suppressHydrationWarning:!0,className:`w-full`,style:{height:R,maxWidth:`100%`,maxHeight:z}}),_(r,{className:`w-full relative bg-bg2 !fixed !top-[44px] !left-0 z-[10]`,children:[N.poster&&_(`div`,{className:`w-full h-full bg-bg2 absolute top-0 left-0 z-[1] overflow-hidden`,style:{height:R},children:[g(n,{src:N.poster,alt:l(`videoHero.coverAlt`),fill:!0,className:`object-cover`,priority:!0}),g(`div`,{className:`w-full h-full absolute top-0 left-0 z-[1] bg-[rgba(255,255,255,0.2)] backdrop-blur-[4px]`})]}),g(r,{suppressHydrationWarning:!0,"data-aspect-ratio":N.resolution,className:`w-full overflow-hidden flex justify-center relative z-[2]`,style:{height:R,maxWidth:`100%`,maxHeight:z,backdropFilter:`blur(0)`,WebkitBackdropFilter:`blur(0)`},children:g(c,{plyerId:`detail-player-${E.id}-${b}`,parentId:D,resolution:N.resolution||`0x0`,videoUrl:N.videoUrl,poster:N.poster,mergeConfig:F,onProgressUpdate:s?void 0:P,onPlay:s?void 0:I.handlePlay,onPause:s?void 0:I.handlePause,onEnded:s?void 0:I.handleEnded},`stable-player-${E.id}-${b}`)})]})]})}function S(e,t){return!e||!t?``:`${e}x${t}`}function C(e,t,n){let r=e/t;return r<=n?{width:e,height:r}:{width:n*t,height:n}}function w(e){let t=e.links||[];return t.length>0?t.map((e,t)=>({text:e.name||String(t+1),url:e.m3u8_url||e.preview_m3u8_url||``,definition:``,isDefault:t===0})).filter(e=>e.url):[]}export{y as DetailHero};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VideoDetailActionsProps } from "./schema.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region components/biz/business/detail/
|
|
5
|
+
//#region components/biz/business/detail/video-detail-actions/client.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* 视频详情行为模块客户端组件。
|
|
8
8
|
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{DetailOperate as e}from"../shared/detail-operate.mjs";import{editorPreviewInformation as t}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as n}from"../shared/runtime-context-provider.mjs";import{jsx as r}from"react/jsx-runtime";function i({mode:i=`renderer`}){let a=n(),o=a?.information,s=a?.onUpdateInformation,c=i===`editor`||!o;return r(`div`,{className:c?`pointer-events-none`:void 0,children:r(e,{mode:i,information:c?t:o,onUpdate:c?e=>{}:s??(()=>{})})})}export{i as VideoDetailActionsClient};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { DefineMaterialOption } from "
|
|
2
|
+
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
3
3
|
import { VideoDetailActionsClient } from "./client.mjs";
|
|
4
4
|
import { VideoDetailActions } 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/
|
|
8
|
+
//#region components/biz/business/detail/video-detail-actions/material.d.ts
|
|
9
9
|
declare const videoDetailActionsMaterial: DefineMaterialOption<typeof VideoDetailActions, typeof VideoDetailActionsClient, 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{VideoDetailActionsClient as t}from"./client.mjs";import{videoDetailActionsInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailActions as r}from"./server.mjs";const i=e({type:`video-detail-actions`,name:`行为模块`,icon:`/static/components-thumb/interaction_actions_default.png`,category:`行为组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailActionsMaterial};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "
|
|
3
|
-
import "
|
|
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/
|
|
7
|
+
//#region components/biz/business/detail/video-detail-actions/schema.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* 行为模块物料暂不对外开放配置。
|
|
10
10
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VideoDetailActionsProps } from "./schema.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region components/biz/business/detail/
|
|
5
|
+
//#region components/biz/business/detail/video-detail-actions/server.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* 视频详情行为模块服务端组件。
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VideoDetailInfoProps } from "./schema.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region components/biz/business/detail/
|
|
5
|
+
//#region components/biz/business/detail/video-detail-info/client.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* 媒体信息-简介&选集物料客户端组件。
|
|
8
8
|
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{SeriesEpisodes as e}from"../../../../common/series-episodes/index.mjs";import{DetailIntroduction as t}from"../shared/detail-introduction.mjs";import{editorPreviewInformation as n}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as r}from"../shared/runtime-context-provider.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({showTags:o=!1,showEpisodes:s=!1,mode:c=`renderer`}){let l=r(),u=l?.information,d=l?.currentSeriesNum??1,f=l?.onEpisodeChange,p=l?.isShow??!0,m=c===`editor`||!u,h=m?n:u,g=Math.max(1,Number(d||1)),_=m?e=>{}:f??(()=>{}),v=h?.is_more_link===`y`&&(h?.links?.length??0)>0;return a(`div`,{className:m?`pointer-events-none`:void 0,children:[i(t,{information:h,isShow:p,showTags:o}),s&&v&&i(e,{mode:`detail`,series_num:g,information:h,onEpisodeChange:_})]})}export{o as VideoDetailInfoClient};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "
|
|
3
|
-
import { DefineMaterialOption } from "
|
|
4
|
-
import "
|
|
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 { VideoDetailInfoClient } from "./client.mjs";
|
|
6
6
|
import { VideoDetailInfo } 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/
|
|
10
|
+
//#region components/biz/business/detail/video-detail-info/material.d.ts
|
|
11
11
|
declare const videoDetailInfoMaterial: DefineMaterialOption<typeof VideoDetailInfo, typeof VideoDetailInfoClient, 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{VideoDetailInfoClient as t}from"./client.mjs";import{videoDetailInfoInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfo as r}from"./server.mjs";const i=e({type:`video-detail-info`,name:`专辑信息样式2`,icon:`/static/components-thumb/media_info_description_episode.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoMaterial};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps, SchemaHasDefaultValue } from "
|
|
3
|
-
import "
|
|
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/
|
|
7
|
+
//#region components/biz/business/detail/video-detail-info/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:!1}),showEpisodes:t({label:`显示选集`,defaultValue:!1})});n(r);export{r as videoDetailInfoInspectorPropsSchema};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VideoDetailInfoProps } from "./schema.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region components/biz/business/detail/
|
|
5
|
+
//#region components/biz/business/detail/video-detail-info/server.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* 媒体信息-简介&选集物料服务端组件。
|
|
8
8
|
*/
|
|
@@ -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/
|
|
5
|
+
//#region components/biz/business/detail/video-detail-info-title/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{DetailInfoTitle as n}from"../shared/detail-info-title.mjs";import{editorPreviewInformation as r}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as i}from"../shared/runtime-context-provider.mjs";import{jsx as a}from"react/jsx-runtime";function o({mode:o=`renderer`}){let s=i()?.information,c=o===`editor`||!s?r:s,{getTitleText:l}=t(),u=l(c);return u?a(e,{className:`w-full mt-[16px] px-[12px]`,children:a(n,{title:u})}):null}export{o as VideoDetailInfoTitleClient};
|