zcw-shared 1.5.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.
- package/README.md +512 -782
- package/assets/logo-colorful.svg +18 -18
- package/assets/logo-name.svg +7 -7
- package/assets/logo-transparent.svg +14 -14
- package/assets/logo.svg +8 -8
- package/dist/constants/colorPatterns.d.ts +8 -2
- package/dist/constants/colorPatterns.js.map +1 -1
- package/dist/constants/namedColors.d.ts +16 -2
- package/dist/constants/namedColors.js.map +1 -1
- package/dist/functions/android/buildProject.d.ts +11 -0
- package/dist/functions/android/buildProject.js +97 -0
- package/dist/functions/android/buildProject.js.map +1 -0
- package/dist/functions/android/modifyGradle.d.ts +17 -0
- package/dist/functions/android/modifyGradle.js +69 -0
- package/dist/functions/android/modifyGradle.js.map +1 -0
- package/dist/functions/android/modifyManifest.d.ts +23 -0
- package/dist/functions/android/modifyManifest.js +198 -0
- package/dist/functions/android/modifyManifest.js.map +1 -0
- package/dist/functions/android/permission.d.ts +30 -0
- package/dist/functions/android/permission.js +65 -0
- package/dist/functions/android/permission.js.map +1 -0
- package/dist/functions/color/colorValidation.d.ts +11 -0
- package/dist/functions/color/colorValidation.js +35 -0
- package/dist/functions/color/colorValidation.js.map +1 -0
- package/dist/functions/color/convertColor.d.ts +0 -1
- package/dist/functions/color/convertColor.js +135 -166
- package/dist/functions/color/convertColor.js.map +1 -1
- package/dist/functions/color/deduplicateColors.js +23 -38
- package/dist/functions/color/deduplicateColors.js.map +1 -1
- package/dist/functions/color/detectColorFormat.d.ts +8 -2
- package/dist/functions/color/detectColorFormat.js +49 -51
- package/dist/functions/color/detectColorFormat.js.map +1 -1
- package/dist/functions/color/extractColors.js +48 -18
- package/dist/functions/color/extractColors.js.map +1 -1
- package/dist/functions/css/extractCssVariables.d.ts +1 -1
- package/dist/functions/css/extractCssVariables.js +1 -1
- package/dist/functions/css/extractCssVariables.js.map +1 -1
- package/dist/functions/debug/createDebugger.d.ts +8 -7
- package/dist/functions/debug/createDebugger.js +49 -39
- package/dist/functions/debug/createDebugger.js.map +1 -1
- package/dist/functions/dom/detectOverflow.d.ts +3 -3
- package/dist/functions/dom/detectOverflow.js +3 -3
- package/dist/functions/dom/detectOverflow.js.map +1 -1
- package/dist/functions/dom/getElementRect.d.ts +1 -1
- package/dist/functions/dom/getElementRect.js.map +1 -1
- package/dist/functions/dom/getRelativePosition.d.ts +1 -1
- package/dist/functions/dom/getRelativePosition.js.map +1 -1
- package/dist/functions/dom/getViewportRect.d.ts +2 -2
- package/dist/functions/dom/getViewportRect.js +2 -2
- package/dist/functions/dom/getViewportRect.js.map +1 -1
- package/dist/functions/image/generateMacIcons.d.ts +3 -3
- package/dist/functions/image/generateMacIcons.js.map +1 -1
- package/dist/functions/image/generateMacTrayIcon.d.ts +3 -3
- package/dist/functions/image/generateMacTrayIcon.js.map +1 -1
- package/dist/functions/image/generatePaddedImage.d.ts +2 -2
- package/dist/functions/image/generatePaddedImage.js.map +1 -1
- package/dist/functions/image/generatePwaIcons.d.ts +3 -3
- package/dist/functions/image/generatePwaIcons.js.map +1 -1
- package/dist/functions/image/generateRoundedImage.d.ts +2 -2
- package/dist/functions/image/generateRoundedImage.js.map +1 -1
- package/dist/functions/ipc/dispatchIpcRequest.d.ts +2 -2
- package/dist/functions/ipc/dispatchIpcRequest.js +1 -1
- package/dist/functions/ipc/dispatchIpcRequest.js.map +1 -1
- package/dist/functions/software/findSoftware.d.ts +3 -3
- package/dist/functions/software/findSoftware.js +7 -9
- package/dist/functions/software/findSoftware.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js +97 -24
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
- package/dist/functions/uniapp/build.d.ts +20 -0
- package/dist/functions/uniapp/build.js +84 -0
- package/dist/functions/uniapp/build.js.map +1 -0
- package/dist/functions/uniapp/detectAndroidProjectStructure.d.ts +7 -0
- package/dist/functions/uniapp/detectAndroidProjectStructure.js +30 -0
- package/dist/functions/uniapp/detectAndroidProjectStructure.js.map +1 -0
- package/dist/functions/uniapp/detectProjectType.d.ts +16 -0
- package/dist/functions/uniapp/detectProjectType.js +68 -0
- package/dist/functions/uniapp/detectProjectType.js.map +1 -0
- package/dist/functions/uniapp/parseManifest.d.ts +12 -0
- package/dist/functions/uniapp/{app-plus/parseManifest.js → parseManifest.js} +9 -7
- package/dist/functions/uniapp/parseManifest.js.map +1 -0
- package/dist/functions/utils/generateExports.d.ts +16 -0
- package/dist/functions/utils/generateExports.js +34 -0
- package/dist/functions/utils/generateExports.js.map +1 -0
- package/dist/functions/vue/extractColorsFromVueFile.js +2 -11
- package/dist/functions/vue/extractColorsFromVueFile.js.map +1 -1
- package/dist/functions/vue/extractColorsFromVueSection.js.map +1 -1
- package/dist/functions/xml/modifyXml.d.ts +11 -0
- package/dist/functions/xml/modifyXml.js +46 -0
- package/dist/functions/xml/modifyXml.js.map +1 -0
- package/dist/hooks/useAltool.d.ts +3 -32
- package/dist/hooks/useAltool.js.map +1 -1
- package/dist/hooks/useLocalStorage.d.ts +4 -4
- package/dist/hooks/useLocalStorage.js +51 -18
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useSessionStorage.d.ts +4 -4
- package/dist/hooks/useSessionStorage.js +51 -18
- package/dist/hooks/useSessionStorage.js.map +1 -1
- package/dist/hooks/useStorage.d.ts +10 -3
- package/dist/hooks/useStorage.js +33 -35
- package/dist/hooks/useStorage.js.map +1 -1
- package/dist/hooks/useStorageWithIndexedDB.d.ts +3 -4
- package/dist/hooks/useStorageWithIndexedDB.js +39 -29
- package/dist/hooks/useStorageWithIndexedDB.js.map +1 -1
- package/dist/hooks/useWebWorker.d.ts +25 -4
- package/dist/hooks/useWebWorker.js.map +1 -1
- package/dist/hooks/useWorkerFunction.d.ts +22 -4
- package/dist/hooks/useWorkerFunction.js +28 -28
- package/dist/hooks/useWorkerFunction.js.map +1 -1
- package/dist/hooks/useWorkerPool.d.ts +30 -4
- package/dist/hooks/useWorkerPool.js.map +1 -1
- package/package.json +17 -22
- package/references/arraybuffer.d.ts +109 -0
- package/references/blob.d.ts +37 -0
- package/references/browser.d.ts +69 -174
- package/references/chrome.extension.d.ts +83 -0
- package/references/console.d.ts +25 -164
- package/references/{crypto.d.ts → crypto-js.d.ts} +57 -57
- package/references/dom.d.ts +41 -0
- package/references/encoding.d.ts +24 -0
- package/references/fetch.d.ts +124 -269
- package/references/indexeddb.d.ts +49 -0
- package/references/json5.d.ts +21 -28
- package/references/location.d.ts +16 -0
- package/references/node.d.ts +116 -111
- package/references/sharp.d.ts +18 -18
- package/references/storage.d.ts +17 -111
- package/references/timer.d.ts +45 -46
- package/references/uniapp.d.ts +51 -9
- package/references/url.d.ts +55 -160
- package/references/vue.d.ts +86 -113
- package/references/webassembly.d.ts +101 -127
- package/references/wechat.d.ts +48 -48
- package/references/worker.d.ts +152 -206
- package/references/xml.d.ts +88 -55
- package/types/altool.d.ts +49 -17
- package/types/android-build.d.ts +60 -85
- package/types/color.d.ts +72 -162
- package/types/geometry.d.ts +28 -65
- package/types/platform.d.ts +4 -0
- package/types/software.d.ts +14 -26
- package/types/storage.d.ts +50 -48
- package/types/uniapp-android-build.d.ts +49 -0
- package/types/vue.d.ts +29 -29
- package/types/worker.d.ts +178 -364
- package/dist/constants/softwareConfigs.d.ts +0 -15
- package/dist/constants/softwareConfigs.js +0 -157
- package/dist/constants/softwareConfigs.js.map +0 -1
- package/dist/functions/ag-grid/generateLicense.d.ts +0 -3
- package/dist/functions/ag-grid/generateLicense.js +0 -12
- package/dist/functions/ag-grid/generateLicense.js.map +0 -1
- package/dist/functions/altool/createAltoolClient.d.ts +0 -21
- package/dist/functions/altool/createAltoolClient.js +0 -53
- package/dist/functions/altool/createAltoolClient.js.map +0 -1
- package/dist/functions/altool/getAltoolAuth.d.ts +0 -2
- package/dist/functions/altool/getAltoolAuth.js +0 -8
- package/dist/functions/altool/getAltoolAuth.js.map +0 -1
- package/dist/functions/altool/getAppInfo.d.ts +0 -13
- package/dist/functions/altool/getAppInfo.js +0 -39
- package/dist/functions/altool/getAppInfo.js.map +0 -1
- package/dist/functions/altool/index.d.ts +0 -10
- package/dist/functions/altool/index.js +0 -6
- package/dist/functions/altool/index.js.map +0 -1
- package/dist/functions/altool/isApiKeyAuth.d.ts +0 -2
- package/dist/functions/altool/isApiKeyAuth.js +0 -4
- package/dist/functions/altool/isApiKeyAuth.js.map +0 -1
- package/dist/functions/altool/isCredentialsAuth.d.ts +0 -2
- package/dist/functions/altool/isCredentialsAuth.js +0 -4
- package/dist/functions/altool/isCredentialsAuth.js.map +0 -1
- package/dist/functions/altool/parseAppInfoOutput.d.ts +0 -2
- package/dist/functions/altool/parseAppInfoOutput.js +0 -55
- package/dist/functions/altool/parseAppInfoOutput.js.map +0 -1
- package/dist/functions/altool/parseValidationOutput.d.ts +0 -6
- package/dist/functions/altool/parseValidationOutput.js +0 -21
- package/dist/functions/altool/parseValidationOutput.js.map +0 -1
- package/dist/functions/altool/types.d.ts +0 -26
- package/dist/functions/altool/types.js +0 -7
- package/dist/functions/altool/types.js.map +0 -1
- package/dist/functions/altool/uploadApp.d.ts +0 -6
- package/dist/functions/altool/uploadApp.js +0 -36
- package/dist/functions/altool/uploadApp.js.map +0 -1
- package/dist/functions/altool/validateApp.d.ts +0 -17
- package/dist/functions/altool/validateApp.js +0 -40
- package/dist/functions/altool/validateApp.js.map +0 -1
- package/dist/functions/base64/strToBase64.d.ts +0 -2
- package/dist/functions/base64/strToBase64.js +0 -6
- package/dist/functions/base64/strToBase64.js.map +0 -1
- package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +0 -2
- package/dist/functions/color-converter/COLOR_PATTERNS.js +0 -9
- package/dist/functions/color-converter/COLOR_PATTERNS.js.map +0 -1
- package/dist/functions/color-converter/colorPatterns.d.ts +0 -4
- package/dist/functions/color-converter/colorPatterns.js +0 -41
- package/dist/functions/color-converter/colorPatterns.js.map +0 -1
- package/dist/functions/color-converter/convertColor.d.ts +0 -6
- package/dist/functions/color-converter/convertColor.js +0 -12
- package/dist/functions/color-converter/convertColor.js.map +0 -1
- package/dist/functions/color-converter/createColorReference.d.ts +0 -2
- package/dist/functions/color-converter/createColorReference.js +0 -12
- package/dist/functions/color-converter/createColorReference.js.map +0 -1
- package/dist/functions/color-converter/detectColorFormat.d.ts +0 -2
- package/dist/functions/color-converter/detectColorFormat.js +0 -19
- package/dist/functions/color-converter/detectColorFormat.js.map +0 -1
- package/dist/functions/color-converter/extractColors.d.ts +0 -3
- package/dist/functions/color-converter/extractColors.js +0 -16
- package/dist/functions/color-converter/extractColors.js.map +0 -1
- package/dist/functions/color-converter/extractColorsFromLine.d.ts +0 -2
- package/dist/functions/color-converter/extractColorsFromLine.js +0 -18
- package/dist/functions/color-converter/extractColorsFromLine.js.map +0 -1
- package/dist/functions/color-converter/extractColorsGeneric.d.ts +0 -2
- package/dist/functions/color-converter/extractColorsGeneric.js +0 -12
- package/dist/functions/color-converter/extractColorsGeneric.js.map +0 -1
- package/dist/functions/color-converter/extractCssVariableReferences.d.ts +0 -2
- package/dist/functions/color-converter/extractCssVariableReferences.js +0 -15
- package/dist/functions/color-converter/extractCssVariableReferences.js.map +0 -1
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +0 -2
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +0 -15
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +0 -1
- package/dist/functions/color-converter/formatColorOutput.d.ts +0 -5
- package/dist/functions/color-converter/formatColorOutput.js +0 -48
- package/dist/functions/color-converter/formatColorOutput.js.map +0 -1
- package/dist/functions/color-converter/getColorPatterns.d.ts +0 -2
- package/dist/functions/color-converter/getColorPatterns.js +0 -11
- package/dist/functions/color-converter/getColorPatterns.js.map +0 -1
- package/dist/functions/color-converter/getNamedColorMap.d.ts +0 -2
- package/dist/functions/color-converter/getNamedColorMap.js +0 -19
- package/dist/functions/color-converter/getNamedColorMap.js.map +0 -1
- package/dist/functions/color-converter/hexToRgb.d.ts +0 -2
- package/dist/functions/color-converter/hexToRgb.js +0 -42
- package/dist/functions/color-converter/hexToRgb.js.map +0 -1
- package/dist/functions/color-converter/hslToRgb.d.ts +0 -2
- package/dist/functions/color-converter/hslToRgb.js +0 -78
- package/dist/functions/color-converter/hslToRgb.js.map +0 -1
- package/dist/functions/color-converter/hslToRgbInternal.d.ts +0 -2
- package/dist/functions/color-converter/hslToRgbInternal.js +0 -24
- package/dist/functions/color-converter/hslToRgbInternal.js.map +0 -1
- package/dist/functions/color-converter/hueToRgb.d.ts +0 -1
- package/dist/functions/color-converter/hueToRgb.js +0 -14
- package/dist/functions/color-converter/hueToRgb.js.map +0 -1
- package/dist/functions/color-converter/isColorValue.d.ts +0 -2
- package/dist/functions/color-converter/isColorValue.js +0 -79
- package/dist/functions/color-converter/isColorValue.js.map +0 -1
- package/dist/functions/color-converter/isValidColorValue.d.ts +0 -1
- package/dist/functions/color-converter/isValidColorValue.js +0 -4
- package/dist/functions/color-converter/isValidColorValue.js.map +0 -1
- package/dist/functions/color-converter/isValidHslColor.d.ts +0 -2
- package/dist/functions/color-converter/isValidHslColor.js +0 -14
- package/dist/functions/color-converter/isValidHslColor.js.map +0 -1
- package/dist/functions/color-converter/isValidRgbColor.d.ts +0 -2
- package/dist/functions/color-converter/isValidRgbColor.js +0 -14
- package/dist/functions/color-converter/isValidRgbColor.js.map +0 -1
- package/dist/functions/color-converter/normalizeColor.d.ts +0 -1
- package/dist/functions/color-converter/normalizeColor.js +0 -49
- package/dist/functions/color-converter/normalizeColor.js.map +0 -1
- package/dist/functions/color-converter/normalizeColorInput.d.ts +0 -6
- package/dist/functions/color-converter/normalizeColorInput.js +0 -94
- package/dist/functions/color-converter/normalizeColorInput.js.map +0 -1
- package/dist/functions/color-converter/parseColorString.d.ts +0 -12
- package/dist/functions/color-converter/parseColorString.js +0 -89
- package/dist/functions/color-converter/parseColorString.js.map +0 -1
- package/dist/functions/color-converter/parseCssVariables.d.ts +0 -2
- package/dist/functions/color-converter/parseCssVariables.js +0 -19
- package/dist/functions/color-converter/parseCssVariables.js.map +0 -1
- package/dist/functions/color-converter/parseHexColor.d.ts +0 -6
- package/dist/functions/color-converter/parseHexColor.js +0 -42
- package/dist/functions/color-converter/parseHexColor.js.map +0 -1
- package/dist/functions/color-converter/rgbToHex.d.ts +0 -2
- package/dist/functions/color-converter/rgbToHex.js +0 -65
- package/dist/functions/color-converter/rgbToHex.js.map +0 -1
- package/dist/functions/color-converter/rgbToHslInternal.d.ts +0 -2
- package/dist/functions/color-converter/rgbToHslInternal.js +0 -31
- package/dist/functions/color-converter/rgbToHslInternal.js.map +0 -1
- package/dist/functions/color-converter/standardizeColor.d.ts +0 -1
- package/dist/functions/color-converter/standardizeColor.js +0 -147
- package/dist/functions/color-converter/standardizeColor.js.map +0 -1
- package/dist/functions/desensitize/desensitizeName.d.ts +0 -1
- package/dist/functions/desensitize/desensitizeName.js +0 -8
- package/dist/functions/desensitize/desensitizeName.js.map +0 -1
- package/dist/functions/desensitize/desensitizePhone.d.ts +0 -1
- package/dist/functions/desensitize/desensitizePhone.js +0 -8
- package/dist/functions/desensitize/desensitizePhone.js.map +0 -1
- package/dist/functions/dom/getViewportSize.d.ts +0 -5
- package/dist/functions/dom/getViewportSize.js +0 -7
- package/dist/functions/dom/getViewportSize.js.map +0 -1
- package/dist/functions/software/buildPathExecutables.d.ts +0 -1
- package/dist/functions/software/buildPathExecutables.js +0 -14
- package/dist/functions/software/buildPathExecutables.js.map +0 -1
- package/dist/functions/software/buildSoftwarePaths.d.ts +0 -2
- package/dist/functions/software/buildSoftwarePaths.js +0 -22
- package/dist/functions/software/buildSoftwarePaths.js.map +0 -1
- package/dist/functions/software/createConfigGenerator.d.ts +0 -8
- package/dist/functions/software/createConfigGenerator.js +0 -13
- package/dist/functions/software/createConfigGenerator.js.map +0 -1
- package/dist/functions/software/detectPlatform.d.ts +0 -2
- package/dist/functions/software/detectPlatform.js +0 -9
- package/dist/functions/software/detectPlatform.js.map +0 -1
- package/dist/functions/software/find.d.ts +0 -2
- package/dist/functions/software/find.js +0 -12
- package/dist/functions/software/find.js.map +0 -1
- package/dist/functions/software/findSoftwareWithGenerator.d.ts +0 -3
- package/dist/functions/software/findSoftwareWithGenerator.js +0 -8
- package/dist/functions/software/findSoftwareWithGenerator.js.map +0 -1
- package/dist/functions/software/getConfigGenerator.d.ts +0 -2
- package/dist/functions/software/getConfigGenerator.js +0 -10
- package/dist/functions/software/getConfigGenerator.js.map +0 -1
- package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +0 -1
- package/dist/functions/software/getEnvironmentSoftwarePath.js +0 -8
- package/dist/functions/software/getEnvironmentSoftwarePath.js.map +0 -1
- package/dist/functions/software/getSupportedSoftware.d.ts +0 -1
- package/dist/functions/software/getSupportedSoftware.js +0 -5
- package/dist/functions/software/getSupportedSoftware.js.map +0 -1
- package/dist/functions/software/parseEnvironmentPaths.d.ts +0 -1
- package/dist/functions/software/parseEnvironmentPaths.js +0 -11
- package/dist/functions/software/parseEnvironmentPaths.js.map +0 -1
- package/dist/functions/software/softwareConfigs.d.ts +0 -2
- package/dist/functions/software/softwareConfigs.js +0 -148
- package/dist/functions/software/softwareConfigs.js.map +0 -1
- package/dist/functions/software/softwareNameMap.d.ts +0 -1
- package/dist/functions/software/softwareNameMap.js +0 -9
- package/dist/functions/software/softwareNameMap.js.map +0 -1
- package/dist/functions/software/types.d.ts +0 -11
- package/dist/functions/software/types.js +0 -2
- package/dist/functions/software/types.js.map +0 -1
- package/dist/functions/string/base64.d.ts +0 -2
- package/dist/functions/string/base64.js +0 -6
- package/dist/functions/string/base64.js.map +0 -1
- package/dist/functions/string/camelCase.d.ts +0 -1
- package/dist/functions/string/camelCase.js +0 -8
- package/dist/functions/string/camelCase.js.map +0 -1
- package/dist/functions/string/capitalize.d.ts +0 -1
- package/dist/functions/string/capitalize.js +0 -6
- package/dist/functions/string/capitalize.js.map +0 -1
- package/dist/functions/string/caseConverter.d.ts +0 -20
- package/dist/functions/string/caseConverter.js +0 -101
- package/dist/functions/string/caseConverter.js.map +0 -1
- package/dist/functions/string/desensitize.d.ts +0 -13
- package/dist/functions/string/desensitize.js +0 -107
- package/dist/functions/string/desensitize.js.map +0 -1
- package/dist/functions/string/escape.d.ts +0 -1
- package/dist/functions/string/escape.js +0 -13
- package/dist/functions/string/escape.js.map +0 -1
- package/dist/functions/string/htmlEscape.d.ts +0 -17
- package/dist/functions/string/htmlEscape.js +0 -68
- package/dist/functions/string/htmlEscape.js.map +0 -1
- package/dist/functions/string/kebabCase.d.ts +0 -1
- package/dist/functions/string/kebabCase.js +0 -10
- package/dist/functions/string/kebabCase.js.map +0 -1
- package/dist/functions/string/levenshtein.d.ts +0 -1
- package/dist/functions/string/levenshtein.js +0 -27
- package/dist/functions/string/levenshtein.js.map +0 -1
- package/dist/functions/string/mask.d.ts +0 -1
- package/dist/functions/string/mask.js +0 -40
- package/dist/functions/string/mask.js.map +0 -1
- package/dist/functions/string/normalize.d.ts +0 -8
- package/dist/functions/string/normalize.js +0 -37
- package/dist/functions/string/normalize.js.map +0 -1
- package/dist/functions/string/pad.d.ts +0 -14
- package/dist/functions/string/pad.js +0 -53
- package/dist/functions/string/pad.js.map +0 -1
- package/dist/functions/string/padEnd.d.ts +0 -1
- package/dist/functions/string/padEnd.js +0 -8
- package/dist/functions/string/padEnd.js.map +0 -1
- package/dist/functions/string/padStart.d.ts +0 -1
- package/dist/functions/string/padStart.js +0 -8
- package/dist/functions/string/padStart.js.map +0 -1
- package/dist/functions/string/palindrome.d.ts +0 -3
- package/dist/functions/string/palindrome.js +0 -15
- package/dist/functions/string/palindrome.js.map +0 -1
- package/dist/functions/string/pascalCase.d.ts +0 -1
- package/dist/functions/string/pascalCase.js +0 -8
- package/dist/functions/string/pascalCase.js.map +0 -1
- package/dist/functions/string/similarity.d.ts +0 -1
- package/dist/functions/string/similarity.js +0 -13
- package/dist/functions/string/similarity.js.map +0 -1
- package/dist/functions/string/snakeCase.d.ts +0 -1
- package/dist/functions/string/snakeCase.js +0 -10
- package/dist/functions/string/snakeCase.js.map +0 -1
- package/dist/functions/string/template.d.ts +0 -4
- package/dist/functions/string/template.js +0 -21
- package/dist/functions/string/template.js.map +0 -1
- package/dist/functions/string/unescape.d.ts +0 -1
- package/dist/functions/string/unescape.js +0 -13
- package/dist/functions/string/unescape.js.map +0 -1
- package/dist/functions/string/wordCount.d.ts +0 -5
- package/dist/functions/string/wordCount.js +0 -11
- package/dist/functions/string/wordCount.js.map +0 -1
- package/dist/functions/tencent-cloud/getSecret.d.ts +0 -6
- package/dist/functions/tencent-cloud/getSecret.js +0 -18
- package/dist/functions/tencent-cloud/getSecret.js.map +0 -1
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +0 -13
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +0 -175
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +0 -1
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +0 -19
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +0 -55
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +0 -1
- package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js +0 -60
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +0 -5
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +0 -51
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js +0 -63
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +0 -9
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js +0 -57
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +0 -5
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js +0 -34
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureStrings.d.ts +0 -5
- package/dist/functions/uniapp/app-plus/configureStrings.js +0 -42
- package/dist/functions/uniapp/app-plus/configureStrings.js.map +0 -1
- package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +0 -8
- package/dist/functions/uniapp/app-plus/copyAppResources.js +0 -25
- package/dist/functions/uniapp/app-plus/copyAppResources.js.map +0 -1
- package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +0 -2
- package/dist/functions/uniapp/app-plus/copyDirectory.js +0 -18
- package/dist/functions/uniapp/app-plus/copyDirectory.js.map +0 -1
- package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +0 -2
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js +0 -35
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +0 -1
- package/dist/functions/uniapp/app-plus/parseManifest.d.ts +0 -14
- package/dist/functions/uniapp/app-plus/parseManifest.js.map +0 -1
- package/dist/functions/uniapp/app-plus/validateOptions.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/validateOptions.js +0 -10
- package/dist/functions/uniapp/app-plus/validateOptions.js.map +0 -1
- package/dist/functions/uniapp/waitForPages.d.ts +0 -2
- package/dist/functions/uniapp/waitForPages.js +0 -20
- package/dist/functions/uniapp/waitForPages.js.map +0 -1
- package/dist/functions/utils/compose.d.ts +0 -1
- package/dist/functions/utils/compose.js +0 -10
- package/dist/functions/utils/compose.js.map +0 -1
- package/dist/functions/utils/cond.d.ts +0 -1
- package/dist/functions/utils/cond.js +0 -15
- package/dist/functions/utils/cond.js.map +0 -1
- package/dist/functions/utils/curry.d.ts +0 -1
- package/dist/functions/utils/curry.js +0 -13
- package/dist/functions/utils/curry.js.map +0 -1
- package/dist/functions/utils/debounce.d.ts +0 -1
- package/dist/functions/utils/debounce.js +0 -13
- package/dist/functions/utils/debounce.js.map +0 -1
- package/dist/functions/utils/evolve.d.ts +0 -3
- package/dist/functions/utils/evolve.js +0 -15
- package/dist/functions/utils/evolve.js.map +0 -1
- package/dist/functions/utils/flow.d.ts +0 -1
- package/dist/functions/utils/flow.js +0 -14
- package/dist/functions/utils/flow.js.map +0 -1
- package/dist/functions/utils/isType.d.ts +0 -11
- package/dist/functions/utils/isType.js +0 -30
- package/dist/functions/utils/isType.js.map +0 -1
- package/dist/functions/utils/memoize.d.ts +0 -1
- package/dist/functions/utils/memoize.js +0 -13
- package/dist/functions/utils/memoize.js.map +0 -1
- package/dist/functions/utils/once.d.ts +0 -1
- package/dist/functions/utils/once.js +0 -13
- package/dist/functions/utils/once.js.map +0 -1
- package/dist/functions/utils/partial.d.ts +0 -1
- package/dist/functions/utils/partial.js +0 -13
- package/dist/functions/utils/partial.js.map +0 -1
- package/dist/functions/utils/pipe.d.ts +0 -1
- package/dist/functions/utils/pipe.js +0 -10
- package/dist/functions/utils/pipe.js.map +0 -1
- package/dist/functions/utils/retryWithBackoff.d.ts +0 -9
- package/dist/functions/utils/retryWithBackoff.js +0 -30
- package/dist/functions/utils/retryWithBackoff.js.map +0 -1
- package/dist/functions/utils/tap.d.ts +0 -1
- package/dist/functions/utils/tap.js +0 -14
- package/dist/functions/utils/tap.js.map +0 -1
- package/dist/functions/utils/throttle.d.ts +0 -1
- package/dist/functions/utils/throttle.js +0 -11
- package/dist/functions/utils/throttle.js.map +0 -1
- package/dist/functions/utils/until.d.ts +0 -1
- package/dist/functions/utils/until.js +0 -10
- package/dist/functions/utils/until.js.map +0 -1
- package/dist/functions/utils/validate.d.ts +0 -8
- package/dist/functions/utils/validate.js +0 -45
- package/dist/functions/utils/validate.js.map +0 -1
- package/dist/functions/vue/checkVueType.d.ts +0 -8
- package/dist/functions/vue/checkVueType.js +0 -29
- package/dist/functions/vue/checkVueType.js.map +0 -1
- package/dist/functions/vue/deduplicateColors.d.ts +0 -2
- package/dist/functions/vue/deduplicateColors.js +0 -13
- package/dist/functions/vue/deduplicateColors.js.map +0 -1
- package/dist/functions/vue/dynamicMount.d.ts +0 -15
- package/dist/functions/vue/dynamicMount.js +0 -23
- package/dist/functions/vue/dynamicMount.js.map +0 -1
- package/dist/functions/vue/filterSections.js +0 -11
- package/dist/functions/vue/filterSections.js.map +0 -1
- package/dist/functions/vue/isVNode.d.ts +0 -2
- package/dist/functions/vue/isVNode.js +0 -4
- package/dist/functions/vue/isVNode.js.map +0 -1
- package/dist/functions/vue/isVueComponent.d.ts +0 -2
- package/dist/functions/vue/isVueComponent.js +0 -6
- package/dist/functions/vue/isVueComponent.js.map +0 -1
- package/dist/functions/vue/parseVueFile.js +0 -53
- package/dist/functions/vue/parseVueFile.js.map +0 -1
- package/dist/functions/vue/processVueFile.d.ts +0 -3
- package/dist/functions/vue/processVueFile.js +0 -26
- package/dist/functions/vue/processVueFile.js.map +0 -1
- package/dist/functions/vue/saveVueSection.d.ts +0 -2
- package/dist/functions/vue/saveVueSection.js +0 -11
- package/dist/functions/vue/saveVueSection.js.map +0 -1
- package/dist/functions/wechat/miniapp/downloadFile.d.ts +0 -2
- package/dist/functions/wechat/miniapp/downloadFile.js +0 -39
- package/dist/functions/wechat/miniapp/downloadFile.js.map +0 -1
- package/dist/hooks/useAi.d.ts +0 -27
- package/dist/hooks/useAi.js +0 -163
- package/dist/hooks/useAi.js.map +0 -1
- package/dist/hooks/useCache.d.ts +0 -18
- package/dist/hooks/useCache.js +0 -82
- package/dist/hooks/useCache.js.map +0 -1
- package/dist/hooks/useFetch.d.ts +0 -3
- package/dist/hooks/useFetch.js +0 -154
- package/dist/hooks/useFetch.js.map +0 -1
- package/dist/hooks/usePluginSystem.d.ts +0 -11
- package/dist/hooks/usePluginSystem.js +0 -34
- package/dist/hooks/usePluginSystem.js.map +0 -1
- package/dist/hooks/useRequest.d.ts +0 -3
- package/dist/hooks/useRequest.js +0 -139
- package/dist/hooks/useRequest.js.map +0 -1
- package/dist/hooks/useWASM.d.ts +0 -4
- package/dist/hooks/useWASM.js +0 -267
- package/dist/hooks/useWASM.js.map +0 -1
- package/references/browser.extension.d.ts +0 -14
- package/types/network.d.ts +0 -184
- package/types/util.d.ts +0 -27
- package/types/wasm.d.ts +0 -217
package/types/android-build.d.ts
CHANGED
|
@@ -1,85 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
outputPath?: string
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* 验证结果接口
|
|
65
|
-
*/
|
|
66
|
-
export interface ValidationResult {
|
|
67
|
-
valid: boolean
|
|
68
|
-
error?: string
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* 操作结果接口
|
|
73
|
-
*/
|
|
74
|
-
export interface OperationResult {
|
|
75
|
-
success: boolean
|
|
76
|
-
error?: string
|
|
77
|
-
logs: string[]
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 构建结果接口
|
|
82
|
-
*/
|
|
83
|
-
export interface BuildResult extends OperationResult {
|
|
84
|
-
outputPath?: string
|
|
85
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Android 离线打包相关类型定义
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* 定义通用 Android 离线打包功能使用的接口和类型
|
|
6
|
+
*
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
* @author Assistant
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { ChildProcess, FileSystem, Path, Process } from '../references/node.d'
|
|
12
|
+
import type { XMLParser, XMLSerializer, XMLParserConstructor, XMLSerializerConstructor } from '../references/xml.d'
|
|
13
|
+
import type { JSON5Parser } from '../references/json5.d'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Android 工程编译选项(通用)
|
|
17
|
+
*/
|
|
18
|
+
export interface AndroidBuildOptions {
|
|
19
|
+
/** 工程路径 */
|
|
20
|
+
projectPath: string
|
|
21
|
+
/** 输出路径 */
|
|
22
|
+
outputPath?: string
|
|
23
|
+
/** 是否清理构建 */
|
|
24
|
+
clean?: boolean
|
|
25
|
+
/** 构建变体 */
|
|
26
|
+
buildVariant?: 'debug' | 'release'
|
|
27
|
+
/** 签名配置 */
|
|
28
|
+
signing?: {
|
|
29
|
+
keystorePath: string
|
|
30
|
+
keystorePassword: string
|
|
31
|
+
keyAlias: string
|
|
32
|
+
keyPassword: string
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Android 工程编译结果(通用)
|
|
38
|
+
*/
|
|
39
|
+
export interface AndroidBuildResult {
|
|
40
|
+
success: boolean
|
|
41
|
+
outputPath?: string
|
|
42
|
+
error?: string
|
|
43
|
+
logs: string[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 系统依赖接口
|
|
48
|
+
* 用于依赖注入,确保函数的环境无关性
|
|
49
|
+
*/
|
|
50
|
+
export interface SystemDependencies {
|
|
51
|
+
childProcess: ChildProcess
|
|
52
|
+
fs: FileSystem
|
|
53
|
+
path: Path
|
|
54
|
+
process: Process
|
|
55
|
+
setTimeout: (callback: () => void, delay: number) => any
|
|
56
|
+
require: (id: string) => any
|
|
57
|
+
json5: JSON5Parser
|
|
58
|
+
xmlParser: XMLParserConstructor
|
|
59
|
+
xmlSerializer: XMLSerializerConstructor
|
|
60
|
+
}
|
package/types/color.d.ts
CHANGED
|
@@ -1,163 +1,73 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 颜色处理相关类型定义
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 支持的颜色格式类型
|
|
7
|
-
*/
|
|
8
|
-
export type ColorFormat = 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'named'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* RGB颜色值对象
|
|
12
|
-
*/
|
|
13
|
-
export interface RgbColor {
|
|
14
|
-
r: number
|
|
15
|
-
g: number
|
|
16
|
-
b: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* RGBA颜色值对象
|
|
21
|
-
*/
|
|
22
|
-
export interface RgbaColor extends RgbColor {
|
|
23
|
-
a: number
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* HSL颜色值对象
|
|
28
|
-
*/
|
|
29
|
-
export interface HslColor {
|
|
30
|
-
h: number
|
|
31
|
-
s: number
|
|
32
|
-
l: number
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* HSLA颜色值对象
|
|
37
|
-
*/
|
|
38
|
-
export interface HslaColor extends HslColor {
|
|
39
|
-
a: number
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
hex: RegExp
|
|
74
|
-
/** RGB颜色匹配 */
|
|
75
|
-
rgb: RegExp
|
|
76
|
-
/** RGBA颜色匹配 */
|
|
77
|
-
rgba: RegExp
|
|
78
|
-
/** HSL颜色匹配 */
|
|
79
|
-
hsl: RegExp
|
|
80
|
-
/** HSLA颜色匹配 */
|
|
81
|
-
hsla: RegExp
|
|
82
|
-
/** 命名颜色匹配 */
|
|
83
|
-
namedColors: RegExp
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* 命名颜色映射表类型
|
|
88
|
-
*/
|
|
89
|
-
export type NamedColorMap = Record<string, string>
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* 颜色标准化选项
|
|
93
|
-
*/
|
|
94
|
-
export interface ColorNormalizationOptions {
|
|
95
|
-
/** 是否保留原始格式 */
|
|
96
|
-
preserveFormat?: boolean
|
|
97
|
-
/** 是否转换为小写 */
|
|
98
|
-
toLowerCase?: boolean
|
|
99
|
-
/** 是否移除空格 */
|
|
100
|
-
trimSpaces?: boolean
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* 颜色转换选项
|
|
105
|
-
*/
|
|
106
|
-
export interface ColorConversionOptions {
|
|
107
|
-
/** 目标格式 */
|
|
108
|
-
targetFormat: ColorFormat
|
|
109
|
-
/** 是否包含alpha通道 */
|
|
110
|
-
includeAlpha?: boolean
|
|
111
|
-
/** alpha值(0-1) */
|
|
112
|
-
alphaValue?: number
|
|
113
|
-
/** 是否使用8位十六进制格式 */
|
|
114
|
-
use8BitHex?: boolean
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* 颜色引用信息
|
|
119
|
-
* 用于记录在代码中发现的颜色值及其位置信息
|
|
120
|
-
*/
|
|
121
|
-
export interface ColorReference {
|
|
122
|
-
/** 原始颜色值 */
|
|
123
|
-
originalValue: string
|
|
124
|
-
/** 颜色格式 */
|
|
125
|
-
format: ColorFormat | 'css-variable' | 'third-party-variable'
|
|
126
|
-
/** 文件路径 */
|
|
127
|
-
file: string
|
|
128
|
-
/** 行号 */
|
|
129
|
-
line: number
|
|
130
|
-
/** 上下文代码 */
|
|
131
|
-
context: string
|
|
132
|
-
/** 是否为变量引用 */
|
|
133
|
-
isVariableReference?: boolean
|
|
134
|
-
/** 变量名称(如果是变量引用) */
|
|
135
|
-
variableName?: string
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* 颜色提取器依赖注入接口
|
|
140
|
-
* 定义颜色提取功能所需的外部依赖
|
|
141
|
-
*/
|
|
142
|
-
export interface ColorExtractorDependencies {
|
|
143
|
-
/** 获取颜色模式匹配正则表达式 */
|
|
144
|
-
getColorPatterns: () => ColorPatterns
|
|
145
|
-
/** 标准化颜色值为8位十六进制格式 */
|
|
146
|
-
standardizeColor: (color: string) => string
|
|
147
|
-
/** 检测颜色格式 */
|
|
148
|
-
detectColorFormat: (color: string) => ColorFormat | null
|
|
149
|
-
/** 验证是否为有效颜色值 */
|
|
150
|
-
isColorValue: (value: string) => { isValid: boolean; format?: ColorFormat }
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* 颜色提取选项
|
|
155
|
-
*/
|
|
156
|
-
export interface ColorExtractionOptions {
|
|
157
|
-
/** 是否只提取有效的颜色值 */
|
|
158
|
-
validOnly?: boolean
|
|
159
|
-
/** CSS变量映射 */
|
|
160
|
-
cssVariables?: Record<string, string>
|
|
161
|
-
/** 第三方变量映射 */
|
|
162
|
-
thirdPartyVariables?: Record<string, string>
|
|
1
|
+
/**
|
|
2
|
+
* 颜色处理相关类型定义
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 支持的颜色格式类型
|
|
7
|
+
*/
|
|
8
|
+
export type ColorFormat = 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'named'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* RGB颜色值对象
|
|
12
|
+
*/
|
|
13
|
+
export interface RgbColor {
|
|
14
|
+
r: number
|
|
15
|
+
g: number
|
|
16
|
+
b: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* RGBA颜色值对象
|
|
21
|
+
*/
|
|
22
|
+
export interface RgbaColor extends RgbColor {
|
|
23
|
+
a: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* HSL颜色值对象
|
|
28
|
+
*/
|
|
29
|
+
export interface HslColor {
|
|
30
|
+
h: number
|
|
31
|
+
s: number
|
|
32
|
+
l: number
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* HSLA颜色值对象
|
|
37
|
+
*/
|
|
38
|
+
export interface HslaColor extends HslColor {
|
|
39
|
+
a: number
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 颜色引用信息
|
|
44
|
+
* 用于记录在代码中发现的颜色值及其位置信息
|
|
45
|
+
*/
|
|
46
|
+
export interface ColorReference {
|
|
47
|
+
/** 原始颜色值 */
|
|
48
|
+
originalValue: string
|
|
49
|
+
/** 颜色格式 */
|
|
50
|
+
format: ColorFormat | 'css-variable' | 'third-party-variable'
|
|
51
|
+
/** 文件路径 */
|
|
52
|
+
file: string
|
|
53
|
+
/** 行号 */
|
|
54
|
+
line: number
|
|
55
|
+
/** 上下文代码 */
|
|
56
|
+
context: string
|
|
57
|
+
/** 是否为变量引用 */
|
|
58
|
+
isVariableReference?: boolean
|
|
59
|
+
/** 变量名称(如果是变量引用) */
|
|
60
|
+
variableName?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 颜色提取选项
|
|
65
|
+
*/
|
|
66
|
+
export interface ColorExtractionOptions {
|
|
67
|
+
/** 是否只提取有效的颜色值 */
|
|
68
|
+
validOnly?: boolean
|
|
69
|
+
/** CSS变量映射 */
|
|
70
|
+
cssVariables?: Record<string, string>
|
|
71
|
+
/** 第三方变量映射 */
|
|
72
|
+
thirdPartyVariables?: Record<string, string>
|
|
163
73
|
}
|
package/types/geometry.d.ts
CHANGED
|
@@ -1,66 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 几何和位置计算相关类型定义
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 矩形区域定义
|
|
7
|
-
*/
|
|
8
|
-
export interface Rectangle {
|
|
9
|
-
x: number
|
|
10
|
-
y: number
|
|
11
|
-
width: number
|
|
12
|
-
height: number
|
|
13
|
-
top: number
|
|
14
|
-
left: number
|
|
15
|
-
right: number
|
|
16
|
-
bottom: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 坐标点定义
|
|
21
|
-
*/
|
|
22
|
-
export interface Coordinate {
|
|
23
|
-
x: number
|
|
24
|
-
y: number
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
export interface Size {
|
|
31
|
-
width: number
|
|
32
|
-
height: number
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* 边距定义
|
|
37
|
-
*/
|
|
38
|
-
export interface Margin {
|
|
39
|
-
top: number
|
|
40
|
-
right: number
|
|
41
|
-
bottom: number
|
|
42
|
-
left: number
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 边框定义
|
|
47
|
-
*/
|
|
48
|
-
export interface Border {
|
|
49
|
-
width: number
|
|
50
|
-
style: 'solid' | 'dashed' | 'dotted' | 'none'
|
|
51
|
-
color: string
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* 向量定义
|
|
56
|
-
*/
|
|
57
|
-
export interface Vector2D {
|
|
58
|
-
x: number
|
|
59
|
-
y: number
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* 类型别名,用于向后兼容
|
|
64
|
-
*/
|
|
65
|
-
export type Rect = Rectangle
|
|
1
|
+
/**
|
|
2
|
+
* 几何和位置计算相关类型定义
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 矩形区域定义
|
|
7
|
+
*/
|
|
8
|
+
export interface Rectangle {
|
|
9
|
+
x: number
|
|
10
|
+
y: number
|
|
11
|
+
width: number
|
|
12
|
+
height: number
|
|
13
|
+
top: number
|
|
14
|
+
left: number
|
|
15
|
+
right: number
|
|
16
|
+
bottom: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 坐标点定义
|
|
21
|
+
*/
|
|
22
|
+
export interface Coordinate {
|
|
23
|
+
x: number
|
|
24
|
+
y: number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 类型别名 - 这些被DOM函数使用
|
|
28
|
+
export type Rect = Rectangle
|
|
66
29
|
export type Coords = Coordinate
|
package/types/software.d.ts
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 软件配置接口定义
|
|
3
|
-
*/
|
|
4
|
-
export interface SoftwareConfig {
|
|
5
|
-
/** 可执行文件名 */
|
|
6
|
-
executable: string
|
|
7
|
-
/** 可能的安装路径列表 */
|
|
8
|
-
possiblePaths: string[]
|
|
9
|
-
/** 用户自定义路径(可选) */
|
|
10
|
-
userPaths?: string[]
|
|
11
|
-
/** Windows注册表键(可选) */
|
|
12
|
-
registryKey?: string
|
|
13
|
-
/** 环境变量名 */
|
|
14
|
-
envVar: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 平台类型
|
|
19
|
-
*/
|
|
20
|
-
export type Platform = 'win32' | 'darwin' | 'linux'
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Process对象接口
|
|
24
|
-
*/
|
|
25
|
-
export interface ProcessLike {
|
|
26
|
-
platform: string
|
|
1
|
+
/**
|
|
2
|
+
* 软件配置接口定义
|
|
3
|
+
*/
|
|
4
|
+
export interface SoftwareConfig {
|
|
5
|
+
/** 可执行文件名 */
|
|
6
|
+
executable: string
|
|
7
|
+
/** 可能的安装路径列表 */
|
|
8
|
+
possiblePaths: string[]
|
|
9
|
+
/** 用户自定义路径(可选) */
|
|
10
|
+
userPaths?: string[]
|
|
11
|
+
/** Windows注册表键(可选) */
|
|
12
|
+
registryKey?: string
|
|
13
|
+
/** 环境变量名 */
|
|
14
|
+
envVar: string
|
|
27
15
|
}
|
package/types/storage.d.ts
CHANGED
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 存储相关的应用层类型定义
|
|
3
|
-
*
|
|
4
|
-
* @description
|
|
5
|
-
* 定义存储hooks使用的接口和类型,不包含环境相关的类型
|
|
6
|
-
* 环境相关的类型请从 references/storage.d 导入
|
|
7
|
-
*
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @author Assistant
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
// 存储操作结果
|
|
13
|
-
export interface StorageResult<T> {
|
|
14
|
-
success: boolean
|
|
15
|
-
data?: T
|
|
16
|
-
error?: string
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// 存储配置选项
|
|
20
|
-
export interface StorageOptions {
|
|
21
|
-
prefix?: string // 键名前缀
|
|
22
|
-
serializer?: {
|
|
23
|
-
serialize: (value: any) => string
|
|
24
|
-
deserialize: (value: string) => any
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// IndexedDB 存储配置
|
|
29
|
-
export interface IndexedDBStorageOptions extends StorageOptions {
|
|
30
|
-
dbName: string // 数据库名称
|
|
31
|
-
storeName: string // 对象存储名称
|
|
32
|
-
version?: number // 数据库版本
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 存储 Hook 返回值接口
|
|
36
|
-
export interface UseStorageReturn<T> {
|
|
37
|
-
value: T | null
|
|
38
|
-
setValue: (value: T | null) => Promise<void>
|
|
39
|
-
removeValue: () => Promise<void>
|
|
40
|
-
clear: () => Promise<void>
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// 存储适配器接口
|
|
44
|
-
export interface StorageAdapter<T> {
|
|
45
|
-
get: (key: string) => Promise<T | null>
|
|
46
|
-
set: (key: string, value: T) => Promise<void>
|
|
47
|
-
remove: (key: string) => Promise<void>
|
|
48
|
-
clear: () => Promise<void>
|
|
1
|
+
/**
|
|
2
|
+
* 存储相关的应用层类型定义
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* 定义存储hooks使用的接口和类型,不包含环境相关的类型
|
|
6
|
+
* 环境相关的类型请从 references/storage.d 导入
|
|
7
|
+
*
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @author Assistant
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// 存储操作结果
|
|
13
|
+
export interface StorageResult<T> {
|
|
14
|
+
success: boolean
|
|
15
|
+
data?: T
|
|
16
|
+
error?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// 存储配置选项
|
|
20
|
+
export interface StorageOptions {
|
|
21
|
+
prefix?: string // 键名前缀
|
|
22
|
+
serializer?: {
|
|
23
|
+
serialize: (value: any) => string
|
|
24
|
+
deserialize: (value: string) => any
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// IndexedDB 存储配置
|
|
29
|
+
export interface IndexedDBStorageOptions extends StorageOptions {
|
|
30
|
+
dbName: string // 数据库名称
|
|
31
|
+
storeName: string // 对象存储名称
|
|
32
|
+
version?: number // 数据库版本
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 存储 Hook 返回值接口
|
|
36
|
+
export interface UseStorageReturn<T> {
|
|
37
|
+
get value(): T | null
|
|
38
|
+
setValue: (value: T | null) => Promise<void>
|
|
39
|
+
removeValue: () => Promise<void>
|
|
40
|
+
clear: () => Promise<void>
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 存储适配器接口
|
|
44
|
+
export interface StorageAdapter<T> {
|
|
45
|
+
get: (key: string) => Promise<T | null>
|
|
46
|
+
set: (key: string, value: T) => Promise<void>
|
|
47
|
+
remove: (key: string) => Promise<void>
|
|
48
|
+
clear: () => Promise<void>
|
|
49
|
+
getAll: () => Promise<Record<string, T>>
|
|
50
|
+
getKeys: () => Promise<string[]>
|
|
49
51
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UniApp Android 离线打包相关类型定义
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* 定义 UniApp Android 离线打包功能使用的接口和类型
|
|
6
|
+
*
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
* @author Assistant
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { ChildProcess, FileSystem, Path, Process } from '../references/node.d'
|
|
12
|
+
import type { XMLParser, XMLSerializer, XMLParserConstructor, XMLSerializerConstructor } from '../references/xml.d'
|
|
13
|
+
import type { JSON5Parser } from '../references/json5.d'
|
|
14
|
+
import type { AndroidBuildOptions, AndroidBuildResult } from './android-build.d'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* UniApp Android 构建选项
|
|
18
|
+
*/
|
|
19
|
+
export interface UniAppAndroidBuildOptions extends AndroidBuildOptions {
|
|
20
|
+
/** UniApp 工程路径 */
|
|
21
|
+
uniappProjectPath: string
|
|
22
|
+
/** Android 应用包名 */
|
|
23
|
+
applicationId?: string
|
|
24
|
+
/** UniApp 应用密钥 */
|
|
25
|
+
appkey?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* UniApp Android 构建结果
|
|
30
|
+
*/
|
|
31
|
+
export interface UniAppAndroidBuildResult extends AndroidBuildResult {
|
|
32
|
+
// 可以添加 UniApp 特有的结果属性
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 系统依赖接口
|
|
37
|
+
* 用于依赖注入,确保函数的环境无关性
|
|
38
|
+
*/
|
|
39
|
+
export interface SystemDependencies {
|
|
40
|
+
childProcess: ChildProcess
|
|
41
|
+
fs: FileSystem
|
|
42
|
+
path: Path
|
|
43
|
+
process: Process
|
|
44
|
+
setTimeout: (callback: () => void, delay: number) => any
|
|
45
|
+
require: (id: string) => any
|
|
46
|
+
json5: JSON5Parser
|
|
47
|
+
xmlParser: XMLParserConstructor
|
|
48
|
+
xmlSerializer: XMLSerializerConstructor
|
|
49
|
+
}
|