@funhub/platform 0.2.3-beta.0 → 0.2.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/biz.mjs +1 -1
  2. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
  3. package/dist/components/biz/business/advertisement/banner-ad/material.d.mts +1 -1
  4. package/dist/components/biz/business/advertisement/banner-ad/schema.d.mts +1 -6
  5. package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -1
  6. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
  7. package/dist/components/biz/business/advertisement/icon-ad/material.d.mts +1 -1
  8. package/dist/components/biz/business/advertisement/icon-ad/schema.d.mts +1 -7
  9. package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -1
  10. package/dist/components/biz/business/advertisement/popup-ad/client.mjs +1 -1
  11. package/dist/components/biz/business/advertisement/popup-ad/material.d.mts +1 -1
  12. package/dist/components/biz/business/advertisement/popup-ad/material.mjs +1 -1
  13. package/dist/components/biz/business/advertisement/popup-ad/schema.d.mts +2 -10
  14. package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -1
  15. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -1
  16. package/dist/components/biz/business/advertisement/text-ad/material.d.mts +1 -1
  17. package/dist/components/biz/business/advertisement/text-ad/schema.d.mts +1 -5
  18. package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -1
  19. package/dist/components/biz/business/marquee/material.d.mts +1 -1
  20. package/dist/components/biz/business/marquee/schema.d.mts +1 -1
  21. package/dist/components/ui/image.d.mts +4 -4
  22. package/package.json +1 -1
package/dist/biz.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as ne}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as re}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as e}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as t,DataSourceType as n}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as r,customStylesToInline as i,mergeStyles as a}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as o}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as s,transformContentToCardItem as c}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as l}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as u}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as d}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as p}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as m}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as h}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as g}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{adaptBannerAdProps as _,adaptFloatingAdItem as v,adaptIconAdProps as y,adaptPopupAdMaterials as b,adaptTextAdProps as x,buildAdsMatchRequest as S,getFirstMatchedMaterial as C,hasMatchedAds as w,parseAdsMatchExtData as T,resolveAdsAppCode as E,sortAdsMatchMaterials as D}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as O,createAdsMatchQueryFn as k,getAdsMatchQueryKey as A}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as j,useAdProvider as M}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as N}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as P,bannerAdInspectorPropsSchema as F,bannerAdStyleSizeOptions as I}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as L}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as R}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as z}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as B,getFeedAdIcon as V,getFeedAdJumpUrl as H,isFeedAdItem as U}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{floatingAdInspectorDefaultProps as W,floatingAdInspectorPropsSchema as G}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAd as K}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{FloatingAdServer as q}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as J}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as Y,iconAdInspectorPropsSchema as X}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as ie}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as ae}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as oe}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{popupAdInspectorDefaultProps as se,popupAdInspectorPropsSchema as ce}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAd as le}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{PopupAdServer as ue}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as de}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as fe,textAdInspectorPropsSchema as pe}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as me}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as he}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as ge}from"./components/biz/business/advertisement/text-ad/material.mjs";import{defaultProps as _e}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as ve}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as ye}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as be}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as xe}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import Se from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as Ce}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import we from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as Z,homeRecommendGridInspectorPropsSchema as Te}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as Ee}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as De}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as Oe}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as ke}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as Ae}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as je}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as Me,extractDataByComponentType as Ne}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as Pe}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as Fe}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as Ie}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as Le}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as Re}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import ze from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as Be}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import Ve from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as He}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import Ue from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as We}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Ge}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import Ke from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as qe}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Je}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import Ye from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as Xe,basicBannerInspectorPropsSchema as Ze}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Qe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as $e}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import et from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as tt}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import rt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as it}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as at}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import ot from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as st}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ct}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import $ from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as lt}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ut}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import dt from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as ft}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as pt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import mt from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import ht from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as gt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as _t,floatingBallInspectorPropsSchema as vt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as yt}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as bt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as Ct}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import wt from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Tt}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Et}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Dt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ot}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as kt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import At from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as jt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as Mt}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Nt}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Pt}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Ft,getDefaultMarqueePeriod as It,marqueeInspectorPropsSchema as Lt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Rt}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as zt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Bt}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Vt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ht}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Ut from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Wt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Gt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Kt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as qt,profileHeaderInspectorPropsSchema as Jt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Yt,profileHeaderMaterialWithDisabledBackground as Xt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Zt,profileMainCollectTabOptions as Qt,profileMainHistoryTabOptions as $t,profileMainLikeTabOptions as en,profileMainMineTabOptions as tn,profileMainProfileTabOptions as nn,profileMainTabOptions as rn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as an}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as on}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as sn}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as cn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as ln}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as un,profileMainInspectorPropsSchema as dn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as fn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as pn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as mn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as hn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as gn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as _n}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as vn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import yn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as bn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as xn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Sn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Cn}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as wn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Tn from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as En}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Dn}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import On from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as kn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as An}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as jn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Mn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Nn}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Pn,searchInputInspectorPropsSchema as Fn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as In}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Ln}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Rn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as zn,tabBarInspectorPropsSchema as Bn}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Vn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Hn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Un}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Wn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Gn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Kn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as qn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as Jn,buttonInspectorPropsSchema as Yn}from"./components/biz/example/button/schema.mjs";import{Button as Xn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as Zn}from"./components/biz/example/button/material.mjs";import{Renderer as Qn}from"./components/biz/renderer/renderer.mjs";export{j as AdProvider,N as AdRuntimeProvider,L as BannerAd,R as BannerAdServer,et as BasicBanner,l as BasicBannerDefaultData,Qe as BasicBannerMaterialComponent,u as BasicBannerSchema,ht as BasicFeatureGrid,d as BasicFeatureGridDefaultData,f as BasicFeatureGridSchema,p as BasicFullscreen,ze as BasicFullscreenFeed,m as BasicFullscreenFeedDefaultData,Re as BasicFullscreenFeedSchema,Ve as BasicLogo,_e as BasicLogoDefaultData,Be as BasicLogoSchema,Ut as BasicNavBar,Vt as BasicNavBarDefaultData,Ht as BasicNavBarSchema,Gt as BasicPostCard,Wt as BasicPostCardDefaultData,ke as BasicPostCardSchema,yn as BasicRecommendedUsers,Ae as BasicRecommendedUsersDefaultData,je as BasicRecommendedUsersSchema,Ue as BasicSearch,Sn as BasicSearchBar,bn as BasicSearchBarDefaultData,xn as BasicSearchBarSchema,ve as BasicSearchDefaultData,He as BasicSearchSchema,Xn as Button,qn as ButtonClient,ee as CARD_SPEC_MAP,rt as CardGrid2x3,tt as CardGrid2x3DefaultData,ot as CardGrid2x3Infinite,it as CardGrid2x3InfiniteDefaultData,at as CardGrid2x3InfiniteSchema,nt as CardGrid2x3Schema,$ as CardGrid2x4,st as CardGrid2x4DefaultData,ct as CardGrid2x4Schema,dt as CardGrid3x3,lt as CardGrid3x3DefaultData,mt as CardGrid3x3Infinite,ft as CardGrid3x3InfiniteDefaultData,pt as CardGrid3x3InfiniteSchema,ut as CardGrid3x3Schema,Pe as CardItemDefaultData,Fe as CardItemSchema,Ie as CardLayoutDefaultData,Le as CardLayoutSchema,te as CardSpec,on as CollectTab,mn as CollectTabServer,Me as ComponentType,t as DataBindingUIMode,n as DataSourceType,we as DetailSearchBar,ye as DetailSearchBarDefaultData,Ce as DetailSearchBarSchema,B as FeedAdBadge,Ke as FilterSearch,Tn as FilterSearchBar,Cn as FilterSearchBarDefaultData,wn as FilterSearchBarSchema,We as FilterSearchDefaultData,Ge as FilterSearchSchema,K as FloatingAd,q as FloatingAdServer,yt as FloatingBall,gt as FloatingBallClient,St as FullscreenFeedClient,xt as FullscreenPostFeedDefaultData,h as FullscreenPostFeedSchema,wt as FullscreenVideoClient,Ct as FullscreenVideoFeedDefaultData,g as FullscreenVideoFeedSchema,sn as HistoryTab,hn as HistoryTabServer,Dt as HomeRecommendGrid,Z as HomeRecommendGridDefaultData,Tt as HomeRecommendGridMaterialComponent,Ee as HomeRecommendGridSchema,At as HomeRecommendWaterfall,Q as HomeRecommendWaterfallDefaultData,Ot as HomeRecommendWaterfallMaterialComponent,Oe as HomeRecommendWaterfallSchema,ie as IconAd,ae as IconAdServer,jt as ImageTextRecommendClient,Nt as ImageTextRecommendServer,cn as LikeTab,gn as LikeTabServer,Rt as MarqueeClient,zt as MarqueeServer,le as PopupAd,ue as PopupAdServer,_n as PublishTab,vn as PublishTabServer,Qn as Renderer,kn as SearchHistoryClient,jn as SearchHistoryServer,Nn as SearchInputClient,In as SearchInputServer,Se as SimpleSearch,be as SimpleSearchDefaultData,xe as SimpleSearchSchema,Rn as TabBarClient,Vn as TabBarServer,Ye as TagSearch,On as TagSearchBar,En as TagSearchBarDefaultData,Dn as TagSearchBarSchema,qe as TagSearchDefaultData,Je as TagSearchSchema,me as TextAd,he as TextAdServer,Un as TextRecommendClient,Gn as TextRecommendServer,Kt as UserProfileHeaderClient,fn as UserProfileMain,ln as UserProfileMainClient,an as UserProfileMainShell,_ as adaptBannerAdProps,v as adaptFloatingAdItem,y as adaptIconAdProps,b as adaptPopupAdMaterials,x as adaptTextAdProps,P as bannerAdInspectorDefaultProps,F as bannerAdInspectorPropsSchema,z as bannerAdMaterial,I as bannerAdStyleSizeOptions,Xe as basicBannerInspectorDefaultProps,Ze as basicBannerInspectorPropsSchema,$e as basicBannerMaterial,S as buildAdsMatchRequest,e as buildContentUrl,Jn as buttonInspectorDefaultProps,Yn as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,O as createAdsMatchPrefetchItem,k as createAdsMatchQueryFn,i as customStylesToInline,Ft as defaultMarqueePeriod,Zn as exampleButtonMaterial,Ne as extractDataByComponentType,W as floatingAdInspectorDefaultProps,G as floatingAdInspectorPropsSchema,J as floatingAdMaterial,_t as floatingBallInspectorDefaultProps,vt as floatingBallInspectorPropsSchema,bt as floatingBallMaterial,A as getAdsMatchQueryKey,ne as getCardSpecConfig,re as getChannelList,It as getDefaultMarqueePeriod,V as getFeedAdIcon,H as getFeedAdJumpUrl,C as getFirstMatchedMaterial,w as hasMatchedAds,Z as homeRecommendGridInspectorDefaultProps,Te as homeRecommendGridInspectorPropsSchema,Et as homeRecommendGridMaterial,Q as homeRecommendWaterfallInspectorDefaultProps,De as homeRecommendWaterfallInspectorPropsSchema,kt as homeRecommendWaterfallMaterial,Y as iconAdInspectorDefaultProps,X as iconAdInspectorPropsSchema,oe as iconAdMaterial,Mt as imageTextRecommendInspectorPropsSchema,Pt as imageTextRecommendMaterial,U as isFeedAdItem,Lt as marqueeInspectorPropsSchema,Bt as marqueeMaterial,a as mergeStyles,T as parseAdsMatchExtData,se as popupAdInspectorDefaultProps,ce as popupAdInspectorPropsSchema,de as popupAdMaterial,qt as profileHeaderInspectorDefaultProps,Jt as profileHeaderInspectorPropsSchema,Yt as profileHeaderMaterial,Xt as profileHeaderMaterialWithDisabledBackground,Zt as profileMainCollectCollectionTabOptions,Qt as profileMainCollectTabOptions,$t as profileMainHistoryTabOptions,un as profileMainInspectorDefaultProps,dn as profileMainInspectorPropsSchema,en as profileMainLikeTabOptions,pn as profileMainMaterial,tn as profileMainMineTabOptions,nn as profileMainProfileTabOptions,rn as profileMainTabOptions,E as resolveAdsAppCode,An as searchHistoryInspectorPropsSchema,Mn as searchHistoryMaterial,Pn as searchInputInspectorDefaultProps,Fn as searchInputInspectorPropsSchema,Ln as searchInputMaterial,D as sortAdsMatchMaterials,zn as tabBarInspectorDefaultProps,Bn as tabBarInspectorPropsSchema,Hn as tabBarMaterial,fe as textAdInspectorDefaultProps,pe as textAdInspectorPropsSchema,ge as textAdMaterial,Wn as textRecommendInspectorPropsSchema,Kn as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,M as useAdProvider};
2
+ import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as ne}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as re}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as e}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as t,DataSourceType as n}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as r,customStylesToInline as i,mergeStyles as a}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as o}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as s,transformContentToCardItem as c}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as l}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as u}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as d}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as p}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as m}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as h}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as g}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{adaptBannerAdProps as _,adaptFloatingAdItem as v,adaptIconAdProps as y,adaptPopupAdMaterials as b,adaptTextAdProps as x,buildAdsMatchRequest as S,getFirstMatchedMaterial as C,hasMatchedAds as w,parseAdsMatchExtData as T,resolveAdsAppCode as E,sortAdsMatchMaterials as D}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as O,createAdsMatchQueryFn as k,getAdsMatchQueryKey as A}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as j,useAdProvider as M}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as N}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as P,bannerAdInspectorPropsSchema as F,bannerAdStyleSizeOptions as I}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as L}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as R}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as z}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as B,getFeedAdIcon as V,getFeedAdJumpUrl as H,isFeedAdItem as U}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{floatingAdInspectorDefaultProps as W,floatingAdInspectorPropsSchema as G}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAd as K}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{FloatingAdServer as q}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as J}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as Y,iconAdInspectorPropsSchema as X}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as ie}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as ae}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as oe}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as se}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as ce,popupAdInspectorPropsSchema as le}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as ue}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as de}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as fe,textAdInspectorPropsSchema as pe}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as me}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as he}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as ge}from"./components/biz/business/advertisement/text-ad/material.mjs";import{defaultProps as _e}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as ve}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as ye}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as be}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as xe}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import Se from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as Ce}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import we from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as Z,homeRecommendGridInspectorPropsSchema as Te}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as Ee}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as De}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as Oe}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as ke}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as Ae}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as je}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as Me,extractDataByComponentType as Ne}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as Pe}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as Fe}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as Ie}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as Le}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as Re}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import ze from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as Be}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import Ve from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as He}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import Ue from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as We}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Ge}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import Ke from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as qe}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Je}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import Ye from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as Xe,basicBannerInspectorPropsSchema as Ze}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Qe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as $e}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import et from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as tt}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import rt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as it}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as at}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import ot from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as st}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ct}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import $ from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as lt}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ut}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import dt from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as ft}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as pt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import mt from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import ht from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as gt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as _t,floatingBallInspectorPropsSchema as vt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as yt}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as bt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as Ct}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import wt from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Tt}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Et}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Dt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ot}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as kt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import At from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as jt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as Mt}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Nt}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Pt}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Ft,getDefaultMarqueePeriod as It,marqueeInspectorPropsSchema as Lt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Rt}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as zt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Bt}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Vt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ht}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Ut from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Wt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Gt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Kt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as qt,profileHeaderInspectorPropsSchema as Jt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Yt,profileHeaderMaterialWithDisabledBackground as Xt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Zt,profileMainCollectTabOptions as Qt,profileMainHistoryTabOptions as $t,profileMainLikeTabOptions as en,profileMainMineTabOptions as tn,profileMainProfileTabOptions as nn,profileMainTabOptions as rn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as an}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as on}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as sn}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as cn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as ln}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as un,profileMainInspectorPropsSchema as dn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as fn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as pn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as mn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as hn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as gn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as _n}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as vn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import yn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as bn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as xn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Sn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Cn}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as wn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Tn from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as En}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Dn}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import On from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as kn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as An}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as jn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Mn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Nn}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Pn,searchInputInspectorPropsSchema as Fn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as In}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Ln}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Rn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as zn,tabBarInspectorPropsSchema as Bn}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Vn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Hn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Un}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Wn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Gn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Kn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as qn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as Jn,buttonInspectorPropsSchema as Yn}from"./components/biz/example/button/schema.mjs";import{Button as Xn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as Zn}from"./components/biz/example/button/material.mjs";import{Renderer as Qn}from"./components/biz/renderer/renderer.mjs";export{j as AdProvider,N as AdRuntimeProvider,L as BannerAd,R as BannerAdServer,et as BasicBanner,l as BasicBannerDefaultData,Qe as BasicBannerMaterialComponent,u as BasicBannerSchema,ht as BasicFeatureGrid,d as BasicFeatureGridDefaultData,f as BasicFeatureGridSchema,p as BasicFullscreen,ze as BasicFullscreenFeed,m as BasicFullscreenFeedDefaultData,Re as BasicFullscreenFeedSchema,Ve as BasicLogo,_e as BasicLogoDefaultData,Be as BasicLogoSchema,Ut as BasicNavBar,Vt as BasicNavBarDefaultData,Ht as BasicNavBarSchema,Gt as BasicPostCard,Wt as BasicPostCardDefaultData,ke as BasicPostCardSchema,yn as BasicRecommendedUsers,Ae as BasicRecommendedUsersDefaultData,je as BasicRecommendedUsersSchema,Ue as BasicSearch,Sn as BasicSearchBar,bn as BasicSearchBarDefaultData,xn as BasicSearchBarSchema,ve as BasicSearchDefaultData,He as BasicSearchSchema,Xn as Button,qn as ButtonClient,ee as CARD_SPEC_MAP,rt as CardGrid2x3,tt as CardGrid2x3DefaultData,ot as CardGrid2x3Infinite,it as CardGrid2x3InfiniteDefaultData,at as CardGrid2x3InfiniteSchema,nt as CardGrid2x3Schema,$ as CardGrid2x4,st as CardGrid2x4DefaultData,ct as CardGrid2x4Schema,dt as CardGrid3x3,lt as CardGrid3x3DefaultData,mt as CardGrid3x3Infinite,ft as CardGrid3x3InfiniteDefaultData,pt as CardGrid3x3InfiniteSchema,ut as CardGrid3x3Schema,Pe as CardItemDefaultData,Fe as CardItemSchema,Ie as CardLayoutDefaultData,Le as CardLayoutSchema,te as CardSpec,on as CollectTab,mn as CollectTabServer,Me as ComponentType,t as DataBindingUIMode,n as DataSourceType,we as DetailSearchBar,ye as DetailSearchBarDefaultData,Ce as DetailSearchBarSchema,B as FeedAdBadge,Ke as FilterSearch,Tn as FilterSearchBar,Cn as FilterSearchBarDefaultData,wn as FilterSearchBarSchema,We as FilterSearchDefaultData,Ge as FilterSearchSchema,K as FloatingAd,q as FloatingAdServer,yt as FloatingBall,gt as FloatingBallClient,St as FullscreenFeedClient,xt as FullscreenPostFeedDefaultData,h as FullscreenPostFeedSchema,wt as FullscreenVideoClient,Ct as FullscreenVideoFeedDefaultData,g as FullscreenVideoFeedSchema,sn as HistoryTab,hn as HistoryTabServer,Dt as HomeRecommendGrid,Z as HomeRecommendGridDefaultData,Tt as HomeRecommendGridMaterialComponent,Ee as HomeRecommendGridSchema,At as HomeRecommendWaterfall,Q as HomeRecommendWaterfallDefaultData,Ot as HomeRecommendWaterfallMaterialComponent,Oe as HomeRecommendWaterfallSchema,ie as IconAd,ae as IconAdServer,jt as ImageTextRecommendClient,Nt as ImageTextRecommendServer,cn as LikeTab,gn as LikeTabServer,Rt as MarqueeClient,zt as MarqueeServer,se as PopupAd,ue as PopupAdServer,_n as PublishTab,vn as PublishTabServer,Qn as Renderer,kn as SearchHistoryClient,jn as SearchHistoryServer,Nn as SearchInputClient,In as SearchInputServer,Se as SimpleSearch,be as SimpleSearchDefaultData,xe as SimpleSearchSchema,Rn as TabBarClient,Vn as TabBarServer,Ye as TagSearch,On as TagSearchBar,En as TagSearchBarDefaultData,Dn as TagSearchBarSchema,qe as TagSearchDefaultData,Je as TagSearchSchema,me as TextAd,he as TextAdServer,Un as TextRecommendClient,Gn as TextRecommendServer,Kt as UserProfileHeaderClient,fn as UserProfileMain,ln as UserProfileMainClient,an as UserProfileMainShell,_ as adaptBannerAdProps,v as adaptFloatingAdItem,y as adaptIconAdProps,b as adaptPopupAdMaterials,x as adaptTextAdProps,P as bannerAdInspectorDefaultProps,F as bannerAdInspectorPropsSchema,z as bannerAdMaterial,I as bannerAdStyleSizeOptions,Xe as basicBannerInspectorDefaultProps,Ze as basicBannerInspectorPropsSchema,$e as basicBannerMaterial,S as buildAdsMatchRequest,e as buildContentUrl,Jn as buttonInspectorDefaultProps,Yn as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,O as createAdsMatchPrefetchItem,k as createAdsMatchQueryFn,i as customStylesToInline,Ft as defaultMarqueePeriod,Zn as exampleButtonMaterial,Ne as extractDataByComponentType,W as floatingAdInspectorDefaultProps,G as floatingAdInspectorPropsSchema,J as floatingAdMaterial,_t as floatingBallInspectorDefaultProps,vt as floatingBallInspectorPropsSchema,bt as floatingBallMaterial,A as getAdsMatchQueryKey,ne as getCardSpecConfig,re as getChannelList,It as getDefaultMarqueePeriod,V as getFeedAdIcon,H as getFeedAdJumpUrl,C as getFirstMatchedMaterial,w as hasMatchedAds,Z as homeRecommendGridInspectorDefaultProps,Te as homeRecommendGridInspectorPropsSchema,Et as homeRecommendGridMaterial,Q as homeRecommendWaterfallInspectorDefaultProps,De as homeRecommendWaterfallInspectorPropsSchema,kt as homeRecommendWaterfallMaterial,Y as iconAdInspectorDefaultProps,X as iconAdInspectorPropsSchema,oe as iconAdMaterial,Mt as imageTextRecommendInspectorPropsSchema,Pt as imageTextRecommendMaterial,U as isFeedAdItem,Lt as marqueeInspectorPropsSchema,Bt as marqueeMaterial,a as mergeStyles,T as parseAdsMatchExtData,ce as popupAdInspectorDefaultProps,le as popupAdInspectorPropsSchema,de as popupAdMaterial,qt as profileHeaderInspectorDefaultProps,Jt as profileHeaderInspectorPropsSchema,Yt as profileHeaderMaterial,Xt as profileHeaderMaterialWithDisabledBackground,Zt as profileMainCollectCollectionTabOptions,Qt as profileMainCollectTabOptions,$t as profileMainHistoryTabOptions,un as profileMainInspectorDefaultProps,dn as profileMainInspectorPropsSchema,en as profileMainLikeTabOptions,pn as profileMainMaterial,tn as profileMainMineTabOptions,nn as profileMainProfileTabOptions,rn as profileMainTabOptions,E as resolveAdsAppCode,An as searchHistoryInspectorPropsSchema,Mn as searchHistoryMaterial,Pn as searchInputInspectorDefaultProps,Fn as searchInputInspectorPropsSchema,Ln as searchInputMaterial,D as sortAdsMatchMaterials,zn as tabBarInspectorDefaultProps,Bn as tabBarInspectorPropsSchema,Hn as tabBarMaterial,fe as textAdInspectorDefaultProps,pe as textAdInspectorPropsSchema,ge as textAdMaterial,Wn as textRecommendInspectorPropsSchema,Kn as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,M as useAdProvider};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Carousel as n,CarouselContent as r,CarouselItem as i}from"../../../../ui/carousel.mjs";import{Text as a}from"../../../../ui/text.mjs";import o from"../../../../ui/link.mjs";import{adaptBannerAdProps as s,hasMatchedAds as c}from"../ad-match.mjs";import{useAdProvider as l}from"../ad-provider.mjs";import{bannerAdInspectorDefaultProps as u}from"./schema.mjs";import d from"clsx";import{useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v={"700x400":{minHeight:`400px`,aspectRatio:`7 / 4`,titleFontSize:`14px`},"700x200":{minHeight:`200px`,aspectRatio:`7 / 2`,titleFontSize:`14px`},"720x150":{minHeight:`150px`,aspectRatio:`24 / 5`,titleFontSize:`12px`},"720x300":{minHeight:`300px`,aspectRatio:`12 / 5`,titleFontSize:`14px`}};function y(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function b(e,t){return typeof e==`number`&&e>0?e:t}function x(e,t){return typeof e==`number`&&e>0?e:t}function S(e,t){return e??t}function C({mode:C=`renderer`,displayCount:w,switchInterval:T=3e3,styleSize:E=`700x400`,items:D,pointerEventsDisabled:O=!1}){let k=C===`editor`?{displayCount:b(w,u.displayCount),switchInterval:x(T,u.switchInterval),styleSize:S(E,u.styleSize),items:y(D,u.items)}:{displayCount:w,switchInterval:T,styleSize:E,items:D},A=l(),j=p(()=>c(A?.matchData)?s(A?.matchData):{displayCount:k.displayCount,switchInterval:k.switchInterval,styleSize:k.styleSize,items:k.items},[A?.matchData,k.displayCount,k.items,k.styleSize,k.switchInterval]),[M,N]=h(),[P,F]=h(0),I=m(null),L=p(()=>typeof j.displayCount==`number`?j.items.slice(0,Math.max(j.displayCount,0)):j.items,[j]);if(f(()=>{if(!M||L.length<=1)return;let e=()=>{F(M.selectedScrollSnap())};return M.on(`select`,e),e(),()=>{M.off(`select`,e)}},[M,L.length]),f(()=>{if(!(!M||L.length<=1))return I.current=setInterval(()=>{if(M.canScrollNext()){M.scrollNext();return}M.scrollTo(0)},j.switchInterval??3e3),()=>{I.current&&=(clearInterval(I.current),null)}},[M,j.switchInterval,L.length]),L.length===0)return null;let R=v[j.styleSize??`700x400`];return g(t,{as:`section`,className:`w-full px-[12px] py-[12px]`,"aria-label":`Banner 广告`,style:{pointerEvents:O?`none`:void 0},children:_(n,{setApi:N,opts:{align:`start`,loop:L.length>1},className:`w-full`,children:[g(r,{className:`ml-0`,children:L.map((n,r)=>g(i,{className:`pl-0`,children:_(o,{href:n.jumpUrl,className:d(`relative block w-full overflow-hidden bg-white`),style:{minHeight:R.minHeight,aspectRatio:R.aspectRatio,borderRadius:`10px`},children:[g(t,{className:`absolute inset-0`,children:g(e,{src:n.coverUrl,alt:n.title||`Banner 广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),g(t,{className:`absolute inset-x-0 bottom-0`,style:{height:`28%`,background:`linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)`,opacity:.84}}),g(t,{className:`absolute right-0 top-0 overflow-hidden`,style:{width:`56px`,height:`25px`,backgroundColor:`rgba(255, 255, 255, 0.16)`,borderBottomLeftRadius:`8px`},children:g(a,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),n.title?g(a,{className:`absolute line-clamp-2 text-white`,style:{left:`16px`,bottom:`16px`,maxWidth:`calc(100% - 120px)`,fontSize:R.titleFontSize,lineHeight:`normal`,fontWeight:500},children:n.title}):null]})},`${n.jumpUrl}-${r}`))}),L.length>1?g(t,{className:`pointer-events-none absolute bottom-[18px] right-[16px] z-10 flex items-center gap-[6px]`,children:L.map((e,n)=>g(t,{className:`rounded-full transition-all duration-300`,style:{width:n===P?`16px`:`8px`,height:`8px`,backgroundColor:n===P?`#FFFFFF`:`rgba(255, 255, 255, 0.78)`}},n))}):null]})})}export{C as BannerAd};
2
+ "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Carousel as n,CarouselContent as r,CarouselItem as i}from"../../../../ui/carousel.mjs";import{Text as a}from"../../../../ui/text.mjs";import o from"../../../../ui/link.mjs";import{adaptBannerAdProps as s,hasMatchedAds as c}from"../ad-match.mjs";import{useAdProvider as l}from"../ad-provider.mjs";import{bannerAdInspectorDefaultProps as u}from"./schema.mjs";import d from"clsx";import{useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v={"700x400":{minHeight:`400px`,aspectRatio:`7 / 4`,titleFontSize:`14px`},"700x200":{minHeight:`200px`,aspectRatio:`7 / 2`,titleFontSize:`14px`},"720x150":{minHeight:`150px`,aspectRatio:`24 / 5`,titleFontSize:`12px`},"720x300":{minHeight:`300px`,aspectRatio:`12 / 5`,titleFontSize:`14px`}},y=[{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告一`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告二`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告三`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告四`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告五`}];function b(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function x(e,t){return typeof e==`number`&&e>0?e:t}function S(e,t){return typeof e==`number`&&e>0?e:t}function C(e,t){return e??t}function w({mode:w=`renderer`,displayCount:T,switchInterval:E=3e3,styleSize:D=`700x400`,items:O,pointerEventsDisabled:k=!1}){let A=w===`editor`?{displayCount:x(T,u.displayCount),switchInterval:S(E,u.switchInterval),styleSize:C(D,u.styleSize),items:b(O,y)}:{displayCount:T,switchInterval:E,styleSize:D,items:O},j=l(),M=p(()=>c(j?.matchData)?s(j?.matchData):{displayCount:A.displayCount,switchInterval:A.switchInterval,styleSize:A.styleSize,items:A.items},[j?.matchData,A.displayCount,A.items,A.styleSize,A.switchInterval]),[N,P]=h(),[F,I]=h(0),L=m(null),R=p(()=>typeof M.displayCount==`number`?M.items.slice(0,Math.max(M.displayCount,0)):M.items,[M]);if(f(()=>{if(!N||R.length<=1)return;let e=()=>{I(N.selectedScrollSnap())};return N.on(`select`,e),e(),()=>{N.off(`select`,e)}},[N,R.length]),f(()=>{if(!(!N||R.length<=1))return L.current=setInterval(()=>{if(N.canScrollNext()){N.scrollNext();return}N.scrollTo(0)},M.switchInterval??3e3),()=>{L.current&&=(clearInterval(L.current),null)}},[N,M.switchInterval,R.length]),R.length===0)return null;let z=v[M.styleSize??`700x400`];return g(t,{as:`section`,className:`w-full px-[12px] py-[12px]`,"aria-label":`Banner 广告`,style:{pointerEvents:k?`none`:void 0},children:_(n,{setApi:P,opts:{align:`start`,loop:R.length>1},className:`w-full`,children:[g(r,{className:`ml-0`,children:R.map((n,r)=>g(i,{className:`pl-0`,children:_(o,{href:n.jumpUrl,className:d(`relative block w-full overflow-hidden bg-white`),style:{minHeight:z.minHeight,aspectRatio:z.aspectRatio,borderRadius:`10px`},children:[g(t,{className:`absolute inset-0`,children:g(e,{src:n.coverUrl,alt:n.title||`Banner 广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),g(t,{className:`absolute inset-x-0 bottom-0`,style:{height:`28%`,background:`linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)`,opacity:.84}}),g(t,{className:`absolute right-0 top-0 overflow-hidden`,style:{width:`56px`,height:`25px`,backgroundColor:`rgba(255, 255, 255, 0.16)`,borderBottomLeftRadius:`8px`},children:g(a,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),n.title?g(a,{className:`absolute line-clamp-2 text-white`,style:{left:`16px`,bottom:`16px`,maxWidth:`calc(100% - 120px)`,fontSize:z.titleFontSize,lineHeight:`normal`,fontWeight:500},children:n.title}):null]})},`${n.jumpUrl}-${r}`))}),R.length>1?g(t,{className:`pointer-events-none absolute bottom-[18px] right-[16px] z-10 flex items-center gap-[6px]`,children:R.map((e,n)=>g(t,{className:`rounded-full transition-all duration-300`,style:{width:n===F?`16px`:`8px`,height:`8px`,backgroundColor:n===F?`#FFFFFF`:`rgba(255, 255, 255, 0.78)`}},n))}):null]})})}export{w as BannerAd};
@@ -19,7 +19,7 @@ declare const bannerAdMaterial: DefineMaterialOption<typeof BannerAdServer, type
19
19
  coverUrl: zod.ZodString & SchemaHasDefaultValue;
20
20
  jumpUrl: zod.ZodString & SchemaHasDefaultValue;
21
21
  title: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
22
- }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
22
+ }, zod_v4_core0.$strip>>;
23
23
  } & {
24
24
  mode: zod.ZodOptional<zod.ZodEnum<{
25
25
  renderer: "renderer";
@@ -41,7 +41,7 @@ declare const bannerAdInspectorPropsSchema: z$1.ZodObject<{
41
41
  coverUrl: z$1.ZodString & SchemaHasDefaultValue;
42
42
  jumpUrl: z$1.ZodString & SchemaHasDefaultValue;
43
43
  title: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
44
- }, z$1.core.$strip>> & SchemaHasDefaultValue;
44
+ }, z$1.core.$strip>>;
45
45
  } & {
46
46
  mode: z$1.ZodOptional<z$1.ZodEnum<{
47
47
  renderer: "renderer";
@@ -52,11 +52,6 @@ declare const bannerAdInspectorDefaultProps: {
52
52
  readonly displayCount: number;
53
53
  readonly switchInterval: number;
54
54
  readonly styleSize: "700x400" | "700x200" | "720x150" | "720x300";
55
- readonly items: {
56
- coverUrl: string;
57
- jumpUrl: string;
58
- title?: string | undefined;
59
- }[];
60
55
  };
61
56
  type BannerAdInspectorProps<T extends object = object> = InferSchemaProps<typeof bannerAdInspectorPropsSchema> & T;
62
57
  /**
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=[`700x400`,`700x200`,`720x150`,`720x300`],i=e(e=>({displayCount:e.number(1,{label:`轮播数量`,required:!0}).refine(e=>e>=1&&e<=5,`轮播数量必须为 1-5`),switchInterval:e.number(3e3,{label:`轮播切换时间`,required:!0}),styleSize:e.enum(r,`700x400`,{label:`样式尺寸选择`,required:!0}),items:e.array(n.object({coverUrl:e.string(``,{label:`封面图`,required:!0}),jumpUrl:e.string(``,{label:`跳转链接`,required:!0}),title:e.string(`Banner 广告`,{label:`标题`,required:!1})}),{label:`Banner 列表`,required:!0,defaultValue:[{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告一`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告二`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告三`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告四`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告五`}]})})),a=t(i);export{a as bannerAdInspectorDefaultProps,i as bannerAdInspectorPropsSchema,r as bannerAdStyleSizeOptions};
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=[`700x400`,`700x200`,`720x150`,`720x300`],i=e(e=>({displayCount:e.number(1,{label:`轮播数量`,required:!0}).refine(e=>e>=1&&e<=5,`轮播数量必须为 1-5`),switchInterval:e.number(3e3,{label:`轮播切换时间`,required:!0}),styleSize:e.enum(r,`700x400`,{label:`样式尺寸选择`,required:!0}),items:e.array(n.object({coverUrl:e.string(``,{label:`封面图`,required:!0}),jumpUrl:e.string(``,{label:`跳转链接`,required:!0}),title:e.string(`Banner 广告`,{label:`标题`,required:!1})}),{label:`Banner 列表`,required:!0})})),a=t(i);export{a as bannerAdInspectorDefaultProps,i as bannerAdInspectorPropsSchema,r as bannerAdStyleSizeOptions};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import r from"../../../../ui/link.mjs";import{adaptIconAdProps as i,hasMatchedAds as a}from"../ad-match.mjs";import{useAdProvider as o}from"../ad-provider.mjs";import{iconAdInspectorDefaultProps as s}from"./schema.mjs";import{useMemo as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";function d(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function f(e,t){return typeof e==`number`&&e>0?e:t}function p({mode:p=`renderer`,displayCount:m,items:h,pointerEventsDisabled:g=!1}){let _=p===`editor`?{displayCount:f(m,s.displayCount),items:d(h,s.items)}:{displayCount:m,items:h},v=o(),y=c(()=>a(v?.matchData)?i(v?.matchData):{displayCount:_.displayCount,items:_.items},[v?.matchData,_.displayCount,_.items]),b=y.displayCount??y.items.length,x=Math.min(Math.max(b,0),Math.min(y.items.length,5)),S=y.items.slice(0,x);return S.length===0?null:l(t,{as:`section`,className:`w-full`,"aria-label":`图标广告`,style:{pointerEvents:g?`none`:void 0},children:l(t,{className:`flex overflow-x-auto`,style:{gap:`8px`,padding:`16px 24px`,backgroundColor:`#131313`,alignItems:`center`,justifyContent:S.length>=5?`space-between`:`flex-start`},children:S.map((i,a)=>l(r,{href:i.jumpUrl,className:`block shrink-0`,style:{width:`100px`},children:u(t,{className:`flex flex-col items-center`,style:{gap:`12px`},children:[l(t,{className:`relative overflow-hidden`,style:{width:`100px`,height:`61px`,borderRadius:`10px`,backgroundColor:`#616161`},children:l(e,{src:i.icon,alt:i.title||`图标广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),l(n,{className:`truncate text-center text-white`,style:{width:`100px`,fontSize:`12px`,lineHeight:1,fontWeight:500},children:i.title}),l(t,{className:`flex items-center justify-center`,style:{minWidth:`35px`,padding:`2px 8px`,borderRadius:`4px`,backgroundColor:`rgba(255, 255, 255, 0.33)`},children:l(n,{className:`whitespace-nowrap text-white`,style:{fontSize:`10px`,lineHeight:`normal`,fontWeight:400},children:i.badgeText||`广告`})})]})},`${i.jumpUrl}-${a}`))})})}export{p as IconAd};
2
+ "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import r from"../../../../ui/link.mjs";import{adaptIconAdProps as i,hasMatchedAds as a}from"../ad-match.mjs";import{useAdProvider as o}from"../ad-provider.mjs";import{iconAdInspectorDefaultProps as s}from"./schema.mjs";import{useMemo as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=[{title:`图标广告1`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告2`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告3`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告4`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告5`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`}];function f(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function p(e,t){return typeof e==`number`&&e>0?e:t}function m({mode:m=`renderer`,displayCount:h,items:g,pointerEventsDisabled:_=!1}){let v=m===`editor`?{displayCount:p(h,s.displayCount),items:f(g,d)}:{displayCount:h,items:g},y=o(),b=c(()=>a(y?.matchData)?i(y?.matchData):{displayCount:v.displayCount,items:v.items},[y?.matchData,v.displayCount,v.items]),x=b.displayCount??b.items.length,S=Math.min(Math.max(x,0),Math.min(b.items.length,5)),C=b.items.slice(0,S);return C.length===0?null:l(t,{as:`section`,className:`w-full`,"aria-label":`图标广告`,style:{pointerEvents:_?`none`:void 0},children:l(t,{className:`flex overflow-x-auto`,style:{gap:`8px`,padding:`16px 24px`,backgroundColor:`#131313`,alignItems:`center`,justifyContent:C.length>=5?`space-between`:`flex-start`},children:C.map((i,a)=>l(r,{href:i.jumpUrl,className:`block shrink-0`,style:{width:`100px`},children:u(t,{className:`flex flex-col items-center`,style:{gap:`12px`},children:[l(t,{className:`relative overflow-hidden`,style:{width:`100px`,height:`61px`,borderRadius:`10px`,backgroundColor:`#616161`},children:l(e,{src:i.icon,alt:i.title||`图标广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),l(n,{className:`truncate text-center text-white`,style:{width:`100px`,fontSize:`12px`,lineHeight:1,fontWeight:500},children:i.title}),l(t,{className:`flex items-center justify-center`,style:{minWidth:`35px`,padding:`2px 8px`,borderRadius:`4px`,backgroundColor:`rgba(255, 255, 255, 0.33)`},children:l(n,{className:`whitespace-nowrap text-white`,style:{fontSize:`10px`,lineHeight:`normal`,fontWeight:400},children:i.badgeText||`广告`})})]})},`${i.jumpUrl}-${a}`))})})}export{m as IconAd};
@@ -18,7 +18,7 @@ declare const iconAdMaterial: DefineMaterialOption<typeof IconAdServer, typeof I
18
18
  icon: zod.ZodString & SchemaHasDefaultValue;
19
19
  jumpUrl: zod.ZodString & SchemaHasDefaultValue;
20
20
  badgeText: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
21
- }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
21
+ }, zod_v4_core0.$strip>>;
22
22
  } & {
23
23
  mode: zod.ZodOptional<zod.ZodEnum<{
24
24
  renderer: "renderer";
@@ -36,7 +36,7 @@ declare const iconAdInspectorPropsSchema: z$1.ZodObject<{
36
36
  icon: z$1.ZodString & SchemaHasDefaultValue;
37
37
  jumpUrl: z$1.ZodString & SchemaHasDefaultValue;
38
38
  badgeText: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
39
- }, z$1.core.$strip>> & SchemaHasDefaultValue;
39
+ }, z$1.core.$strip>>;
40
40
  } & {
41
41
  mode: z$1.ZodOptional<z$1.ZodEnum<{
42
42
  renderer: "renderer";
@@ -45,12 +45,6 @@ declare const iconAdInspectorPropsSchema: z$1.ZodObject<{
45
45
  }, z$1.core.$strip>;
46
46
  declare const iconAdInspectorDefaultProps: {
47
47
  readonly displayCount: number;
48
- readonly items: {
49
- title: string;
50
- icon: string;
51
- jumpUrl: string;
52
- badgeText?: string | undefined;
53
- }[];
54
48
  };
55
49
  type IconAdInspectorProps<T extends object = object> = InferSchemaProps<typeof iconAdInspectorPropsSchema> & T;
56
50
  /**
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({displayCount:e.number(5,{label:`数量选择`,required:!0}).refine(e=>e>=1&&e<=5,`数量选择必须为 1-5`),items:e.array(n.object({title:e.string(`广告标题`,{label:`标题`,required:!0}),icon:e.string(``,{label:`素材`,required:!0}),jumpUrl:e.string(``,{label:`跳转链接`,required:!0}),badgeText:e.string(`广告`,{label:`广告标识`,required:!1})}),{label:`广告列表`,required:!0,defaultValue:[{title:`图标广告1`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告2`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告3`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告4`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告5`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`}]})})),i=t(r);export{i as iconAdInspectorDefaultProps,r as iconAdInspectorPropsSchema};
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({displayCount:e.number(5,{label:`数量选择`,required:!0}).refine(e=>e>=1&&e<=5,`数量选择必须为 1-5`),items:e.array(n.object({title:e.string(`广告标题`,{label:`标题`,required:!0}),icon:e.string(``,{label:`素材`,required:!0}),jumpUrl:e.string(``,{label:`跳转链接`,required:!0}),badgeText:e.string(`广告`,{label:`广告标识`,required:!1})}),{label:`广告列表`,required:!0})})),i=t(r);export{i as iconAdInspectorDefaultProps,r as iconAdInspectorPropsSchema};
@@ -1,5 +1,5 @@
1
1
 
2
- "use client";import{Button as e}from"../../../../ui/button.mjs";import{Image as t}from"../../../../ui/image.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Dialog as r,DialogContent as i}from"../../../../ui/dialog.mjs";import a from"../../../../ui/link.mjs";import{adaptPopupAdMaterials as o,hasMatchedAds as s}from"../ad-match.mjs";import{useAdProvider as c}from"../ad-provider.mjs";import{popupAdInspectorDefaultProps as l}from"./schema.mjs";import{useEffect as u,useMemo as d,useRef as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";function g(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function _({items:_,mode:v=`renderer`}){let y=c(),b=d(()=>s(y?.matchData)?o(y?.matchData):v===`editor`?g(_,l.items):_??[],[y?.matchData,v,_]),[x,S]=p(0),[C,w]=p(!1),T=f(null);u(()=>{S(0)},[b]),u(()=>{w(!1)},[x,b]),u(()=>()=>{T.current&&window.clearTimeout(T.current)},[]);let E=b[x];function D(){S(e=>e+1)}function O(){C||(w(!0),T.current&&window.clearTimeout(T.current),T.current=window.setTimeout(()=>{T.current=null,D()},260))}function k(e){e||O()}return E?m(r,{open:!0,onOpenChange:k,disablePointerDismissal:!0,children:h(i,{showCloseButton:!1,className:`w-[320px] max-w-[calc(100vw-32px)] border-none bg-transparent p-0 shadow-none`,children:[h(n,{className:`flex flex-col items-center gap-[24px]`,style:{animation:C?`funhub-popup-ad-exit 260ms cubic-bezier(0.4, 0, 0.2, 1) both`:`funhub-popup-ad-enter 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both, funhub-popup-ad-float 3.2s ease-in-out 420ms infinite`,transformOrigin:`center bottom`},children:[m(a,{href:E.jumpUrl,className:`block w-full overflow-hidden rounded-[20px] bg-[#434343]`,style:{boxShadow:`0 18px 48px rgba(0, 0, 0, 0.26)`},children:m(n,{className:`w-full overflow-hidden bg-[#434343]`,children:m(t,{src:E.materialUrl,alt:E.title||`弹窗广告`,width:1200,height:1600,className:`block w-full h-auto`,unoptimized:!0})})}),m(e,{type:`button`,"aria-label":`关闭弹窗广告`,variant:`ghost`,size:`icon-lg`,className:`relative h-[54px] w-[54px] rounded-full border-[3px] border-white bg-transparent p-0 text-white hover:bg-white/8`,onClick:O,style:{animation:C?`funhub-popup-ad-close-exit 260ms ease-out both`:`funhub-popup-ad-close-breathe 2.4s ease-in-out 480ms infinite`},children:h(n,{className:`relative h-[24px] w-[24px]`,children:[m(n,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 rotate-45 rounded-full bg-current`}),m(n,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 -rotate-45 rounded-full bg-current`})]})})]},E.id),m(`style`,{jsx:!0,children:`
2
+ "use client";import{Button as e}from"../../../../ui/button.mjs";import{Image as t}from"../../../../ui/image.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Dialog as r,DialogContent as i}from"../../../../ui/dialog.mjs";import a from"../../../../ui/link.mjs";import{adaptPopupAdMaterials as o,hasMatchedAds as s}from"../ad-match.mjs";import{useAdProvider as c}from"../ad-provider.mjs";import{useEffect as l,useMemo as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=[{id:`popup-ad-1`,title:`弹窗广告标题`,jumpUrl:`/search`,materialUrl:`/static/components-resource/banner.png`,desc:`这里是弹窗广告描述`}];function g(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function _({items:_,mode:v=`renderer`}){let y=c(),b=u(()=>s(y?.matchData)?o(y?.matchData):v===`editor`?g(_,h):_??[],[y?.matchData,v,_]),[x,S]=f(0),[C,w]=f(!1),T=d(null);l(()=>{S(0)},[b]),l(()=>{w(!1)},[x,b]),l(()=>()=>{T.current&&window.clearTimeout(T.current)},[]);let E=b[x];function D(){S(e=>e+1)}function O(){C||(w(!0),T.current&&window.clearTimeout(T.current),T.current=window.setTimeout(()=>{T.current=null,D()},260))}function k(e){e||O()}return E?p(r,{open:!0,onOpenChange:k,disablePointerDismissal:!0,children:m(i,{showCloseButton:!1,className:`w-[320px] max-w-[calc(100vw-32px)] border-none bg-transparent p-0 shadow-none`,children:[m(n,{className:`flex flex-col items-center gap-[24px]`,style:{animation:C?`funhub-popup-ad-exit 260ms cubic-bezier(0.4, 0, 0.2, 1) both`:`funhub-popup-ad-enter 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both, funhub-popup-ad-float 3.2s ease-in-out 420ms infinite`,transformOrigin:`center bottom`},children:[p(a,{href:E.jumpUrl,className:`block w-full overflow-hidden rounded-[20px] bg-[#434343]`,style:{boxShadow:`0 18px 48px rgba(0, 0, 0, 0.26)`},children:p(n,{className:`w-full overflow-hidden bg-[#434343]`,children:p(t,{src:E.materialUrl,alt:E.title||`弹窗广告`,width:1200,height:1600,className:`block w-full h-auto`,unoptimized:!0})})}),p(e,{type:`button`,"aria-label":`关闭弹窗广告`,variant:`ghost`,size:`icon-lg`,className:`relative h-[54px] w-[54px] rounded-full border-[3px] border-white bg-transparent p-0 text-white hover:bg-white/8`,onClick:O,style:{animation:C?`funhub-popup-ad-close-exit 260ms ease-out both`:`funhub-popup-ad-close-breathe 2.4s ease-in-out 480ms infinite`},children:m(n,{className:`relative h-[24px] w-[24px]`,children:[p(n,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 rotate-45 rounded-full bg-current`}),p(n,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 -rotate-45 rounded-full bg-current`})]})})]},E.id),p(`style`,{jsx:!0,children:`
3
3
  @keyframes funhub-popup-ad-enter {
4
4
  0% {
5
5
  opacity: 0;
@@ -18,7 +18,7 @@ declare const popupAdMaterial: DefineMaterialOption<typeof PopupAdServer, typeof
18
18
  jumpUrl: zod.ZodString & SchemaHasDefaultValue;
19
19
  materialUrl: zod.ZodString & SchemaHasDefaultValue;
20
20
  desc: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
21
- }, zod_v4_core0.$strip>>> & SchemaHasDefaultValue;
21
+ }, zod_v4_core0.$strip>>>;
22
22
  } & {
23
23
  mode: zod.ZodOptional<zod.ZodEnum<{
24
24
  renderer: "renderer";
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{popupAdInspectorPropsSchema as t}from"./schema.mjs";import{PopupAd as n}from"./client.mjs";import{PopupAdServer as r}from"./server.mjs";const i=e({type:`popup-ad`,name:`弹窗广告`,icon:`/static/components-thumb/carousel_banner.png`,category:`广告组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as popupAdMaterial};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{PopupAd as t}from"./client.mjs";import{popupAdInspectorPropsSchema as n}from"./schema.mjs";import{PopupAdServer as r}from"./server.mjs";const i=e({type:`popup-ad`,name:`弹窗广告`,icon:`/static/components-thumb/carousel_banner.png`,category:`广告组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as popupAdMaterial};
@@ -25,22 +25,14 @@ declare const popupAdInspectorPropsSchema: z$1.ZodObject<{
25
25
  jumpUrl: z$1.ZodString & SchemaHasDefaultValue;
26
26
  materialUrl: z$1.ZodString & SchemaHasDefaultValue;
27
27
  desc: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
28
- }, z$1.core.$strip>>> & SchemaHasDefaultValue;
28
+ }, z$1.core.$strip>>>;
29
29
  } & {
30
30
  mode: z$1.ZodOptional<z$1.ZodEnum<{
31
31
  renderer: "renderer";
32
32
  editor: "editor";
33
33
  }>>;
34
34
  }, z$1.core.$strip>;
35
- declare const popupAdInspectorDefaultProps: {
36
- readonly items: {
37
- id: string;
38
- jumpUrl: string;
39
- materialUrl: string;
40
- title?: string | undefined;
41
- desc?: string | undefined;
42
- }[];
43
- };
35
+ declare const popupAdInspectorDefaultProps: {};
44
36
  type PopupAdInspectorProps<T extends object = object> = InferSchemaProps<typeof popupAdInspectorPropsSchema> & T;
45
37
  /**
46
38
  * 弹窗广告组件 props。
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({items:e.array(n.object({id:e.string(`popup-ad-1`,{label:`广告 ID`,required:!0}),title:e.string(`弹窗广告标题`,{label:`标题`,required:!1}),jumpUrl:e.string(`/search`,{label:`跳转链接`,required:!0}),materialUrl:e.string(`/static/components-resource/banner.png`,{label:`素材地址`,required:!0}),desc:e.string(`这里是弹窗广告描述`,{label:`描述`,required:!1})}),{label:`广告列表`,required:!1,defaultValue:[{id:`popup-ad-1`,title:`弹窗广告标题`,jumpUrl:`/search`,materialUrl:`/static/components-resource/banner.png`,desc:`这里是弹窗广告描述`}]})})),i=t(r);export{i as popupAdInspectorDefaultProps,r as popupAdInspectorPropsSchema};
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({items:e.array(n.object({id:e.string(`popup-ad-1`,{label:`广告 ID`,required:!0}),title:e.string(`弹窗广告标题`,{label:`标题`,required:!1}),jumpUrl:e.string(`/search`,{label:`跳转链接`,required:!0}),materialUrl:e.string(`/static/components-resource/banner.png`,{label:`素材地址`,required:!0}),desc:e.string(`这里是弹窗广告描述`,{label:`描述`,required:!1})}),{label:`广告列表`,required:!1})})),i=t(r);export{i as popupAdInspectorDefaultProps,r as popupAdInspectorPropsSchema};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{adaptTextAdProps as r,hasMatchedAds as i}from"../ad-match.mjs";import{useAdProvider as a}from"../ad-provider.mjs";import{textAdInspectorDefaultProps as o}from"./schema.mjs";import{useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";const f=`text_ad_list`;let p=null;function m(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function h(e,t){return typeof e==`number`&&e>0?e:t}function g(e,t){if(!e)return!1;if(t===`once`)return!0;let n=new Date(e),r=new Date;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function _(e,t){return g(e.closedAt,t)}function v(){if(p)return p;if(typeof window>`u`)return{};let e=window.localStorage.getItem(f);if(!e)return p={},{};try{let t=JSON.parse(e);return p=t&&typeof t==`object`?t:{},p}catch{return p={},{}}}function y(e){p=e,!(typeof window>`u`)&&window.localStorage.setItem(f,JSON.stringify(e))}function b(e){return v()[e]??{}}function x(e,t){y({...v(),[e]:t})}function S({displayCount:f,items:p,mode:g=`renderer`}){let v=g===`editor`?{displayCount:h(f,o.displayCount),items:m(p,o.items)}:{displayCount:f,items:p},y=a(),S=e(),C=g===`editor`,[w,T]=l(!1),[E,D]=l(C),[O,k]=l(C),A=c(()=>i(y?.matchData)?r(y?.matchData):{displayCount:v.displayCount,items:v.items},[y?.matchData,v.displayCount,v.items]),j=c(()=>{let e=A.items.filter(e=>e.text?.trim());return typeof A.displayCount==`number`?e.slice(0,Math.max(A.displayCount,0)):e},[A]),M=j[0],N=c(()=>j.map(e=>`${e.text}:${e.jumpUrl||``}`).join(`|`),[j]);if(s(()=>{T(!0)},[]),s(()=>{if(w){if(C){D(!0),k(!0);return}if(!N||!M){D(!1),k(!0);return}D(!_(b(N),`daily`)),k(!0)}},[M,C,w,N]),!M||!C&&(!w||!O||!E))return null;function P(){N&&x(N,{...b(N),closedAt:Date.now()})}function F(e){e.jumpUrl&&S.push(e.jumpUrl)}function I(e){e.stopPropagation(),D(!1),P()}function L(){C||(D(!1),P(),F(M))}return u(t,{className:`w-full`,style:{backgroundColor:`#131313`,padding:`8px 16px`},children:d(t,{className:`relative flex w-full items-center justify-between overflow-hidden cursor-pointer`,style:{minHeight:`40px`,backgroundColor:`#FFE7E7`,padding:`0 8px`},onClick:L,children:[d(t,{className:`flex min-w-0 items-center`,style:{gap:`8px`,width:`280px`},children:[u(t,{className:`shrink-0`,style:{padding:`4px 8px`,borderRadius:`8px`,backgroundColor:`rgba(0, 0, 0, 0.33)`},children:u(n,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),u(n,{className:`truncate`,style:{flex:`1 0 0`,color:`#FD4C5E`,fontSize:`14px`,lineHeight:`normal`,fontWeight:400},children:M.text})]}),d(t,{className:`flex shrink-0 items-center`,style:{gap:`6px`,width:`54px`},children:[u(t,{className:`flex shrink-0 items-center justify-center`,style:{width:`20px`,height:`34px`},children:u(`svg`,{width:`10`,height:`17`,viewBox:`0 0 10 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:u(`path`,{d:`M1 1L8.5 8.5L1 16`,stroke:`#FD4C5E`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),d(`button`,{type:`button`,"aria-label":`关闭文字广告`,className:`relative shrink-0 border-none p-0`,style:{width:`17px`,height:`17px`,borderRadius:`999px`,backgroundColor:`#F9A9AE`},onClick:I,children:[u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(45deg)`}}),u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(-45deg)`}})]})]})]})})}export{S as TextAd};
2
+ "use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{adaptTextAdProps as r,hasMatchedAds as i}from"../ad-match.mjs";import{useAdProvider as a}from"../ad-provider.mjs";import{textAdInspectorDefaultProps as o}from"./schema.mjs";import{useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";const f=`text_ad_list`,p=[{text:`这是第一条文字广告`,jumpUrl:`/search`},{text:`这是第二条文字广告`,jumpUrl:`/search`}];let m=null;function h(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function g(e,t){return typeof e==`number`&&e>0?e:t}function _(e,t){if(!e)return!1;if(t===`once`)return!0;let n=new Date(e),r=new Date;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function v(e,t){return _(e.closedAt,t)}function y(){if(m)return m;if(typeof window>`u`)return{};let e=window.localStorage.getItem(f);if(!e)return m={},{};try{let t=JSON.parse(e);return m=t&&typeof t==`object`?t:{},m}catch{return m={},{}}}function b(e){m=e,!(typeof window>`u`)&&window.localStorage.setItem(f,JSON.stringify(e))}function x(e){return y()[e]??{}}function S(e,t){b({...y(),[e]:t})}function C({displayCount:f,items:m,mode:_=`renderer`}){let y=_===`editor`?{displayCount:g(f,o.displayCount),items:h(m,p)}:{displayCount:f,items:m},b=a(),C=e(),w=_===`editor`,[T,E]=l(!1),[D,O]=l(w),[k,A]=l(w),j=c(()=>i(b?.matchData)?r(b?.matchData):{displayCount:y.displayCount,items:y.items},[b?.matchData,y.displayCount,y.items]),M=c(()=>{let e=j.items.filter(e=>e.text?.trim());return typeof j.displayCount==`number`?e.slice(0,Math.max(j.displayCount,0)):e},[j]),N=M[0],P=c(()=>M.map(e=>`${e.text}:${e.jumpUrl||``}`).join(`|`),[M]);if(s(()=>{E(!0)},[]),s(()=>{if(T){if(w){O(!0),A(!0);return}if(!P||!N){O(!1),A(!0);return}O(!v(x(P),`daily`)),A(!0)}},[N,w,T,P]),!N||!w&&(!T||!k||!D))return null;function F(){P&&S(P,{...x(P),closedAt:Date.now()})}function I(e){e.jumpUrl&&C.push(e.jumpUrl)}function L(e){e.stopPropagation(),O(!1),F()}function R(){w||(O(!1),F(),I(N))}return u(t,{className:`w-full`,style:{backgroundColor:`#131313`,padding:`8px 16px`},children:d(t,{className:`relative flex w-full items-center justify-between overflow-hidden cursor-pointer`,style:{minHeight:`40px`,backgroundColor:`#FFE7E7`,padding:`0 8px`},onClick:R,children:[d(t,{className:`flex min-w-0 items-center`,style:{gap:`8px`,width:`280px`},children:[u(t,{className:`shrink-0`,style:{padding:`4px 8px`,borderRadius:`8px`,backgroundColor:`rgba(0, 0, 0, 0.33)`},children:u(n,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),u(n,{className:`truncate`,style:{flex:`1 0 0`,color:`#FD4C5E`,fontSize:`14px`,lineHeight:`normal`,fontWeight:400},children:N.text})]}),d(t,{className:`flex shrink-0 items-center`,style:{gap:`6px`,width:`54px`},children:[u(t,{className:`flex shrink-0 items-center justify-center`,style:{width:`20px`,height:`34px`},children:u(`svg`,{width:`10`,height:`17`,viewBox:`0 0 10 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:u(`path`,{d:`M1 1L8.5 8.5L1 16`,stroke:`#FD4C5E`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),d(`button`,{type:`button`,"aria-label":`关闭文字广告`,className:`relative shrink-0 border-none p-0`,style:{width:`17px`,height:`17px`,borderRadius:`999px`,backgroundColor:`#F9A9AE`},onClick:L,children:[u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(45deg)`}}),u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(-45deg)`}})]})]})]})})}export{C as TextAd};
@@ -16,7 +16,7 @@ declare const textAdMaterial: DefineMaterialOption<typeof TextAdServer, typeof T
16
16
  readonly items: zod.ZodArray<zod.ZodObject<{
17
17
  text: zod.ZodString & SchemaHasDefaultValue;
18
18
  jumpUrl: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
19
- }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
19
+ }, zod_v4_core0.$strip>>;
20
20
  } & {
21
21
  mode: zod.ZodOptional<zod.ZodEnum<{
22
22
  renderer: "renderer";
@@ -26,7 +26,7 @@ declare const textAdInspectorPropsSchema: z$1.ZodObject<{
26
26
  readonly items: z$1.ZodArray<z$1.ZodObject<{
27
27
  text: z$1.ZodString & SchemaHasDefaultValue;
28
28
  jumpUrl: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
29
- }, z$1.core.$strip>> & SchemaHasDefaultValue;
29
+ }, z$1.core.$strip>>;
30
30
  } & {
31
31
  mode: z$1.ZodOptional<z$1.ZodEnum<{
32
32
  renderer: "renderer";
@@ -35,10 +35,6 @@ declare const textAdInspectorPropsSchema: z$1.ZodObject<{
35
35
  }, z$1.core.$strip>;
36
36
  declare const textAdInspectorDefaultProps: {
37
37
  readonly displayCount: number;
38
- readonly items: {
39
- text: string;
40
- jumpUrl?: string | undefined;
41
- }[];
42
38
  };
43
39
  type TextAdInspectorProps<T extends object = object> = InferSchemaProps<typeof textAdInspectorPropsSchema> & T;
44
40
  /**
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({displayCount:e.number(1,{label:`广告展示数量选择`,required:!0}).refine(e=>e>=1&&e<=5,`广告展示数量必须为 1-5`),items:e.array(n.object({text:e.string(`请输入广告文案`,{label:`广告文案`,required:!0}),jumpUrl:e.string(``,{label:`跳转链接`,required:!1})}),{label:`广告列表`,required:!0,defaultValue:[{text:`这是第一条文字广告`,jumpUrl:`/search`},{text:`这是第二条文字广告`,jumpUrl:`/search`}]})})),i=t(r);export{i as textAdInspectorDefaultProps,r as textAdInspectorPropsSchema};
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({displayCount:e.number(1,{label:`广告展示数量选择`,required:!0}).refine(e=>e>=1&&e<=5,`广告展示数量必须为 1-5`),items:e.array(n.object({text:e.string(`请输入广告文案`,{label:`广告文案`,required:!0}),jumpUrl:e.string(``,{label:`跳转链接`,required:!1})}),{label:`广告列表`,required:!0})})),i=t(r);export{i as textAdInspectorDefaultProps,r as textAdInspectorPropsSchema};
@@ -19,7 +19,7 @@ declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, typeof
19
19
  }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
20
20
  readonly click: zod.ZodObject<{
21
21
  readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
22
- readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
22
+ readonly redirectType: zod.ZodOptional<zod.ZodType<"link" | "content" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"link" | "content" | "content_list", unknown>>> & SchemaHasDefaultValue;
23
23
  readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
24
24
  }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
25
25
  readonly close: zod.ZodObject<{
@@ -24,7 +24,7 @@ declare const marqueeInspectorPropsSchema: zod.ZodObject<{
24
24
  }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
25
25
  readonly click: zod.ZodObject<{
26
26
  readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
27
- readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
27
+ readonly redirectType: zod.ZodOptional<zod.ZodType<"link" | "content" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"link" | "content" | "content_list", unknown>>> & SchemaHasDefaultValue;
28
28
  readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
29
29
  }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
30
30
  readonly close: zod.ZodObject<{
@@ -1,11 +1,11 @@
1
1
 
2
2
  import * as React from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
- import NextImage from "next/image";
4
+ import Image from "next/image";
5
5
 
6
6
  //#region components/ui/image.d.ts
7
7
  /** BaseImageProps 属性定义。 */
8
- type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof NextImage>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
8
+ type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof Image>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
9
9
  type CommonImageProps = BaseImageProps & {
10
10
  /** 图片地址,支持普通 URL、默认资源路径和加密地址。 */src: string; /** 图片替代文本。 */
11
11
  alt?: string; /** 图片类名。 */
@@ -27,6 +27,6 @@ type ImagePropsWithSize = CommonImageProps & {
27
27
  /** ImageProps 属性定义。 */
28
28
  type ImageProps = ImagePropsWithFill | ImagePropsWithSize;
29
29
  /** 图片组件:支持 bnc 解密、默认资源域名拼接与错误占位。 */
30
- declare function Image(props: ImageProps): react_jsx_runtime0.JSX.Element;
30
+ declare function Image$1(props: ImageProps): react_jsx_runtime0.JSX.Element;
31
31
  //#endregion
32
- export { BaseImageProps, CommonImageProps, Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
32
+ export { BaseImageProps, CommonImageProps, Image$1 as Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funhub/platform",
3
3
  "type": "module",
4
- "version": "0.2.3-beta.0",
4
+ "version": "0.2.3-beta.1",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "**/*.css"