@funhub/platform 0.1.150 → 0.1.152
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/components/biz/business/banner/variants/basic-banner/inspector-schema.d.mts +5 -4
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.d.mts +3 -2
- package/dist/components/biz/business/banner-carousel/material.d.mts +3 -2
- package/dist/components/biz/business/banner-carousel/schema.d.mts +3 -2
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
- package/dist/components/biz/business/channel-list/material.d.mts +3 -2
- package/dist/components/biz/business/channel-list/schema.d.mts +3 -2
- package/dist/components/biz/business/channel-list/schema.mjs +1 -1
- package/dist/components/biz/business/detail/shared/registry.d.mts +17 -14
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info/material.d.mts +3 -2
- package/dist/components/biz/business/detail/video-detail-info/schema.d.mts +3 -2
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.d.mts +3 -2
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.d.mts +3 -2
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/material.d.mts +11 -10
- package/dist/components/biz/business/detail/video-detail-recommend/schema.d.mts +11 -10
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/floating-ball/material.d.mts +3 -2
- package/dist/components/biz/business/floating-ball/schema.d.mts +5 -4
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +3 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +3 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +3 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +3 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +3 -2
- package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +3 -2
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +13 -12
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +13 -12
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +11 -10
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +11 -10
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/material.d.mts +15 -14
- package/dist/components/biz/business/image-text-recommend/schema.d.mts +15 -14
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/material.d.mts +8 -7
- package/dist/components/biz/business/marquee/schema.d.mts +26 -24
- package/dist/components/biz/business/marquee/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -1
- package/dist/components/biz/business/search-history/material.d.mts +3 -2
- package/dist/components/biz/business/search-history/schema.d.mts +3 -2
- package/dist/components/biz/business/search-history/schema.mjs +1 -1
- package/dist/components/biz/business/search-input/schema.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/material.d.mts +5 -4
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +5 -4
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -1
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -1
- package/dist/components/biz/business/text-recommend/material.d.mts +4 -3
- package/dist/components/biz/business/text-recommend/schema.d.mts +4 -3
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -1
- package/dist/components/biz/example/button/material.d.mts +9 -8
- package/dist/components/biz/example/button/schema.d.mts +21 -19
- package/dist/components/biz/example/button/schema.mjs +1 -1
- package/dist/components/pages/collection-add/page.mjs +1 -1
- package/dist/components/pages/collection-create/form.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/login/verify.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button-group.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/dots-loading.d.mts +25 -0
- package/dist/components/ui/dots-loading.mjs +2 -0
- package/dist/components/ui/field.d.mts +1 -1
- package/dist/hooks/use-first-row-height.d.mts +69 -0
- package/dist/hooks/use-first-row-height.mjs +2 -0
- package/dist/hooks/use-min-duration-loading.d.mts +18 -0
- package/dist/hooks/use-min-duration-loading.mjs +2 -0
- package/dist/hooks.d.mts +3 -1
- package/dist/hooks.mjs +1 -1
- package/dist/service/generated/client.d.mts +12 -4
- package/dist/service/generated/client.mjs +1 -1
- package/dist/service/generated/tanstack.d.mts +14 -4
- package/dist/service/generated/tanstack.mjs +1 -1
- package/dist/service/register-by-verify-email-code.d.mts +2 -2
- package/dist/service/register-by-verify-email-code.mjs +1 -1
- package/dist/service.d.mts +4 -4
- package/dist/service.mjs +1 -1
- package/dist/types.d.mts +548 -57
- package/dist/ui.d.mts +2 -1
- package/dist/ui.mjs +1 -1
- package/dist/utils/device-id.d.mts +14 -0
- package/dist/utils/device-id.mjs +2 -0
- package/dist/utils/http.mjs +1 -1
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/inspector.d.mts +43 -71
- package/dist/utils/schema/schema.d.mts +59 -53
- package/dist/utils/schema/schema.mjs +1 -1
- package/dist/utils.d.mts +3 -2
- package/dist/utils.mjs +1 -1
- package/package.json +28 -28
package/dist/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{cn as e}from"./utils/cn.mjs";import{clearMyChannelsFromStorage as t,loadHiddenChannelIdsFromStorage as
|
|
2
|
+
import{cn as e}from"./utils/cn.mjs";import{clearMyChannelsFromStorage as t,loadHiddenChannelIdsFromStorage as ee,loadMyChannelsFromStorage as n,saveHiddenChannelIdsToStorage as r}from"./utils/channel-storage.mjs";import{debounceFun as i,formatVideoDuration as a,generateDynamicSign as o,generateUUID as s,getAtUserElement as c,getCookie as l,getCurrentSecondTime as u,getUserId as d,hashPassword as f,isClient as p,isMobileDevice as m,numToString as h,parseResolution as g,parseTextAtUserIds as _,randomString as v,removeCookie as y,replaceAtUserElement as b,replaceAtUserElementHtmlStr as x,secondToTime as S,setCookie as C,stringToNumber as w,stripHtmlTags as T,updateUrlParams as E}from"./utils/common.mjs";import D from"./utils/get-res-url.mjs";import{decryptImageToArrayBuffer as O,decryptImageToUint8Array as k,decryptImageUrl as A,guessImageContentTypeFromUrl as j,isEncryptedImageUrl as M,resolveImageUrl as N,shouldProbeImageUrl as P,shouldUseApiResDirectly as F}from"./utils/decrypt-image-client.mjs";import{getOrCreateDeviceId as I}from"./utils/device-id.mjs";import L from"./utils/event-bus.mjs";import R,{HttpClient as z,HttpError as B}from"./utils/http.mjs";import{checkFollowStatus as V,followUser as H,getAppId as U,getCurrentUserId as W,unfollowUser as G}from"./utils/follow-service.mjs";import{disablePageScroll as K,enablePageScroll as q,normalizeClassName as J,pxToVw as te}from"./utils/helper.mjs";import{compressImage as Y,defaultImageCompressionMaxSizeMB as X,defaultImageCompressionQuality as Z,getImageCompressionQuality as Q,imageCompressionQualityRules as ne}from"./utils/image-compression.mjs";import{components as re,loadComponent as ie,rewriteComponent as ae}from"./utils/loaders.mjs";import{createInputAndSelectFile as oe,getCoverImage as se,getImageResolutionFromFile as ce}from"./utils/media.mjs";import{PASSWORD_ALLOWED_SPECIAL_CHARS as le,PASSWORD_MAX_LENGTH as ue,PASSWORD_MIN_LENGTH as de,getFirstInvalidPasswordChar as fe,getPasswordCharacterTypeCount as pe,getPasswordValidationErrorText as me,validatePasswordPair as he}from"./utils/password-validator.mjs";import{uploadToS3WithPresignedUrl as ge}from"./utils/s3-uploader.mjs";import{defineMaterial as _e,overwriteMaterial as ve}from"./utils/schema/material.mjs";import{INSPECTOR_META_KEY as ye,array as be,boolean as xe,datetime as Se,defineComponentPropsSchema as Ce,enumSchema as $,getSchemaDefaultProps as we,number as Te,object as Ee,string as De,timeRange as Oe,withInspectorMeta as ke}from"./utils/schema/schema.mjs";import{generateMaterialMap as Ae,generateMaterialMapGroupByCategory as je}from"./utils/schema/utils.mjs";import{base64ToUint8Array as Me,uint8ArrayToBase64 as Ne,uint8ArrayToNumberArray as Pe}from"./utils/uint8.mjs";import{encryptBncBuffer as Fe,uploadFile as Ie}from"./utils/upload-file.mjs";import{useRouter as Le}from"./utils/use-compatible-router.mjs";export{L as EventBus,z as HttpClient,B as HttpError,ye as INSPECTOR_META_KEY,le as PASSWORD_ALLOWED_SPECIAL_CHARS,ue as PASSWORD_MAX_LENGTH,de as PASSWORD_MIN_LENGTH,be as array,Me as base64ToUint8Array,xe as boolean,V as checkFollowStatus,t as clearMyChannelsFromStorage,e as cn,re as components,Y as compressImage,oe as createInputAndSelectFile,Se as datetime,i as debounceFun,O as decryptImageToArrayBuffer,k as decryptImageToUint8Array,A as decryptImageUrl,X as defaultImageCompressionMaxSizeMB,Z as defaultImageCompressionQuality,Ce as defineComponentPropsSchema,_e as defineMaterial,K as disablePageScroll,q as enablePageScroll,Fe as encryptBncBuffer,$ as enum,$ as enumSchema,H as followUser,a as formatVideoDuration,o as generateDynamicSign,Ae as generateMaterialMap,je as generateMaterialMapGroupByCategory,s as generateUUID,U as getAppId,c as getAtUserElement,l as getCookie,se as getCoverImage,u as getCurrentSecondTime,W as getCurrentUserId,fe as getFirstInvalidPasswordChar,Q as getImageCompressionQuality,ce as getImageResolutionFromFile,I as getOrCreateDeviceId,pe as getPasswordCharacterTypeCount,me as getPasswordValidationErrorText,D as getResUrl,we as getSchemaDefaultProps,d as getUserId,j as guessImageContentTypeFromUrl,f as hashPassword,R as httpClient,ne as imageCompressionQualityRules,p as isClient,M as isEncryptedImageUrl,m as isMobileDevice,ie as loadComponent,ee as loadHiddenChannelIdsFromStorage,n as loadMyChannelsFromStorage,J as normalizeClassName,h as numToString,Te as number,Ee as object,ve as overwriteMaterial,g as parseResolution,_ as parseTextAtUserIds,te as pxToVw,v as randomString,y as removeCookie,b as replaceAtUserElement,x as replaceAtUserElementHtmlStr,N as resolveImageUrl,ae as rewriteComponent,r as saveHiddenChannelIdsToStorage,S as secondToTime,C as setCookie,P as shouldProbeImageUrl,F as shouldUseApiResDirectly,De as string,w as stringToNumber,T as stripHtmlTags,Oe as timeRange,Ne as uint8ArrayToBase64,Pe as uint8ArrayToNumberArray,G as unfollowUser,E as updateUrlParams,Ie as uploadFile,ge as uploadToS3WithPresignedUrl,Le as useRouter,he as validatePasswordPair,ke as withInspectorMeta};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funhub/platform",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.152",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|
|
@@ -70,30 +70,6 @@
|
|
|
70
70
|
"dist",
|
|
71
71
|
"theme.css"
|
|
72
72
|
],
|
|
73
|
-
"scripts": {
|
|
74
|
-
"dev:web": "next dev",
|
|
75
|
-
"build:web": "next build",
|
|
76
|
-
"prebuild": "pnpm i18n:build",
|
|
77
|
-
"build": "cross-env TSDOWN_ENV=production tsdown",
|
|
78
|
-
"predev": "pnpm i18n:build",
|
|
79
|
-
"dev": "node scripts/dev-with-i18n-watch.mjs",
|
|
80
|
-
"dev:core": "cross-env TSDOWN_ENV=development tsdown --watch",
|
|
81
|
-
"publish:platform": "node scripts/publish-platform.mjs",
|
|
82
|
-
"gen:api": "node ./scripts/generate-from-swagger.cjs",
|
|
83
|
-
"pp": "pnpm publish:platform",
|
|
84
|
-
"start": "next start",
|
|
85
|
-
"prelint": "pnpm i18n:build",
|
|
86
|
-
"lint": "eslint . --fix",
|
|
87
|
-
"pretypecheck": "pnpm i18n:build",
|
|
88
|
-
"typecheck": "tsc --noEmit",
|
|
89
|
-
"i18n:find": "node scripts/i18n-locale-tool.mjs find",
|
|
90
|
-
"i18n:set": "node scripts/i18n-locale-tool.mjs set",
|
|
91
|
-
"i18n:flatten": "node scripts/i18n-flat-sync.mjs flatten",
|
|
92
|
-
"i18n:build": "node scripts/i18n-flat-sync.mjs build",
|
|
93
|
-
"i18n:watch": "node scripts/i18n-flat-sync.mjs watch",
|
|
94
|
-
"i18n:check": "node scripts/i18n-flat-sync.mjs check",
|
|
95
|
-
"pretest": "pnpm i18n:build"
|
|
96
|
-
},
|
|
97
73
|
"peerDependencies": {
|
|
98
74
|
"@tanstack/query-core": ">=5",
|
|
99
75
|
"@tanstack/react-query": ">=5",
|
|
@@ -142,7 +118,6 @@
|
|
|
142
118
|
"zustand": "^5.0.9"
|
|
143
119
|
},
|
|
144
120
|
"devDependencies": {
|
|
145
|
-
"@funhub/eslint-config": "workspace:*",
|
|
146
121
|
"@svgr/webpack": "^8.1.0",
|
|
147
122
|
"@types/crypto-js": "^4.2.2",
|
|
148
123
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -151,6 +126,31 @@
|
|
|
151
126
|
"rollup-plugin-postcss": "^4.0.2",
|
|
152
127
|
"rollup-preserve-directives": "^1.1.3",
|
|
153
128
|
"tsdown": "0.20.3",
|
|
154
|
-
"vite-plugin-svgr": "^4.3.0"
|
|
129
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
130
|
+
"@funhub/eslint-config": "0.0.1"
|
|
131
|
+
},
|
|
132
|
+
"scripts": {
|
|
133
|
+
"dev:web": "next dev",
|
|
134
|
+
"build:web": "next build",
|
|
135
|
+
"prebuild": "pnpm i18n:build",
|
|
136
|
+
"build": "cross-env TSDOWN_ENV=production tsdown",
|
|
137
|
+
"predev": "pnpm i18n:build",
|
|
138
|
+
"dev": "node scripts/dev-with-i18n-watch.mjs",
|
|
139
|
+
"dev:core": "cross-env TSDOWN_ENV=development tsdown --watch",
|
|
140
|
+
"publish:platform": "node scripts/publish-platform.mjs",
|
|
141
|
+
"gen:api": "node ./scripts/generate-from-swagger.cjs",
|
|
142
|
+
"pp": "pnpm publish:platform",
|
|
143
|
+
"start": "next start",
|
|
144
|
+
"prelint": "pnpm i18n:build",
|
|
145
|
+
"lint": "eslint . --fix",
|
|
146
|
+
"pretypecheck": "pnpm i18n:build",
|
|
147
|
+
"typecheck": "tsc --noEmit",
|
|
148
|
+
"i18n:find": "node scripts/i18n-locale-tool.mjs find",
|
|
149
|
+
"i18n:set": "node scripts/i18n-locale-tool.mjs set",
|
|
150
|
+
"i18n:flatten": "node scripts/i18n-flat-sync.mjs flatten",
|
|
151
|
+
"i18n:build": "node scripts/i18n-flat-sync.mjs build",
|
|
152
|
+
"i18n:watch": "node scripts/i18n-flat-sync.mjs watch",
|
|
153
|
+
"i18n:check": "node scripts/i18n-flat-sync.mjs check",
|
|
154
|
+
"pretest": "pnpm i18n:build"
|
|
155
155
|
}
|
|
156
|
-
}
|
|
156
|
+
}
|