@funhub/platform 0.2.31 → 0.2.32
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/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/channel-list/channel-active-indicator.mjs +1 -31
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/header-menu.mjs +1 -29
- package/dist/assets/icons/common/header-search-icon.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/right_arrow_thin.mjs +1 -17
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -24
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/marquee-close.mjs +1 -29
- package/dist/assets/icons/marquee-enter.mjs +1 -17
- package/dist/assets/icons/marquee-speaker.mjs +1 -22
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/shortcut-grid/shortcut-grid-card-bg-primary.mjs +1 -29
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -169
- package/dist/cli/init/create-client.mjs +1 -12
- package/dist/cli/init/create-sdk.mjs +1 -12
- package/dist/cli/init/shared/command.mjs +1 -31
- package/dist/cli/init/shared/constants.mjs +1 -24
- package/dist/cli/init/shared/create-project.mjs +2 -58
- package/dist/cli/init/shared/file.mjs +1 -21
- package/dist/cli/init/shared/package-manager.mjs +1 -42
- package/dist/cli/init/shared/prompts.mjs +1 -107
- package/dist/cli/init/shared/template.mjs +1 -66
- package/dist/cli.mjs +2 -128
- package/dist/common.mjs +1 -51
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -390
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -270
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -376
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -171
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -56
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -33
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/advertisement/ad-match.mjs +1 -142
- package/dist/components/biz/business/advertisement/ad-provider.mjs +1 -50
- package/dist/components/biz/business/advertisement/ad-query.mjs +1 -39
- package/dist/components/biz/business/advertisement/ad-runtime-provider.mjs +1 -21
- package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -274
- package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -55
- package/dist/components/biz/business/advertisement/banner-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -36
- package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -109
- package/dist/components/biz/business/advertisement/floating-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +1 -11
- package/dist/components/biz/business/advertisement/floating-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -187
- package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -42
- package/dist/components/biz/business/advertisement/icon-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -203
- package/dist/components/biz/business/advertisement/popup-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -48
- package/dist/components/biz/business/advertisement/popup-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -370
- package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -34
- package/dist/components/biz/business/advertisement/text-ad/server.mjs +1 -24
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -62
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -140
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -133
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -22
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -94
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -87
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -190
- package/dist/components/biz/business/channel-list/client.mjs +1 -157
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -13
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -40
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -182
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -969
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -114
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -33
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -84
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -432
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -67
- package/dist/components/biz/business/detail/shared/material-route-context.mjs +1 -44
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -55
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -225
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -320
- package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +1 -46
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -902
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -97
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -47
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -201
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -14
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -51
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -14
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -136
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/client.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/schema.mjs +1 -13
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -89
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -35
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -35
- package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -548
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -60
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -20
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -21
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -142
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -23
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -38
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -20
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -32
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -19
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -53
- package/dist/components/biz/business/header-search/shared/header-action.mjs +1 -29
- package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +1 -26
- package/dist/components/biz/business/header-search/shared/header-shell.mjs +1 -21
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -25
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -47
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -229
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -47
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -211
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -42
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -890
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -24
- package/dist/components/biz/business/home-recommend/shared/home-recommend-play-count.mjs +1 -31
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -178
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -47
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -336
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-layout.mjs +1 -73
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-tag.mjs +1 -21
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -73
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -436
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -79
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -33
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -106
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -256
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -127
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -303
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -86
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -159
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -119
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -343
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -59
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -262
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -182
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -235
- package/dist/components/biz/business/profile/profile-main/empty-state.mjs +1 -43
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -275
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -747
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +1 -178
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -259
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -258
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -266
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/profile/tracking.mjs +1 -19
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -54
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -182
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -16
- package/dist/components/biz/business/search-history/server.mjs +1 -17
- package/dist/components/biz/business/search-input/client.mjs +1 -115
- package/dist/components/biz/business/search-input/material.mjs +1 -18
- package/dist/components/biz/business/search-input/schema.mjs +1 -11
- package/dist/components/biz/business/search-input/server.mjs +1 -17
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -86
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -65
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -157
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -11
- package/dist/components/biz/business/tab-bar/server.mjs +1 -17
- package/dist/components/biz/business/text-recommend/client.mjs +1 -104
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -25
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.mjs +1 -44
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -67
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/analytics-init/analytics-init.mjs +1 -75
- package/dist/components/common/analytics-init/page-lifecycle-tracker.mjs +1 -248
- package/dist/components/common/analytics-init/sensor-init.mjs +1 -126
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/create-collection-sheet.mjs +1 -271
- package/dist/components/common/collection-popup/index.mjs +1 -293
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -23
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -50
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -27
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -71
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -139
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -27
- package/dist/components/common/list/collection-list/collection-select-icon.mjs +1 -53
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -469
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -143
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -100
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/list/waterfall-recommend/recommend-badge-style.mjs +1 -18
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend-display.mjs +1 -26
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +1 -183
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -46
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -321
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -97
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.mjs +1 -64
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -98
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -826
- package/dist/components/common/share-popup/share-content.mjs +1 -155
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -326
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
- package/dist/components/common/tab-bar/index.mjs +1 -150
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -70
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/user-info-initializer/index.mjs +1 -37
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -700
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/preroll-skip-button-content.mjs +1 -20
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -281
- package/dist/components/common/video-player/style.module.mjs +260 -7
- package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -155
- package/dist/components/common/video-player/video-player-ref-context.mjs +1 -18
- package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +1 -167
- package/dist/components/common/video-player/video-preroll-ad.mjs +1 -187
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -44
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -164
- package/dist/components/pages/collection-create/form.mjs +1 -164
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +1 -135
- package/dist/components/pages/collection-detail/detail.mjs +1 -539
- package/dist/components/pages/collection-detail/index.mjs +1 -10
- package/dist/components/pages/collection-detail/page.mjs +1 -18
- package/dist/components/pages/edit/index.mjs +1 -10
- package/dist/components/pages/edit/page.mjs +1 -683
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -383
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -271
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -105
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -149
- package/dist/components/pages/home/index.mjs +1 -59
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -37
- package/dist/components/pages/login/auth-page-styles.mjs +2 -17
- package/dist/components/pages/login/forgot.mjs +1 -136
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -233
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -204
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/tracking.mjs +1 -32
- package/dist/components/pages/login/verify.mjs +1 -243
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -192
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -211
- package/dist/components/pages/search/search-result/index.mjs +1 -31
- package/dist/components/pages/search/search-result/search-all.mjs +1 -167
- package/dist/components/pages/search/search-result/search-user.mjs +1 -306
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -134
- package/dist/components/pages/search/search-result/shared.mjs +1 -114
- package/dist/components/pages/search/style.module.mjs +85 -12
- package/dist/components/pages/search/top-header.mjs +1 -131
- package/dist/components/pages/search/tracking.mjs +1 -51
- package/dist/components/pages/search-result/page-client.mjs +1 -130
- package/dist/components/pages/search-result/search-all.mjs +1 -180
- package/dist/components/pages/search-result/search-empty.mjs +1 -52
- package/dist/components/pages/search-result/search-tab.mjs +1 -95
- package/dist/components/pages/search-result/search-user.mjs +1 -315
- package/dist/components/pages/search-result/search-video-info.mjs +1 -195
- package/dist/components/pages/search-result/shared.mjs +1 -46
- package/dist/components/pages/search-result/top-header.mjs +1 -105
- package/dist/components/pages/search-result/tracking.mjs +1 -39
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -381
- package/dist/components/pages/settings/_components/settings.mjs +1 -192
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -395
- package/dist/components/pages/video-list/index.mjs +1 -61
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -144
- package/dist/components/pages/video-list/video-list-recommend-item.mjs +1 -94
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -91
- package/dist/components/ui/accordion.mjs +1 -62
- package/dist/components/ui/alert-dialog.mjs +1 -114
- package/dist/components/ui/alert.mjs +1 -50
- package/dist/components/ui/aspect-ratio.mjs +1 -17
- package/dist/components/ui/avatar.mjs +1 -107
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.mjs +1 -49
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.mjs +1 -50
- package/dist/components/ui/card.mjs +1 -65
- package/dist/components/ui/carousel.mjs +1 -142
- package/dist/components/ui/checkbox.mjs +1 -25
- package/dist/components/ui/collapsible.mjs +1 -31
- package/dist/components/ui/combobox.mjs +1 -185
- package/dist/components/ui/context-menu.mjs +1 -150
- package/dist/components/ui/dialog.mjs +1 -109
- package/dist/components/ui/drawer.mjs +1 -91
- package/dist/components/ui/dropdown-menu.mjs +1 -154
- package/dist/components/ui/empty-icons.mjs +7 -96
- package/dist/components/ui/empty.mjs +1 -95
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.mjs +1 -257
- package/dist/components/ui/infinite-scroll.mjs +1 -168
- package/dist/components/ui/input-group.mjs +1 -90
- package/dist/components/ui/input.mjs +1 -19
- package/dist/components/ui/item.mjs +1 -137
- package/dist/components/ui/kbd.mjs +1 -24
- package/dist/components/ui/label.mjs +1 -18
- package/dist/components/ui/legacy/badge.mjs +1 -80
- package/dist/components/ui/legacy/button.mjs +1 -55
- package/dist/components/ui/legacy/input.mjs +1 -22
- package/dist/components/ui/legacy/popover.mjs +1 -69
- package/dist/components/ui/link.mjs +1 -52
- package/dist/components/ui/list.mjs +5 -221
- package/dist/components/ui/loading.mjs +1 -44
- package/dist/components/ui/mask.mjs +1 -17
- package/dist/components/ui/menubar.mjs +1 -154
- package/dist/components/ui/native-select.mjs +1 -43
- package/dist/components/ui/pagination.mjs +1 -90
- package/dist/components/ui/popover.mjs +1 -73
- package/dist/components/ui/popup.mjs +1 -44
- package/dist/components/ui/progress.mjs +1 -53
- package/dist/components/ui/radio-group.mjs +1 -34
- package/dist/components/ui/rate.mjs +1 -69
- package/dist/components/ui/scroll-area.mjs +1 -43
- package/dist/components/ui/select.mjs +1 -113
- package/dist/components/ui/separator.mjs +1 -20
- package/dist/components/ui/sheet.mjs +1 -109
- package/dist/components/ui/skeleton.mjs +1 -16
- package/dist/components/ui/slider.mjs +1 -46
- package/dist/components/ui/sonner.mjs +1 -34
- package/dist/components/ui/spinner.mjs +1 -18
- package/dist/components/ui/switch.mjs +1 -65
- package/dist/components/ui/table.mjs +1 -78
- package/dist/components/ui/tabs.mjs +1 -54
- package/dist/components/ui/text.mjs +1 -20
- package/dist/components/ui/textarea.mjs +1 -16
- package/dist/components/ui/time.mjs +1 -91
- package/dist/components/ui/toggle-group.mjs +1 -59
- package/dist/components/ui/toggle.mjs +1 -41
- package/dist/components/ui/tooltip.mjs +1 -49
- package/dist/components/ui/wheel-picker.mjs +1 -28
- package/dist/constants/event-key.mjs +1 -18
- package/dist/constants/query-key.mjs +1 -32
- package/dist/constants/revalidate.mjs +1 -9
- package/dist/constants/site.mjs +1 -11
- package/dist/constants/url-prefix.mjs +1 -11
- package/dist/hooks/image-text-recommend.mjs +1 -71
- package/dist/hooks/query/hydration-boundary.mjs +1 -34
- package/dist/hooks/query/use-query.mjs +1 -114
- package/dist/hooks/use-auth.mjs +1 -198
- package/dist/hooks/use-browse-report.mjs +1 -489
- package/dist/hooks/use-card-decoration.mjs +1 -96
- package/dist/hooks/use-content-operate.mjs +1 -526
- package/dist/hooks/use-first-row-height.mjs +1 -105
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-is-client.mjs +1 -20
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-min-duration-loading.mjs +1 -63
- package/dist/hooks/use-search-history.mjs +1 -53
- package/dist/hooks/use-sticky.mjs +1 -50
- package/dist/hooks.mjs +1 -17
- package/dist/i18n/locales/en.mjs +3 -836
- package/dist/i18n/locales/zh-CN.mjs +3 -836
- package/dist/i18n/messages.mjs +1 -20
- package/dist/i18n/translator.mjs +1 -38
- package/dist/i18n.mjs +1 -165
- package/dist/materials.mjs +1 -73
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
- package/dist/pages.mjs +1 -23
- package/dist/seo/build-metadata.mjs +1 -163
- package/dist/seo/config/index.mjs +1 -22
- package/dist/seo/config/page.mjs +6 -301
- package/dist/seo/config/site.mjs +1 -25
- package/dist/seo/constants.mjs +1 -31
- package/dist/seo/helpers.mjs +1 -120
- package/dist/seo/resource-hints.mjs +1 -60
- package/dist/seo/robots.mjs +1 -36
- package/dist/seo/sitemap.mjs +1 -44
- package/dist/seo/structured-data/article.mjs +1 -51
- package/dist/seo/structured-data/common.mjs +1 -60
- package/dist/seo/structured-data/video.mjs +1 -41
- package/dist/seo/viewport.mjs +1 -31
- package/dist/seo.mjs +1 -15
- package/dist/service/advertisement.mjs +1 -88
- package/dist/service/generated/client.mjs +1 -1281
- package/dist/service/generated/tanstack.mjs +1 -1179
- package/dist/service/register-by-verify-email-code.mjs +1 -17
- package/dist/service.mjs +1 -6
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blind-spot-ad-store.mjs +1 -95
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -155
- package/dist/store/modules/media-preview-store.mjs +1 -54
- package/dist/store/modules/publish-store.mjs +1 -31
- package/dist/store/modules/use-demo-store.mjs +1 -17
- package/dist/store/modules/user-store.mjs +1 -133
- package/dist/store/modules/video-player-ref-store.mjs +1 -13
- package/dist/store.mjs +1 -12
- package/dist/theme-tokens.mjs +1 -82
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -58
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/browser-fingerprint.mjs +1 -53
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -311
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -325
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/device-id.mjs +1 -20
- package/dist/utils/email-validator.mjs +1 -108
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -33
- package/dist/utils/http.mjs +1 -202
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -63
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/login-modal-bridge.mjs +1 -65
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/request-user-id.mjs +1 -16
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -207
- package/dist/utils/schema/utils.mjs +1 -27
- package/dist/utils/share-manager.mjs +1 -183
- package/dist/utils/tools.mjs +1 -92
- package/dist/utils/tracking.mjs +1 -183
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils/use-compatible-router.mjs +1 -84
- package/dist/utils.mjs +1 -27
- package/package.json +1 -1
- package/theme.css +1 -1
|
@@ -1,523 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { mergeStyles } from "../../../../utils/styles/helpers.mjs";
|
|
5
|
-
import { useUserStore } from "../../../../../../store/modules/user-store.mjs";
|
|
6
|
-
import { gContentGetAppChannelBlockData } from "../../../../../../service/generated/client.mjs";
|
|
7
|
-
import { checkFollowStatus } from "../../../../../../utils/follow-service.mjs";
|
|
8
|
-
import { useKeepAliveEffect, useKeepAliveState } from "../../../../../common/keep-scroll-position/index.mjs";
|
|
9
|
-
import { adaptFeedItemToSafeInformation, normalizeToFeedItem } from "../../../../basics/fullscreen-feed/runtime/adapters.mjs";
|
|
10
|
-
import { batchQueryContentInteractions } from "../../../../../../hooks/use-content-operate.mjs";
|
|
11
|
-
import { defaultProps } from "../../../../basics/fullscreen-feed/defaults/default-props.mjs";
|
|
12
|
-
import { buildInteractionMap, collectPendingInteractionIds, mergeInteractionIntoFeedItems } from "../../../../basics/fullscreen-feed/runtime/interaction-sync.mjs";
|
|
13
|
-
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
14
|
-
|
|
15
|
-
//#region components/biz/business/fullscreen-feed/variants/shared/runtime-compat.ts
|
|
16
|
-
/**
|
|
17
|
-
* 判断是否为平台 runtime 注入的 BaseComponentProps。
|
|
18
|
-
*
|
|
19
|
-
* 注意:这里不要只用 `data` 判断,因为 props/styles/events 也可能单独存在。
|
|
20
|
-
*/
|
|
21
|
-
function isRuntimeBaseComponentProps(input) {
|
|
22
|
-
return !!input && typeof input === "object" && ("data" in input || "props" in input || "styles" in input || "events" in input);
|
|
23
|
-
}
|
|
24
|
-
function mapPostToSafeInformation(raw) {
|
|
25
|
-
const id = String(raw?.content_id ?? raw?.id ?? "");
|
|
26
|
-
const author = raw?.author;
|
|
27
|
-
const medias = Array.isArray(raw?.medias) ? raw.medias : [];
|
|
28
|
-
const rawText = String(raw?.content || "");
|
|
29
|
-
const displayTitle = raw?.title ? String(raw.title) : rawText.length > 18 ? `${rawText.slice(0, 18)}...` : rawText;
|
|
30
|
-
return {
|
|
31
|
-
id,
|
|
32
|
-
mid: id,
|
|
33
|
-
show_at: raw?.create_time || "",
|
|
34
|
-
name: displayTitle,
|
|
35
|
-
img_y: raw?.cover_image || "",
|
|
36
|
-
preview_images: medias,
|
|
37
|
-
description: raw?.content || "",
|
|
38
|
-
tags: [],
|
|
39
|
-
links: [],
|
|
40
|
-
up_user: raw?.user_id || author?.user_id || "",
|
|
41
|
-
source_username: author?.nick_name || "",
|
|
42
|
-
type: raw?.type,
|
|
43
|
-
is_liked: Boolean(raw?.is_liked),
|
|
44
|
-
is_dislike: Boolean(raw?.is_dislike),
|
|
45
|
-
is_collected: Boolean(raw?.is_collected),
|
|
46
|
-
is_followed: Boolean(raw?.is_followed),
|
|
47
|
-
author: author ? {
|
|
48
|
-
user_id: author.user_id || "",
|
|
49
|
-
nick_name: author.nick_name || "",
|
|
50
|
-
user_name: author.user_name || author.username || author.nick_name || "",
|
|
51
|
-
avatar: author.avatar || "",
|
|
52
|
-
is_verified: Boolean(author.is_verified)
|
|
53
|
-
} : void 0,
|
|
54
|
-
static: {
|
|
55
|
-
like_cnt: raw?.like_count || 0,
|
|
56
|
-
dislike_cnt: raw?.dislike_count || 0,
|
|
57
|
-
comment_cnt: raw?.comment_count || 0,
|
|
58
|
-
share_cnt: raw?.share_count || 0,
|
|
59
|
-
browse_cnt: raw?.view_count || 0,
|
|
60
|
-
collect_cnt: 0
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function mapPostToFeedItem(raw) {
|
|
65
|
-
const info = mapPostToSafeInformation(raw);
|
|
66
|
-
if (!info.id) return null;
|
|
67
|
-
return {
|
|
68
|
-
kind: "post",
|
|
69
|
-
id: info.id,
|
|
70
|
-
title: info.name,
|
|
71
|
-
content: raw?.content || "",
|
|
72
|
-
images: info.preview_images || [],
|
|
73
|
-
originalData: info
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function mapAnyToFeedItem(raw) {
|
|
77
|
-
if (!raw || typeof raw !== "object") return null;
|
|
78
|
-
if ("kind" in raw && "originalData" in raw) return raw;
|
|
79
|
-
if ("content_id" in raw || "comment_count" in raw || "like_count" in raw) return mapPostToFeedItem(raw);
|
|
80
|
-
return normalizeToFeedItem(adaptFeedItemToSafeInformation(raw));
|
|
81
|
-
}
|
|
82
|
-
function extractRuntimeList(data) {
|
|
83
|
-
if (Array.isArray(data)) return data;
|
|
84
|
-
if (!data || typeof data !== "object") return [];
|
|
85
|
-
const maybeList = data.list || data.contents || data.videos || data.items;
|
|
86
|
-
if (Array.isArray(maybeList)) return maybeList;
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* 将互动状态列表转换为 Map,方便按 content_id 更新数据。
|
|
91
|
-
*/
|
|
92
|
-
/**
|
|
93
|
-
* 将 BaseComponentProps 规范化为 FullscreenFeedClient 受控入参。
|
|
94
|
-
*/
|
|
95
|
-
function useFullscreenFeedRuntimeCompat(inputProps) {
|
|
96
|
-
const runtimePropsConfig = inputProps.data || {};
|
|
97
|
-
const runtimeStyles = inputProps.styles;
|
|
98
|
-
const runtimeEvents = useMemo(() => inputProps.events || {}, [inputProps.events]);
|
|
99
|
-
const runtimeData = inputProps.data;
|
|
100
|
-
const runtimeProps = {
|
|
101
|
-
...defaultProps,
|
|
102
|
-
...runtimePropsConfig
|
|
103
|
-
};
|
|
104
|
-
const blockId = String(runtimeData?.block_id || runtimeData?.blockId || runtimeProps.block_id || runtimeProps.blockId || "");
|
|
105
|
-
const appId = String(runtimeData?.app_id || runtimeProps.app_id || runtimeProps.appId || "") || void 0;
|
|
106
|
-
const initialCursorValue = runtimeData?.cursor || runtimeProps.cursor;
|
|
107
|
-
const initialCursor = initialCursorValue === null || initialCursorValue === void 0 ? "" : String(initialCursorValue);
|
|
108
|
-
const refreshKey = Number(runtimeData?.refresh_key ?? runtimeData?.refreshKey ?? runtimeProps.refresh_key ?? runtimeProps.refreshKey ?? 0);
|
|
109
|
-
const keepAliveKey = String(runtimeData?.keep_alive_key || runtimeData?.keepAliveKey || runtimeProps.keep_alive_key || runtimeProps.keepAliveKey || "");
|
|
110
|
-
const cacheKey = useMemo(() => {
|
|
111
|
-
if (keepAliveKey) return keepAliveKey;
|
|
112
|
-
return `fullscreen-feed-runtime:${appId || "app"}:${blockId || "unknown"}`;
|
|
113
|
-
}, [
|
|
114
|
-
appId,
|
|
115
|
-
blockId,
|
|
116
|
-
keepAliveKey
|
|
117
|
-
]);
|
|
118
|
-
const initialItems = useMemo(() => {
|
|
119
|
-
return extractRuntimeList(runtimeData).map((item) => mapAnyToFeedItem(item)).filter(Boolean);
|
|
120
|
-
}, [runtimeData]);
|
|
121
|
-
const initialActiveIndex = useMemo(() => {
|
|
122
|
-
const value = Number(runtimeProps.initialActiveIndex ?? 0);
|
|
123
|
-
return Number.isFinite(value) ? value : 0;
|
|
124
|
-
}, [runtimeProps.initialActiveIndex]);
|
|
125
|
-
const [activeIndex, setActiveIndex] = useKeepAliveState(`${cacheKey}-active-index`, initialActiveIndex);
|
|
126
|
-
const [userInteracted, setUserInteracted] = useKeepAliveState(`${cacheKey}-user-interacted`, false);
|
|
127
|
-
const [followIds, setFollowIds] = useKeepAliveState(`${cacheKey}-follow-ids`, Array.isArray(runtimeProps.followIds) ? runtimeProps.followIds : []);
|
|
128
|
-
const followIdsRef = useRef(followIds);
|
|
129
|
-
const [items, setItems] = useKeepAliveState(`${cacheKey}-items`, initialItems);
|
|
130
|
-
const itemsRef = useRef(items);
|
|
131
|
-
itemsRef.current = items;
|
|
132
|
-
const [storedRefreshKey, setStoredRefreshKey] = useKeepAliveState(`${cacheKey}-refresh-key`, refreshKey);
|
|
133
|
-
const { userId: storeUserId, userInfo } = useUserStore();
|
|
134
|
-
const resolvedUserId = storeUserId || userInfo?.userId || "";
|
|
135
|
-
const [checkedInteractionIds, setCheckedInteractionIds] = useKeepAliveState(`${cacheKey}-checked-interaction-ids`, {
|
|
136
|
-
video: [],
|
|
137
|
-
post: []
|
|
138
|
-
});
|
|
139
|
-
const checkedInteractionIdsRef = useRef({
|
|
140
|
-
video: new Set(checkedInteractionIds.video),
|
|
141
|
-
post: new Set(checkedInteractionIds.post)
|
|
142
|
-
});
|
|
143
|
-
const checkedInteractionIdsListRef = useRef(checkedInteractionIds);
|
|
144
|
-
checkedInteractionIdsListRef.current = checkedInteractionIds;
|
|
145
|
-
const [checkedFolloweeIds, setCheckedFolloweeIds] = useKeepAliveState(`${cacheKey}-checked-followee-ids`, []);
|
|
146
|
-
const checkedFolloweeIdsRef = useRef(new Set(checkedFolloweeIds));
|
|
147
|
-
const checkedFolloweeIdsListRef = useRef(checkedFolloweeIds);
|
|
148
|
-
checkedFolloweeIdsListRef.current = checkedFolloweeIds;
|
|
149
|
-
const pendingFolloweeIdsRef = useRef(/* @__PURE__ */ new Set());
|
|
150
|
-
const isCheckingFollowRef = useRef(false);
|
|
151
|
-
/**
|
|
152
|
-
* 获取条目对应的作者用户 ID。
|
|
153
|
-
*/
|
|
154
|
-
const resolveFolloweeId = useCallback((item) => {
|
|
155
|
-
const info = item.originalData;
|
|
156
|
-
return info?.author?.user_id || info?.up_user || "";
|
|
157
|
-
}, []);
|
|
158
|
-
/**
|
|
159
|
-
* 批量刷新关注状态。
|
|
160
|
-
*/
|
|
161
|
-
/**
|
|
162
|
-
* 串行处理关注状态队列,避免重复请求。
|
|
163
|
-
*/
|
|
164
|
-
const processFollowQueue = useCallback(async () => {
|
|
165
|
-
if (isCheckingFollowRef.current) return;
|
|
166
|
-
if (!resolvedUserId) return;
|
|
167
|
-
if (pendingFolloweeIdsRef.current.size === 0) return;
|
|
168
|
-
isCheckingFollowRef.current = true;
|
|
169
|
-
const pendingIds = Array.from(pendingFolloweeIdsRef.current);
|
|
170
|
-
pendingFolloweeIdsRef.current = /* @__PURE__ */ new Set();
|
|
171
|
-
const result = await checkFollowStatus({
|
|
172
|
-
app_id: 0,
|
|
173
|
-
follower_id: resolvedUserId,
|
|
174
|
-
followee_ids: pendingIds
|
|
175
|
-
});
|
|
176
|
-
if (result.success && result.data?.is_following_map) {
|
|
177
|
-
const followMap = result.data.is_following_map;
|
|
178
|
-
setItems((prev) => {
|
|
179
|
-
let hasChanges = false;
|
|
180
|
-
const next = prev.map((item) => {
|
|
181
|
-
const followeeId = resolveFolloweeId(item);
|
|
182
|
-
if (!followeeId) return item;
|
|
183
|
-
if (!(followeeId in followMap)) return item;
|
|
184
|
-
const isFollowed = Boolean(followMap[followeeId]);
|
|
185
|
-
if (item.originalData?.is_followed === isFollowed) return item;
|
|
186
|
-
hasChanges = true;
|
|
187
|
-
return {
|
|
188
|
-
...item,
|
|
189
|
-
originalData: {
|
|
190
|
-
...item.originalData,
|
|
191
|
-
is_followed: isFollowed
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
});
|
|
195
|
-
return hasChanges ? next : prev;
|
|
196
|
-
});
|
|
197
|
-
setFollowIds((prev) => {
|
|
198
|
-
const next = new Set(prev);
|
|
199
|
-
pendingIds.forEach((id) => {
|
|
200
|
-
if (followMap[id]) next.add(id);
|
|
201
|
-
else next.delete(id);
|
|
202
|
-
});
|
|
203
|
-
const nextIds = Array.from(next);
|
|
204
|
-
followIdsRef.current = nextIds;
|
|
205
|
-
return nextIds;
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
isCheckingFollowRef.current = false;
|
|
209
|
-
if (pendingFolloweeIdsRef.current.size > 0) processFollowQueue();
|
|
210
|
-
}, [
|
|
211
|
-
resolveFolloweeId,
|
|
212
|
-
resolvedUserId,
|
|
213
|
-
setFollowIds,
|
|
214
|
-
setItems
|
|
215
|
-
]);
|
|
216
|
-
const refreshFollowStatus = useCallback((targetItems) => {
|
|
217
|
-
if (!resolvedUserId) return;
|
|
218
|
-
const followeeIds = targetItems.map((item) => resolveFolloweeId(item)).filter((id) => Boolean(id));
|
|
219
|
-
if (followeeIds.length === 0) return;
|
|
220
|
-
followeeIds.forEach((id) => {
|
|
221
|
-
if (checkedFolloweeIdsRef.current.has(id)) return;
|
|
222
|
-
checkedFolloweeIdsRef.current.add(id);
|
|
223
|
-
pendingFolloweeIdsRef.current.add(id);
|
|
224
|
-
});
|
|
225
|
-
if (pendingFolloweeIdsRef.current.size > 0) setCheckedFolloweeIds(Array.from(checkedFolloweeIdsRef.current));
|
|
226
|
-
processFollowQueue();
|
|
227
|
-
}, [
|
|
228
|
-
processFollowQueue,
|
|
229
|
-
resolveFolloweeId,
|
|
230
|
-
resolvedUserId,
|
|
231
|
-
setCheckedFolloweeIds
|
|
232
|
-
]);
|
|
233
|
-
/**
|
|
234
|
-
* 批量刷新点赞/点踩/收藏状态。
|
|
235
|
-
*/
|
|
236
|
-
/**
|
|
237
|
-
* 过滤互动状态里的关注字段,避免覆盖 checkFollow 结果。
|
|
238
|
-
*/
|
|
239
|
-
const stripFollowFromInteractionMap = useCallback((map) => {
|
|
240
|
-
if (map.size === 0) return map;
|
|
241
|
-
const next = /* @__PURE__ */ new Map();
|
|
242
|
-
map.forEach((value, key) => {
|
|
243
|
-
if (!value) return;
|
|
244
|
-
const { is_followed: _isFollowed, ...rest } = value;
|
|
245
|
-
next.set(key, rest);
|
|
246
|
-
});
|
|
247
|
-
return next;
|
|
248
|
-
}, []);
|
|
249
|
-
const refreshInteractionStatus = useCallback(async (targetItems) => {
|
|
250
|
-
if (!resolvedUserId) return;
|
|
251
|
-
const { pendingVideoIds, pendingPostIds } = collectPendingInteractionIds(targetItems, checkedInteractionIdsRef.current);
|
|
252
|
-
if (pendingVideoIds.length === 0 && pendingPostIds.length === 0) return;
|
|
253
|
-
setCheckedInteractionIds({
|
|
254
|
-
video: Array.from(checkedInteractionIdsRef.current.video),
|
|
255
|
-
post: Array.from(checkedInteractionIdsRef.current.post)
|
|
256
|
-
});
|
|
257
|
-
const [videoData, postData] = await Promise.all([pendingVideoIds.length > 0 ? batchQueryContentInteractions(pendingVideoIds, 1) : Promise.resolve(null), pendingPostIds.length > 0 ? batchQueryContentInteractions(pendingPostIds, 2) : Promise.resolve(null)]);
|
|
258
|
-
const videoMap = stripFollowFromInteractionMap(buildInteractionMap(videoData?.interaction_list));
|
|
259
|
-
const postMap = stripFollowFromInteractionMap(buildInteractionMap(postData?.interaction_list));
|
|
260
|
-
setItems((prev) => {
|
|
261
|
-
const merged = mergeInteractionIntoFeedItems(prev, videoMap, postMap);
|
|
262
|
-
if (merged === prev) return prev;
|
|
263
|
-
if (checkedFolloweeIdsRef.current.size === 0) return merged;
|
|
264
|
-
let hasChanges = false;
|
|
265
|
-
const next = merged.map((item) => {
|
|
266
|
-
const followeeId = resolveFolloweeId(item);
|
|
267
|
-
if (!followeeId) return item;
|
|
268
|
-
if (!checkedFolloweeIdsRef.current.has(followeeId)) return item;
|
|
269
|
-
const shouldFollow = followIdsRef.current.includes(followeeId);
|
|
270
|
-
if (item.originalData?.is_followed === shouldFollow) return item;
|
|
271
|
-
hasChanges = true;
|
|
272
|
-
return {
|
|
273
|
-
...item,
|
|
274
|
-
originalData: {
|
|
275
|
-
...item.originalData,
|
|
276
|
-
is_followed: shouldFollow
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
});
|
|
280
|
-
return hasChanges ? next : merged;
|
|
281
|
-
});
|
|
282
|
-
}, [
|
|
283
|
-
resolveFolloweeId,
|
|
284
|
-
resolvedUserId,
|
|
285
|
-
setCheckedInteractionIds,
|
|
286
|
-
setItems,
|
|
287
|
-
stripFollowFromInteractionMap
|
|
288
|
-
]);
|
|
289
|
-
const [cursor, setCursor] = useKeepAliveState(`${cacheKey}-cursor`, initialCursor);
|
|
290
|
-
const cursorRef = useRef(cursor);
|
|
291
|
-
const isFetchingRef = useRef(false);
|
|
292
|
-
const [hasMore, setHasMore] = useKeepAliveState(`${cacheKey}-has-more`, Boolean(initialCursor && initialCursor.trim()));
|
|
293
|
-
useEffect(() => {
|
|
294
|
-
cursorRef.current = cursor;
|
|
295
|
-
}, [cursor]);
|
|
296
|
-
useEffect(() => {
|
|
297
|
-
followIdsRef.current = followIds;
|
|
298
|
-
}, [followIds]);
|
|
299
|
-
useEffect(() => {
|
|
300
|
-
checkedInteractionIdsRef.current = {
|
|
301
|
-
video: new Set(checkedInteractionIdsListRef.current.video),
|
|
302
|
-
post: new Set(checkedInteractionIdsListRef.current.post)
|
|
303
|
-
};
|
|
304
|
-
}, [checkedInteractionIdsListRef, resolvedUserId]);
|
|
305
|
-
useEffect(() => {
|
|
306
|
-
checkedInteractionIdsRef.current = {
|
|
307
|
-
video: /* @__PURE__ */ new Set(),
|
|
308
|
-
post: /* @__PURE__ */ new Set()
|
|
309
|
-
};
|
|
310
|
-
setCheckedInteractionIds({
|
|
311
|
-
video: [],
|
|
312
|
-
post: []
|
|
313
|
-
});
|
|
314
|
-
}, [resolvedUserId, setCheckedInteractionIds]);
|
|
315
|
-
useEffect(() => {
|
|
316
|
-
checkedFolloweeIdsRef.current = new Set(checkedFolloweeIdsListRef.current);
|
|
317
|
-
}, [checkedFolloweeIdsListRef, resolvedUserId]);
|
|
318
|
-
/**
|
|
319
|
-
* keep-alive 会缓存 checkedFolloweeIds,导致“跳转出去再返回”时不再触发 checkFollow。
|
|
320
|
-
* 返回页面时用户的关注状态可能已在别处发生变化,因此这里在每次挂载/实例切换时强制重置一次,
|
|
321
|
-
* 让首屏 items 重新走一遍 checkFollow 刷新关注态。
|
|
322
|
-
*/
|
|
323
|
-
useEffect(() => {
|
|
324
|
-
checkedFolloweeIdsRef.current = /* @__PURE__ */ new Set();
|
|
325
|
-
pendingFolloweeIdsRef.current = /* @__PURE__ */ new Set();
|
|
326
|
-
setCheckedFolloweeIds([]);
|
|
327
|
-
if (!resolvedUserId) return;
|
|
328
|
-
if (itemsRef.current.length === 0) return;
|
|
329
|
-
refreshFollowStatus(itemsRef.current);
|
|
330
|
-
}, [
|
|
331
|
-
cacheKey,
|
|
332
|
-
refreshFollowStatus,
|
|
333
|
-
resolvedUserId,
|
|
334
|
-
setCheckedFolloweeIds
|
|
335
|
-
]);
|
|
336
|
-
useEffect(() => {
|
|
337
|
-
if (!resolvedUserId) return;
|
|
338
|
-
if (items.length === 0) return;
|
|
339
|
-
refreshFollowStatus(items);
|
|
340
|
-
}, [
|
|
341
|
-
items,
|
|
342
|
-
refreshFollowStatus,
|
|
343
|
-
resolvedUserId
|
|
344
|
-
]);
|
|
345
|
-
useEffect(() => {
|
|
346
|
-
if (!resolvedUserId) return;
|
|
347
|
-
if (items.length === 0) return;
|
|
348
|
-
refreshInteractionStatus(items);
|
|
349
|
-
}, [
|
|
350
|
-
items,
|
|
351
|
-
refreshInteractionStatus,
|
|
352
|
-
resolvedUserId
|
|
353
|
-
]);
|
|
354
|
-
useKeepAliveEffect(() => {
|
|
355
|
-
if (refreshKey === storedRefreshKey) return;
|
|
356
|
-
if (!(items.length > 0)) {
|
|
357
|
-
setItems(initialItems);
|
|
358
|
-
setCursor(initialCursor);
|
|
359
|
-
cursorRef.current = initialCursor;
|
|
360
|
-
setHasMore(Boolean(initialCursor && initialCursor.trim()));
|
|
361
|
-
setActiveIndex(initialActiveIndex);
|
|
362
|
-
setUserInteracted(false);
|
|
363
|
-
checkedFolloweeIdsRef.current = /* @__PURE__ */ new Set();
|
|
364
|
-
setCheckedFolloweeIds([]);
|
|
365
|
-
checkedInteractionIdsRef.current = {
|
|
366
|
-
video: /* @__PURE__ */ new Set(),
|
|
367
|
-
post: /* @__PURE__ */ new Set()
|
|
368
|
-
};
|
|
369
|
-
setCheckedInteractionIds({
|
|
370
|
-
video: [],
|
|
371
|
-
post: []
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
setStoredRefreshKey(refreshKey);
|
|
375
|
-
}, [
|
|
376
|
-
initialActiveIndex,
|
|
377
|
-
initialCursor,
|
|
378
|
-
initialItems,
|
|
379
|
-
items.length,
|
|
380
|
-
refreshKey,
|
|
381
|
-
setActiveIndex,
|
|
382
|
-
setCursor,
|
|
383
|
-
setHasMore,
|
|
384
|
-
setItems,
|
|
385
|
-
setCheckedInteractionIds,
|
|
386
|
-
setStoredRefreshKey,
|
|
387
|
-
setUserInteracted,
|
|
388
|
-
storedRefreshKey
|
|
389
|
-
], `fullscreen-feed-runtime-refresh-${cacheKey}`);
|
|
390
|
-
const onSwipeTo = runtimeProps.onSwipeTo || runtimeEvents.onSwipeTo;
|
|
391
|
-
const onCustomActionRender = runtimeProps.onCustomActionRender;
|
|
392
|
-
const onRequireLogin = runtimeProps.onRequireLogin || runtimeEvents.onRequireLogin;
|
|
393
|
-
const onFollowIdsChange = runtimeProps.onFollowIdsChange || runtimeEvents.onFollowIdsChange;
|
|
394
|
-
const onControlsVisibilityChange = runtimeEvents.onControlsVisibilityChange;
|
|
395
|
-
const onGestureStart = runtimeEvents.onGestureStart;
|
|
396
|
-
const onGestureEnd = runtimeEvents.onGestureEnd;
|
|
397
|
-
const onSwipeCancel = runtimeEvents.onSwipeCancel;
|
|
398
|
-
const onDataUpdate = runtimeProps.onDataUpdate || runtimeEvents.onDataUpdate;
|
|
399
|
-
const onOpenComment = runtimeProps.onOpenComment || runtimeEvents.onOpenComment;
|
|
400
|
-
const wrapperStyle = runtimeStyles ? mergeStyles(runtimeStyles, {}) : void 0;
|
|
401
|
-
const resolvedVideoConfig = {
|
|
402
|
-
loop: runtimeProps.loop,
|
|
403
|
-
autoNext: runtimeProps.autoNext,
|
|
404
|
-
...runtimeProps.videoConfig || {}
|
|
405
|
-
};
|
|
406
|
-
const fetchNextPage = useCallback(async () => {
|
|
407
|
-
if (!blockId) return;
|
|
408
|
-
if (!hasMore) return;
|
|
409
|
-
if (isFetchingRef.current) return;
|
|
410
|
-
const cursor = cursorRef.current;
|
|
411
|
-
if (!cursor || !cursor.trim()) {
|
|
412
|
-
setHasMore(false);
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
415
|
-
isFetchingRef.current = true;
|
|
416
|
-
try {
|
|
417
|
-
const blockData = (await gContentGetAppChannelBlockData({
|
|
418
|
-
app_id: appId,
|
|
419
|
-
block_id: blockId,
|
|
420
|
-
cursor: cursor || void 0
|
|
421
|
-
})).data?.block?.data;
|
|
422
|
-
const nextCursorValue = blockData?.cursor;
|
|
423
|
-
const nextCursor = nextCursorValue === null || nextCursorValue === void 0 ? "" : String(nextCursorValue);
|
|
424
|
-
const nextRawItems = [];
|
|
425
|
-
if (Array.isArray(blockData?.videos)) nextRawItems.push(...blockData.videos);
|
|
426
|
-
if (Array.isArray(blockData?.contents)) nextRawItems.push(...blockData.contents);
|
|
427
|
-
const nextItems = nextRawItems.map((raw) => mapAnyToFeedItem(raw)).filter(Boolean);
|
|
428
|
-
if (nextItems.length > 0) {
|
|
429
|
-
setItems((prev) => {
|
|
430
|
-
const existing = new Set(prev.map((item) => `${item.kind}:${item.id}`));
|
|
431
|
-
const merged = [...prev];
|
|
432
|
-
nextItems.forEach((item) => {
|
|
433
|
-
if (!item.id) return;
|
|
434
|
-
const key = `${item.kind}:${item.id}`;
|
|
435
|
-
if (existing.has(key)) return;
|
|
436
|
-
existing.add(key);
|
|
437
|
-
merged.push(item);
|
|
438
|
-
});
|
|
439
|
-
return merged;
|
|
440
|
-
});
|
|
441
|
-
refreshFollowStatus(nextItems);
|
|
442
|
-
refreshInteractionStatus(nextItems);
|
|
443
|
-
}
|
|
444
|
-
cursorRef.current = nextCursor;
|
|
445
|
-
setCursor(nextCursor);
|
|
446
|
-
setHasMore(Boolean(nextCursor && nextCursor.trim()));
|
|
447
|
-
} catch (error) {
|
|
448
|
-
console.error("FullscreenFeed runtime fetchMore failed:", error);
|
|
449
|
-
setHasMore(false);
|
|
450
|
-
} finally {
|
|
451
|
-
isFetchingRef.current = false;
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* 历史遗留代码,不做依赖处理。避免影响现在逻辑
|
|
455
|
-
*/
|
|
456
|
-
}, [
|
|
457
|
-
appId,
|
|
458
|
-
blockId,
|
|
459
|
-
hasMore,
|
|
460
|
-
setCursor
|
|
461
|
-
]);
|
|
462
|
-
const handleUserInteracted = useCallback(() => {
|
|
463
|
-
setUserInteracted(true);
|
|
464
|
-
runtimeEvents.onUserInteracted?.();
|
|
465
|
-
}, [runtimeEvents, setUserInteracted]);
|
|
466
|
-
const handleActiveIndexChange = useCallback((nextIndex, direction) => {
|
|
467
|
-
setActiveIndex(nextIndex);
|
|
468
|
-
onSwipeTo?.({
|
|
469
|
-
activeIndex: nextIndex,
|
|
470
|
-
items: itemsRef.current,
|
|
471
|
-
direction
|
|
472
|
-
});
|
|
473
|
-
const length = itemsRef.current.length;
|
|
474
|
-
if (blockId && hasMore && length > 0 && nextIndex >= length - 2) fetchNextPage();
|
|
475
|
-
}, [
|
|
476
|
-
blockId,
|
|
477
|
-
fetchNextPage,
|
|
478
|
-
hasMore,
|
|
479
|
-
onSwipeTo,
|
|
480
|
-
setActiveIndex
|
|
481
|
-
]);
|
|
482
|
-
const handleFollowIdsChange = useCallback((ids) => {
|
|
483
|
-
followIdsRef.current = ids;
|
|
484
|
-
setFollowIds(ids);
|
|
485
|
-
onFollowIdsChange?.(ids);
|
|
486
|
-
}, [onFollowIdsChange, setFollowIds]);
|
|
487
|
-
const getNavigationInfo = useCallback((index) => {
|
|
488
|
-
const external = runtimeEvents.getNavigationInfo;
|
|
489
|
-
if (external) return external(index);
|
|
490
|
-
const next = items[index + 1];
|
|
491
|
-
return {
|
|
492
|
-
showSeriesButton: false,
|
|
493
|
-
nextItemText: next ? `\u4E0B\u4E00\u6761${next.title ? `\u00B7${next.title}` : ""}` : ""
|
|
494
|
-
};
|
|
495
|
-
}, [items, runtimeEvents]);
|
|
496
|
-
return {
|
|
497
|
-
items,
|
|
498
|
-
activeIndex,
|
|
499
|
-
...runtimeProps,
|
|
500
|
-
top: runtimeProps.top,
|
|
501
|
-
bottom: runtimeProps.bottom,
|
|
502
|
-
currentUserId: runtimeProps.currentUserId,
|
|
503
|
-
videoConfig: resolvedVideoConfig,
|
|
504
|
-
userInteracted,
|
|
505
|
-
onUserInteracted: handleUserInteracted,
|
|
506
|
-
onActiveIndexChange: handleActiveIndexChange,
|
|
507
|
-
onDataUpdate: (id, data) => onDataUpdate?.(id, data),
|
|
508
|
-
onOpenComment,
|
|
509
|
-
getNavigationInfo,
|
|
510
|
-
onControlsVisibilityChange,
|
|
511
|
-
onGestureStart,
|
|
512
|
-
onGestureEnd,
|
|
513
|
-
onSwipeCancel,
|
|
514
|
-
onCustomActionRender,
|
|
515
|
-
followIds,
|
|
516
|
-
onFollowIdsChange: handleFollowIdsChange,
|
|
517
|
-
onRequireLogin,
|
|
518
|
-
style: wrapperStyle
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
//#endregion
|
|
523
|
-
export { isRuntimeBaseComponentProps, useFullscreenFeedRuntimeCompat };
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../utils/styles/helpers.mjs";import{useUserStore as t}from"../../../../../../store/modules/user-store.mjs";import{gContentGetAppChannelBlockData as n}from"../../../../../../service/generated/client.mjs";import{checkFollowStatus as r}from"../../../../../../utils/follow-service.mjs";import{useKeepAliveEffect as i,useKeepAliveState as a}from"../../../../../common/keep-scroll-position/index.mjs";import{adaptFeedItemToSafeInformation as o,normalizeToFeedItem as ee}from"../../../../basics/fullscreen-feed/runtime/adapters.mjs";import{batchQueryContentInteractions as s}from"../../../../../../hooks/use-content-operate.mjs";import{defaultProps as te}from"../../../../basics/fullscreen-feed/defaults/default-props.mjs";import{buildInteractionMap as c,collectPendingInteractionIds as ne,mergeInteractionIntoFeedItems as re}from"../../../../basics/fullscreen-feed/runtime/interaction-sync.mjs";import{useCallback as l,useEffect as u,useMemo as d,useRef as f}from"react";function p(e){return!!e&&typeof e==`object`&&(`data`in e||`props`in e||`styles`in e||`events`in e)}function m(e){let t=String(e?.content_id??e?.id??``),n=e?.author,r=Array.isArray(e?.medias)?e.medias:[],i=String(e?.content||``),a=e?.title?String(e.title):i.length>18?`${i.slice(0,18)}...`:i;return{id:t,mid:t,show_at:e?.create_time||``,name:a,img_y:e?.cover_image||``,preview_images:r,description:e?.content||``,tags:[],links:[],up_user:e?.user_id||n?.user_id||``,source_username:n?.nick_name||``,type:e?.type,is_liked:!!e?.is_liked,is_dislike:!!e?.is_dislike,is_collected:!!e?.is_collected,is_followed:!!e?.is_followed,author:n?{user_id:n.user_id||``,nick_name:n.nick_name||``,user_name:n.user_name||n.username||n.nick_name||``,avatar:n.avatar||``,is_verified:!!n.is_verified}:void 0,static:{like_cnt:e?.like_count||0,dislike_cnt:e?.dislike_count||0,comment_cnt:e?.comment_count||0,share_cnt:e?.share_count||0,browse_cnt:e?.view_count||0,collect_cnt:0}}}function h(e){let t=m(e);return t.id?{kind:`post`,id:t.id,title:t.name,content:e?.content||``,images:t.preview_images||[],originalData:t}:null}function ie(e){return!e||typeof e!=`object`?null:`kind`in e&&`originalData`in e?e:`content_id`in e||`comment_count`in e||`like_count`in e?h(e):ee(o(e))}function ae(e){if(Array.isArray(e))return e;if(!e||typeof e!=`object`)return[];let t=e.list||e.contents||e.videos||e.items;return Array.isArray(t)?t:[]}function g(o){let ee=o.data||{},p=o.styles,m=d(()=>o.events||{},[o.events]),h=o.data,g={...te,...ee},_=String(h?.block_id||h?.blockId||g.block_id||g.blockId||``),v=String(h?.app_id||g.app_id||g.appId||``)||void 0,oe=h?.cursor||g.cursor,y=oe==null?``:String(oe),b=Number(h?.refresh_key??h?.refreshKey??g.refresh_key??g.refreshKey??0),se=String(h?.keep_alive_key||h?.keepAliveKey||g.keep_alive_key||g.keepAliveKey||``),x=d(()=>se||`fullscreen-feed-runtime:${v||`app`}:${_||`unknown`}`,[v,_,se]),S=d(()=>ae(h).map(e=>ie(e)).filter(Boolean),[h]),C=d(()=>{let e=Number(g.initialActiveIndex??0);return Number.isFinite(e)?e:0},[g.initialActiveIndex]),[ce,w]=a(`${x}-active-index`,C),[le,T]=a(`${x}-user-interacted`,!1),[E,D]=a(`${x}-follow-ids`,Array.isArray(g.followIds)?g.followIds:[]),O=f(E),[k,A]=a(`${x}-items`,S),j=f(k);j.current=k;let[ue,de]=a(`${x}-refresh-key`,b),{userId:fe,userInfo:pe}=t(),M=fe||pe?.userId||``,[N,P]=a(`${x}-checked-interaction-ids`,{video:[],post:[]}),F=f({video:new Set(N.video),post:new Set(N.post)}),I=f(N);I.current=N;let[L,R]=a(`${x}-checked-followee-ids`,[]),z=f(new Set(L)),B=f(L);B.current=L;let V=f(new Set),H=f(!1),U=l(e=>{let t=e.originalData;return t?.author?.user_id||t?.up_user||``},[]),W=l(async()=>{if(H.current||!M||V.current.size===0)return;H.current=!0;let e=Array.from(V.current);V.current=new Set;let t=await r({app_id:0,follower_id:M,followee_ids:e});if(t.success&&t.data?.is_following_map){let n=t.data.is_following_map;A(e=>{let t=!1,r=e.map(e=>{let r=U(e);if(!r||!(r in n))return e;let i=!!n[r];return e.originalData?.is_followed===i?e:(t=!0,{...e,originalData:{...e.originalData,is_followed:i}})});return t?r:e}),D(t=>{let r=new Set(t);e.forEach(e=>{n[e]?r.add(e):r.delete(e)});let i=Array.from(r);return O.current=i,i})}H.current=!1,V.current.size>0&&W()},[U,M,D,A]),G=l(e=>{if(!M)return;let t=e.map(e=>U(e)).filter(e=>!!e);t.length!==0&&(t.forEach(e=>{z.current.has(e)||(z.current.add(e),V.current.add(e))}),V.current.size>0&&R(Array.from(z.current)),W())},[W,U,M,R]),K=l(e=>{if(e.size===0)return e;let t=new Map;return e.forEach((e,n)=>{if(!e)return;let{is_followed:r,...i}=e;t.set(n,i)}),t},[]),q=l(async e=>{if(!M)return;let{pendingVideoIds:t,pendingPostIds:n}=ne(e,F.current);if(t.length===0&&n.length===0)return;P({video:Array.from(F.current.video),post:Array.from(F.current.post)});let[r,i]=await Promise.all([t.length>0?s(t,1):Promise.resolve(null),n.length>0?s(n,2):Promise.resolve(null)]),a=K(c(r?.interaction_list)),o=K(c(i?.interaction_list));A(e=>{let t=re(e,a,o);if(t===e)return e;if(z.current.size===0)return t;let n=!1,r=t.map(e=>{let t=U(e);if(!t||!z.current.has(t))return e;let r=O.current.includes(t);return e.originalData?.is_followed===r?e:(n=!0,{...e,originalData:{...e.originalData,is_followed:r}})});return n?r:t})},[U,M,P,A,K]),[J,Y]=a(`${x}-cursor`,y),X=f(J),Z=f(!1),[Q,$]=a(`${x}-has-more`,!!(y&&y.trim()));u(()=>{X.current=J},[J]),u(()=>{O.current=E},[E]),u(()=>{F.current={video:new Set(I.current.video),post:new Set(I.current.post)}},[I,M]),u(()=>{F.current={video:new Set,post:new Set},P({video:[],post:[]})},[M,P]),u(()=>{z.current=new Set(B.current)},[B,M]),u(()=>{z.current=new Set,V.current=new Set,R([]),M&&j.current.length!==0&&G(j.current)},[x,G,M,R]),u(()=>{M&&k.length!==0&&G(k)},[k,G,M]),u(()=>{M&&k.length!==0&&q(k)},[k,q,M]),i(()=>{b!==ue&&(k.length>0||(A(S),Y(y),X.current=y,$(!!(y&&y.trim())),w(C),T(!1),z.current=new Set,R([]),F.current={video:new Set,post:new Set},P({video:[],post:[]})),de(b))},[C,y,S,k.length,b,w,Y,$,A,P,de,T,ue],`fullscreen-feed-runtime-refresh-${x}`);let me=g.onSwipeTo||m.onSwipeTo,he=g.onCustomActionRender,ge=g.onRequireLogin||m.onRequireLogin,_e=g.onFollowIdsChange||m.onFollowIdsChange,ve=m.onControlsVisibilityChange,ye=m.onGestureStart,be=m.onGestureEnd,xe=m.onSwipeCancel,Se=g.onDataUpdate||m.onDataUpdate,Ce=g.onOpenComment||m.onOpenComment,we=p?e(p,{}):void 0,Te={loop:g.loop,autoNext:g.autoNext,...g.videoConfig||{}},Ee=l(async()=>{if(!_||!Q||Z.current)return;let e=X.current;if(!e||!e.trim()){$(!1);return}Z.current=!0;try{let t=(await n({app_id:v,block_id:_,cursor:e||void 0})).data?.block?.data,r=t?.cursor,i=r==null?``:String(r),a=[];Array.isArray(t?.videos)&&a.push(...t.videos),Array.isArray(t?.contents)&&a.push(...t.contents);let o=a.map(e=>ie(e)).filter(Boolean);o.length>0&&(A(e=>{let t=new Set(e.map(e=>`${e.kind}:${e.id}`)),n=[...e];return o.forEach(e=>{if(!e.id)return;let r=`${e.kind}:${e.id}`;t.has(r)||(t.add(r),n.push(e))}),n}),G(o),q(o)),X.current=i,Y(i),$(!!(i&&i.trim()))}catch(e){console.error(`FullscreenFeed runtime fetchMore failed:`,e),$(!1)}finally{Z.current=!1}},[v,_,Q,Y]),De=l(()=>{T(!0),m.onUserInteracted?.()},[m,T]),Oe=l((e,t)=>{w(e),me?.({activeIndex:e,items:j.current,direction:t});let n=j.current.length;_&&Q&&n>0&&e>=n-2&&Ee()},[_,Ee,Q,me,w]),ke=l(e=>{O.current=e,D(e),_e?.(e)},[_e,D]),Ae=l(e=>{let t=m.getNavigationInfo;if(t)return t(e);let n=k[e+1];return{showSeriesButton:!1,nextItemText:n?`\u4E0B\u4E00\u6761${n.title?`\u00B7${n.title}`:``}`:``}},[k,m]);return{items:k,activeIndex:ce,...g,top:g.top,bottom:g.bottom,currentUserId:g.currentUserId,videoConfig:Te,userInteracted:le,onUserInteracted:De,onActiveIndexChange:Oe,onDataUpdate:(e,t)=>Se?.(e,t),onOpenComment:Ce,getNavigationInfo:Ae,onControlsVisibilityChange:ve,onGestureStart:ye,onGestureEnd:be,onSwipeCancel:xe,onCustomActionRender:he,followIds:E,onFollowIdsChange:ke,onRequireLogin:ge,style:we}}export{p as isRuntimeBaseComponentProps,g as useFullscreenFeedRuntimeCompat};
|
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { UserAvatar } from "../shared/avatar.mjs";
|
|
5
|
-
import { HeaderSearchIcon } from "../shared/header-search-icon.mjs";
|
|
6
|
-
import { HeaderShell } from "../shared/header-shell.mjs";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
//#region components/biz/business/header-search/header-avatar-icon/client.tsx
|
|
10
|
-
/**
|
|
11
|
-
* 顶部-头像框+icon
|
|
12
|
-
*/
|
|
13
|
-
function HeaderAvatarIconClient({ mode = "renderer" }) {
|
|
14
|
-
return /* @__PURE__ */ jsxs(HeaderShell, {
|
|
15
|
-
mode,
|
|
16
|
-
className: "justify-between gap-[16px]",
|
|
17
|
-
children: [/* @__PURE__ */ jsx(UserAvatar, {}), /* @__PURE__ */ jsx(HeaderSearchIcon, {})]
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { HeaderAvatarIconClient };
|
|
2
|
+
"use client";import{UserAvatar as e}from"../shared/avatar.mjs";import{HeaderSearchIcon as t}from"../shared/header-search-icon.mjs";import{HeaderShell as n}from"../shared/header-shell.mjs";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a({mode:a=`renderer`}){return i(n,{mode:a,className:`justify-between gap-[16px]`,children:[r(e,{}),r(t,{})]})}export{a as HeaderAvatarIconClient};
|
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { HeaderAvatarIconClient } from "./client.mjs";
|
|
4
|
-
import { headerAvatarIconInspectorPropsSchema } from "./schema.mjs";
|
|
5
|
-
import { HeaderAvatarIcon } from "./server.mjs";
|
|
6
|
-
|
|
7
|
-
//#region components/biz/business/header-search/header-avatar-icon/material.ts
|
|
8
|
-
const headerAvatarIconMaterial = defineMaterial({
|
|
9
|
-
type: "header-avatar-icon",
|
|
10
|
-
name: "顶部功能样式5",
|
|
11
|
-
icon: "/static/components-thumb/header_avatar_icon.png",
|
|
12
|
-
category: "顶部功能",
|
|
13
|
-
serverComponent: HeaderAvatarIcon,
|
|
14
|
-
clientComponent: HeaderAvatarIconClient,
|
|
15
|
-
propsSchema: headerAvatarIconInspectorPropsSchema
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { headerAvatarIconMaterial };
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{HeaderAvatarIconClient as t}from"./client.mjs";import{headerAvatarIconInspectorPropsSchema as n}from"./schema.mjs";import{HeaderAvatarIcon as r}from"./server.mjs";const i=e({type:`header-avatar-icon`,name:`顶部功能样式5`,icon:`/static/components-thumb/header_avatar_icon.png`,category:`顶部功能`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as headerAvatarIconMaterial};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region components/biz/business/header-search/header-avatar-icon/schema.ts
|
|
5
|
-
/**
|
|
6
|
-
* 顶部-头像框+icon 物料暂不对外开放配置,仅做占位展示。
|
|
7
|
-
*/
|
|
8
|
-
const headerAvatarIconInspectorPropsSchema = defineComponentPropsSchema((_t) => ({}));
|
|
9
|
-
const headerAvatarIconInspectorDefaultProps = getSchemaDefaultProps(headerAvatarIconInspectorPropsSchema);
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { headerAvatarIconInspectorPropsSchema };
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";const n=e(e=>({}));t(n);export{n as headerAvatarIconInspectorPropsSchema};
|
|
@@ -1,18 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region components/biz/business/header-search/header-avatar-icon/server.tsx
|
|
6
|
-
/**
|
|
7
|
-
* 顶部-头像框+icon 服务端组件。
|
|
8
|
-
*/
|
|
9
|
-
function HeaderAvatarIcon(props) {
|
|
10
|
-
const { mode = "renderer", ...rest } = props;
|
|
11
|
-
return /* @__PURE__ */ jsx(HeaderAvatarIconClient, {
|
|
12
|
-
...rest,
|
|
13
|
-
mode
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { HeaderAvatarIcon };
|
|
2
|
+
import{HeaderAvatarIconClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){let{mode:r=`renderer`,...i}=n;return t(e,{...i,mode:r})}export{n as HeaderAvatarIcon};
|