zcw-shared 1.21.0 → 1.23.0
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/functions/algorithm/binarySearch.d.ts +3 -0
- package/dist/functions/algorithm/binarySearch.js +58 -0
- package/dist/functions/algorithm/binarySearch.js.map +1 -0
- package/dist/functions/algorithm/canJump.d.ts +2 -0
- package/dist/functions/algorithm/canJump.js +27 -0
- package/dist/functions/algorithm/canJump.js.map +1 -0
- package/dist/functions/algorithm/climbStairs.d.ts +2 -0
- package/dist/functions/algorithm/climbStairs.js +27 -0
- package/dist/functions/algorithm/climbStairs.js.map +1 -0
- package/dist/functions/algorithm/coinChange.d.ts +2 -0
- package/dist/functions/algorithm/coinChange.js +25 -0
- package/dist/functions/algorithm/coinChange.js.map +1 -0
- package/dist/functions/algorithm/combinationSum.d.ts +1 -0
- package/dist/functions/algorithm/combinationSum.js +24 -0
- package/dist/functions/algorithm/combinationSum.js.map +1 -0
- package/dist/functions/algorithm/editDistance.d.ts +2 -0
- package/dist/functions/algorithm/editDistance.js +96 -0
- package/dist/functions/algorithm/editDistance.js.map +1 -0
- package/dist/functions/algorithm/generateParenthesis.d.ts +1 -0
- package/dist/functions/algorithm/generateParenthesis.js +18 -0
- package/dist/functions/algorithm/generateParenthesis.js.map +1 -0
- package/dist/functions/algorithm/kmp.d.ts +2 -0
- package/dist/functions/algorithm/kmp.js +58 -0
- package/dist/functions/algorithm/kmp.js.map +1 -0
- package/dist/functions/algorithm/knapsack01.d.ts +2 -0
- package/dist/functions/algorithm/knapsack01.js +34 -0
- package/dist/functions/algorithm/knapsack01.js.map +1 -0
- package/dist/functions/algorithm/lengthOfLongestSubstring.d.ts +2 -0
- package/dist/functions/algorithm/lengthOfLongestSubstring.js +33 -0
- package/dist/functions/algorithm/lengthOfLongestSubstring.js.map +1 -0
- package/dist/functions/algorithm/longestCommonSubsequence.d.ts +2 -0
- package/dist/functions/algorithm/longestCommonSubsequence.js +37 -0
- package/dist/functions/algorithm/longestCommonSubsequence.js.map +1 -0
- package/dist/functions/algorithm/longestIncreasingSubsequence.d.ts +2 -0
- package/dist/functions/algorithm/longestIncreasingSubsequence.js +49 -0
- package/dist/functions/algorithm/longestIncreasingSubsequence.js.map +1 -0
- package/dist/functions/algorithm/maxArea.d.ts +1 -0
- package/dist/functions/algorithm/maxArea.js +19 -0
- package/dist/functions/algorithm/maxArea.js.map +1 -0
- package/dist/functions/algorithm/maxProfit.d.ts +2 -0
- package/dist/functions/algorithm/maxProfit.js +23 -0
- package/dist/functions/algorithm/maxProfit.js.map +1 -0
- package/dist/functions/algorithm/meetingRooms.d.ts +6 -0
- package/dist/functions/algorithm/meetingRooms.js +31 -0
- package/dist/functions/algorithm/meetingRooms.js.map +1 -0
- package/dist/functions/algorithm/mergeSort.d.ts +2 -0
- package/dist/functions/algorithm/mergeSort.js +72 -0
- package/dist/functions/algorithm/mergeSort.js.map +1 -0
- package/dist/functions/algorithm/minPathSum.d.ts +2 -0
- package/dist/functions/algorithm/minPathSum.js +39 -0
- package/dist/functions/algorithm/minPathSum.js.map +1 -0
- package/dist/functions/algorithm/minWindow.d.ts +1 -0
- package/dist/functions/algorithm/minWindow.js +40 -0
- package/dist/functions/algorithm/minWindow.js.map +1 -0
- package/dist/functions/algorithm/nQueens.d.ts +1 -0
- package/dist/functions/algorithm/nQueens.js +30 -0
- package/dist/functions/algorithm/nQueens.js.map +1 -0
- package/dist/functions/algorithm/numIslands.d.ts +2 -0
- package/dist/functions/algorithm/numIslands.js +59 -0
- package/dist/functions/algorithm/numIslands.js.map +1 -0
- package/dist/functions/algorithm/permutations.d.ts +1 -0
- package/dist/functions/algorithm/permutations.js +22 -0
- package/dist/functions/algorithm/permutations.js.map +1 -0
- package/dist/functions/algorithm/quickSort.d.ts +3 -0
- package/dist/functions/algorithm/quickSort.js +68 -0
- package/dist/functions/algorithm/quickSort.js.map +1 -0
- package/dist/functions/algorithm/rabinKarp.d.ts +1 -0
- package/dist/functions/algorithm/rabinKarp.js +40 -0
- package/dist/functions/algorithm/rabinKarp.js.map +1 -0
- package/dist/functions/algorithm/taskScheduler.d.ts +1 -0
- package/dist/functions/algorithm/taskScheduler.js +15 -0
- package/dist/functions/algorithm/taskScheduler.js.map +1 -0
- package/dist/functions/algorithm/threeSum.d.ts +2 -0
- package/dist/functions/algorithm/threeSum.js +56 -0
- package/dist/functions/algorithm/threeSum.js.map +1 -0
- package/dist/functions/algorithm/topologicalSort.d.ts +6 -0
- package/dist/functions/algorithm/topologicalSort.js +68 -0
- package/dist/functions/algorithm/topologicalSort.js.map +1 -0
- package/dist/functions/algorithm/trap.d.ts +2 -0
- package/dist/functions/algorithm/trap.js +51 -0
- package/dist/functions/algorithm/trap.js.map +1 -0
- package/dist/functions/algorithm/visualizeGarbageCollection.d.ts +44 -0
- package/dist/functions/algorithm/visualizeGarbageCollection.js +263 -0
- package/dist/functions/algorithm/visualizeGarbageCollection.js.map +1 -0
- package/dist/functions/array-object/chunk.d.ts +1 -0
- package/dist/functions/array-object/chunk.js +11 -0
- package/dist/functions/array-object/chunk.js.map +1 -0
- package/dist/functions/array-object/evolve.d.ts +3 -0
- package/dist/functions/array-object/evolve.js +15 -0
- package/dist/functions/array-object/evolve.js.map +1 -0
- package/dist/functions/array-object/flattenObject.d.ts +5 -0
- package/dist/functions/array-object/flattenObject.js +102 -0
- package/dist/functions/array-object/flattenObject.js.map +1 -0
- package/dist/functions/array-object/groupBy.d.ts +1 -0
- package/dist/functions/array-object/groupBy.js +14 -0
- package/dist/functions/array-object/groupBy.js.map +1 -0
- package/dist/functions/array-object/omit.d.ts +1 -0
- package/dist/functions/array-object/omit.js +8 -0
- package/dist/functions/array-object/omit.js.map +1 -0
- package/dist/functions/array-object/pick.d.ts +1 -0
- package/dist/functions/array-object/pick.js +10 -0
- package/dist/functions/array-object/pick.js.map +1 -0
- package/dist/functions/array-object/shuffle.d.ts +1 -0
- package/dist/functions/array-object/shuffle.js +9 -0
- package/dist/functions/array-object/shuffle.js.map +1 -0
- package/dist/functions/array-object/sortBy.d.ts +1 -0
- package/dist/functions/array-object/sortBy.js +13 -0
- package/dist/functions/array-object/sortBy.js.map +1 -0
- package/dist/functions/async/cachedAsync.d.ts +27 -0
- package/dist/functions/async/cachedAsync.js +123 -0
- package/dist/functions/async/cachedAsync.js.map +1 -0
- package/dist/functions/async/promiseLimit.d.ts +10 -0
- package/dist/functions/async/promiseLimit.js +125 -0
- package/dist/functions/async/promiseLimit.js.map +1 -0
- package/dist/functions/async/retryWithBackoff.d.ts +12 -0
- package/dist/functions/async/retryWithBackoff.js +29 -0
- package/dist/functions/async/retryWithBackoff.js.map +1 -0
- package/dist/functions/browser/detectBrowser.d.ts +39 -0
- package/dist/functions/browser/detectBrowser.js +193 -0
- package/dist/functions/browser/detectBrowser.js.map +1 -0
- package/dist/functions/browser/detectOS.d.ts +5 -0
- package/dist/functions/browser/detectOS.js +20 -0
- package/dist/functions/browser/detectOS.js.map +1 -0
- package/dist/functions/browser/isMobile.d.ts +6 -0
- package/dist/functions/browser/isMobile.js +5 -0
- package/dist/functions/browser/isMobile.js.map +1 -0
- package/dist/functions/data-structures/AVLTree.d.ts +19 -0
- package/dist/functions/data-structures/AVLTree.js +197 -0
- package/dist/functions/data-structures/AVLTree.js.map +1 -0
- package/dist/functions/data-structures/BinarySearchTree.d.ts +19 -0
- package/dist/functions/data-structures/BinarySearchTree.js +150 -0
- package/dist/functions/data-structures/BinarySearchTree.js.map +1 -0
- package/dist/functions/data-structures/Graph.d.ts +19 -0
- package/dist/functions/data-structures/Graph.js +190 -0
- package/dist/functions/data-structures/Graph.js.map +1 -0
- package/dist/functions/data-structures/HashMap.d.ts +13 -0
- package/dist/functions/data-structures/HashMap.js +128 -0
- package/dist/functions/data-structures/HashMap.js.map +1 -0
- package/dist/functions/data-structures/LRUCache.d.ts +41 -0
- package/dist/functions/data-structures/LRUCache.js +182 -0
- package/dist/functions/data-structures/LRUCache.js.map +1 -0
- package/dist/functions/data-structures/Trie.d.ts +16 -0
- package/dist/functions/data-structures/Trie.js +127 -0
- package/dist/functions/data-structures/Trie.js.map +1 -0
- package/dist/functions/data-structures/UnionFind.d.ts +8 -0
- package/dist/functions/data-structures/UnionFind.js +53 -0
- package/dist/functions/data-structures/UnionFind.js.map +1 -0
- package/dist/functions/date/dateRange.d.ts +1 -0
- package/dist/functions/date/dateRange.js +18 -0
- package/dist/functions/date/dateRange.js.map +1 -0
- package/dist/functions/date/formatDate.d.ts +1 -0
- package/dist/functions/date/formatDate.js +21 -0
- package/dist/functions/date/formatDate.js.map +1 -0
- package/dist/functions/date/timeAgo.d.ts +1 -0
- package/dist/functions/date/timeAgo.js +49 -0
- package/dist/functions/date/timeAgo.js.map +1 -0
- package/dist/functions/dom/createThrottledEventListener.d.ts +11 -0
- package/dist/functions/dom/createThrottledEventListener.js +51 -0
- package/dist/functions/dom/createThrottledEventListener.js.map +1 -0
- package/dist/functions/file/formatFileSize.d.ts +1 -0
- package/dist/functions/file/formatFileSize.js +16 -0
- package/dist/functions/file/formatFileSize.js.map +1 -0
- package/dist/functions/file/getFileExtension.d.ts +5 -0
- package/dist/functions/file/getFileExtension.js +18 -0
- package/dist/functions/file/getFileExtension.js.map +1 -0
- package/dist/functions/functional/cond.d.ts +1 -0
- package/dist/functions/functional/cond.js +15 -0
- package/dist/functions/functional/cond.js.map +1 -0
- package/dist/functions/functional/curryAdvanced.d.ts +8 -0
- package/dist/functions/functional/curryAdvanced.js +87 -0
- package/dist/functions/functional/curryAdvanced.js.map +1 -0
- package/dist/functions/functional/flow.d.ts +1 -0
- package/dist/functions/functional/flow.js +14 -0
- package/dist/functions/functional/flow.js.map +1 -0
- package/dist/functions/functional/partial.d.ts +1 -0
- package/dist/functions/functional/partial.js +13 -0
- package/dist/functions/functional/partial.js.map +1 -0
- package/dist/functions/functional/tap.d.ts +1 -0
- package/dist/functions/functional/tap.js +14 -0
- package/dist/functions/functional/tap.js.map +1 -0
- package/dist/functions/functional/until.d.ts +1 -0
- package/dist/functions/functional/until.js +10 -0
- package/dist/functions/functional/until.js.map +1 -0
- package/dist/functions/math/average.d.ts +1 -0
- package/dist/functions/math/average.js +8 -0
- package/dist/functions/math/average.js.map +1 -0
- package/dist/functions/math/median.d.ts +1 -0
- package/dist/functions/math/median.js +14 -0
- package/dist/functions/math/median.js.map +1 -0
- package/dist/functions/math/percentile.d.ts +1 -0
- package/dist/functions/math/percentile.js +18 -0
- package/dist/functions/math/percentile.js.map +1 -0
- package/dist/functions/math/sum.d.ts +1 -0
- package/dist/functions/math/sum.js +4 -0
- package/dist/functions/math/sum.js.map +1 -0
- package/dist/functions/number/clamp.d.ts +1 -0
- package/dist/functions/number/clamp.js +7 -0
- package/dist/functions/number/clamp.js.map +1 -0
- package/dist/functions/number/formatNumber.d.ts +8 -0
- package/dist/functions/number/formatNumber.js +16 -0
- package/dist/functions/number/formatNumber.js.map +1 -0
- package/dist/functions/number/random.d.ts +4 -0
- package/dist/functions/number/random.js +9 -0
- package/dist/functions/number/random.js.map +1 -0
- package/dist/functions/number/range.d.ts +1 -0
- package/dist/functions/number/range.js +18 -0
- package/dist/functions/number/range.js.map +1 -0
- package/dist/functions/patterns/EventEmitter.d.ts +32 -0
- package/dist/functions/patterns/EventEmitter.js +108 -0
- package/dist/functions/patterns/EventEmitter.js.map +1 -0
- package/dist/functions/patterns/adapter.d.ts +8 -0
- package/dist/functions/patterns/adapter.js +14 -0
- package/dist/functions/patterns/adapter.js.map +1 -0
- package/dist/functions/patterns/builder.d.ts +9 -0
- package/dist/functions/patterns/builder.js +28 -0
- package/dist/functions/patterns/builder.js.map +1 -0
- package/dist/functions/patterns/chainOfResponsibility.d.ts +9 -0
- package/dist/functions/patterns/chainOfResponsibility.js +19 -0
- package/dist/functions/patterns/chainOfResponsibility.js.map +1 -0
- package/dist/functions/patterns/command.d.ts +15 -0
- package/dist/functions/patterns/command.js +49 -0
- package/dist/functions/patterns/command.js.map +1 -0
- package/dist/functions/patterns/decorator.d.ts +10 -0
- package/dist/functions/patterns/decorator.js +72 -0
- package/dist/functions/patterns/decorator.js.map +1 -0
- package/dist/functions/patterns/factory.d.ts +8 -0
- package/dist/functions/patterns/factory.js +25 -0
- package/dist/functions/patterns/factory.js.map +1 -0
- package/dist/functions/patterns/observer.d.ts +19 -0
- package/dist/functions/patterns/observer.js +89 -0
- package/dist/functions/patterns/observer.js.map +1 -0
- package/dist/functions/patterns/prototype.d.ts +4 -0
- package/dist/functions/patterns/prototype.js +30 -0
- package/dist/functions/patterns/prototype.js.map +1 -0
- package/dist/functions/patterns/proxy.d.ts +8 -0
- package/dist/functions/patterns/proxy.js +41 -0
- package/dist/functions/patterns/proxy.js.map +1 -0
- package/dist/functions/patterns/singleton.d.ts +11 -0
- package/dist/functions/patterns/singleton.js +32 -0
- package/dist/functions/patterns/singleton.js.map +1 -0
- package/dist/functions/patterns/strategy.d.ts +12 -0
- package/dist/functions/patterns/strategy.js +34 -0
- package/dist/functions/patterns/strategy.js.map +1 -0
- package/dist/functions/patterns/templateMethod.d.ts +8 -0
- package/dist/functions/patterns/templateMethod.js +19 -0
- package/dist/functions/patterns/templateMethod.js.map +1 -0
- package/dist/functions/patterns/usePluginSystem.d.ts +11 -0
- package/dist/functions/patterns/usePluginSystem.js +34 -0
- package/dist/functions/patterns/usePluginSystem.js.map +1 -0
- package/dist/functions/performance/once.d.ts +1 -0
- package/dist/functions/performance/once.js +13 -0
- package/dist/functions/performance/once.js.map +1 -0
- package/dist/functions/performance/useCache.d.ts +18 -0
- package/dist/functions/performance/useCache.js +82 -0
- package/dist/functions/performance/useCache.js.map +1 -0
- package/dist/functions/principles/MyPromise.d.ts +32 -0
- package/dist/functions/principles/MyPromise.js +254 -0
- package/dist/functions/principles/MyPromise.js.map +1 -0
- package/dist/functions/promise/sleep.d.ts +5 -0
- package/dist/functions/promise/sleep.js +6 -0
- package/dist/functions/promise/sleep.js.map +1 -0
- package/dist/functions/promise/timeout.d.ts +6 -0
- package/dist/functions/promise/timeout.js +12 -0
- package/dist/functions/promise/timeout.js.map +1 -0
- package/dist/functions/storage/useLocalStorage.d.ts +8 -0
- package/dist/functions/storage/useLocalStorage.js +101 -0
- package/dist/functions/storage/useLocalStorage.js.map +1 -0
- package/dist/functions/storage/useSessionStorage.d.ts +8 -0
- package/dist/functions/storage/useSessionStorage.js +101 -0
- package/dist/functions/storage/useSessionStorage.js.map +1 -0
- package/dist/functions/storage/useStorage.d.ts +13 -0
- package/dist/functions/storage/useStorage.js +62 -0
- package/dist/functions/storage/useStorage.js.map +1 -0
- package/dist/functions/storage/useStorageWithIndexedDB.d.ts +8 -0
- package/dist/functions/storage/useStorageWithIndexedDB.js +132 -0
- package/dist/functions/storage/useStorageWithIndexedDB.js.map +1 -0
- package/dist/functions/string/testRegex.d.ts +20 -0
- package/dist/functions/string/testRegex.js +300 -0
- package/dist/functions/string/testRegex.js.map +1 -0
- package/dist/functions/string/visualizeRegexSteps.d.ts +39 -0
- package/dist/functions/string/visualizeRegexSteps.js +446 -0
- package/dist/functions/string/visualizeRegexSteps.js.map +1 -0
- package/dist/functions/tencent-cloud/upload.cos.d.ts +20 -0
- package/dist/functions/tencent-cloud/upload.cos.js +127 -0
- package/dist/functions/tencent-cloud/upload.cos.js.map +1 -0
- package/dist/functions/tree/buildTree.d.ts +7 -0
- package/dist/functions/tree/buildTree.js +27 -0
- package/dist/functions/tree/buildTree.js.map +1 -0
- package/dist/functions/tree/filterTree.d.ts +4 -0
- package/dist/functions/tree/filterTree.js +21 -0
- package/dist/functions/tree/filterTree.js.map +1 -0
- package/dist/functions/tree/findNode.d.ts +4 -0
- package/dist/functions/tree/findNode.js +21 -0
- package/dist/functions/tree/findNode.js.map +1 -0
- package/dist/functions/tree/flattenTree.d.ts +6 -0
- package/dist/functions/tree/flattenTree.js +21 -0
- package/dist/functions/tree/flattenTree.js.map +1 -0
- package/dist/functions/url/buildQueryString.d.ts +5 -0
- package/dist/functions/url/buildQueryString.js +15 -0
- package/dist/functions/url/buildQueryString.js.map +1 -0
- package/dist/functions/url/parseUrl.d.ts +11 -0
- package/dist/functions/url/parseUrl.js +34 -0
- package/dist/functions/url/parseUrl.js.map +1 -0
- package/dist/functions/utils/cachedAsync.d.ts +27 -0
- package/dist/functions/utils/cachedAsync.js +123 -0
- package/dist/functions/utils/cachedAsync.js.map +1 -0
- package/dist/functions/utils/errorManager.d.ts +63 -0
- package/dist/functions/utils/errorManager.js +199 -0
- package/dist/functions/utils/errorManager.js.map +1 -0
- package/dist/functions/utils/useAltool.d.ts +39 -0
- package/dist/functions/utils/useAltool.js +350 -0
- package/dist/functions/utils/useAltool.js.map +1 -0
- package/dist/functions/utils/vueDiff.d.ts +38 -0
- package/dist/functions/utils/vueDiff.js +333 -0
- package/dist/functions/utils/vueDiff.js.map +1 -0
- package/dist/functions/validation/isEmail.d.ts +1 -0
- package/dist/functions/validation/isEmail.js +8 -0
- package/dist/functions/validation/isEmail.js.map +1 -0
- package/dist/functions/validation/isIdCard.d.ts +1 -0
- package/dist/functions/validation/isIdCard.js +49 -0
- package/dist/functions/validation/isIdCard.js.map +1 -0
- package/dist/functions/validation/isIpAddress.d.ts +1 -0
- package/dist/functions/validation/isIpAddress.js +15 -0
- package/dist/functions/validation/isIpAddress.js.map +1 -0
- package/dist/functions/validation/isPhone.d.ts +1 -0
- package/dist/functions/validation/isPhone.js +12 -0
- package/dist/functions/validation/isPhone.js.map +1 -0
- package/dist/functions/validation/isUrl.d.ts +5 -0
- package/dist/functions/validation/isUrl.js +33 -0
- package/dist/functions/validation/isUrl.js.map +1 -0
- package/dist/reactive/createReactive.d.ts +10 -0
- package/dist/reactive/createReactive.js +50 -0
- package/dist/reactive/createReactive.js.map +1 -0
- package/dist/reactive/createReactiveErrorManager.d.ts +63 -0
- package/dist/reactive/createReactiveErrorManager.js +199 -0
- package/dist/reactive/createReactiveErrorManager.js.map +1 -0
- package/dist/reactive/createReactiveI18n.d.ts +27 -0
- package/dist/reactive/createReactiveI18n.js +119 -0
- package/dist/reactive/createReactiveI18n.js.map +1 -0
- package/dist/reactive/createReactivePermission.d.ts +40 -0
- package/dist/reactive/createReactivePermission.js +189 -0
- package/dist/reactive/createReactivePermission.js.map +1 -0
- package/dist/reactive/createReactivePinia.d.ts +52 -0
- package/dist/reactive/createReactivePinia.js +183 -0
- package/dist/reactive/createReactivePinia.js.map +1 -0
- package/dist/reactive/useReactiveCookie.d.ts +19 -0
- package/dist/reactive/useReactiveCookie.js +84 -0
- package/dist/reactive/useReactiveCookie.js.map +1 -0
- package/dist/reactive/useReactiveSSE.d.ts +46 -0
- package/dist/reactive/useReactiveSSE.js +212 -0
- package/dist/reactive/useReactiveSSE.js.map +1 -0
- package/dist/reactive/useReactiveWebsocket.d.ts +50 -0
- package/dist/reactive/useReactiveWebsocket.js +250 -0
- package/dist/reactive/useReactiveWebsocket.js.map +1 -0
- package/dist/vue-hooks/browser/useBattery.d.ts +16 -0
- package/dist/vue-hooks/browser/useBattery.js +70 -0
- package/dist/vue-hooks/browser/useBattery.js.map +1 -0
- package/dist/vue-hooks/browser/useBluetooth.d.ts +25 -0
- package/dist/vue-hooks/browser/useBluetooth.js +72 -0
- package/dist/vue-hooks/browser/useBluetooth.js.map +1 -0
- package/dist/vue-hooks/browser/useCamera.d.ts +21 -0
- package/dist/vue-hooks/browser/useCamera.js +52 -0
- package/dist/vue-hooks/browser/useCamera.js.map +1 -0
- package/dist/vue-hooks/browser/useClipboard.d.ts +18 -0
- package/dist/vue-hooks/browser/useClipboard.js +33 -0
- package/dist/vue-hooks/browser/useClipboard.js.map +1 -0
- package/dist/vue-hooks/browser/useFullscreen.d.ts +20 -0
- package/dist/vue-hooks/browser/useFullscreen.js +73 -0
- package/dist/vue-hooks/browser/useFullscreen.js.map +1 -0
- package/dist/vue-hooks/browser/useGamepad.d.ts +25 -0
- package/dist/vue-hooks/browser/useGamepad.js +69 -0
- package/dist/vue-hooks/browser/useGamepad.js.map +1 -0
- package/dist/vue-hooks/browser/useGeolocation.d.ts +24 -0
- package/dist/vue-hooks/browser/useGeolocation.js +85 -0
- package/dist/vue-hooks/browser/useGeolocation.js.map +1 -0
- package/dist/vue-hooks/browser/useMediaSession.d.ts +19 -0
- package/dist/vue-hooks/browser/useMediaSession.js +71 -0
- package/dist/vue-hooks/browser/useMediaSession.js.map +1 -0
- package/dist/vue-hooks/browser/useMicrophone.d.ts +23 -0
- package/dist/vue-hooks/browser/useMicrophone.js +66 -0
- package/dist/vue-hooks/browser/useMicrophone.js.map +1 -0
- package/dist/vue-hooks/browser/useNetwork.d.ts +23 -0
- package/dist/vue-hooks/browser/useNetwork.js +57 -0
- package/dist/vue-hooks/browser/useNetwork.js.map +1 -0
- package/dist/vue-hooks/browser/useOrientation.d.ts +22 -0
- package/dist/vue-hooks/browser/useOrientation.js +54 -0
- package/dist/vue-hooks/browser/useOrientation.js.map +1 -0
- package/dist/vue-hooks/browser/usePageVisibility.d.ts +15 -0
- package/dist/vue-hooks/browser/usePageVisibility.js +25 -0
- package/dist/vue-hooks/browser/usePageVisibility.js.map +1 -0
- package/dist/vue-hooks/browser/useScreenOrientation.d.ts +24 -0
- package/dist/vue-hooks/browser/useScreenOrientation.js +67 -0
- package/dist/vue-hooks/browser/useScreenOrientation.js.map +1 -0
- package/dist/vue-hooks/browser/useScreenWakeLock.d.ts +15 -0
- package/dist/vue-hooks/browser/useScreenWakeLock.js +57 -0
- package/dist/vue-hooks/browser/useScreenWakeLock.js.map +1 -0
- package/dist/vue-hooks/browser/useShare.d.ts +21 -0
- package/dist/vue-hooks/browser/useShare.js +39 -0
- package/dist/vue-hooks/browser/useShare.js.map +1 -0
- package/dist/vue-hooks/browser/useVibration.d.ts +17 -0
- package/dist/vue-hooks/browser/useVibration.js +40 -0
- package/dist/vue-hooks/browser/useVibration.js.map +1 -0
- package/dist/vue-hooks/dom/useClickOutside.d.ts +9 -0
- package/dist/vue-hooks/dom/useClickOutside.js +16 -0
- package/dist/vue-hooks/dom/useClickOutside.js.map +1 -0
- package/dist/vue-hooks/dom/useDraggable.d.ts +33 -0
- package/dist/vue-hooks/dom/useDraggable.js +163 -0
- package/dist/vue-hooks/dom/useDraggable.js.map +1 -0
- package/dist/vue-hooks/dom/useEventListener.d.ts +11 -0
- package/dist/vue-hooks/dom/useEventListener.js +18 -0
- package/dist/vue-hooks/dom/useEventListener.js.map +1 -0
- package/dist/vue-hooks/dom/useResizable.d.ts +50 -0
- package/dist/vue-hooks/dom/useResizable.js +178 -0
- package/dist/vue-hooks/dom/useResizable.js.map +1 -0
- package/dist/vue-hooks/history/useDebouncedRefHistory.d.ts +17 -0
- package/dist/vue-hooks/history/useDebouncedRefHistory.js +46 -0
- package/dist/vue-hooks/history/useDebouncedRefHistory.js.map +1 -0
- package/dist/vue-hooks/history/useManualRefHistory.d.ts +26 -0
- package/dist/vue-hooks/history/useManualRefHistory.js +80 -0
- package/dist/vue-hooks/history/useManualRefHistory.js.map +1 -0
- package/dist/vue-hooks/history/useRefHistory.d.ts +15 -0
- package/dist/vue-hooks/history/useRefHistory.js +41 -0
- package/dist/vue-hooks/history/useRefHistory.js.map +1 -0
- package/dist/vue-hooks/state/createGlobalState.d.ts +2 -0
- package/dist/vue-hooks/state/createGlobalState.js +11 -0
- package/dist/vue-hooks/state/createGlobalState.js.map +1 -0
- package/dist/vue-hooks/state/createInjectionState.d.ts +10 -0
- package/dist/vue-hooks/state/createInjectionState.js +20 -0
- package/dist/vue-hooks/state/createInjectionState.js.map +1 -0
- package/dist/vue-hooks/state/createSharedComposable.d.ts +2 -0
- package/dist/vue-hooks/state/createSharedComposable.js +13 -0
- package/dist/vue-hooks/state/createSharedComposable.js.map +1 -0
- package/dist/vue-hooks/state/injectLocal.d.ts +8 -0
- package/dist/vue-hooks/state/injectLocal.js +12 -0
- package/dist/vue-hooks/state/injectLocal.js.map +1 -0
- package/dist/vue-hooks/state/provideLocal.d.ts +7 -0
- package/dist/vue-hooks/state/provideLocal.js +7 -0
- package/dist/vue-hooks/state/provideLocal.js.map +1 -0
- package/dist/vue-hooks/state/useAsyncState.d.ts +27 -0
- package/dist/vue-hooks/state/useAsyncState.js +46 -0
- package/dist/vue-hooks/state/useAsyncState.js.map +1 -0
- package/dist/vue-hooks/state/useCounter.d.ts +17 -0
- package/dist/vue-hooks/state/useCounter.js +44 -0
- package/dist/vue-hooks/state/useCounter.js.map +1 -0
- package/dist/vue-hooks/state/useToggle.d.ts +13 -0
- package/dist/vue-hooks/state/useToggle.js +23 -0
- package/dist/vue-hooks/state/useToggle.js.map +1 -0
- package/dist/vue-hooks/time/useInterval.d.ts +16 -0
- package/dist/vue-hooks/time/useInterval.js +33 -0
- package/dist/vue-hooks/time/useInterval.js.map +1 -0
- package/dist/vue-hooks/time/useTimeout.d.ts +17 -0
- package/dist/vue-hooks/time/useTimeout.js +40 -0
- package/dist/vue-hooks/time/useTimeout.js.map +1 -0
- package/dist/vue-hooks/worker/useWebWorker.d.ts +25 -0
- package/dist/vue-hooks/worker/useWebWorker.js +207 -0
- package/dist/vue-hooks/worker/useWebWorker.js.map +1 -0
- package/dist/vue-hooks/worker/useWorkerFunction.d.ts +26 -0
- package/dist/vue-hooks/worker/useWorkerFunction.js +191 -0
- package/dist/vue-hooks/worker/useWorkerFunction.js.map +1 -0
- package/dist/vue-hooks/worker/useWorkerPool.d.ts +33 -0
- package/dist/vue-hooks/worker/useWorkerPool.js +247 -0
- package/dist/vue-hooks/worker/useWorkerPool.js.map +1 -0
- package/package.json +178 -65
- package/references/browser.d.ts +16 -0
- package/references/device.d.ts +340 -0
- package/references/dom.d.ts +31 -6
- package/references/eventsource.d.ts +121 -0
- package/references/node.d.ts +2 -0
- package/references/tencent-cloud.d.ts +38 -0
- package/references/websocket.d.ts +121 -0
- package/types/algorithm-visual.d.ts +79 -0
- package/types/algorithm.d.ts +85 -0
- package/types/tencent-cloud.d.ts +29 -0
- package/types/vue.d.ts +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcw-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"references",
|
|
6
6
|
"dist",
|
|
@@ -23,42 +23,119 @@
|
|
|
23
23
|
"publish:prerelease": "npx tsx scripts/publish.ts prerelease",
|
|
24
24
|
"docs:dev": "vitepress dev docs",
|
|
25
25
|
"docs:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
26
|
-
"docs:preview": "vitepress preview docs"
|
|
26
|
+
"docs:preview": "vitepress preview docs",
|
|
27
|
+
"deploy:tcb": "npx tsx scripts/deploy-tcb.ts",
|
|
28
|
+
"deploy:cos": "npx tsx scripts/deploy-cos.ts"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
31
|
+
"@cloudbase/manager-node": "^4.3.2",
|
|
32
|
+
"cos-nodejs-sdk-v5": "^2.14.4",
|
|
29
33
|
"tsx": "^4.20.3",
|
|
30
34
|
"typescript": "^5.8.3",
|
|
31
35
|
"vitepress": "^1.6.4",
|
|
32
36
|
"vue": "^3.5.22",
|
|
33
|
-
"zcw-
|
|
37
|
+
"zcw-shared": "^1.22.0",
|
|
38
|
+
"zcw-vue-ui": "^1.11.3"
|
|
34
39
|
},
|
|
35
40
|
"exports": {
|
|
36
41
|
"./constants/colorPatterns": "./dist/constants/colorPatterns.js",
|
|
37
42
|
"./constants/namedColors": "./dist/constants/namedColors.js",
|
|
38
43
|
"./constants/softwareConfigs": "./dist/constants/softwareConfigs.js",
|
|
39
44
|
"./functions/ag-grid/generateLicense": "./dist/functions/ag-grid/generateLicense.js",
|
|
45
|
+
"./functions/algorithm/binarySearch": "./dist/functions/algorithm/binarySearch.js",
|
|
46
|
+
"./functions/algorithm/canJump": "./dist/functions/algorithm/canJump.js",
|
|
47
|
+
"./functions/algorithm/climbStairs": "./dist/functions/algorithm/climbStairs.js",
|
|
48
|
+
"./functions/algorithm/coinChange": "./dist/functions/algorithm/coinChange.js",
|
|
49
|
+
"./functions/algorithm/combinationSum": "./dist/functions/algorithm/combinationSum.js",
|
|
50
|
+
"./functions/algorithm/editDistance": "./dist/functions/algorithm/editDistance.js",
|
|
51
|
+
"./functions/algorithm/generateParenthesis": "./dist/functions/algorithm/generateParenthesis.js",
|
|
52
|
+
"./functions/algorithm/kmp": "./dist/functions/algorithm/kmp.js",
|
|
53
|
+
"./functions/algorithm/knapsack01": "./dist/functions/algorithm/knapsack01.js",
|
|
54
|
+
"./functions/algorithm/lengthOfLongestSubstring": "./dist/functions/algorithm/lengthOfLongestSubstring.js",
|
|
55
|
+
"./functions/algorithm/longestCommonSubsequence": "./dist/functions/algorithm/longestCommonSubsequence.js",
|
|
56
|
+
"./functions/algorithm/longestIncreasingSubsequence": "./dist/functions/algorithm/longestIncreasingSubsequence.js",
|
|
57
|
+
"./functions/algorithm/maxArea": "./dist/functions/algorithm/maxArea.js",
|
|
58
|
+
"./functions/algorithm/maxProfit": "./dist/functions/algorithm/maxProfit.js",
|
|
59
|
+
"./functions/algorithm/meetingRooms": "./dist/functions/algorithm/meetingRooms.js",
|
|
60
|
+
"./functions/algorithm/mergeSort": "./dist/functions/algorithm/mergeSort.js",
|
|
61
|
+
"./functions/algorithm/minPathSum": "./dist/functions/algorithm/minPathSum.js",
|
|
62
|
+
"./functions/algorithm/minWindow": "./dist/functions/algorithm/minWindow.js",
|
|
63
|
+
"./functions/algorithm/nQueens": "./dist/functions/algorithm/nQueens.js",
|
|
64
|
+
"./functions/algorithm/numIslands": "./dist/functions/algorithm/numIslands.js",
|
|
65
|
+
"./functions/algorithm/permutations": "./dist/functions/algorithm/permutations.js",
|
|
66
|
+
"./functions/algorithm/quickSort": "./dist/functions/algorithm/quickSort.js",
|
|
67
|
+
"./functions/algorithm/rabinKarp": "./dist/functions/algorithm/rabinKarp.js",
|
|
68
|
+
"./functions/algorithm/taskScheduler": "./dist/functions/algorithm/taskScheduler.js",
|
|
69
|
+
"./functions/algorithm/threeSum": "./dist/functions/algorithm/threeSum.js",
|
|
70
|
+
"./functions/algorithm/topologicalSort": "./dist/functions/algorithm/topologicalSort.js",
|
|
71
|
+
"./functions/algorithm/trap": "./dist/functions/algorithm/trap.js",
|
|
72
|
+
"./functions/algorithm/visualizeGarbageCollection": "./dist/functions/algorithm/visualizeGarbageCollection.js",
|
|
40
73
|
"./functions/android/buildProject": "./dist/functions/android/buildProject.js",
|
|
41
74
|
"./functions/android/detectAndroidModules": "./dist/functions/android/detectAndroidModules.js",
|
|
42
75
|
"./functions/android/modifyGradle": "./dist/functions/android/modifyGradle.js",
|
|
43
76
|
"./functions/android/modifyManifest": "./dist/functions/android/modifyManifest.js",
|
|
44
77
|
"./functions/android/permission": "./dist/functions/android/permission.js",
|
|
78
|
+
"./functions/array-object/chunk": "./dist/functions/array-object/chunk.js",
|
|
79
|
+
"./functions/array-object/deepClone": "./dist/functions/array-object/deepClone.js",
|
|
80
|
+
"./functions/array-object/evolve": "./dist/functions/array-object/evolve.js",
|
|
81
|
+
"./functions/array-object/flatten": "./dist/functions/array-object/flatten.js",
|
|
82
|
+
"./functions/array-object/flattenObject": "./dist/functions/array-object/flattenObject.js",
|
|
83
|
+
"./functions/array-object/groupBy": "./dist/functions/array-object/groupBy.js",
|
|
84
|
+
"./functions/array-object/omit": "./dist/functions/array-object/omit.js",
|
|
85
|
+
"./functions/array-object/pick": "./dist/functions/array-object/pick.js",
|
|
86
|
+
"./functions/array-object/shuffle": "./dist/functions/array-object/shuffle.js",
|
|
87
|
+
"./functions/array-object/sortBy": "./dist/functions/array-object/sortBy.js",
|
|
88
|
+
"./functions/array-object/unique": "./dist/functions/array-object/unique.js",
|
|
89
|
+
"./functions/async/cachedAsync": "./dist/functions/async/cachedAsync.js",
|
|
45
90
|
"./functions/async/createInterruptibleTask": "./dist/functions/async/createInterruptibleTask.js",
|
|
91
|
+
"./functions/async/promiseLimit": "./dist/functions/async/promiseLimit.js",
|
|
92
|
+
"./functions/async/retryWithBackoff": "./dist/functions/async/retryWithBackoff.js",
|
|
93
|
+
"./functions/browser/detectBrowser": "./dist/functions/browser/detectBrowser.js",
|
|
94
|
+
"./functions/browser/detectOS": "./dist/functions/browser/detectOS.js",
|
|
95
|
+
"./functions/browser/isMobile": "./dist/functions/browser/isMobile.js",
|
|
46
96
|
"./functions/color/colorValidation": "./dist/functions/color/colorValidation.js",
|
|
47
97
|
"./functions/color/convertColor": "./dist/functions/color/convertColor.js",
|
|
48
98
|
"./functions/color/deduplicateColors": "./dist/functions/color/deduplicateColors.js",
|
|
49
99
|
"./functions/color/detectColorFormat": "./dist/functions/color/detectColorFormat.js",
|
|
50
100
|
"./functions/color/extractColors": "./dist/functions/color/extractColors.js",
|
|
51
101
|
"./functions/css/extractCssVariables": "./dist/functions/css/extractCssVariables.js",
|
|
102
|
+
"./functions/data-structures/AVLTree": "./dist/functions/data-structures/AVLTree.js",
|
|
103
|
+
"./functions/data-structures/BinarySearchTree": "./dist/functions/data-structures/BinarySearchTree.js",
|
|
104
|
+
"./functions/data-structures/Graph": "./dist/functions/data-structures/Graph.js",
|
|
105
|
+
"./functions/data-structures/HashMap": "./dist/functions/data-structures/HashMap.js",
|
|
106
|
+
"./functions/data-structures/Heap": "./dist/functions/data-structures/Heap.js",
|
|
107
|
+
"./functions/data-structures/LRUCache": "./dist/functions/data-structures/LRUCache.js",
|
|
108
|
+
"./functions/data-structures/LinkedList": "./dist/functions/data-structures/LinkedList.js",
|
|
109
|
+
"./functions/data-structures/PriorityQueue": "./dist/functions/data-structures/PriorityQueue.js",
|
|
110
|
+
"./functions/data-structures/Queue": "./dist/functions/data-structures/Queue.js",
|
|
111
|
+
"./functions/data-structures/Stack": "./dist/functions/data-structures/Stack.js",
|
|
112
|
+
"./functions/data-structures/Trie": "./dist/functions/data-structures/Trie.js",
|
|
113
|
+
"./functions/data-structures/UnionFind": "./dist/functions/data-structures/UnionFind.js",
|
|
114
|
+
"./functions/date/dateRange": "./dist/functions/date/dateRange.js",
|
|
115
|
+
"./functions/date/formatDate": "./dist/functions/date/formatDate.js",
|
|
116
|
+
"./functions/date/timeAgo": "./dist/functions/date/timeAgo.js",
|
|
52
117
|
"./functions/debug/createDebugger": "./dist/functions/debug/createDebugger.js",
|
|
53
118
|
"./functions/design-tokens/buildTokens": "./dist/functions/design-tokens/buildTokens.js",
|
|
54
119
|
"./functions/design-tokens/generateVariables": "./dist/functions/design-tokens/generateVariables.js",
|
|
55
120
|
"./functions/design-tokens/mixColors": "./dist/functions/design-tokens/mixColors.js",
|
|
56
121
|
"./functions/design-tokens/parseDesignTokens": "./dist/functions/design-tokens/parseDesignTokens.js",
|
|
122
|
+
"./functions/dom/createThrottledEventListener": "./dist/functions/dom/createThrottledEventListener.js",
|
|
57
123
|
"./functions/dom/demonstrateResourceLoading": "./dist/functions/dom/demonstrateResourceLoading.js",
|
|
58
124
|
"./functions/dom/detectOverflow": "./dist/functions/dom/detectOverflow.js",
|
|
59
125
|
"./functions/dom/getElementRect": "./dist/functions/dom/getElementRect.js",
|
|
60
126
|
"./functions/dom/getRelativePosition": "./dist/functions/dom/getRelativePosition.js",
|
|
61
127
|
"./functions/dom/getViewportRect": "./dist/functions/dom/getViewportRect.js",
|
|
128
|
+
"./functions/file/formatFileSize": "./dist/functions/file/formatFileSize.js",
|
|
129
|
+
"./functions/file/getFileExtension": "./dist/functions/file/getFileExtension.js",
|
|
130
|
+
"./functions/functional/compose": "./dist/functions/functional/compose.js",
|
|
131
|
+
"./functions/functional/cond": "./dist/functions/functional/cond.js",
|
|
132
|
+
"./functions/functional/curry": "./dist/functions/functional/curry.js",
|
|
133
|
+
"./functions/functional/curryAdvanced": "./dist/functions/functional/curryAdvanced.js",
|
|
134
|
+
"./functions/functional/flow": "./dist/functions/functional/flow.js",
|
|
135
|
+
"./functions/functional/partial": "./dist/functions/functional/partial.js",
|
|
136
|
+
"./functions/functional/pipe": "./dist/functions/functional/pipe.js",
|
|
137
|
+
"./functions/functional/tap": "./dist/functions/functional/tap.js",
|
|
138
|
+
"./functions/functional/until": "./dist/functions/functional/until.js",
|
|
62
139
|
"./functions/image/compressToTargetSize": "./dist/functions/image/compressToTargetSize.js",
|
|
63
140
|
"./functions/image/generateMacIcons": "./dist/functions/image/generateMacIcons.js",
|
|
64
141
|
"./functions/image/generateMacTrayIcon": "./dist/functions/image/generateMacTrayIcon.js",
|
|
@@ -67,7 +144,44 @@
|
|
|
67
144
|
"./functions/image/generateRoundedImage": "./dist/functions/image/generateRoundedImage.js",
|
|
68
145
|
"./functions/image/getImageDimensions": "./dist/functions/image/getImageDimensions.js",
|
|
69
146
|
"./functions/ipc/dispatchIpcRequest": "./dist/functions/ipc/dispatchIpcRequest.js",
|
|
147
|
+
"./functions/math/average": "./dist/functions/math/average.js",
|
|
148
|
+
"./functions/math/median": "./dist/functions/math/median.js",
|
|
149
|
+
"./functions/math/percentile": "./dist/functions/math/percentile.js",
|
|
150
|
+
"./functions/math/sum": "./dist/functions/math/sum.js",
|
|
151
|
+
"./functions/number/clamp": "./dist/functions/number/clamp.js",
|
|
152
|
+
"./functions/number/formatNumber": "./dist/functions/number/formatNumber.js",
|
|
153
|
+
"./functions/number/random": "./dist/functions/number/random.js",
|
|
154
|
+
"./functions/number/range": "./dist/functions/number/range.js",
|
|
155
|
+
"./functions/patterns/EventEmitter": "./dist/functions/patterns/EventEmitter.js",
|
|
156
|
+
"./functions/patterns/adapter": "./dist/functions/patterns/adapter.js",
|
|
157
|
+
"./functions/patterns/builder": "./dist/functions/patterns/builder.js",
|
|
158
|
+
"./functions/patterns/chainOfResponsibility": "./dist/functions/patterns/chainOfResponsibility.js",
|
|
159
|
+
"./functions/patterns/command": "./dist/functions/patterns/command.js",
|
|
160
|
+
"./functions/patterns/decorator": "./dist/functions/patterns/decorator.js",
|
|
161
|
+
"./functions/patterns/factory": "./dist/functions/patterns/factory.js",
|
|
162
|
+
"./functions/patterns/observer": "./dist/functions/patterns/observer.js",
|
|
163
|
+
"./functions/patterns/prototype": "./dist/functions/patterns/prototype.js",
|
|
164
|
+
"./functions/patterns/proxy": "./dist/functions/patterns/proxy.js",
|
|
165
|
+
"./functions/patterns/singleton": "./dist/functions/patterns/singleton.js",
|
|
166
|
+
"./functions/patterns/strategy": "./dist/functions/patterns/strategy.js",
|
|
167
|
+
"./functions/patterns/templateMethod": "./dist/functions/patterns/templateMethod.js",
|
|
168
|
+
"./functions/patterns/usePluginSystem": "./dist/functions/patterns/usePluginSystem.js",
|
|
169
|
+
"./functions/performance/debounce": "./dist/functions/performance/debounce.js",
|
|
170
|
+
"./functions/performance/memoize": "./dist/functions/performance/memoize.js",
|
|
171
|
+
"./functions/performance/once": "./dist/functions/performance/once.js",
|
|
172
|
+
"./functions/performance/throttle": "./dist/functions/performance/throttle.js",
|
|
173
|
+
"./functions/performance/useCache": "./dist/functions/performance/useCache.js",
|
|
174
|
+
"./functions/principles/MyPromise": "./dist/functions/principles/MyPromise.js",
|
|
175
|
+
"./functions/principles/functionBind": "./dist/functions/principles/functionBind.js",
|
|
176
|
+
"./functions/principles/myInstanceof": "./dist/functions/principles/myInstanceof.js",
|
|
177
|
+
"./functions/principles/myNew": "./dist/functions/principles/myNew.js",
|
|
178
|
+
"./functions/promise/sleep": "./dist/functions/promise/sleep.js",
|
|
179
|
+
"./functions/promise/timeout": "./dist/functions/promise/timeout.js",
|
|
70
180
|
"./functions/software/findSoftware": "./dist/functions/software/findSoftware.js",
|
|
181
|
+
"./functions/storage/useLocalStorage": "./dist/functions/storage/useLocalStorage.js",
|
|
182
|
+
"./functions/storage/useSessionStorage": "./dist/functions/storage/useSessionStorage.js",
|
|
183
|
+
"./functions/storage/useStorage": "./dist/functions/storage/useStorage.js",
|
|
184
|
+
"./functions/storage/useStorageWithIndexedDB": "./dist/functions/storage/useStorageWithIndexedDB.js",
|
|
71
185
|
"./functions/string/base64": "./dist/functions/string/base64.js",
|
|
72
186
|
"./functions/string/capitalize": "./dist/functions/string/capitalize.js",
|
|
73
187
|
"./functions/string/caseConverter": "./dist/functions/string/caseConverter.js",
|
|
@@ -79,62 +193,36 @@
|
|
|
79
193
|
"./functions/string/palindrome": "./dist/functions/string/palindrome.js",
|
|
80
194
|
"./functions/string/similarity": "./dist/functions/string/similarity.js",
|
|
81
195
|
"./functions/string/template": "./dist/functions/string/template.js",
|
|
196
|
+
"./functions/string/testRegex": "./dist/functions/string/testRegex.js",
|
|
82
197
|
"./functions/string/wordCount": "./dist/functions/string/wordCount.js",
|
|
83
198
|
"./functions/tencent-cloud/deploy.tcb": "./dist/functions/tencent-cloud/deploy.tcb.js",
|
|
84
199
|
"./functions/tencent-cloud/getSecret": "./dist/functions/tencent-cloud/getSecret.js",
|
|
200
|
+
"./functions/tencent-cloud/upload.cos": "./dist/functions/tencent-cloud/upload.cos.js",
|
|
201
|
+
"./functions/tree/buildTree": "./dist/functions/tree/buildTree.js",
|
|
202
|
+
"./functions/tree/filterTree": "./dist/functions/tree/filterTree.js",
|
|
203
|
+
"./functions/tree/findNode": "./dist/functions/tree/findNode.js",
|
|
204
|
+
"./functions/tree/flattenTree": "./dist/functions/tree/flattenTree.js",
|
|
85
205
|
"./functions/uniapp/app-plus/buildAndroidApp": "./dist/functions/uniapp/app-plus/buildAndroidApp.js",
|
|
86
206
|
"./functions/uniapp/build": "./dist/functions/uniapp/build.js",
|
|
87
207
|
"./functions/uniapp/detectAndroidProjectStructure": "./dist/functions/uniapp/detectAndroidProjectStructure.js",
|
|
88
208
|
"./functions/uniapp/detectProjectType": "./dist/functions/uniapp/detectProjectType.js",
|
|
89
209
|
"./functions/uniapp/parseManifest": "./dist/functions/uniapp/parseManifest.js",
|
|
90
210
|
"./functions/uniapp/waitForPages": "./dist/functions/uniapp/waitForPages.js",
|
|
91
|
-
"./functions/
|
|
92
|
-
"./functions/
|
|
93
|
-
"./functions/utils/EventEmitter": "./dist/functions/utils/EventEmitter.js",
|
|
94
|
-
"./functions/utils/Graph": "./dist/functions/utils/Graph.js",
|
|
95
|
-
"./functions/utils/HashMap": "./dist/functions/utils/HashMap.js",
|
|
96
|
-
"./functions/utils/Heap": "./dist/functions/utils/Heap.js",
|
|
97
|
-
"./functions/utils/LRUCache": "./dist/functions/utils/LRUCache.js",
|
|
98
|
-
"./functions/utils/LinkedList": "./dist/functions/utils/LinkedList.js",
|
|
99
|
-
"./functions/utils/MyPromise": "./dist/functions/utils/MyPromise.js",
|
|
100
|
-
"./functions/utils/PriorityQueue": "./dist/functions/utils/PriorityQueue.js",
|
|
101
|
-
"./functions/utils/Queue": "./dist/functions/utils/Queue.js",
|
|
102
|
-
"./functions/utils/Stack": "./dist/functions/utils/Stack.js",
|
|
103
|
-
"./functions/utils/Trie": "./dist/functions/utils/Trie.js",
|
|
104
|
-
"./functions/utils/UnionFind": "./dist/functions/utils/UnionFind.js",
|
|
105
|
-
"./functions/utils/compose": "./dist/functions/utils/compose.js",
|
|
106
|
-
"./functions/utils/cond": "./dist/functions/utils/cond.js",
|
|
107
|
-
"./functions/utils/createReactive": "./dist/functions/utils/createReactive.js",
|
|
108
|
-
"./functions/utils/curry": "./dist/functions/utils/curry.js",
|
|
109
|
-
"./functions/utils/curryAdvanced": "./dist/functions/utils/curryAdvanced.js",
|
|
110
|
-
"./functions/utils/debounce": "./dist/functions/utils/debounce.js",
|
|
111
|
-
"./functions/utils/deepClone": "./dist/functions/utils/deepClone.js",
|
|
211
|
+
"./functions/url/buildQueryString": "./dist/functions/url/buildQueryString.js",
|
|
212
|
+
"./functions/url/parseUrl": "./dist/functions/url/parseUrl.js",
|
|
112
213
|
"./functions/utils/diff": "./dist/functions/utils/diff.js",
|
|
113
|
-
"./functions/utils/evolve": "./dist/functions/utils/evolve.js",
|
|
114
|
-
"./functions/utils/flatten": "./dist/functions/utils/flatten.js",
|
|
115
|
-
"./functions/utils/flattenObject": "./dist/functions/utils/flattenObject.js",
|
|
116
|
-
"./functions/utils/flow": "./dist/functions/utils/flow.js",
|
|
117
|
-
"./functions/utils/functionBind": "./dist/functions/utils/functionBind.js",
|
|
118
214
|
"./functions/utils/generateExports": "./dist/functions/utils/generateExports.js",
|
|
119
215
|
"./functions/utils/generatorUtils": "./dist/functions/utils/generatorUtils.js",
|
|
120
|
-
"./functions/utils/i18n": "./dist/functions/utils/i18n.js",
|
|
121
216
|
"./functions/utils/isType": "./dist/functions/utils/isType.js",
|
|
122
|
-
"./functions/utils/
|
|
123
|
-
"./functions/utils/myInstanceof": "./dist/functions/utils/myInstanceof.js",
|
|
124
|
-
"./functions/utils/myNew": "./dist/functions/utils/myNew.js",
|
|
125
|
-
"./functions/utils/once": "./dist/functions/utils/once.js",
|
|
126
|
-
"./functions/utils/partial": "./dist/functions/utils/partial.js",
|
|
127
|
-
"./functions/utils/permission": "./dist/functions/utils/permission.js",
|
|
128
|
-
"./functions/utils/pinia": "./dist/functions/utils/pinia.js",
|
|
129
|
-
"./functions/utils/pipe": "./dist/functions/utils/pipe.js",
|
|
130
|
-
"./functions/utils/promiseLimit": "./dist/functions/utils/promiseLimit.js",
|
|
131
|
-
"./functions/utils/retryWithBackoff": "./dist/functions/utils/retryWithBackoff.js",
|
|
132
|
-
"./functions/utils/tap": "./dist/functions/utils/tap.js",
|
|
133
|
-
"./functions/utils/throttle": "./dist/functions/utils/throttle.js",
|
|
134
|
-
"./functions/utils/unique": "./dist/functions/utils/unique.js",
|
|
135
|
-
"./functions/utils/until": "./dist/functions/utils/until.js",
|
|
217
|
+
"./functions/utils/useAltool": "./dist/functions/utils/useAltool.js",
|
|
136
218
|
"./functions/utils/validate": "./dist/functions/utils/validate.js",
|
|
219
|
+
"./functions/utils/vueDiff": "./dist/functions/utils/vueDiff.js",
|
|
137
220
|
"./functions/utils/walk": "./dist/functions/utils/walk.js",
|
|
221
|
+
"./functions/validation/isEmail": "./dist/functions/validation/isEmail.js",
|
|
222
|
+
"./functions/validation/isIdCard": "./dist/functions/validation/isIdCard.js",
|
|
223
|
+
"./functions/validation/isIpAddress": "./dist/functions/validation/isIpAddress.js",
|
|
224
|
+
"./functions/validation/isPhone": "./dist/functions/validation/isPhone.js",
|
|
225
|
+
"./functions/validation/isUrl": "./dist/functions/validation/isUrl.js",
|
|
138
226
|
"./functions/version/incrementVersion": "./dist/functions/version/incrementVersion.js",
|
|
139
227
|
"./functions/version/parseVersion": "./dist/functions/version/parseVersion.js",
|
|
140
228
|
"./functions/vue/dynamicMount": "./dist/functions/vue/dynamicMount.js",
|
|
@@ -146,27 +234,52 @@
|
|
|
146
234
|
"./functions/vue/parseVueFile": "./dist/functions/vue/parseVueFile.js",
|
|
147
235
|
"./functions/wechat/miniapp/downloadFile": "./dist/functions/wechat/miniapp/downloadFile.js",
|
|
148
236
|
"./functions/xml/modifyXml": "./dist/functions/xml/modifyXml.js",
|
|
149
|
-
"./
|
|
150
|
-
"./
|
|
151
|
-
"./
|
|
152
|
-
"./
|
|
153
|
-
"./
|
|
154
|
-
"./
|
|
155
|
-
"./
|
|
156
|
-
"./
|
|
157
|
-
"./hooks/
|
|
158
|
-
"./hooks/
|
|
159
|
-
"./hooks/
|
|
160
|
-
"./hooks/
|
|
161
|
-
"./hooks/
|
|
162
|
-
"./hooks/
|
|
163
|
-
"./hooks/
|
|
164
|
-
"./hooks/
|
|
165
|
-
"./hooks/
|
|
166
|
-
"./hooks/
|
|
167
|
-
"./hooks/
|
|
168
|
-
"./hooks/
|
|
169
|
-
"./hooks/
|
|
237
|
+
"./reactive/createReactive": "./dist/reactive/createReactive.js",
|
|
238
|
+
"./reactive/createReactiveErrorManager": "./dist/reactive/createReactiveErrorManager.js",
|
|
239
|
+
"./reactive/createReactiveI18n": "./dist/reactive/createReactiveI18n.js",
|
|
240
|
+
"./reactive/createReactivePermission": "./dist/reactive/createReactivePermission.js",
|
|
241
|
+
"./reactive/createReactivePinia": "./dist/reactive/createReactivePinia.js",
|
|
242
|
+
"./reactive/useReactiveCookie": "./dist/reactive/useReactiveCookie.js",
|
|
243
|
+
"./reactive/useReactiveSSE": "./dist/reactive/useReactiveSSE.js",
|
|
244
|
+
"./reactive/useReactiveWebsocket": "./dist/reactive/useReactiveWebsocket.js",
|
|
245
|
+
"./vue-hooks/browser/useBattery": "./dist/vue-hooks/browser/useBattery.js",
|
|
246
|
+
"./vue-hooks/browser/useBluetooth": "./dist/vue-hooks/browser/useBluetooth.js",
|
|
247
|
+
"./vue-hooks/browser/useCamera": "./dist/vue-hooks/browser/useCamera.js",
|
|
248
|
+
"./vue-hooks/browser/useClipboard": "./dist/vue-hooks/browser/useClipboard.js",
|
|
249
|
+
"./vue-hooks/browser/useFullscreen": "./dist/vue-hooks/browser/useFullscreen.js",
|
|
250
|
+
"./vue-hooks/browser/useGamepad": "./dist/vue-hooks/browser/useGamepad.js",
|
|
251
|
+
"./vue-hooks/browser/useGeolocation": "./dist/vue-hooks/browser/useGeolocation.js",
|
|
252
|
+
"./vue-hooks/browser/useMediaSession": "./dist/vue-hooks/browser/useMediaSession.js",
|
|
253
|
+
"./vue-hooks/browser/useMicrophone": "./dist/vue-hooks/browser/useMicrophone.js",
|
|
254
|
+
"./vue-hooks/browser/useNetwork": "./dist/vue-hooks/browser/useNetwork.js",
|
|
255
|
+
"./vue-hooks/browser/useOrientation": "./dist/vue-hooks/browser/useOrientation.js",
|
|
256
|
+
"./vue-hooks/browser/usePageVisibility": "./dist/vue-hooks/browser/usePageVisibility.js",
|
|
257
|
+
"./vue-hooks/browser/useScreenOrientation": "./dist/vue-hooks/browser/useScreenOrientation.js",
|
|
258
|
+
"./vue-hooks/browser/useScreenWakeLock": "./dist/vue-hooks/browser/useScreenWakeLock.js",
|
|
259
|
+
"./vue-hooks/browser/useShare": "./dist/vue-hooks/browser/useShare.js",
|
|
260
|
+
"./vue-hooks/browser/useVibration": "./dist/vue-hooks/browser/useVibration.js",
|
|
261
|
+
"./vue-hooks/dom/useClickOutside": "./dist/vue-hooks/dom/useClickOutside.js",
|
|
262
|
+
"./vue-hooks/dom/useDraggable": "./dist/vue-hooks/dom/useDraggable.js",
|
|
263
|
+
"./vue-hooks/dom/useEventListener": "./dist/vue-hooks/dom/useEventListener.js",
|
|
264
|
+
"./vue-hooks/dom/useResizable": "./dist/vue-hooks/dom/useResizable.js",
|
|
265
|
+
"./vue-hooks/history/useDebouncedRefHistory": "./dist/vue-hooks/history/useDebouncedRefHistory.js",
|
|
266
|
+
"./vue-hooks/history/useManualRefHistory": "./dist/vue-hooks/history/useManualRefHistory.js",
|
|
267
|
+
"./vue-hooks/history/useRefHistory": "./dist/vue-hooks/history/useRefHistory.js",
|
|
268
|
+
"./vue-hooks/state/createGlobalState": "./dist/vue-hooks/state/createGlobalState.js",
|
|
269
|
+
"./vue-hooks/state/createInjectionState": "./dist/vue-hooks/state/createInjectionState.js",
|
|
270
|
+
"./vue-hooks/state/createSharedComposable": "./dist/vue-hooks/state/createSharedComposable.js",
|
|
271
|
+
"./vue-hooks/state/injectLocal": "./dist/vue-hooks/state/injectLocal.js",
|
|
272
|
+
"./vue-hooks/state/provideLocal": "./dist/vue-hooks/state/provideLocal.js",
|
|
273
|
+
"./vue-hooks/state/useAsyncState": "./dist/vue-hooks/state/useAsyncState.js",
|
|
274
|
+
"./vue-hooks/state/useCounter": "./dist/vue-hooks/state/useCounter.js",
|
|
275
|
+
"./vue-hooks/state/useToggle": "./dist/vue-hooks/state/useToggle.js",
|
|
276
|
+
"./vue-hooks/time/useInterval": "./dist/vue-hooks/time/useInterval.js",
|
|
277
|
+
"./vue-hooks/time/useTimeout": "./dist/vue-hooks/time/useTimeout.js",
|
|
278
|
+
"./vue-hooks/worker/useWebWorker": "./dist/vue-hooks/worker/useWebWorker.js",
|
|
279
|
+
"./vue-hooks/worker/useWorkerFunction": "./dist/vue-hooks/worker/useWorkerFunction.js",
|
|
280
|
+
"./vue-hooks/worker/useWorkerPool": "./dist/vue-hooks/worker/useWorkerPool.js",
|
|
281
|
+
"./types/algorithm-visual": "./types/algorithm-visual.d.ts",
|
|
282
|
+
"./types/algorithm": "./types/algorithm.d.ts",
|
|
170
283
|
"./types/altool": "./types/altool.d.ts",
|
|
171
284
|
"./types/android-build": "./types/android-build.d.ts",
|
|
172
285
|
"./types/color": "./types/color.d.ts",
|
package/references/browser.d.ts
CHANGED
|
@@ -11,6 +11,15 @@ import type { TextDecoderConstructor, TextEncoderConstructor } from './encoding.
|
|
|
11
11
|
import type { Location } from './location.d'
|
|
12
12
|
import type { ArrayBufferConstructor, Uint8ArrayConstructor, DataViewConstructor } from './arraybuffer.d'
|
|
13
13
|
|
|
14
|
+
// Navigator 接口
|
|
15
|
+
export interface Navigator {
|
|
16
|
+
clipboard: {
|
|
17
|
+
writeText(text: string): Promise<void>
|
|
18
|
+
readText(): Promise<string>
|
|
19
|
+
}
|
|
20
|
+
userAgent: string
|
|
21
|
+
}
|
|
22
|
+
|
|
14
23
|
// File 接口定义
|
|
15
24
|
export interface FilePropertyBag extends BlobPropertyBag {
|
|
16
25
|
lastModified?: number
|
|
@@ -99,6 +108,13 @@ export interface Window {
|
|
|
99
108
|
// 样式计算API
|
|
100
109
|
getComputedStyle: (element: Element, pseudoElement?: string | null) => CSSStyleDeclaration
|
|
101
110
|
|
|
111
|
+
// Navigator API
|
|
112
|
+
navigator: Navigator
|
|
113
|
+
|
|
114
|
+
// 事件监听API
|
|
115
|
+
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void
|
|
116
|
+
removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void
|
|
117
|
+
|
|
102
118
|
// 开发环境标识
|
|
103
119
|
__DEV__?: boolean
|
|
104
120
|
|