zcw-shared 1.7.0 → 1.8.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 (434) hide show
  1. package/README.md +512 -512
  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/softwareConfigs.d.ts +14 -0
  7. package/dist/constants/softwareConfigs.js +156 -0
  8. package/dist/constants/softwareConfigs.js.map +1 -0
  9. package/dist/functions/ag-grid/generateLicense.d.ts +3 -0
  10. package/dist/functions/ag-grid/generateLicense.js +12 -0
  11. package/dist/functions/ag-grid/generateLicense.js.map +1 -0
  12. package/dist/functions/altool/createAltoolClient.d.ts +21 -0
  13. package/dist/functions/altool/createAltoolClient.js +53 -0
  14. package/dist/functions/altool/createAltoolClient.js.map +1 -0
  15. package/dist/functions/altool/getAltoolAuth.d.ts +2 -0
  16. package/dist/functions/altool/getAltoolAuth.js +8 -0
  17. package/dist/functions/altool/getAltoolAuth.js.map +1 -0
  18. package/dist/functions/altool/getAppInfo.d.ts +13 -0
  19. package/dist/functions/altool/getAppInfo.js +39 -0
  20. package/dist/functions/altool/getAppInfo.js.map +1 -0
  21. package/dist/functions/altool/index.d.ts +10 -0
  22. package/dist/functions/altool/index.js +6 -0
  23. package/dist/functions/altool/index.js.map +1 -0
  24. package/dist/functions/altool/isApiKeyAuth.d.ts +2 -0
  25. package/dist/functions/altool/isApiKeyAuth.js +4 -0
  26. package/dist/functions/altool/isApiKeyAuth.js.map +1 -0
  27. package/dist/functions/altool/isCredentialsAuth.d.ts +2 -0
  28. package/dist/functions/altool/isCredentialsAuth.js +4 -0
  29. package/dist/functions/altool/isCredentialsAuth.js.map +1 -0
  30. package/dist/functions/altool/parseAppInfoOutput.d.ts +2 -0
  31. package/dist/functions/altool/parseAppInfoOutput.js +55 -0
  32. package/dist/functions/altool/parseAppInfoOutput.js.map +1 -0
  33. package/dist/functions/altool/parseValidationOutput.d.ts +6 -0
  34. package/dist/functions/altool/parseValidationOutput.js +21 -0
  35. package/dist/functions/altool/parseValidationOutput.js.map +1 -0
  36. package/dist/functions/altool/types.d.ts +26 -0
  37. package/dist/functions/altool/types.js +7 -0
  38. package/dist/functions/altool/types.js.map +1 -0
  39. package/dist/functions/altool/uploadApp.d.ts +6 -0
  40. package/dist/functions/altool/uploadApp.js +36 -0
  41. package/dist/functions/altool/uploadApp.js.map +1 -0
  42. package/dist/functions/altool/validateApp.d.ts +17 -0
  43. package/dist/functions/altool/validateApp.js +40 -0
  44. package/dist/functions/altool/validateApp.js.map +1 -0
  45. package/dist/functions/android/buildProject.d.ts +2 -1
  46. package/dist/functions/android/buildProject.js +32 -6
  47. package/dist/functions/android/buildProject.js.map +1 -1
  48. package/dist/functions/android/modifyGradle.js +10 -10
  49. package/dist/functions/base64/strToBase64.d.ts +2 -0
  50. package/dist/functions/base64/strToBase64.js +6 -0
  51. package/dist/functions/base64/strToBase64.js.map +1 -0
  52. package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +2 -0
  53. package/dist/functions/color-converter/COLOR_PATTERNS.js +9 -0
  54. package/dist/functions/color-converter/COLOR_PATTERNS.js.map +1 -0
  55. package/dist/functions/color-converter/colorPatterns.d.ts +4 -0
  56. package/dist/functions/color-converter/colorPatterns.js +41 -0
  57. package/dist/functions/color-converter/colorPatterns.js.map +1 -0
  58. package/dist/functions/color-converter/convertColor.d.ts +6 -0
  59. package/dist/functions/color-converter/convertColor.js +12 -0
  60. package/dist/functions/color-converter/convertColor.js.map +1 -0
  61. package/dist/functions/color-converter/createColorReference.d.ts +2 -0
  62. package/dist/functions/color-converter/createColorReference.js +12 -0
  63. package/dist/functions/color-converter/createColorReference.js.map +1 -0
  64. package/dist/functions/color-converter/detectColorFormat.d.ts +2 -0
  65. package/dist/functions/color-converter/detectColorFormat.js +19 -0
  66. package/dist/functions/color-converter/detectColorFormat.js.map +1 -0
  67. package/dist/functions/color-converter/extractColors.d.ts +3 -0
  68. package/dist/functions/color-converter/extractColors.js +16 -0
  69. package/dist/functions/color-converter/extractColors.js.map +1 -0
  70. package/dist/functions/color-converter/extractColorsFromLine.d.ts +2 -0
  71. package/dist/functions/color-converter/extractColorsFromLine.js +18 -0
  72. package/dist/functions/color-converter/extractColorsFromLine.js.map +1 -0
  73. package/dist/functions/color-converter/extractColorsGeneric.d.ts +2 -0
  74. package/dist/functions/color-converter/extractColorsGeneric.js +12 -0
  75. package/dist/functions/color-converter/extractColorsGeneric.js.map +1 -0
  76. package/dist/functions/color-converter/extractCssVariableReferences.d.ts +2 -0
  77. package/dist/functions/color-converter/extractCssVariableReferences.js +15 -0
  78. package/dist/functions/color-converter/extractCssVariableReferences.js.map +1 -0
  79. package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +2 -0
  80. package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +15 -0
  81. package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +1 -0
  82. package/dist/functions/color-converter/formatColorOutput.d.ts +5 -0
  83. package/dist/functions/color-converter/formatColorOutput.js +48 -0
  84. package/dist/functions/color-converter/formatColorOutput.js.map +1 -0
  85. package/dist/functions/color-converter/getColorPatterns.d.ts +2 -0
  86. package/dist/functions/color-converter/getColorPatterns.js +11 -0
  87. package/dist/functions/color-converter/getColorPatterns.js.map +1 -0
  88. package/dist/functions/color-converter/getNamedColorMap.d.ts +2 -0
  89. package/dist/functions/color-converter/getNamedColorMap.js +19 -0
  90. package/dist/functions/color-converter/getNamedColorMap.js.map +1 -0
  91. package/dist/functions/color-converter/hexToRgb.d.ts +2 -0
  92. package/dist/functions/color-converter/hexToRgb.js +42 -0
  93. package/dist/functions/color-converter/hexToRgb.js.map +1 -0
  94. package/dist/functions/color-converter/hslToRgb.d.ts +2 -0
  95. package/dist/functions/color-converter/hslToRgb.js +78 -0
  96. package/dist/functions/color-converter/hslToRgb.js.map +1 -0
  97. package/dist/functions/color-converter/hslToRgbInternal.d.ts +2 -0
  98. package/dist/functions/color-converter/hslToRgbInternal.js +24 -0
  99. package/dist/functions/color-converter/hslToRgbInternal.js.map +1 -0
  100. package/dist/functions/color-converter/hueToRgb.d.ts +1 -0
  101. package/dist/functions/color-converter/hueToRgb.js +14 -0
  102. package/dist/functions/color-converter/hueToRgb.js.map +1 -0
  103. package/dist/functions/color-converter/isColorValue.d.ts +2 -0
  104. package/dist/functions/color-converter/isColorValue.js +79 -0
  105. package/dist/functions/color-converter/isColorValue.js.map +1 -0
  106. package/dist/functions/color-converter/isValidColorValue.d.ts +1 -0
  107. package/dist/functions/color-converter/isValidColorValue.js +4 -0
  108. package/dist/functions/color-converter/isValidColorValue.js.map +1 -0
  109. package/dist/functions/color-converter/isValidHslColor.d.ts +2 -0
  110. package/dist/functions/color-converter/isValidHslColor.js +14 -0
  111. package/dist/functions/color-converter/isValidHslColor.js.map +1 -0
  112. package/dist/functions/color-converter/isValidRgbColor.d.ts +2 -0
  113. package/dist/functions/color-converter/isValidRgbColor.js +14 -0
  114. package/dist/functions/color-converter/isValidRgbColor.js.map +1 -0
  115. package/dist/functions/color-converter/normalizeColor.d.ts +1 -0
  116. package/dist/functions/color-converter/normalizeColor.js +49 -0
  117. package/dist/functions/color-converter/normalizeColor.js.map +1 -0
  118. package/dist/functions/color-converter/normalizeColorInput.d.ts +6 -0
  119. package/dist/functions/color-converter/normalizeColorInput.js +94 -0
  120. package/dist/functions/color-converter/normalizeColorInput.js.map +1 -0
  121. package/dist/functions/color-converter/parseColorString.d.ts +12 -0
  122. package/dist/functions/color-converter/parseColorString.js +89 -0
  123. package/dist/functions/color-converter/parseColorString.js.map +1 -0
  124. package/dist/functions/color-converter/parseCssVariables.d.ts +2 -0
  125. package/dist/functions/color-converter/parseCssVariables.js +19 -0
  126. package/dist/functions/color-converter/parseCssVariables.js.map +1 -0
  127. package/dist/functions/color-converter/parseHexColor.d.ts +6 -0
  128. package/dist/functions/color-converter/parseHexColor.js +42 -0
  129. package/dist/functions/color-converter/parseHexColor.js.map +1 -0
  130. package/dist/functions/color-converter/rgbToHex.d.ts +2 -0
  131. package/dist/functions/color-converter/rgbToHex.js +65 -0
  132. package/dist/functions/color-converter/rgbToHex.js.map +1 -0
  133. package/dist/functions/color-converter/rgbToHslInternal.d.ts +2 -0
  134. package/dist/functions/color-converter/rgbToHslInternal.js +31 -0
  135. package/dist/functions/color-converter/rgbToHslInternal.js.map +1 -0
  136. package/dist/functions/color-converter/standardizeColor.d.ts +1 -0
  137. package/dist/functions/color-converter/standardizeColor.js +147 -0
  138. package/dist/functions/color-converter/standardizeColor.js.map +1 -0
  139. package/dist/functions/desensitize/desensitizeName.d.ts +1 -0
  140. package/dist/functions/desensitize/desensitizeName.js +8 -0
  141. package/dist/functions/desensitize/desensitizeName.js.map +1 -0
  142. package/dist/functions/desensitize/desensitizePhone.d.ts +1 -0
  143. package/dist/functions/desensitize/desensitizePhone.js +8 -0
  144. package/dist/functions/desensitize/desensitizePhone.js.map +1 -0
  145. package/dist/functions/dom/getViewportSize.d.ts +5 -0
  146. package/dist/functions/dom/getViewportSize.js +7 -0
  147. package/dist/functions/dom/getViewportSize.js.map +1 -0
  148. package/dist/functions/software/buildPathExecutables.d.ts +1 -0
  149. package/dist/functions/software/buildPathExecutables.js +14 -0
  150. package/dist/functions/software/buildPathExecutables.js.map +1 -0
  151. package/dist/functions/software/buildSoftwarePaths.d.ts +2 -0
  152. package/dist/functions/software/buildSoftwarePaths.js +22 -0
  153. package/dist/functions/software/buildSoftwarePaths.js.map +1 -0
  154. package/dist/functions/software/createConfigGenerator.d.ts +8 -0
  155. package/dist/functions/software/createConfigGenerator.js +13 -0
  156. package/dist/functions/software/createConfigGenerator.js.map +1 -0
  157. package/dist/functions/software/detectPlatform.d.ts +2 -0
  158. package/dist/functions/software/detectPlatform.js +9 -0
  159. package/dist/functions/software/detectPlatform.js.map +1 -0
  160. package/dist/functions/software/find.d.ts +2 -0
  161. package/dist/functions/software/find.js +12 -0
  162. package/dist/functions/software/find.js.map +1 -0
  163. package/dist/functions/software/findSoftware.js.map +1 -1
  164. package/dist/functions/software/findSoftwareWithGenerator.d.ts +3 -0
  165. package/dist/functions/software/findSoftwareWithGenerator.js +8 -0
  166. package/dist/functions/software/findSoftwareWithGenerator.js.map +1 -0
  167. package/dist/functions/software/getConfigGenerator.d.ts +2 -0
  168. package/dist/functions/software/getConfigGenerator.js +10 -0
  169. package/dist/functions/software/getConfigGenerator.js.map +1 -0
  170. package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +1 -0
  171. package/dist/functions/software/getEnvironmentSoftwarePath.js +8 -0
  172. package/dist/functions/software/getEnvironmentSoftwarePath.js.map +1 -0
  173. package/dist/functions/software/getSupportedSoftware.d.ts +1 -0
  174. package/dist/functions/software/getSupportedSoftware.js +5 -0
  175. package/dist/functions/software/getSupportedSoftware.js.map +1 -0
  176. package/dist/functions/software/parseEnvironmentPaths.d.ts +1 -0
  177. package/dist/functions/software/parseEnvironmentPaths.js +11 -0
  178. package/dist/functions/software/parseEnvironmentPaths.js.map +1 -0
  179. package/dist/functions/software/softwareConfigs.d.ts +2 -0
  180. package/dist/functions/software/softwareConfigs.js +148 -0
  181. package/dist/functions/software/softwareConfigs.js.map +1 -0
  182. package/dist/functions/software/softwareNameMap.d.ts +1 -0
  183. package/dist/functions/software/softwareNameMap.js +9 -0
  184. package/dist/functions/software/softwareNameMap.js.map +1 -0
  185. package/dist/functions/software/types.d.ts +11 -0
  186. package/dist/functions/software/types.js +2 -0
  187. package/dist/functions/software/types.js.map +1 -0
  188. package/dist/functions/string/base64.d.ts +2 -0
  189. package/dist/functions/string/base64.js +6 -0
  190. package/dist/functions/string/base64.js.map +1 -0
  191. package/dist/functions/string/camelCase.d.ts +1 -0
  192. package/dist/functions/string/camelCase.js +8 -0
  193. package/dist/functions/string/camelCase.js.map +1 -0
  194. package/dist/functions/string/capitalize.d.ts +1 -0
  195. package/dist/functions/string/capitalize.js +6 -0
  196. package/dist/functions/string/capitalize.js.map +1 -0
  197. package/dist/functions/string/caseConverter.d.ts +19 -0
  198. package/dist/functions/string/caseConverter.js +94 -0
  199. package/dist/functions/string/caseConverter.js.map +1 -0
  200. package/dist/functions/string/desensitize.d.ts +13 -0
  201. package/dist/functions/string/desensitize.js +107 -0
  202. package/dist/functions/string/desensitize.js.map +1 -0
  203. package/dist/functions/string/escape.d.ts +1 -0
  204. package/dist/functions/string/escape.js +13 -0
  205. package/dist/functions/string/escape.js.map +1 -0
  206. package/dist/functions/string/htmlEscape.d.ts +20 -0
  207. package/dist/functions/string/htmlEscape.js +80 -0
  208. package/dist/functions/string/htmlEscape.js.map +1 -0
  209. package/dist/functions/string/kebabCase.d.ts +1 -0
  210. package/dist/functions/string/kebabCase.js +10 -0
  211. package/dist/functions/string/kebabCase.js.map +1 -0
  212. package/dist/functions/string/levenshtein.d.ts +1 -0
  213. package/dist/functions/string/levenshtein.js +27 -0
  214. package/dist/functions/string/levenshtein.js.map +1 -0
  215. package/dist/functions/string/mask.d.ts +1 -0
  216. package/dist/functions/string/mask.js +40 -0
  217. package/dist/functions/string/mask.js.map +1 -0
  218. package/dist/functions/string/normalize.d.ts +8 -0
  219. package/dist/functions/string/normalize.js +37 -0
  220. package/dist/functions/string/normalize.js.map +1 -0
  221. package/dist/functions/string/pad.d.ts +13 -0
  222. package/dist/functions/string/pad.js +50 -0
  223. package/dist/functions/string/pad.js.map +1 -0
  224. package/dist/functions/string/padEnd.d.ts +1 -0
  225. package/dist/functions/string/padEnd.js +8 -0
  226. package/dist/functions/string/padEnd.js.map +1 -0
  227. package/dist/functions/string/padStart.d.ts +1 -0
  228. package/dist/functions/string/padStart.js +8 -0
  229. package/dist/functions/string/padStart.js.map +1 -0
  230. package/dist/functions/string/palindrome.d.ts +3 -0
  231. package/dist/functions/string/palindrome.js +15 -0
  232. package/dist/functions/string/palindrome.js.map +1 -0
  233. package/dist/functions/string/pascalCase.d.ts +1 -0
  234. package/dist/functions/string/pascalCase.js +8 -0
  235. package/dist/functions/string/pascalCase.js.map +1 -0
  236. package/dist/functions/string/similarity.d.ts +1 -0
  237. package/dist/functions/string/similarity.js +13 -0
  238. package/dist/functions/string/similarity.js.map +1 -0
  239. package/dist/functions/string/snakeCase.d.ts +1 -0
  240. package/dist/functions/string/snakeCase.js +10 -0
  241. package/dist/functions/string/snakeCase.js.map +1 -0
  242. package/dist/functions/string/template.d.ts +4 -0
  243. package/dist/functions/string/template.js +21 -0
  244. package/dist/functions/string/template.js.map +1 -0
  245. package/dist/functions/string/unescape.d.ts +1 -0
  246. package/dist/functions/string/unescape.js +13 -0
  247. package/dist/functions/string/unescape.js.map +1 -0
  248. package/dist/functions/string/wordCount.d.ts +5 -0
  249. package/dist/functions/string/wordCount.js +11 -0
  250. package/dist/functions/string/wordCount.js.map +1 -0
  251. package/dist/functions/tencent-cloud/getSecret.d.ts +6 -0
  252. package/dist/functions/tencent-cloud/getSecret.js +18 -0
  253. package/dist/functions/tencent-cloud/getSecret.js.map +1 -0
  254. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +13 -0
  255. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +175 -0
  256. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +1 -0
  257. package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +19 -0
  258. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +55 -0
  259. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +1 -0
  260. package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
  261. package/dist/functions/uniapp/app-plus/buildAndroidApp.js +1 -0
  262. package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
  263. package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +3 -0
  264. package/dist/functions/uniapp/app-plus/buildAndroidProject.js +60 -0
  265. package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +1 -0
  266. package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +5 -0
  267. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +51 -0
  268. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +1 -0
  269. package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +3 -0
  270. package/dist/functions/uniapp/app-plus/configureAndroidProject.js +63 -0
  271. package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +1 -0
  272. package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +9 -0
  273. package/dist/functions/uniapp/app-plus/configureBuildGradle.js +57 -0
  274. package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +1 -0
  275. package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +5 -0
  276. package/dist/functions/uniapp/app-plus/configureDcloudControl.js +34 -0
  277. package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +1 -0
  278. package/dist/functions/uniapp/app-plus/configureStrings.d.ts +5 -0
  279. package/dist/functions/uniapp/app-plus/configureStrings.js +42 -0
  280. package/dist/functions/uniapp/app-plus/configureStrings.js.map +1 -0
  281. package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +8 -0
  282. package/dist/functions/uniapp/app-plus/copyAppResources.js +25 -0
  283. package/dist/functions/uniapp/app-plus/copyAppResources.js.map +1 -0
  284. package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +2 -0
  285. package/dist/functions/uniapp/app-plus/copyDirectory.js +18 -0
  286. package/dist/functions/uniapp/app-plus/copyDirectory.js.map +1 -0
  287. package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +2 -0
  288. package/dist/functions/uniapp/app-plus/generateUniAppResources.js +35 -0
  289. package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +1 -0
  290. package/dist/functions/uniapp/app-plus/parseManifest.d.ts +14 -0
  291. package/dist/functions/uniapp/app-plus/parseManifest.js +44 -0
  292. package/dist/functions/uniapp/app-plus/parseManifest.js.map +1 -0
  293. package/dist/functions/uniapp/app-plus/validateOptions.d.ts +3 -0
  294. package/dist/functions/uniapp/app-plus/validateOptions.js +10 -0
  295. package/dist/functions/uniapp/app-plus/validateOptions.js.map +1 -0
  296. package/dist/functions/uniapp/waitForPages.d.ts +3 -0
  297. package/dist/functions/uniapp/waitForPages.js +20 -0
  298. package/dist/functions/uniapp/waitForPages.js.map +1 -0
  299. package/dist/functions/utils/compose.d.ts +1 -0
  300. package/dist/functions/utils/compose.js +10 -0
  301. package/dist/functions/utils/compose.js.map +1 -0
  302. package/dist/functions/utils/cond.d.ts +1 -0
  303. package/dist/functions/utils/cond.js +15 -0
  304. package/dist/functions/utils/cond.js.map +1 -0
  305. package/dist/functions/utils/curry.d.ts +1 -0
  306. package/dist/functions/utils/curry.js +13 -0
  307. package/dist/functions/utils/curry.js.map +1 -0
  308. package/dist/functions/utils/debounce.d.ts +1 -0
  309. package/dist/functions/utils/debounce.js +13 -0
  310. package/dist/functions/utils/debounce.js.map +1 -0
  311. package/dist/functions/utils/evolve.d.ts +3 -0
  312. package/dist/functions/utils/evolve.js +15 -0
  313. package/dist/functions/utils/evolve.js.map +1 -0
  314. package/dist/functions/utils/flow.d.ts +1 -0
  315. package/dist/functions/utils/flow.js +14 -0
  316. package/dist/functions/utils/flow.js.map +1 -0
  317. package/dist/functions/utils/generateExports.js +1 -1
  318. package/dist/functions/utils/generateExports.js.map +1 -1
  319. package/dist/functions/utils/isType.d.ts +11 -0
  320. package/dist/functions/utils/isType.js +30 -0
  321. package/dist/functions/utils/isType.js.map +1 -0
  322. package/dist/functions/utils/memoize.d.ts +1 -0
  323. package/dist/functions/utils/memoize.js +13 -0
  324. package/dist/functions/utils/memoize.js.map +1 -0
  325. package/dist/functions/utils/once.d.ts +1 -0
  326. package/dist/functions/utils/once.js +13 -0
  327. package/dist/functions/utils/once.js.map +1 -0
  328. package/dist/functions/utils/partial.d.ts +1 -0
  329. package/dist/functions/utils/partial.js +13 -0
  330. package/dist/functions/utils/partial.js.map +1 -0
  331. package/dist/functions/utils/pipe.d.ts +1 -0
  332. package/dist/functions/utils/pipe.js +10 -0
  333. package/dist/functions/utils/pipe.js.map +1 -0
  334. package/dist/functions/utils/retryWithBackoff.d.ts +9 -0
  335. package/dist/functions/utils/retryWithBackoff.js +30 -0
  336. package/dist/functions/utils/retryWithBackoff.js.map +1 -0
  337. package/dist/functions/utils/tap.d.ts +1 -0
  338. package/dist/functions/utils/tap.js +14 -0
  339. package/dist/functions/utils/tap.js.map +1 -0
  340. package/dist/functions/utils/throttle.d.ts +1 -0
  341. package/dist/functions/utils/throttle.js +11 -0
  342. package/dist/functions/utils/throttle.js.map +1 -0
  343. package/dist/functions/utils/until.d.ts +1 -0
  344. package/dist/functions/utils/until.js +10 -0
  345. package/dist/functions/utils/until.js.map +1 -0
  346. package/dist/functions/utils/validate.d.ts +8 -0
  347. package/dist/functions/utils/validate.js +45 -0
  348. package/dist/functions/utils/validate.js.map +1 -0
  349. package/dist/functions/utils/walk.d.ts +11 -0
  350. package/dist/functions/utils/walk.js +27 -0
  351. package/dist/functions/utils/walk.js.map +1 -0
  352. package/dist/functions/vue/checkVueType.d.ts +8 -0
  353. package/dist/functions/vue/checkVueType.js +29 -0
  354. package/dist/functions/vue/checkVueType.js.map +1 -0
  355. package/dist/functions/vue/deduplicateColors.d.ts +2 -0
  356. package/dist/functions/vue/deduplicateColors.js +13 -0
  357. package/dist/functions/vue/deduplicateColors.js.map +1 -0
  358. package/dist/functions/vue/dynamicMount.d.ts +15 -0
  359. package/dist/functions/vue/dynamicMount.js +25 -0
  360. package/dist/functions/vue/dynamicMount.js.map +1 -0
  361. package/dist/functions/vue/filterSections.js +11 -0
  362. package/dist/functions/vue/filterSections.js.map +1 -0
  363. package/dist/functions/vue/isVNode.d.ts +2 -0
  364. package/dist/functions/vue/isVNode.js +6 -0
  365. package/dist/functions/vue/isVNode.js.map +1 -0
  366. package/dist/functions/vue/isVueComponent.d.ts +2 -0
  367. package/dist/functions/vue/isVueComponent.js +6 -0
  368. package/dist/functions/vue/isVueComponent.js.map +1 -0
  369. package/dist/functions/vue/parseVueFile.js +53 -0
  370. package/dist/functions/vue/parseVueFile.js.map +1 -0
  371. package/dist/functions/vue/processVueFile.d.ts +3 -0
  372. package/dist/functions/vue/processVueFile.js +26 -0
  373. package/dist/functions/vue/processVueFile.js.map +1 -0
  374. package/dist/functions/vue/saveVueSection.d.ts +2 -0
  375. package/dist/functions/vue/saveVueSection.js +11 -0
  376. package/dist/functions/vue/saveVueSection.js.map +1 -0
  377. package/dist/functions/wechat/miniapp/downloadFile.d.ts +2 -0
  378. package/dist/functions/wechat/miniapp/downloadFile.js +39 -0
  379. package/dist/functions/wechat/miniapp/downloadFile.js.map +1 -0
  380. package/dist/hooks/useAi.d.ts +27 -0
  381. package/dist/hooks/useAi.js +163 -0
  382. package/dist/hooks/useAi.js.map +1 -0
  383. package/dist/hooks/useCache.d.ts +18 -0
  384. package/dist/hooks/useCache.js +82 -0
  385. package/dist/hooks/useCache.js.map +1 -0
  386. package/dist/hooks/useFetch.d.ts +3 -0
  387. package/dist/hooks/useFetch.js +154 -0
  388. package/dist/hooks/useFetch.js.map +1 -0
  389. package/dist/hooks/usePluginSystem.d.ts +11 -0
  390. package/dist/hooks/usePluginSystem.js +34 -0
  391. package/dist/hooks/usePluginSystem.js.map +1 -0
  392. package/dist/hooks/useRequest.d.ts +3 -0
  393. package/dist/hooks/useRequest.js +139 -0
  394. package/dist/hooks/useRequest.js.map +1 -0
  395. package/dist/hooks/useStorageWithIndexedDB.d.ts +2 -1
  396. package/dist/hooks/useStorageWithIndexedDB.js +1 -1
  397. package/dist/hooks/useStorageWithIndexedDB.js.map +1 -1
  398. package/dist/hooks/useWASM.d.ts +4 -0
  399. package/dist/hooks/useWASM.js +263 -0
  400. package/dist/hooks/useWASM.js.map +1 -0
  401. package/dist/hooks/useWorkerFunction.js +27 -27
  402. package/package.json +1 -1
  403. package/references/arraybuffer.d.ts +108 -108
  404. package/references/blob.d.ts +36 -36
  405. package/references/browser.d.ts +69 -69
  406. package/references/chrome.extension.d.ts +82 -82
  407. package/references/console.d.ts +24 -24
  408. package/references/crypto-js.d.ts +57 -57
  409. package/references/dom.d.ts +40 -40
  410. package/references/encoding.d.ts +23 -23
  411. package/references/fetch.d.ts +123 -123
  412. package/references/indexeddb.d.ts +48 -48
  413. package/references/json5.d.ts +21 -21
  414. package/references/location.d.ts +15 -15
  415. package/references/node.d.ts +121 -115
  416. package/references/sharp.d.ts +18 -18
  417. package/references/storage.d.ts +17 -17
  418. package/references/timer.d.ts +44 -44
  419. package/references/uniapp.d.ts +50 -50
  420. package/references/url.d.ts +55 -55
  421. package/references/vue.d.ts +85 -85
  422. package/references/webassembly.d.ts +100 -100
  423. package/references/wechat.d.ts +48 -48
  424. package/references/worker.d.ts +152 -152
  425. package/references/xml.d.ts +87 -88
  426. package/types/android-build.d.ts +60 -60
  427. package/types/color.d.ts +72 -72
  428. package/types/geometry.d.ts +28 -28
  429. package/types/platform.d.ts +3 -3
  430. package/types/software.d.ts +14 -14
  431. package/types/storage.d.ts +50 -50
  432. package/types/uniapp-android-build.d.ts +48 -48
  433. package/types/vue.d.ts +29 -29
  434. package/types/worker.d.ts +177 -177
@@ -0,0 +1,26 @@
1
+ export type AltoolAppType = 'ios-app' | 'osx-app' | 'appletvos-app';
2
+ export type AltoolOutputFormat = 'xml' | 'normal';
3
+ export interface AltoolAuthCredentials {
4
+ username: string;
5
+ password: string;
6
+ }
7
+ export interface AltoolAuthApiKey {
8
+ apiKey: string;
9
+ apiIssuer: string;
10
+ }
11
+ export type AltoolAuth = AltoolAuthCredentials | AltoolAuthApiKey;
12
+ export interface AltoolBaseOptions {
13
+ type: AltoolAppType;
14
+ outputFormat?: AltoolOutputFormat;
15
+ auth: AltoolAuth;
16
+ }
17
+ export type AltoolCommand = 'upload-app' | 'validate-app' | 'list-apps';
18
+ export interface AltoolBaseResult {
19
+ success: boolean;
20
+ output: string;
21
+ error?: string;
22
+ exitCode: number;
23
+ command: string;
24
+ }
25
+ export declare function isApiKeyAuth(auth: AltoolAuth): auth is AltoolAuthApiKey;
26
+ export declare function isCredentialsAuth(auth: AltoolAuth): auth is AltoolAuthCredentials;
@@ -0,0 +1,7 @@
1
+ export function isApiKeyAuth(auth) {
2
+ return 'apiKey' in auth && 'apiIssuer' in auth;
3
+ }
4
+ export function isCredentialsAuth(auth) {
5
+ return 'username' in auth && 'password' in auth;
6
+ }
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/functions/altool/types.ts"],"names":[],"mappings":"AAuEA,MAAM,UAAU,YAAY,CAAC,IAAgB;IAC3C,OAAO,QAAQ,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,CAAA;AAChD,CAAC;AAOD,MAAM,UAAU,iBAAiB,CAAC,IAAgB;IAChD,OAAO,UAAU,IAAI,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACjD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { NodeChildProcess } from '../../../references/node.d';
2
+ import type { AltoolBaseOptions } from '../../../types/altool.d';
3
+ export interface AltoolUploadOptions extends AltoolBaseOptions {
4
+ file: string;
5
+ }
6
+ export declare function uploadApp(altoolPath: string, options: AltoolUploadOptions, childProcess: NodeChildProcess): Promise<string>;
@@ -0,0 +1,36 @@
1
+ import { isApiKeyAuth } from './isApiKeyAuth';
2
+ export async function uploadApp(altoolPath, options, childProcess) {
3
+ const { file, type, auth, outputFormat = 'normal' } = options;
4
+ const args = [
5
+ '--upload-app',
6
+ '--file', file,
7
+ '--type', type,
8
+ '--output-format', outputFormat
9
+ ];
10
+ if (isApiKeyAuth(auth)) {
11
+ args.push('--apiKey', auth.apiKey);
12
+ args.push('--apiIssuer', auth.apiIssuer);
13
+ }
14
+ else {
15
+ args.push('--username', auth.username);
16
+ args.push('--password', auth.password);
17
+ }
18
+ const command = `"${altoolPath}" ${args.map(arg => `"${arg}"`).join(' ')}`;
19
+ return new Promise((resolve, reject) => {
20
+ childProcess.exec(command, (error, stdout, stderr) => {
21
+ const output = stdout || '';
22
+ const errorOutput = stderr || '';
23
+ if (error) {
24
+ const errorMessage = errorOutput || error.message;
25
+ reject(new Error(`altool上传失败: ${errorMessage}`));
26
+ }
27
+ else if (errorOutput && errorOutput.includes('error')) {
28
+ reject(new Error(`altool上传过程中出现错误: ${errorOutput}`));
29
+ }
30
+ else {
31
+ resolve(output);
32
+ }
33
+ });
34
+ });
35
+ }
36
+ //# sourceMappingURL=uploadApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadApp.js","sourceRoot":"","sources":["../../../src/functions/altool/uploadApp.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAmB7C,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,UAAkB,EAClB,OAA4B,EAC5B,YAA8B;IAE9B,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,YAAY,GAAG,QAAQ,EACxB,GAAG,OAAO,CAAA;IAGX,MAAM,IAAI,GAAG;QACX,cAAc;QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,iBAAiB,EAAE,YAAY;KAChC,CAAA;IAGD,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC1C,CAAC;SAAM,CAAC;QAEN,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;QACtC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACxC,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,UAAU,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;IAE1E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;YACnD,MAAM,MAAM,GAAG,MAAM,IAAI,EAAE,CAAA;YAC3B,MAAM,WAAW,GAAG,MAAM,IAAI,EAAE,CAAA;YAEhC,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,YAAY,GAAG,WAAW,IAAI,KAAK,CAAC,OAAO,CAAA;gBACjD,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,YAAY,EAAE,CAAC,CAAC,CAAA;YAClD,CAAC;iBAAM,IAAI,WAAW,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACxD,MAAM,CAAC,IAAI,KAAK,CAAC,oBAAoB,WAAW,EAAE,CAAC,CAAC,CAAA;YACtD,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,MAAM,CAAC,CAAA;YACjB,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { NodeChildProcess } from '../../../references/node.d';
2
+ import type { AltoolBaseOptions } from '../../../types/altool.d';
3
+ export interface AltoolValidateOptions extends AltoolBaseOptions {
4
+ file: string;
5
+ }
6
+ export interface AltoolValidateResult {
7
+ hasWarnings: boolean;
8
+ hasErrors: boolean;
9
+ warnings: string[];
10
+ errors: string[];
11
+ }
12
+ export declare function validateApp(altoolPath: string, options: AltoolValidateOptions, childProcess: NodeChildProcess): Promise<{
13
+ hasWarnings: boolean;
14
+ hasErrors: boolean;
15
+ warnings: string[];
16
+ errors: string[];
17
+ }>;
@@ -0,0 +1,40 @@
1
+ import { isApiKeyAuth } from './isApiKeyAuth';
2
+ import { parseValidationOutput } from './parseValidationOutput';
3
+ export async function validateApp(altoolPath, options, childProcess) {
4
+ const { file, type, auth, outputFormat = 'normal' } = options;
5
+ const args = [
6
+ '--validate-app',
7
+ '--file', file,
8
+ '--type', type,
9
+ '--output-format', outputFormat
10
+ ];
11
+ if (isApiKeyAuth(auth)) {
12
+ args.push('--apiKey', auth.apiKey);
13
+ args.push('--apiIssuer', auth.apiIssuer);
14
+ }
15
+ else {
16
+ args.push('--username', auth.username);
17
+ args.push('--password', auth.password);
18
+ }
19
+ const command = `"${altoolPath}" ${args.map(arg => `"${arg}"`).join(' ')}`;
20
+ return new Promise((resolve, reject) => {
21
+ childProcess.exec(command, (error, stdout, stderr) => {
22
+ const output = stdout || '';
23
+ const errorOutput = stderr || '';
24
+ const validationDetails = parseValidationOutput(output + errorOutput);
25
+ if (error) {
26
+ const errorMessage = errorOutput || error.message;
27
+ reject(new Error(errorMessage));
28
+ }
29
+ else {
30
+ if (validationDetails.hasErrors) {
31
+ reject(new Error('验证失败,存在错误: ' + validationDetails.errors.join(', ')));
32
+ }
33
+ else {
34
+ resolve(validationDetails);
35
+ }
36
+ }
37
+ });
38
+ });
39
+ }
40
+ //# sourceMappingURL=validateApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateApp.js","sourceRoot":"","sources":["../../../src/functions/altool/validateApp.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAqE/D,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,UAAkB,EAClB,OAA8B,EAC9B,YAA8B;IAO9B,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,YAAY,GAAG,QAAQ,EACxB,GAAG,OAAO,CAAA;IAGX,MAAM,IAAI,GAAG;QACX,gBAAgB;QAChB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,iBAAiB,EAAE,YAAY;KAChC,CAAA;IAGD,IAAI,YAAY,CAAC,IAAI,CAAC,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AC5B,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,8 +1,9 @@
1
- import type { FileSystem, Path } from '../../../references/node.d';
1
+ import type { FileSystem, Path, Process } from '../../../references/node.d';
2
2
  import type { AndroidBuildOptions, AndroidBuildResult } from '../../../types/android-build.d';
3
3
  export interface AndroidBuildDependencies {
4
4
  fs: FileSystem;
5
5
  path: Path;
6
+ process: Process;
6
7
  childProcess: {
7
8
  exec: (command: string, callback: (error: any, stdout: string, stderr: string) => void) => any;
8
9
  };
@@ -1,5 +1,5 @@
1
1
  export async function buildProject(options, deps) {
2
- const { fs, path, childProcess, setTimeout } = deps;
2
+ const { fs, path, process, childProcess, setTimeout } = deps;
3
3
  const { projectPath, outputPath, clean = false, buildVariant = 'debug' } = options;
4
4
  const logs = [];
5
5
  try {
@@ -66,12 +66,38 @@ export async function buildProject(options, deps) {
66
66
  };
67
67
  }
68
68
  const defaultOutputPath = path.join(projectPath, 'app', 'build', 'outputs', 'apk', buildVariant);
69
- const finalOutputPath = outputPath || defaultOutputPath;
69
+ let finalOutputPath = outputPath || defaultOutputPath;
70
70
  if (!fs.existsSync(finalOutputPath)) {
71
- logs.push(`警告: 未找到输出目录 ${finalOutputPath}`);
72
- const appBuildPath = path.join(projectPath, 'app', 'build');
73
- if (fs.existsSync(appBuildPath)) {
74
- logs.push(`app/build 目录存在,但输出目录未找到`);
71
+ logs.push(`警告: 未找到默认输出目录 ${finalOutputPath}`);
72
+ const possibleModules = [];
73
+ try {
74
+ const projectFiles = fs.readdirSync(projectPath);
75
+ for (const file of projectFiles) {
76
+ const filePath = path.join(projectPath, file);
77
+ if (fs.statSync(filePath).isDirectory()) {
78
+ const buildGradlePath = path.join(filePath, 'build.gradle');
79
+ const buildGradleKtsPath = path.join(filePath, 'build.gradle.kts');
80
+ if (fs.existsSync(buildGradlePath) || fs.existsSync(buildGradleKtsPath)) {
81
+ const moduleOutputPath = path.join(filePath, 'build', 'outputs', 'apk', buildVariant);
82
+ if (fs.existsSync(moduleOutputPath)) {
83
+ possibleModules.push({ module: file, path: moduleOutputPath });
84
+ logs.push(`找到子模块输出: ${file} -> ${moduleOutputPath}`);
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ catch (error) {
91
+ logs.push(`搜索子模块时出错: ${error instanceof Error ? error.message : String(error)}`);
92
+ }
93
+ if (possibleModules.length > 0) {
94
+ const appModule = possibleModules.find(m => m.module === 'app');
95
+ const selectedModule = appModule || possibleModules[0];
96
+ finalOutputPath = selectedModule.path;
97
+ logs.push(`使用子模块输出目录: ${selectedModule.module} -> ${finalOutputPath}`);
98
+ }
99
+ else {
100
+ logs.push(`未找到任何有效的输出目录`);
75
101
  }
76
102
  }
77
103
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"buildProject.js","sourceRoot":"","sources":["../../../src/functions/android/buildProject.ts"],"names":[],"mappings":"AA4BA,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAA4B,EAC5B,IAA8B;IAE9B,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACnD,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,GAAG,KAAK,EAAE,YAAY,GAAG,OAAO,EAAE,GAAG,OAAO,CAAA;IAClF,MAAM,IAAI,GAAa,EAAE,CAAA;IAEzB,IAAI,CAAC;QACH,IAAI,CAAC,IAAI,CAAC,oBAAoB,WAAW,EAAE,CAAC,CAAA;QAC5C,IAAI,CAAC,IAAI,CAAC,SAAS,YAAY,EAAE,CAAC,CAAA;QAGlC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YAChC,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,YAAY,WAAW,EAAE;gBAChC,IAAI;aACL,CAAA;QACH,CAAC;QAGD,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAA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AAc,YAAY,EAAE,CAAC,CAAA;QAEvC,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,YAAY;YACnB,IAAI;SACL,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -23,15 +23,15 @@ export async function modifyGradle(buildGradlePath, options, fs, path) {
23
23
  if (fs.existsSync(signing.keystore)) {
24
24
  fs.copyFileSync(signing.keystore, targetKeystorePath);
25
25
  }
26
- const newSigningConfig = `signingConfigs {
27
- config {
28
- keyAlias '${signing.keyAlias}'
29
- keyPassword '${signing.keyPassword}'
30
- storeFile file('${keystoreFileName}')
31
- storePassword '${signing.keystorePassword}'
32
- v1SigningEnabled true
33
- v2SigningEnabled true
34
- }
26
+ const newSigningConfig = `signingConfigs {
27
+ config {
28
+ keyAlias '${signing.keyAlias}'
29
+ keyPassword '${signing.keyPassword}'
30
+ storeFile file('${keystoreFileName}')
31
+ storePassword '${signing.keystorePassword}'
32
+ v1SigningEnabled true
33
+ v2SigningEnabled true
34
+ }
35
35
  }`;
36
36
  const signingConfigsRegex = /signingConfigs\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}/;
37
37
  if (signingConfigsRegex.test(buildGradleContent)) {
@@ -39,7 +39,7 @@ export async function modifyGradle(buildGradlePath, options, fs, path) {
39
39
  }
40
40
  else {
41
41
  if (buildGradleContent.includes('android {')) {
42
- buildGradleContent = buildGradleContent.replace(/android\s*\{/, `android {
42
+ buildGradleContent = buildGradleContent.replace(/android\s*\{/, `android {
43
43
  ${newSigningConfig}`);
44
44
  }
45
45
  }
@@ -0,0 +1,2 @@
1
+ import type { Base64Encoder } from '../../../references/browser.d';
2
+ export declare const strToBase64: (str: string, base64Encoder: Base64Encoder) => string;
@@ -0,0 +1,6 @@
1
+ export const strToBase64 = (str, base64Encoder) => {
2
+ return base64Encoder.btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, (match, p1) => {
3
+ return String.fromCharCode(parseInt(p1, 16));
4
+ }));
5
+ };
6
+ //# sourceMappingURL=strToBase64.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strToBase64.js","sourceRoot":"","sources":["../../../src/functions/base64/strToBase64.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,aAA4B,EAAU,EAAE;IAC/E,OAAO,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE;QACzF,OAAO,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorPatterns } from '../../../types/color.d';
2
+ export declare const COLOR_PATTERNS: ColorPatterns;
@@ -0,0 +1,9 @@
1
+ export const COLOR_PATTERNS = {
2
+ hex: /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,
3
+ rgb: /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/,
4
+ rgba: /^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/,
5
+ hsl: /^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/,
6
+ hsla: /^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)$/,
7
+ namedColors: /^(red|green|blue|yellow|orange|purple|pink|brown|black|white|gray|grey|cyan|magenta)$/i
8
+ };
9
+ //# sourceMappingURL=COLOR_PATTERNS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"COLOR_PATTERNS.js","sourceRoot":"","sources":["../../../src/functions/color-converter/COLOR_PATTERNS.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,cAAc,GAAkB;IAE3C,GAAG,EAAE,kEAAkE;IAGvE,GAAG,EAAE,8CAA8C;IAGnD,IAAI,EAAE,8DAA8D;IAGpE,GAAG,EAAE,gDAAgD;IAGrD,IAAI,EAAE,gEAAgE;IAGtE,WAAW,EAAE,wFAAwF;CACtG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ColorPatterns, NamedColorMap } from '../../../types/color.d';
2
+ export declare const COLOR_PATTERNS: ColorPatterns;
3
+ export declare const NAMED_COLOR_MAP: NamedColorMap;
4
+ export declare function detectColorFormat(color: string): keyof ColorPatterns | undefined;
@@ -0,0 +1,41 @@
1
+ export const COLOR_PATTERNS = {
2
+ hex: /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,
3
+ rgb: /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/,
4
+ rgba: /^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/,
5
+ hsl: /^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/,
6
+ hsla: /^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)$/,
7
+ namedColors: /^(red|green|blue|yellow|orange|purple|pink|brown|black|white|gray|grey|cyan|magenta)$/i
8
+ };
9
+ export const NAMED_COLOR_MAP = {
10
+ 'red': '#ff0000',
11
+ 'green': '#00ff00',
12
+ 'blue': '#0000ff',
13
+ 'yellow': '#ffff00',
14
+ 'orange': '#ffa500',
15
+ 'purple': '#800080',
16
+ 'pink': '#ffc0cb',
17
+ 'brown': '#a52a2a',
18
+ 'black': '#000000',
19
+ 'white': '#ffffff',
20
+ 'gray': '#808080',
21
+ 'grey': '#808080',
22
+ 'cyan': '#00ffff',
23
+ 'magenta': '#ff00ff'
24
+ };
25
+ export function detectColorFormat(color) {
26
+ const trimmedColor = color.trim();
27
+ if (COLOR_PATTERNS.hex.test(trimmedColor))
28
+ return 'hex';
29
+ if (COLOR_PATTERNS.rgba.test(trimmedColor))
30
+ return 'rgba';
31
+ if (COLOR_PATTERNS.rgb.test(trimmedColor))
32
+ return 'rgb';
33
+ if (COLOR_PATTERNS.hsla.test(trimmedColor))
34
+ return 'hsla';
35
+ if (COLOR_PATTERNS.hsl.test(trimmedColor))
36
+ return 'hsl';
37
+ if (COLOR_PATTERNS.namedColors.test(trimmedColor))
38
+ return 'namedColors';
39
+ return undefined;
40
+ }
41
+ //# sourceMappingURL=colorPatterns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorPatterns.js","sourceRoot":"","sources":["../../../src/functions/color-converter/colorPatterns.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAkB;IAE3C,GAAG,EAAE,kEAAkE;IAGvE,GAAG,EAAE,8CAA8C;IAGnD,IAAI,EAAE,8DAA8D;IAGpE,GAAG,EAAE,gDAAgD;IAGrD,IAAI,EAAE,gEAAgE;IAGtE,WAAW,EAAE,wFAAwF;CACtG,CAAA;AAKD,MAAM,CAAC,MAAM,eAAe,GAAkB;IAC5C,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,SAAS;CACrB,CAAA;AAOD,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;IAEjC,IAAI,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAA;IACvD,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,MAAM,CAAA;IACzD,IAAI,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAA;IACvD,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,MAAM,CAAA;IACzD,IAAI,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAA;IACvD,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,aAAa,CAAA;IAEvE,OAAO,SAAS,CAAA;AAClB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { RgbColor, HslColor, ColorFormat } from '../../../types/color.d';
2
+ export declare function convertColor(input: string | RgbColor | HslColor | number[], targetFormat: ColorFormat, options?: {
3
+ includeAlpha?: boolean;
4
+ strict?: boolean;
5
+ precision?: number;
6
+ }): string | null;
@@ -0,0 +1,12 @@
1
+ import { normalizeColorInput } from './normalizeColorInput';
2
+ import { formatColorOutput } from './formatColorOutput';
3
+ export function convertColor(input, targetFormat, options = {}) {
4
+ const { includeAlpha = false, precision = 0 } = options;
5
+ const normalizedInput = normalizeColorInput(input);
6
+ if (!normalizedInput) {
7
+ return null;
8
+ }
9
+ const { rgb, alpha } = normalizedInput;
10
+ return formatColorOutput(rgb, alpha, targetFormat, { includeAlpha, precision });
11
+ }
12
+ //# sourceMappingURL=convertColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertColor.js","sourceRoot":"","sources":["../../../src/functions/color-converter/convertColor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAmCvD,MAAM,UAAU,YAAY,CAC1B,KAA8C,EAC9C,YAAyB,EACzB,UAOI,EAAE;IAEN,MAAM,EAAE,YAAY,GAAG,KAAK,EAAE,SAAS,GAAG,CAAC,EAAE,GAAG,OAAO,CAAA;IAGvD,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAA;IAClD,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,eAAe,CAAA;IAGtC,OAAO,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAA;AACjF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorReference } from '../../../types/color';
2
+ export declare function createColorReference(value: string, format: ColorReference['format'], file: string, line: number, context: string, originalValue: string, isVariableReference?: boolean, variableName?: string): ColorReference;
@@ -0,0 +1,12 @@
1
+ export function createColorReference(value, format, file, line, context, originalValue, isVariableReference = false, variableName) {
2
+ return {
3
+ originalValue,
4
+ format,
5
+ file,
6
+ line,
7
+ context: context.trim(),
8
+ isVariableReference,
9
+ variableName
10
+ };
11
+ }
12
+ //# sourceMappingURL=createColorReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createColorReference.js","sourceRoot":"","sources":["../../../src/functions/color-converter/createColorReference.ts"],"names":[],"mappings":"AAsCA,MAAM,UAAU,oBAAoB,CAClC,KAAa,EACb,MAAgC,EAChC,IAAY,EACZ,IAAY,EACZ,OAAe,EACf,aAAqB,EACrB,sBAA+B,KAAK,EACpC,YAAqB;IAErB,OAAO;QACL,aAAa;QACb,MAAM;QACN,IAAI;QACJ,IAAI;QACJ,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;QACvB,mBAAmB;QACnB,YAAY;KACb,CAAA;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorFormat } from '../../../types/color.d';
2
+ export declare function detectColorFormat(color: string): ColorFormat | undefined;
@@ -0,0 +1,19 @@
1
+ import { getColorPatterns } from './getColorPatterns';
2
+ export function detectColorFormat(color) {
3
+ const trimmedColor = color.trim();
4
+ const patterns = getColorPatterns();
5
+ if (patterns.hex.test(trimmedColor))
6
+ return 'hex';
7
+ if (patterns.rgba.test(trimmedColor))
8
+ return 'rgba';
9
+ if (patterns.rgb.test(trimmedColor))
10
+ return 'rgb';
11
+ if (patterns.hsla.test(trimmedColor))
12
+ return 'hsla';
13
+ if (patterns.hsl.test(trimmedColor))
14
+ return 'hsl';
15
+ if (patterns.namedColors.test(trimmedColor))
16
+ return 'named';
17
+ return undefined;
18
+ }
19
+ //# sourceMappingURL=detectColorFormat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detectColorFormat.js","sourceRoot":"","sources":["../../../src/functions/color-converter/detectColorFormat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAwCrD,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;IACjC,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAA;IAInC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAA;IACjD,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,MAAM,CAAA;IACnD,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAA;IACjD,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,MAAM,CAAA;IACnD,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAA;IACjD,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,OAAO,CAAA;IAE3D,OAAO,SAAS,CAAA;AAClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ColorReference, ColorExtractorDependencies, ColorExtractionOptions } from '../../../types/color';
2
+ export type { ColorExtractorDependencies, ColorExtractionOptions } from '../../../types/color';
3
+ export declare function extractColors(code: string, filePath: string, dependencies: ColorExtractorDependencies, options?: ColorExtractionOptions): ColorReference[];
@@ -0,0 +1,16 @@
1
+ import { extractColorsFromLine } from './extractColorsFromLine';
2
+ import { parseCssVariables } from './parseCssVariables';
3
+ export function extractColors(code, filePath, dependencies, options = {}) {
4
+ const cssVariables = parseCssVariables(code, filePath, dependencies);
5
+ const thirdPartyVariables = options.thirdPartyVariables || {};
6
+ const colors = [];
7
+ const lines = code.split('\n');
8
+ for (let i = 0; i < lines.length; i++) {
9
+ const line = lines[i];
10
+ const lineNumber = i + 1;
11
+ const lineColors = extractColorsFromLine(line, filePath, lineNumber, dependencies, { cssVariables, thirdPartyVariables });
12
+ colors.push(...lineColors);
13
+ }
14
+ return colors;
15
+ }
16
+ //# sourceMappingURL=extractColors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractColors.js","sourceRoot":"","sources":["../../../src/functions/color-converter/extractColors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAmCvD,MAAM,UAAU,aAAa,CAC3B,IAAY,EACZ,QAAgB,EAChB,YAAwC,EACxC,UAAkC,EAAE;IAGpC,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAA;IAGpE,MAAM,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,IAAI,EAAE,CAAA;IAE7D,MAAM,MAAM,GAAqB,EAAE,CAAA;IACnC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAE9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,CAAA;QAGxB,MAAM,UAAU,GAAG,qBAAqB,CACtC,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,EAAE,YAAY,EAAE,mBAAmB,EAAE,CACtC,CAAA;QAED,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAA;IAC5B,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorReference, ColorExtractorDependencies, ColorExtractionOptions } from '../../../types/color';
2
+ export declare function extractColorsFromLine(line: string, filePath: string, lineNumber: number, dependencies: ColorExtractorDependencies, options?: ColorExtractionOptions): ColorReference[];
@@ -0,0 +1,18 @@
1
+ import { extractColorsGeneric } from './extractColorsGeneric';
2
+ import { extractCssVariableReferences } from './extractCssVariableReferences';
3
+ import { extractThirdPartyVariableReferences } from './extractThirdPartyVariableReferences';
4
+ export function extractColorsFromLine(line, filePath, lineNumber, dependencies, options = {}) {
5
+ const { cssVariables = {}, thirdPartyVariables = {} } = options;
6
+ const colors = [];
7
+ const patterns = dependencies.getColorPatterns();
8
+ colors.push(...extractColorsGeneric(line, filePath, lineNumber, patterns.hex, 'hex', dependencies));
9
+ colors.push(...extractColorsGeneric(line, filePath, lineNumber, patterns.rgb, 'rgb', dependencies));
10
+ colors.push(...extractColorsGeneric(line, filePath, lineNumber, patterns.rgba, 'rgba', dependencies));
11
+ colors.push(...extractColorsGeneric(line, filePath, lineNumber, patterns.hsl, 'hsl', dependencies));
12
+ colors.push(...extractColorsGeneric(line, filePath, lineNumber, patterns.hsla, 'hsla', dependencies));
13
+ colors.push(...extractColorsGeneric(line, filePath, lineNumber, patterns.namedColors, 'named', dependencies));
14
+ colors.push(...extractCssVariableReferences(line, filePath, lineNumber, patterns, cssVariables));
15
+ colors.push(...extractThirdPartyVariableReferences(line, filePath, lineNumber, patterns, thirdPartyVariables));
16
+ return colors;
17
+ }
18
+ //# sourceMappingURL=extractColorsFromLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractColorsFromLine.js","sourceRoot":"","sources":["../../../src/functions/color-converter/extractColorsFromLine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAA;AAqC3F,MAAM,UAAU,qBAAqB,CACnC,IAAY,EACZ,QAAgB,EAChB,UAAkB,EAClB,YAAwC,EACxC,UAAkC,EAAE;IAEpC,MAAM,EAAE,YAAY,GAAG,EAAE,EAAE,mBAAmB,GAAG,EAAE,EAAE,GAAG,OAAO,CAAA;IAC/D,MAAM,MAAM,GAAqB,EAAE,CAAA;IACnC,MAAM,QAAQ,GAAG,YAAY,CAAC,gBAAgB,EAAE,CAAA;IAGhD,MAAM,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAA;IACnG,MAAM,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAA;IACnG,MAAM,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;IACrG,MAAM,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAA;IACnG,MAAM,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;IACrG,MAAM,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAA;IAC7G,MAAM,CAAC,IAAI,CAAC,GAAG,4BAA4B,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA;IAChG,MAAM,CAAC,IAAI,CAAC,GAAG,mCAAmC,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAA;IAE9G,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorReference, ColorFormat, ColorExtractorDependencies } from '../../../types/color';
2
+ export declare function extractColorsGeneric(line: string, filePath: string, lineNumber: number, pattern: RegExp, format: ColorFormat, dependencies: ColorExtractorDependencies): ColorReference[];
@@ -0,0 +1,12 @@
1
+ import { createColorReference } from './createColorReference';
2
+ export function extractColorsGeneric(line, filePath, lineNumber, pattern, format, dependencies) {
3
+ const colors = [];
4
+ const matches = line.matchAll(new RegExp(pattern.source, 'g'));
5
+ for (const match of matches) {
6
+ const originalColor = match[0];
7
+ const standardizedColor = dependencies.standardizeColor(originalColor);
8
+ colors.push(createColorReference(standardizedColor, format, filePath, lineNumber, line, originalColor));
9
+ }
10
+ return colors;
11
+ }
12
+ //# sourceMappingURL=extractColorsGeneric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractColorsGeneric.js","sourceRoot":"","sources":["../../../src/functions/color-converter/extractColorsGeneric.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAoC7D,MAAM,UAAU,oBAAoB,CAClC,IAAY,EACZ,QAAgB,EAChB,UAAkB,EAClB,OAAe,EACf,MAAmB,EACnB,YAAwC;IAExC,MAAM,MAAM,GAAqB,EAAE,CAAA;IACnC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;IAE9D,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QAE9B,MAAM,iBAAiB,GAAG,YAAY,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;QAEtE,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAC9B,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,aAAa,CACd,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorReference, ColorPatterns } from '../../../types/color';
2
+ export declare function extractCssVariableReferences(line: string, filePath: string, lineNumber: number, patterns: ColorPatterns, cssVariables: Record<string, string>): ColorReference[];
@@ -0,0 +1,15 @@
1
+ import { createColorReference } from './createColorReference';
2
+ export function extractCssVariableReferences(line, filePath, lineNumber, patterns, cssVariables) {
3
+ const colors = [];
4
+ const cssVarPattern = /var\(\s*--([\w-]+)\s*\)/g;
5
+ const matches = line.matchAll(cssVarPattern);
6
+ for (const match of matches) {
7
+ const variableName = match[1];
8
+ const variableValue = cssVariables[variableName];
9
+ if (variableValue) {
10
+ colors.push(createColorReference(variableValue, 'css-variable', filePath, lineNumber, line, variableValue, true, variableName));
11
+ }
12
+ }
13
+ return colors;
14
+ }
15
+ //# sourceMappingURL=extractCssVariableReferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractCssVariableReferences.js","sourceRoot":"","sources":["../../../src/functions/color-converter/extractCssVariableReferences.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAmC7D,MAAM,UAAU,4BAA4B,CAC1C,IAAY,EACZ,QAAgB,EAChB,UAAkB,EAClB,QAAuB,EACvB,YAAoC;IAEpC,MAAM,MAAM,GAAqB,EAAE,CAAA;IAGnC,MAAM,aAAa,GAAG,0BAA0B,CAAA;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;IAE5C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QAC7B,MAAM,aAAa,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;QAEhD,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAC9B,aAAa,EACb,cAAc,EACd,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,YAAY,CACb,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ColorReference, ColorPatterns } from '../../../types/color';
2
+ export declare function extractThirdPartyVariableReferences(line: string, filePath: string, lineNumber: number, patterns: ColorPatterns, thirdPartyVariables: Record<string, string>): ColorReference[];
@@ -0,0 +1,15 @@
1
+ import { createColorReference } from './createColorReference';
2
+ export function extractThirdPartyVariableReferences(line, filePath, lineNumber, patterns, thirdPartyVariables) {
3
+ const colors = [];
4
+ const thirdPartyPattern = /\$([\w-]+)/g;
5
+ const matches = line.matchAll(thirdPartyPattern);
6
+ for (const match of matches) {
7
+ const variableName = match[1];
8
+ const variableValue = thirdPartyVariables[variableName];
9
+ if (variableValue) {
10
+ colors.push(createColorReference(variableValue, 'third-party-variable', filePath, lineNumber, line, variableName, true, variableName));
11
+ }
12
+ }
13
+ return colors;
14
+ }
15
+ //# sourceMappingURL=extractThirdPartyVariableReferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractThirdPartyVariableReferences.js","sourceRoot":"","sources":["../../../src/functions/color-converter/extractThirdPartyVariableReferences.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAmC7D,MAAM,UAAU,mCAAmC,CACjD,IAAY,EACZ,QAAgB,EAChB,UAAkB,EAClB,QAAuB,EACvB,mBAA2C;IAE3C,MAAM,MAAM,GAAqB,EAAE,CAAA;IAGnC,MAAM,iBAAiB,GAAG,aAAa,CAAA;IACvC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAEhD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QAC7B,MAAM,aAAa,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAA;QAEvD,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAC9B,aAAa,EACb,sBAAsB,EACtB,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,YAAY,CACb,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { RgbColor, ColorFormat } from '../../../types/color.d';
2
+ export declare function formatColorOutput(rgb: RgbColor, alpha: number, targetFormat: ColorFormat, options: {
3
+ includeAlpha?: boolean;
4
+ precision?: number;
5
+ }): string | null;