zcw-shared 1.4.0 → 1.7.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.
Files changed (453) hide show
  1. package/README.md +513 -610
  2. package/assets/logo-colorful.svg +18 -18
  3. package/assets/logo-name.svg +7 -7
  4. package/assets/logo-transparent.svg +14 -14
  5. package/assets/logo.svg +8 -8
  6. package/dist/constants/colorPatterns.d.ts +8 -0
  7. package/dist/{functions/color-converter/COLOR_PATTERNS.js → constants/colorPatterns.js} +1 -1
  8. package/dist/constants/colorPatterns.js.map +1 -0
  9. package/dist/constants/namedColors.d.ts +16 -0
  10. package/dist/constants/namedColors.js +17 -0
  11. package/dist/constants/namedColors.js.map +1 -0
  12. package/dist/functions/android/buildProject.d.ts +11 -0
  13. package/dist/functions/android/buildProject.js +97 -0
  14. package/dist/functions/android/buildProject.js.map +1 -0
  15. package/dist/functions/android/modifyGradle.d.ts +17 -0
  16. package/dist/functions/android/modifyGradle.js +69 -0
  17. package/dist/functions/android/modifyGradle.js.map +1 -0
  18. package/dist/functions/android/modifyManifest.d.ts +23 -0
  19. package/dist/functions/android/modifyManifest.js +198 -0
  20. package/dist/functions/android/modifyManifest.js.map +1 -0
  21. package/dist/functions/android/permission.d.ts +30 -0
  22. package/dist/functions/android/permission.js +65 -0
  23. package/dist/functions/android/permission.js.map +1 -0
  24. package/dist/functions/color/colorValidation.d.ts +11 -0
  25. package/dist/functions/color/colorValidation.js +35 -0
  26. package/dist/functions/color/colorValidation.js.map +1 -0
  27. package/dist/functions/{color-converter → color}/convertColor.d.ts +0 -1
  28. package/dist/functions/color/convertColor.js +277 -0
  29. package/dist/functions/color/convertColor.js.map +1 -0
  30. package/dist/functions/color/deduplicateColors.d.ts +4 -0
  31. package/dist/functions/color/deduplicateColors.js +40 -0
  32. package/dist/functions/color/deduplicateColors.js.map +1 -0
  33. package/dist/functions/color/detectColorFormat.d.ts +8 -0
  34. package/dist/functions/color/detectColorFormat.js +110 -0
  35. package/dist/functions/color/detectColorFormat.js.map +1 -0
  36. package/dist/functions/color/extractColors.d.ts +4 -0
  37. package/dist/functions/color/extractColors.js +128 -0
  38. package/dist/functions/color/extractColors.js.map +1 -0
  39. package/dist/functions/css/extractCssVariables.d.ts +12 -0
  40. package/dist/functions/css/extractCssVariables.js +53 -0
  41. package/dist/functions/css/extractCssVariables.js.map +1 -0
  42. package/dist/functions/debug/createDebugger.d.ts +8 -7
  43. package/dist/functions/debug/createDebugger.js +49 -39
  44. package/dist/functions/debug/createDebugger.js.map +1 -1
  45. package/dist/functions/dom/detectOverflow.d.ts +3 -3
  46. package/dist/functions/dom/detectOverflow.js +3 -3
  47. package/dist/functions/dom/detectOverflow.js.map +1 -1
  48. package/dist/functions/dom/getElementRect.d.ts +1 -1
  49. package/dist/functions/dom/getElementRect.js.map +1 -1
  50. package/dist/functions/dom/getRelativePosition.d.ts +1 -1
  51. package/dist/functions/dom/getRelativePosition.js.map +1 -1
  52. package/dist/functions/dom/getViewportRect.d.ts +2 -2
  53. package/dist/functions/dom/getViewportRect.js +2 -2
  54. package/dist/functions/dom/getViewportRect.js.map +1 -1
  55. package/dist/functions/image/generateMacIcons.d.ts +3 -3
  56. package/dist/functions/image/generateMacIcons.js.map +1 -1
  57. package/dist/functions/image/generateMacTrayIcon.d.ts +3 -3
  58. package/dist/functions/image/generateMacTrayIcon.js.map +1 -1
  59. package/dist/functions/image/generatePaddedImage.d.ts +2 -2
  60. package/dist/functions/image/generatePaddedImage.js.map +1 -1
  61. package/dist/functions/image/generatePwaIcons.d.ts +3 -3
  62. package/dist/functions/image/generatePwaIcons.js.map +1 -1
  63. package/dist/functions/image/generateRoundedImage.d.ts +2 -2
  64. package/dist/functions/image/generateRoundedImage.js.map +1 -1
  65. package/dist/functions/ipc/dispatchIpcRequest.d.ts +2 -2
  66. package/dist/functions/ipc/dispatchIpcRequest.js +1 -1
  67. package/dist/functions/ipc/dispatchIpcRequest.js.map +1 -1
  68. package/dist/functions/software/findSoftware.d.ts +4 -5
  69. package/dist/functions/software/findSoftware.js +32 -20
  70. package/dist/functions/software/findSoftware.js.map +1 -1
  71. package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
  72. package/dist/functions/uniapp/app-plus/buildAndroidApp.js +97 -24
  73. package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
  74. package/dist/functions/uniapp/build.d.ts +20 -0
  75. package/dist/functions/uniapp/build.js +84 -0
  76. package/dist/functions/uniapp/build.js.map +1 -0
  77. package/dist/functions/uniapp/detectAndroidProjectStructure.d.ts +7 -0
  78. package/dist/functions/uniapp/detectAndroidProjectStructure.js +30 -0
  79. package/dist/functions/uniapp/detectAndroidProjectStructure.js.map +1 -0
  80. package/dist/functions/uniapp/detectProjectType.d.ts +16 -0
  81. package/dist/functions/uniapp/detectProjectType.js +68 -0
  82. package/dist/functions/uniapp/detectProjectType.js.map +1 -0
  83. package/dist/functions/uniapp/parseManifest.d.ts +12 -0
  84. package/dist/functions/uniapp/{app-plus/parseManifest.js → parseManifest.js} +9 -7
  85. package/dist/functions/uniapp/parseManifest.js.map +1 -0
  86. package/dist/functions/utils/generateExports.d.ts +16 -0
  87. package/dist/functions/utils/generateExports.js +34 -0
  88. package/dist/functions/utils/generateExports.js.map +1 -0
  89. package/dist/functions/vue/extractColorsFromVueFile.d.ts +3 -0
  90. package/dist/functions/vue/extractColorsFromVueFile.js +18 -0
  91. package/dist/functions/vue/extractColorsFromVueFile.js.map +1 -0
  92. package/dist/functions/vue/extractColorsFromVueSection.d.ts +3 -0
  93. package/dist/functions/vue/extractColorsFromVueSection.js +53 -0
  94. package/dist/functions/vue/extractColorsFromVueSection.js.map +1 -0
  95. package/dist/functions/vue/filterSections.d.ts +2 -0
  96. package/dist/functions/vue/parseVueFile.d.ts +2 -0
  97. package/dist/functions/xml/modifyXml.d.ts +11 -0
  98. package/dist/functions/xml/modifyXml.js +46 -0
  99. package/dist/functions/xml/modifyXml.js.map +1 -0
  100. package/dist/hooks/useAltool.d.ts +39 -0
  101. package/dist/hooks/useAltool.js +350 -0
  102. package/dist/hooks/useAltool.js.map +1 -0
  103. package/dist/hooks/useLocalStorage.d.ts +4 -4
  104. package/dist/hooks/useLocalStorage.js +51 -18
  105. package/dist/hooks/useLocalStorage.js.map +1 -1
  106. package/dist/hooks/useSessionStorage.d.ts +4 -4
  107. package/dist/hooks/useSessionStorage.js +51 -18
  108. package/dist/hooks/useSessionStorage.js.map +1 -1
  109. package/dist/hooks/useStorage.d.ts +10 -3
  110. package/dist/hooks/useStorage.js +33 -35
  111. package/dist/hooks/useStorage.js.map +1 -1
  112. package/dist/hooks/useStorageWithIndexedDB.d.ts +3 -4
  113. package/dist/hooks/useStorageWithIndexedDB.js +39 -29
  114. package/dist/hooks/useStorageWithIndexedDB.js.map +1 -1
  115. package/dist/hooks/useWebWorker.d.ts +25 -4
  116. package/dist/hooks/useWebWorker.js.map +1 -1
  117. package/dist/hooks/useWorkerFunction.d.ts +22 -4
  118. package/dist/hooks/useWorkerFunction.js +28 -28
  119. package/dist/hooks/useWorkerFunction.js.map +1 -1
  120. package/dist/hooks/useWorkerPool.d.ts +30 -4
  121. package/dist/hooks/useWorkerPool.js.map +1 -1
  122. package/package.json +39 -63
  123. package/references/arraybuffer.d.ts +109 -0
  124. package/references/blob.d.ts +37 -0
  125. package/references/browser.d.ts +69 -174
  126. package/references/chrome.extension.d.ts +83 -0
  127. package/references/console.d.ts +25 -164
  128. package/references/{crypto.d.ts → crypto-js.d.ts} +57 -57
  129. package/references/dom.d.ts +41 -0
  130. package/references/encoding.d.ts +24 -0
  131. package/references/fetch.d.ts +124 -269
  132. package/references/indexeddb.d.ts +49 -0
  133. package/references/json5.d.ts +21 -28
  134. package/references/location.d.ts +16 -0
  135. package/references/node.d.ts +116 -111
  136. package/references/sharp.d.ts +18 -18
  137. package/references/storage.d.ts +17 -111
  138. package/references/timer.d.ts +45 -46
  139. package/references/uniapp.d.ts +51 -9
  140. package/references/url.d.ts +55 -160
  141. package/references/vue.d.ts +86 -113
  142. package/references/webassembly.d.ts +101 -127
  143. package/references/wechat.d.ts +48 -48
  144. package/references/worker.d.ts +152 -206
  145. package/references/xml.d.ts +88 -55
  146. package/types/altool.d.ts +49 -17
  147. package/types/android-build.d.ts +60 -85
  148. package/types/color.d.ts +72 -135
  149. package/types/geometry.d.ts +28 -63
  150. package/types/platform.d.ts +4 -0
  151. package/types/software.d.ts +15 -0
  152. package/types/storage.d.ts +50 -48
  153. package/types/uniapp-android-build.d.ts +49 -0
  154. package/types/vue.d.ts +30 -0
  155. package/types/worker.d.ts +178 -364
  156. package/dist/functions/ag-grid/generateLicense.d.ts +0 -4
  157. package/dist/functions/ag-grid/generateLicense.js +0 -12
  158. package/dist/functions/ag-grid/generateLicense.js.map +0 -1
  159. package/dist/functions/altool/createAltoolClient.d.ts +0 -21
  160. package/dist/functions/altool/createAltoolClient.js +0 -59
  161. package/dist/functions/altool/createAltoolClient.js.map +0 -1
  162. package/dist/functions/altool/getAppInfo.d.ts +0 -13
  163. package/dist/functions/altool/getAppInfo.js +0 -92
  164. package/dist/functions/altool/getAppInfo.js.map +0 -1
  165. package/dist/functions/altool/index.d.ts +0 -10
  166. package/dist/functions/altool/index.js +0 -6
  167. package/dist/functions/altool/index.js.map +0 -1
  168. package/dist/functions/altool/isApiKeyAuth.d.ts +0 -2
  169. package/dist/functions/altool/isApiKeyAuth.js +0 -4
  170. package/dist/functions/altool/isApiKeyAuth.js.map +0 -1
  171. package/dist/functions/altool/isCredentialsAuth.d.ts +0 -2
  172. package/dist/functions/altool/isCredentialsAuth.js +0 -4
  173. package/dist/functions/altool/isCredentialsAuth.js.map +0 -1
  174. package/dist/functions/altool/types.d.ts +0 -26
  175. package/dist/functions/altool/types.js +0 -7
  176. package/dist/functions/altool/types.js.map +0 -1
  177. package/dist/functions/altool/uploadApp.d.ts +0 -6
  178. package/dist/functions/altool/uploadApp.js +0 -36
  179. package/dist/functions/altool/uploadApp.js.map +0 -1
  180. package/dist/functions/altool/validateApp.d.ts +0 -17
  181. package/dist/functions/altool/validateApp.js +0 -59
  182. package/dist/functions/altool/validateApp.js.map +0 -1
  183. package/dist/functions/base64/strToBase64.d.ts +0 -2
  184. package/dist/functions/base64/strToBase64.js +0 -6
  185. package/dist/functions/base64/strToBase64.js.map +0 -1
  186. package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +0 -2
  187. package/dist/functions/color-converter/COLOR_PATTERNS.js.map +0 -1
  188. package/dist/functions/color-converter/colorPatterns.d.ts +0 -4
  189. package/dist/functions/color-converter/colorPatterns.js +0 -41
  190. package/dist/functions/color-converter/colorPatterns.js.map +0 -1
  191. package/dist/functions/color-converter/convertColor.js +0 -238
  192. package/dist/functions/color-converter/convertColor.js.map +0 -1
  193. package/dist/functions/color-converter/detectColorFormat.d.ts +0 -2
  194. package/dist/functions/color-converter/detectColorFormat.js +0 -19
  195. package/dist/functions/color-converter/detectColorFormat.js.map +0 -1
  196. package/dist/functions/color-converter/extractColors.d.ts +0 -16
  197. package/dist/functions/color-converter/extractColors.js +0 -111
  198. package/dist/functions/color-converter/extractColors.js.map +0 -1
  199. package/dist/functions/color-converter/getColorPatterns.d.ts +0 -2
  200. package/dist/functions/color-converter/getColorPatterns.js +0 -11
  201. package/dist/functions/color-converter/getColorPatterns.js.map +0 -1
  202. package/dist/functions/color-converter/getNamedColorMap.d.ts +0 -2
  203. package/dist/functions/color-converter/getNamedColorMap.js +0 -19
  204. package/dist/functions/color-converter/getNamedColorMap.js.map +0 -1
  205. package/dist/functions/color-converter/hexToRgb.d.ts +0 -2
  206. package/dist/functions/color-converter/hexToRgb.js +0 -42
  207. package/dist/functions/color-converter/hexToRgb.js.map +0 -1
  208. package/dist/functions/color-converter/hslToRgb.d.ts +0 -2
  209. package/dist/functions/color-converter/hslToRgb.js +0 -78
  210. package/dist/functions/color-converter/hslToRgb.js.map +0 -1
  211. package/dist/functions/color-converter/hueToRgb.d.ts +0 -1
  212. package/dist/functions/color-converter/hueToRgb.js +0 -14
  213. package/dist/functions/color-converter/hueToRgb.js.map +0 -1
  214. package/dist/functions/color-converter/isColorValue.d.ts +0 -2
  215. package/dist/functions/color-converter/isColorValue.js +0 -79
  216. package/dist/functions/color-converter/isColorValue.js.map +0 -1
  217. package/dist/functions/color-converter/normalizeColor.d.ts +0 -1
  218. package/dist/functions/color-converter/normalizeColor.js +0 -49
  219. package/dist/functions/color-converter/normalizeColor.js.map +0 -1
  220. package/dist/functions/color-converter/parseColorString.d.ts +0 -15
  221. package/dist/functions/color-converter/parseColorString.js +0 -116
  222. package/dist/functions/color-converter/parseColorString.js.map +0 -1
  223. package/dist/functions/color-converter/rgbToHex.d.ts +0 -2
  224. package/dist/functions/color-converter/rgbToHex.js +0 -65
  225. package/dist/functions/color-converter/rgbToHex.js.map +0 -1
  226. package/dist/functions/color-converter/standardizeColor.d.ts +0 -1
  227. package/dist/functions/color-converter/standardizeColor.js +0 -147
  228. package/dist/functions/color-converter/standardizeColor.js.map +0 -1
  229. package/dist/functions/desensitize/desensitizeName.d.ts +0 -1
  230. package/dist/functions/desensitize/desensitizeName.js +0 -8
  231. package/dist/functions/desensitize/desensitizeName.js.map +0 -1
  232. package/dist/functions/desensitize/desensitizePhone.d.ts +0 -1
  233. package/dist/functions/desensitize/desensitizePhone.js +0 -8
  234. package/dist/functions/desensitize/desensitizePhone.js.map +0 -1
  235. package/dist/functions/dom/getViewportSize.d.ts +0 -5
  236. package/dist/functions/dom/getViewportSize.js +0 -7
  237. package/dist/functions/dom/getViewportSize.js.map +0 -1
  238. package/dist/functions/software/buildPathExecutables.d.ts +0 -1
  239. package/dist/functions/software/buildPathExecutables.js +0 -4
  240. package/dist/functions/software/buildPathExecutables.js.map +0 -1
  241. package/dist/functions/software/buildSoftwarePaths.d.ts +0 -2
  242. package/dist/functions/software/buildSoftwarePaths.js +0 -22
  243. package/dist/functions/software/buildSoftwarePaths.js.map +0 -1
  244. package/dist/functions/software/createConfigGenerator.d.ts +0 -8
  245. package/dist/functions/software/createConfigGenerator.js +0 -13
  246. package/dist/functions/software/createConfigGenerator.js.map +0 -1
  247. package/dist/functions/software/detectPlatform.d.ts +0 -2
  248. package/dist/functions/software/detectPlatform.js +0 -4
  249. package/dist/functions/software/detectPlatform.js.map +0 -1
  250. package/dist/functions/software/find.d.ts +0 -2
  251. package/dist/functions/software/find.js +0 -12
  252. package/dist/functions/software/find.js.map +0 -1
  253. package/dist/functions/software/findSoftwareWithGenerator.d.ts +0 -3
  254. package/dist/functions/software/findSoftwareWithGenerator.js +0 -8
  255. package/dist/functions/software/findSoftwareWithGenerator.js.map +0 -1
  256. package/dist/functions/software/getConfigGenerator.d.ts +0 -2
  257. package/dist/functions/software/getConfigGenerator.js +0 -10
  258. package/dist/functions/software/getConfigGenerator.js.map +0 -1
  259. package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +0 -1
  260. package/dist/functions/software/getEnvironmentSoftwarePath.js +0 -4
  261. package/dist/functions/software/getEnvironmentSoftwarePath.js.map +0 -1
  262. package/dist/functions/software/getSupportedSoftware.d.ts +0 -1
  263. package/dist/functions/software/getSupportedSoftware.js +0 -5
  264. package/dist/functions/software/getSupportedSoftware.js.map +0 -1
  265. package/dist/functions/software/parseEnvironmentPaths.d.ts +0 -1
  266. package/dist/functions/software/parseEnvironmentPaths.js +0 -7
  267. package/dist/functions/software/parseEnvironmentPaths.js.map +0 -1
  268. package/dist/functions/software/softwareConfigs.d.ts +0 -2
  269. package/dist/functions/software/softwareConfigs.js +0 -148
  270. package/dist/functions/software/softwareConfigs.js.map +0 -1
  271. package/dist/functions/software/softwareNameMap.d.ts +0 -1
  272. package/dist/functions/software/softwareNameMap.js +0 -9
  273. package/dist/functions/software/softwareNameMap.js.map +0 -1
  274. package/dist/functions/software/types.d.ts +0 -11
  275. package/dist/functions/software/types.js +0 -2
  276. package/dist/functions/software/types.js.map +0 -1
  277. package/dist/functions/string/camelCase.d.ts +0 -1
  278. package/dist/functions/string/camelCase.js +0 -8
  279. package/dist/functions/string/camelCase.js.map +0 -1
  280. package/dist/functions/string/capitalize.d.ts +0 -1
  281. package/dist/functions/string/capitalize.js +0 -6
  282. package/dist/functions/string/capitalize.js.map +0 -1
  283. package/dist/functions/string/escape.d.ts +0 -1
  284. package/dist/functions/string/escape.js +0 -13
  285. package/dist/functions/string/escape.js.map +0 -1
  286. package/dist/functions/string/kebabCase.d.ts +0 -1
  287. package/dist/functions/string/kebabCase.js +0 -10
  288. package/dist/functions/string/kebabCase.js.map +0 -1
  289. package/dist/functions/string/levenshtein.d.ts +0 -1
  290. package/dist/functions/string/levenshtein.js +0 -27
  291. package/dist/functions/string/levenshtein.js.map +0 -1
  292. package/dist/functions/string/mask.d.ts +0 -1
  293. package/dist/functions/string/mask.js +0 -40
  294. package/dist/functions/string/mask.js.map +0 -1
  295. package/dist/functions/string/normalize.d.ts +0 -8
  296. package/dist/functions/string/normalize.js +0 -37
  297. package/dist/functions/string/normalize.js.map +0 -1
  298. package/dist/functions/string/padEnd.d.ts +0 -1
  299. package/dist/functions/string/padEnd.js +0 -8
  300. package/dist/functions/string/padEnd.js.map +0 -1
  301. package/dist/functions/string/padStart.d.ts +0 -1
  302. package/dist/functions/string/padStart.js +0 -8
  303. package/dist/functions/string/padStart.js.map +0 -1
  304. package/dist/functions/string/palindrome.d.ts +0 -3
  305. package/dist/functions/string/palindrome.js +0 -15
  306. package/dist/functions/string/palindrome.js.map +0 -1
  307. package/dist/functions/string/pascalCase.d.ts +0 -1
  308. package/dist/functions/string/pascalCase.js +0 -8
  309. package/dist/functions/string/pascalCase.js.map +0 -1
  310. package/dist/functions/string/similarity.d.ts +0 -1
  311. package/dist/functions/string/similarity.js +0 -38
  312. package/dist/functions/string/similarity.js.map +0 -1
  313. package/dist/functions/string/snakeCase.d.ts +0 -1
  314. package/dist/functions/string/snakeCase.js +0 -10
  315. package/dist/functions/string/snakeCase.js.map +0 -1
  316. package/dist/functions/string/template.d.ts +0 -4
  317. package/dist/functions/string/template.js +0 -21
  318. package/dist/functions/string/template.js.map +0 -1
  319. package/dist/functions/string/unescape.d.ts +0 -1
  320. package/dist/functions/string/unescape.js +0 -13
  321. package/dist/functions/string/unescape.js.map +0 -1
  322. package/dist/functions/string/wordCount.d.ts +0 -5
  323. package/dist/functions/string/wordCount.js +0 -11
  324. package/dist/functions/string/wordCount.js.map +0 -1
  325. package/dist/functions/tencent-cloud/getSecret.d.ts +0 -7
  326. package/dist/functions/tencent-cloud/getSecret.js +0 -19
  327. package/dist/functions/tencent-cloud/getSecret.js.map +0 -1
  328. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +0 -13
  329. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +0 -175
  330. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +0 -1
  331. package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +0 -33
  332. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +0 -60
  333. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +0 -1
  334. package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +0 -3
  335. package/dist/functions/uniapp/app-plus/buildAndroidProject.js +0 -60
  336. package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +0 -1
  337. package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +0 -5
  338. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +0 -51
  339. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +0 -1
  340. package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +0 -3
  341. package/dist/functions/uniapp/app-plus/configureAndroidProject.js +0 -63
  342. package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +0 -1
  343. package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +0 -9
  344. package/dist/functions/uniapp/app-plus/configureBuildGradle.js +0 -57
  345. package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +0 -1
  346. package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +0 -5
  347. package/dist/functions/uniapp/app-plus/configureDcloudControl.js +0 -34
  348. package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +0 -1
  349. package/dist/functions/uniapp/app-plus/configureStrings.d.ts +0 -5
  350. package/dist/functions/uniapp/app-plus/configureStrings.js +0 -42
  351. package/dist/functions/uniapp/app-plus/configureStrings.js.map +0 -1
  352. package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +0 -8
  353. package/dist/functions/uniapp/app-plus/copyAppResources.js +0 -25
  354. package/dist/functions/uniapp/app-plus/copyAppResources.js.map +0 -1
  355. package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +0 -2
  356. package/dist/functions/uniapp/app-plus/copyDirectory.js +0 -18
  357. package/dist/functions/uniapp/app-plus/copyDirectory.js.map +0 -1
  358. package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +0 -2
  359. package/dist/functions/uniapp/app-plus/generateUniAppResources.js +0 -35
  360. package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +0 -1
  361. package/dist/functions/uniapp/app-plus/parseManifest.d.ts +0 -14
  362. package/dist/functions/uniapp/app-plus/parseManifest.js.map +0 -1
  363. package/dist/functions/uniapp/app-plus/validateOptions.d.ts +0 -3
  364. package/dist/functions/uniapp/app-plus/validateOptions.js +0 -10
  365. package/dist/functions/uniapp/app-plus/validateOptions.js.map +0 -1
  366. package/dist/functions/uniapp/waitForPages.d.ts +0 -2
  367. package/dist/functions/uniapp/waitForPages.js +0 -19
  368. package/dist/functions/uniapp/waitForPages.js.map +0 -1
  369. package/dist/functions/utils/compose.d.ts +0 -1
  370. package/dist/functions/utils/compose.js +0 -10
  371. package/dist/functions/utils/compose.js.map +0 -1
  372. package/dist/functions/utils/cond.d.ts +0 -1
  373. package/dist/functions/utils/cond.js +0 -15
  374. package/dist/functions/utils/cond.js.map +0 -1
  375. package/dist/functions/utils/curry.d.ts +0 -1
  376. package/dist/functions/utils/curry.js +0 -13
  377. package/dist/functions/utils/curry.js.map +0 -1
  378. package/dist/functions/utils/debounce.d.ts +0 -1
  379. package/dist/functions/utils/debounce.js +0 -13
  380. package/dist/functions/utils/debounce.js.map +0 -1
  381. package/dist/functions/utils/evolve.d.ts +0 -3
  382. package/dist/functions/utils/evolve.js +0 -15
  383. package/dist/functions/utils/evolve.js.map +0 -1
  384. package/dist/functions/utils/flow.d.ts +0 -1
  385. package/dist/functions/utils/flow.js +0 -10
  386. package/dist/functions/utils/flow.js.map +0 -1
  387. package/dist/functions/utils/isType.d.ts +0 -11
  388. package/dist/functions/utils/isType.js +0 -30
  389. package/dist/functions/utils/isType.js.map +0 -1
  390. package/dist/functions/utils/memoize.d.ts +0 -1
  391. package/dist/functions/utils/memoize.js +0 -13
  392. package/dist/functions/utils/memoize.js.map +0 -1
  393. package/dist/functions/utils/once.d.ts +0 -1
  394. package/dist/functions/utils/once.js +0 -13
  395. package/dist/functions/utils/once.js.map +0 -1
  396. package/dist/functions/utils/partial.d.ts +0 -1
  397. package/dist/functions/utils/partial.js +0 -13
  398. package/dist/functions/utils/partial.js.map +0 -1
  399. package/dist/functions/utils/pipe.d.ts +0 -1
  400. package/dist/functions/utils/pipe.js +0 -10
  401. package/dist/functions/utils/pipe.js.map +0 -1
  402. package/dist/functions/utils/retryWithBackoff.d.ts +0 -9
  403. package/dist/functions/utils/retryWithBackoff.js +0 -30
  404. package/dist/functions/utils/retryWithBackoff.js.map +0 -1
  405. package/dist/functions/utils/tap.d.ts +0 -1
  406. package/dist/functions/utils/tap.js +0 -14
  407. package/dist/functions/utils/tap.js.map +0 -1
  408. package/dist/functions/utils/throttle.d.ts +0 -1
  409. package/dist/functions/utils/throttle.js +0 -11
  410. package/dist/functions/utils/throttle.js.map +0 -1
  411. package/dist/functions/utils/until.d.ts +0 -1
  412. package/dist/functions/utils/until.js +0 -10
  413. package/dist/functions/utils/until.js.map +0 -1
  414. package/dist/functions/utils/validate.d.ts +0 -8
  415. package/dist/functions/utils/validate.js +0 -45
  416. package/dist/functions/utils/validate.js.map +0 -1
  417. package/dist/functions/vue/dynamicMount.d.ts +0 -15
  418. package/dist/functions/vue/dynamicMount.js +0 -23
  419. package/dist/functions/vue/dynamicMount.js.map +0 -1
  420. package/dist/functions/vue/isVNode.d.ts +0 -2
  421. package/dist/functions/vue/isVNode.js +0 -4
  422. package/dist/functions/vue/isVNode.js.map +0 -1
  423. package/dist/functions/vue/isVueComponent.d.ts +0 -2
  424. package/dist/functions/vue/isVueComponent.js +0 -6
  425. package/dist/functions/vue/isVueComponent.js.map +0 -1
  426. package/dist/functions/vue/processVueFile.d.ts +0 -20
  427. package/dist/functions/vue/processVueFile.js +0 -98
  428. package/dist/functions/vue/processVueFile.js.map +0 -1
  429. package/dist/functions/wechat/miniapp/downloadFile.d.ts +0 -2
  430. package/dist/functions/wechat/miniapp/downloadFile.js +0 -39
  431. package/dist/functions/wechat/miniapp/downloadFile.js.map +0 -1
  432. package/dist/hooks/useAi.d.ts +0 -27
  433. package/dist/hooks/useAi.js +0 -163
  434. package/dist/hooks/useAi.js.map +0 -1
  435. package/dist/hooks/useCache.d.ts +0 -18
  436. package/dist/hooks/useCache.js +0 -82
  437. package/dist/hooks/useCache.js.map +0 -1
  438. package/dist/hooks/useFetch.d.ts +0 -3
  439. package/dist/hooks/useFetch.js +0 -154
  440. package/dist/hooks/useFetch.js.map +0 -1
  441. package/dist/hooks/usePluginSystem.d.ts +0 -11
  442. package/dist/hooks/usePluginSystem.js +0 -34
  443. package/dist/hooks/usePluginSystem.js.map +0 -1
  444. package/dist/hooks/useRequest.d.ts +0 -3
  445. package/dist/hooks/useRequest.js +0 -139
  446. package/dist/hooks/useRequest.js.map +0 -1
  447. package/dist/hooks/useWASM.d.ts +0 -4
  448. package/dist/hooks/useWASM.js +0 -267
  449. package/dist/hooks/useWASM.js.map +0 -1
  450. package/references/browser.extension.d.ts +0 -14
  451. package/types/network.d.ts +0 -184
  452. package/types/util.d.ts +0 -27
  453. package/types/wasm.d.ts +0 -217
@@ -1,269 +1,124 @@
1
- /**
2
- * Fetch API 类型定义
3
- * 包含浏览器和 Node.js 环境都支持的 Fetch 相关 API
4
- */
5
-
6
- /**
7
- * 请求凭据类型
8
- */
9
- type RequestCredentials = 'omit' | 'same-origin' | 'include'
10
-
11
- /**
12
- * 请求缓存类型
13
- */
14
- type RequestCache = 'default' | 'no-store' | 'reload' | 'no-cache' | 'force-cache' | 'only-if-cached'
15
-
16
- /**
17
- * 请求重定向类型
18
- */
19
- type RequestRedirect = 'follow' | 'error' | 'manual'
20
-
21
- /**
22
- * 引用策略类型
23
- */
24
- type ReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'
25
-
26
- /**
27
- * 请求模式类型
28
- */
29
- type RequestMode = 'cors' | 'no-cors' | 'same-origin' | 'navigate'
30
-
31
- /**
32
- * 请求体类型
33
- */
34
- type BodyInit = Blob | BufferSource | FormData | URLSearchParams | string
35
-
36
- /**
37
- * Headers 接口
38
- */
39
- export interface Headers {
40
- append(name: string, value: string): void
41
- delete(name: string): void
42
- get(name: string): string | null
43
- has(name: string): boolean
44
- set(name: string, value: string): void
45
- forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void
46
- [Symbol.iterator](): IterableIterator<[string, string]>
47
- entries(): IterableIterator<[string, string]>
48
- keys(): IterableIterator<string>
49
- values(): IterableIterator<string>
50
- }
51
-
52
- /**
53
- * Headers 构造函数
54
- */
55
- export declare const Headers: {
56
- new (init?: HeadersInit): Headers
57
- }
58
-
59
- /**
60
- * Headers 初始化类型
61
- */
62
- type HeadersInit = string[][] | Record<string, string> | Headers
63
-
64
- /**
65
- * 中止信号接口
66
- */
67
- export interface AbortSignal {
68
- /** 是否已中止 */
69
- aborted: boolean
70
-
71
- /** 中止原因 */
72
- reason?: any
73
-
74
- /**
75
- * 添加事件监听器
76
- * @param type 事件类型
77
- * @param listener 监听器函数
78
- */
79
- addEventListener(type: 'abort', listener: () => void): void
80
-
81
- /**
82
- * 移除事件监听器
83
- * @param type 事件类型
84
- * @param listener 监听器函数
85
- */
86
- removeEventListener(type: 'abort', listener: () => void): void
87
-
88
- /**
89
- * 抛出中止异常(如果已中止)
90
- */
91
- throwIfAborted(): void
92
- }
93
-
94
- /**
95
- * 中止控制器接口
96
- */
97
- export interface AbortController {
98
- /** 中止信号 */
99
- signal: AbortSignal
100
-
101
- /**
102
- * 中止操作
103
- * @param reason 中止原因
104
- */
105
- abort(reason?: any): void
106
- }
107
-
108
- /**
109
- * 中止控制器构造函数
110
- */
111
- export declare const AbortController: {
112
- new (): AbortController
113
- }
114
-
115
- /**
116
- * 请求初始化选项
117
- */
118
- export interface RequestInit {
119
- /** HTTP 方法 */
120
- method?: string
121
-
122
- /** 请求头 */
123
- headers?: HeadersInit
124
-
125
- /** 请求体 */
126
- body?: BodyInit | null
127
-
128
- /** 中止信号 */
129
- signal?: AbortSignal
130
-
131
- /** 凭据模式 */
132
- credentials?: RequestCredentials
133
-
134
- /** 缓存模式 */
135
- cache?: RequestCache
136
-
137
- /** 重定向模式 */
138
- redirect?: RequestRedirect
139
-
140
- /** 引用页面 */
141
- referrer?: string
142
-
143
- /** 引用策略 */
144
- referrerPolicy?: ReferrerPolicy
145
-
146
- /** 完整性校验 */
147
- integrity?: string
148
-
149
- /** 保持连接 */
150
- keepalive?: boolean
151
-
152
- /** 请求模式 */
153
- mode?: RequestMode
154
- }
155
-
156
- /**
157
- * Request 接口
158
- */
159
- export interface Request {
160
- readonly url: string
161
- readonly method: string
162
- readonly headers: Headers
163
- readonly body: ReadableStream<Uint8Array> | null
164
- readonly bodyUsed: boolean
165
- readonly cache: RequestCache
166
- readonly credentials: RequestCredentials
167
- readonly destination: string
168
- readonly integrity: string
169
- readonly keepalive: boolean
170
- readonly mode: RequestMode
171
- readonly redirect: RequestRedirect
172
- readonly referrer: string
173
- readonly referrerPolicy: ReferrerPolicy
174
- readonly signal: AbortSignal
175
-
176
- clone(): Request
177
- arrayBuffer(): Promise<ArrayBuffer>
178
- blob(): Promise<Blob>
179
- formData(): Promise<FormData>
180
- json(): Promise<any>
181
- text(): Promise<string>
182
- }
183
-
184
- /**
185
- * Request 构造函数
186
- */
187
- export declare const Request: {
188
- new (input: RequestInfo, init?: RequestInit): Request
189
- }
190
-
191
- /**
192
- * RequestInfo 类型
193
- */
194
- type RequestInfo = Request | string
195
-
196
- /**
197
- * Response 接口
198
- */
199
- export interface Response {
200
- readonly ok: boolean
201
- readonly status: number
202
- readonly statusText: string
203
- readonly headers: Headers
204
- readonly body: ReadableStream<Uint8Array> | null
205
- readonly bodyUsed: boolean
206
- readonly redirected: boolean
207
- readonly type: ResponseType
208
- readonly url: string
209
-
210
- clone(): Response
211
- arrayBuffer(): Promise<ArrayBuffer>
212
- blob(): Promise<Blob>
213
- formData(): Promise<FormData>
214
- json(): Promise<any>
215
- text(): Promise<string>
216
- }
217
-
218
- /**
219
- * Response 构造函数
220
- */
221
- export declare const Response: {
222
- new (body?: BodyInit | null, init?: ResponseInit): Response
223
- error(): Response
224
- redirect(url: string, status?: number): Response
225
- }
226
-
227
- /**
228
- * Response 初始化选项
229
- */
230
- export interface ResponseInit {
231
- status?: number
232
- statusText?: string
233
- headers?: HeadersInit
234
- }
235
-
236
- /**
237
- * Response 类型
238
- */
239
- type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
240
-
241
- /**
242
- * Fetch 函数
243
- */
244
- export declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>
245
-
246
- /**
247
- * Fetch 环境类型定义
248
- */
249
- export interface FetchEnvironment {
250
- fetch: typeof fetch
251
- Request: typeof Request
252
- Response: typeof Response
253
- Headers: typeof Headers
254
- AbortController: typeof AbortController
255
- }
256
-
257
- // 导出 Fetch 相关 API
258
- // 导出类型别名
259
- export type {
260
- RequestCredentials,
261
- RequestCache,
262
- RequestRedirect,
263
- ReferrerPolicy,
264
- RequestMode,
265
- BodyInit,
266
- HeadersInit,
267
- RequestInfo,
268
- ResponseType
269
- }
1
+ import type { BufferSource } from './arraybuffer.d'
2
+
3
+ type RequestCredentials = 'omit' | 'same-origin' | 'include'
4
+ type RequestCache = 'default' | 'no-store' | 'reload' | 'no-cache' | 'force-cache' | 'only-if-cached'
5
+ type RequestRedirect = 'follow' | 'error' | 'manual'
6
+ type ReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'
7
+ type RequestMode = 'cors' | 'no-cors' | 'same-origin' | 'navigate'
8
+ type BodyInit = Blob | BufferSource | FormData | URLSearchParams | string
9
+ type HeadersInit = string[][] | Record<string, string> | Headers
10
+ type RequestInfo = Request | string
11
+ type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
12
+
13
+ export interface Headers {
14
+ append(name: string, value: string): void
15
+ delete(name: string): void
16
+ get(name: string): string | null
17
+ has(name: string): boolean
18
+ set(name: string, value: string): void
19
+ forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void
20
+ [Symbol.iterator](): IterableIterator<[string, string]>
21
+ entries(): IterableIterator<[string, string]>
22
+ keys(): IterableIterator<string>
23
+ values(): IterableIterator<string>
24
+ }
25
+
26
+ export declare const Headers: {
27
+ new (init?: HeadersInit): Headers
28
+ }
29
+
30
+ export interface AbortSignal {
31
+ aborted: boolean
32
+ reason?: any
33
+ addEventListener(type: 'abort', listener: () => void): void
34
+ removeEventListener(type: 'abort', listener: () => void): void
35
+ throwIfAborted(): void
36
+ }
37
+
38
+ export interface AbortController {
39
+ signal: AbortSignal
40
+ abort(reason?: any): void
41
+ }
42
+
43
+ export declare const AbortController: {
44
+ new (): AbortController
45
+ }
46
+
47
+ export interface RequestInit {
48
+ method?: string
49
+ headers?: HeadersInit
50
+ body?: BodyInit | null
51
+ signal?: AbortSignal
52
+ credentials?: RequestCredentials
53
+ cache?: RequestCache
54
+ redirect?: RequestRedirect
55
+ referrer?: string
56
+ referrerPolicy?: ReferrerPolicy
57
+ integrity?: string
58
+ keepalive?: boolean
59
+ mode?: RequestMode
60
+ }
61
+
62
+ export interface Request {
63
+ readonly url: string
64
+ readonly method: string
65
+ readonly headers: Headers
66
+ readonly body: ReadableStream<Uint8Array> | null
67
+ readonly bodyUsed: boolean
68
+ readonly cache: RequestCache
69
+ readonly credentials: RequestCredentials
70
+ readonly destination: string
71
+ readonly integrity: string
72
+ readonly keepalive: boolean
73
+ readonly mode: RequestMode
74
+ readonly redirect: RequestRedirect
75
+ readonly referrer: string
76
+ readonly referrerPolicy: ReferrerPolicy
77
+ readonly signal: AbortSignal
78
+
79
+ clone(): Request
80
+ arrayBuffer(): Promise<ArrayBuffer>
81
+ blob(): Promise<Blob>
82
+ formData(): Promise<FormData>
83
+ json(): Promise<any>
84
+ text(): Promise<string>
85
+ }
86
+
87
+ export declare const Request: {
88
+ new (input: RequestInfo, init?: RequestInit): Request
89
+ }
90
+
91
+ export interface Response {
92
+ readonly ok: boolean
93
+ readonly status: number
94
+ readonly statusText: string
95
+ readonly headers: Headers
96
+ readonly body: ReadableStream<Uint8Array> | null
97
+ readonly bodyUsed: boolean
98
+ readonly redirected: boolean
99
+ readonly type: ResponseType
100
+ readonly url: string
101
+
102
+ clone(): Response
103
+ arrayBuffer(): Promise<ArrayBuffer>
104
+ blob(): Promise<Blob>
105
+ formData(): Promise<FormData>
106
+ json(): Promise<any>
107
+ text(): Promise<string>
108
+ }
109
+
110
+ export declare const Response: {
111
+ new (body?: BodyInit | null, init?: ResponseInit): Response
112
+ error(): Response
113
+ redirect(url: string, status?: number): Response
114
+ }
115
+
116
+ export interface ResponseInit {
117
+ status?: number
118
+ statusText?: string
119
+ headers?: HeadersInit
120
+ }
121
+
122
+ export declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
123
+
124
+ export type FetchFunction = typeof fetch
@@ -0,0 +1,49 @@
1
+ // IndexedDB 相关类型声明
2
+
3
+ export interface IDBFactory {
4
+ open(name: string, version?: number): IDBOpenDBRequest
5
+ }
6
+
7
+ export interface IDBOpenDBRequest {
8
+ result: IDBDatabase
9
+ error: DOMException | null
10
+ onsuccess: ((event: Event) => void) | null
11
+ onerror: ((event: Event) => void) | null
12
+ onupgradeneeded: ((event: IDBVersionChangeEvent) => void) | null
13
+ }
14
+
15
+ export interface IDBDatabase {
16
+ objectStoreNames: DOMStringList
17
+ createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore
18
+ transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction
19
+ }
20
+
21
+ export interface IDBObjectStore {
22
+ get(key: IDBValidKey): IDBRequest
23
+ put(value: any, key?: IDBValidKey): IDBRequest
24
+ delete(key: IDBValidKey): IDBRequest
25
+ clear(): IDBRequest
26
+ }
27
+
28
+ export interface IDBTransaction {
29
+ objectStore(name: string): IDBObjectStore
30
+ }
31
+
32
+ export interface IDBRequest {
33
+ result: any
34
+ error: DOMException | null
35
+ onsuccess: ((event: Event) => void) | null
36
+ onerror: ((event: Event) => void) | null
37
+ }
38
+
39
+ export interface IDBVersionChangeEvent {
40
+ target: IDBOpenDBRequest
41
+ }
42
+
43
+ export type IDBValidKey = string | number | Date | ArrayBuffer | IDBValidKey[]
44
+ export type IDBTransactionMode = 'readonly' | 'readwrite' | 'versionchange'
45
+
46
+ export interface IDBObjectStoreParameters {
47
+ keyPath?: string | string[]
48
+ autoIncrement?: boolean
49
+ }
@@ -1,28 +1,21 @@
1
- /**
2
- * JSON5 解析器类型定义
3
- * JSON5 是 JSON 的扩展,支持注释、尾随逗号等特性
4
- */
5
- export interface JSON5Parser {
6
- /**
7
- * 解析 JSON5 字符串
8
- * @param text 要解析的 JSON5 字符串
9
- * @returns 解析后的对象
10
- */
11
- parse(text: string): any
12
-
13
- /**
14
- * 将对象序列化为 JSON5 字符串
15
- * @param value 要序列化的值
16
- * @param replacer 替换函数或属性数组
17
- * @param space 缩进空格数
18
- * @returns JSON5 字符串
19
- */
20
- stringify(value: any, replacer?: any, space?: string | number): string
21
- }
22
-
23
- /**
24
- * JSON5 环境类型定义
25
- */
26
- export interface JSON5Environment {
27
- JSON5: JSON5Parser
28
- }
1
+ /**
2
+ * JSON5 解析器类型定义
3
+ * JSON5 是 JSON 的扩展,支持注释、尾随逗号等特性
4
+ */
5
+ export interface JSON5Parser {
6
+ /**
7
+ * 解析 JSON5 字符串
8
+ * @param text 要解析的 JSON5 字符串
9
+ * @returns 解析后的对象
10
+ */
11
+ parse(text: string): any
12
+
13
+ /**
14
+ * 将对象序列化为 JSON5 字符串
15
+ * @param value 要序列化的值
16
+ * @param replacer 替换函数或属性数组
17
+ * @param space 缩进空格数
18
+ * @returns JSON5 字符串
19
+ */
20
+ stringify(value: any, replacer?: any, space?: string | number): string
21
+ }
@@ -0,0 +1,16 @@
1
+ // 位置信息相关类型声明
2
+
3
+ export interface Location {
4
+ search: string
5
+ href: string
6
+ origin: string
7
+ pathname: string
8
+ hash: string
9
+ protocol: string
10
+ host: string
11
+ hostname: string
12
+ port: string
13
+ assign(url: string): void
14
+ reload(forcedReload?: boolean): void
15
+ replace(url: string): void
16
+ }