weapp-tailwindcss 5.1.15 → 5.2.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 (457) hide show
  1. package/README.en.md +6 -0
  2. package/README.md +6 -0
  3. package/bin/{weapp-tailwindcss.js → weapp-tailwindcss.cjs} +1 -1
  4. package/dist/bundlers/framework-selector.d.ts +2 -2
  5. package/dist/bundlers/gulp/asset-emission-plan.d.ts +10 -0
  6. package/dist/bundlers/gulp/frameworks/native/index.d.ts +10 -3
  7. package/dist/bundlers/gulp/index.d.ts +10 -3
  8. package/dist/bundlers/gulp/module-graph.d.ts +1 -1
  9. package/dist/bundlers/gulp/runtime-snapshot.d.ts +4 -2
  10. package/dist/bundlers/gulp/shared/create-native-framework-plugins/cache-state.d.ts +71 -0
  11. package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +45 -0
  12. package/dist/bundlers/gulp/shared/create-native-framework-plugins.d.ts +9 -2
  13. package/dist/bundlers/rspack/index.d.ts +2 -2
  14. package/dist/bundlers/shared/cache.d.ts +1 -1
  15. package/dist/bundlers/shared/css-imports.d.ts +1 -1
  16. package/dist/bundlers/shared/css-source-trace.d.ts +2 -2
  17. package/dist/bundlers/shared/framework-postcss.d.ts +21 -0
  18. package/dist/bundlers/shared/generator-css/candidates.d.ts +2 -0
  19. package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +19 -0
  20. package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +25 -0
  21. package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +30 -0
  22. package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +2 -0
  23. package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +4 -72
  24. package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +5 -3
  25. package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +58 -0
  26. package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +3 -0
  27. package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +3 -0
  28. package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +3 -0
  29. package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +3 -0
  30. package/dist/bundlers/shared/generator-css/pipeline.d.ts +2 -0
  31. package/dist/bundlers/shared/generator-css/result-helpers.d.ts +6 -0
  32. package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -0
  33. package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +32 -0
  34. package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -1
  35. package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +13 -5
  36. package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -1
  37. package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +4 -0
  38. package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +5 -0
  39. package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +16 -0
  40. package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +3 -0
  41. package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +5 -0
  42. package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +4 -4
  43. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +7 -9
  44. package/dist/bundlers/shared/generator-css/types.d.ts +12 -3
  45. package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +9 -0
  46. package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +3 -0
  47. package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +4 -0
  48. package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +9 -0
  49. package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +10 -0
  50. package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +15 -0
  51. package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -33
  52. package/dist/bundlers/shared/generator-css/validate.d.ts +1 -1
  53. package/dist/bundlers/shared/generator-css.d.ts +9 -10
  54. package/dist/bundlers/shared/runtime-class-set/entries.d.ts +4 -0
  55. package/dist/bundlers/shared/runtime-class-set/escaped-candidates.d.ts +9 -0
  56. package/dist/bundlers/shared/runtime-class-set.d.ts +30 -0
  57. package/dist/bundlers/shared/runtime-entry-type.d.ts +8 -0
  58. package/dist/bundlers/shared/runtime-signatures.d.ts +8 -0
  59. package/dist/bundlers/shared/source-candidate-scan-signature.d.ts +13 -0
  60. package/dist/bundlers/shared/source-candidates/collector.d.ts +8 -0
  61. package/dist/bundlers/shared/source-candidates/scan-root.d.ts +10 -0
  62. package/dist/bundlers/{vite → shared}/source-candidates/script.d.ts +1 -1
  63. package/dist/bundlers/shared/source-candidates/store.d.ts +2 -0
  64. package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +69 -0
  65. package/dist/bundlers/shared/source-candidates.d.ts +4 -0
  66. package/dist/bundlers/shared/source-scan/css-entries.d.ts +18 -0
  67. package/dist/bundlers/shared/source-scan.d.ts +16 -0
  68. package/dist/bundlers/shared/static-config-content.d.ts +5 -0
  69. package/dist/bundlers/shared/v4-generation-core.d.ts +9 -1
  70. package/dist/bundlers/vite/bundle-entries.d.ts +1 -1
  71. package/dist/bundlers/vite/bundle-state.d.ts +11 -38
  72. package/dist/bundlers/vite/css-asset-identity.d.ts +11 -0
  73. package/dist/bundlers/vite/css-finalizer/options.d.ts +54 -0
  74. package/dist/bundlers/vite/css-finalizer/plugin.d.ts +3 -0
  75. package/dist/bundlers/vite/css-finalizer.d.ts +1 -43
  76. package/dist/bundlers/vite/css-memory.d.ts +1 -2
  77. package/dist/bundlers/vite/frameworks/generic/index.d.ts +2 -2
  78. package/dist/bundlers/vite/frameworks/taro/index.d.ts +2 -2
  79. package/dist/bundlers/vite/frameworks/uni-app/index.d.ts +3 -3
  80. package/dist/bundlers/vite/frameworks/uni-app-x/index.d.ts +3 -3
  81. package/dist/bundlers/vite/frameworks/weapp-vite/index.d.ts +2 -2
  82. package/dist/bundlers/vite/generate-bundle/asset-emission-plan.d.ts +8 -0
  83. package/dist/bundlers/vite/generate-bundle/bundle-markup-candidates.d.ts +4 -4
  84. package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
  85. package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
  86. package/dist/bundlers/vite/generate-bundle/css-cache-task.d.ts +34 -0
  87. package/dist/bundlers/vite/generate-bundle/css-composition-plan.d.ts +58 -0
  88. package/dist/bundlers/vite/generate-bundle/css-config-directives.d.ts +1 -1
  89. package/dist/bundlers/vite/generate-bundle/css-entry-processing.d.ts +1 -0
  90. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
  91. package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +21 -2
  92. package/dist/bundlers/vite/generate-bundle/css-output.d.ts +1 -1
  93. package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +1 -1
  94. package/dist/bundlers/vite/generate-bundle/css-source-plan.d.ts +19 -0
  95. package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +61 -0
  96. package/dist/bundlers/vite/generate-bundle/css-transform-result.d.ts +23 -0
  97. package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +42 -0
  98. package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +3 -2
  99. package/dist/bundlers/vite/generate-bundle/finalize/bundle.d.ts +2 -0
  100. package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +69 -0
  101. package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -70
  102. package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +2 -2
  103. package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +1 -1
  104. package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +2 -1
  105. package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +2 -2
  106. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +6 -5
  107. package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +1 -1
  108. package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +1 -1
  109. package/dist/bundlers/vite/generate-bundle/remembered-css-plan.d.ts +35 -0
  110. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +5 -6
  111. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +2 -2
  112. package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +20 -0
  113. package/dist/bundlers/vite/generate-bundle/runtime-configured-css.d.ts +54 -0
  114. package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +1 -1
  115. package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +3 -3
  116. package/dist/bundlers/vite/generate-bundle/runtime.d.ts +6 -0
  117. package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +2 -2
  118. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -2
  119. package/dist/bundlers/vite/generate-bundle/signatures.d.ts +1 -8
  120. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +3 -3
  121. package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +5 -0
  122. package/dist/bundlers/vite/generate-bundle/subpackages.d.ts +2 -2
  123. package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +14 -1
  124. package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +1 -1
  125. package/dist/bundlers/vite/generate-bundle/transform-scheduling.d.ts +1 -0
  126. package/dist/bundlers/vite/generate-bundle/types.d.ts +8 -7
  127. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +3 -2
  128. package/dist/bundlers/vite/generate-bundle/validate-runtime-candidates.d.ts +22 -0
  129. package/dist/bundlers/vite/generate-bundle.d.ts +7 -7
  130. package/dist/bundlers/vite/incremental-runtime-class-set/entries.d.ts +1 -4
  131. package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -3
  132. package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +2 -30
  133. package/dist/bundlers/vite/index.d.ts +3 -3
  134. package/dist/bundlers/vite/js-precheck.d.ts +1 -1
  135. package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +13 -0
  136. package/dist/bundlers/vite/processed-css-assets/collector.d.ts +4 -0
  137. package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +34 -0
  138. package/dist/bundlers/vite/processed-css-assets/empty-at-rule.d.ts +1 -0
  139. package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +42 -0
  140. package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +89 -0
  141. package/dist/bundlers/vite/processed-css-assets/style-files.d.ts +3 -0
  142. package/dist/bundlers/vite/processed-css-assets.d.ts +4 -71
  143. package/dist/bundlers/vite/resolve-app-type.d.ts +1 -1
  144. package/dist/bundlers/vite/rewrite-css-imports.d.ts +3 -1
  145. package/dist/bundlers/vite/runtime-affecting-signature.d.ts +1 -2
  146. package/dist/bundlers/vite/runtime-candidate-entry.d.ts +9 -0
  147. package/dist/bundlers/vite/runtime-class-set.d.ts +4 -4
  148. package/dist/bundlers/vite/serve-css-generation.d.ts +2 -0
  149. package/dist/bundlers/vite/serve-js-transform.d.ts +1 -1
  150. package/dist/bundlers/vite/serve-root-import-shell.d.ts +1 -1
  151. package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +2 -0
  152. package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -8
  153. package/dist/bundlers/vite/shared/framework-hmr-candidate-state.d.ts +45 -0
  154. package/dist/bundlers/vite/shared/framework-post-plugin.d.ts +2 -0
  155. package/dist/bundlers/vite/shared/framework-processed-css-registry.d.ts +22 -0
  156. package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +1 -0
  157. package/dist/bundlers/vite/shared/framework-source-candidates-plugin.d.ts +2 -0
  158. package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +38 -0
  159. package/dist/bundlers/vite/shared/framework-strategy.d.ts +4 -4
  160. package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +2 -13
  161. package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -10
  162. package/dist/bundlers/vite/source-candidates.d.ts +1 -68
  163. package/dist/bundlers/vite/source-output-relations.d.ts +24 -0
  164. package/dist/bundlers/vite/source-scan/css-entries.d.ts +2 -18
  165. package/dist/bundlers/vite/source-scan.d.ts +2 -16
  166. package/dist/bundlers/vite/static-config-content.d.ts +1 -5
  167. package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
  168. package/dist/bundlers/vite/web-css-compat.d.ts +1 -1
  169. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/asset-emission-plan.d.ts +18 -0
  170. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +2 -2
  171. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/finalize-assets.d.ts +2 -0
  172. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-result.d.ts +3 -0
  173. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-task.d.ts +2 -0
  174. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -41
  175. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/html-js-tasks.d.ts +5 -0
  176. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +4 -10
  177. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +30 -0
  178. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +8 -0
  179. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts +78 -0
  180. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +43 -0
  181. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/resources.d.ts +30 -0
  182. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/runtime-candidates.d.ts +1 -0
  183. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +28 -0
  184. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -0
  185. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +21 -0
  186. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +9 -219
  187. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +4 -0
  188. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +3 -3
  189. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +3 -3
  190. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +2 -2
  191. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +8 -4
  192. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +2 -2
  193. package/dist/bundlers/webpack/frameworks/generic/index.d.ts +2 -2
  194. package/dist/bundlers/webpack/frameworks/index.d.ts +7 -7
  195. package/dist/bundlers/webpack/frameworks/mpx/index.d.ts +2 -2
  196. package/dist/bundlers/webpack/frameworks/taro/index.d.ts +2 -2
  197. package/dist/bundlers/webpack/frameworks/uni-app/index.d.ts +2 -2
  198. package/dist/bundlers/webpack/frameworks/weapp-vite/index.d.ts +2 -2
  199. package/dist/bundlers/webpack/index.d.ts +1 -1
  200. package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +7 -2
  201. package/dist/bundlers/webpack/loaders/weapp-tw-css-generation-loader.d.ts +1 -1
  202. package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +1 -1
  203. package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +1 -1
  204. package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +20 -0
  205. package/dist/bundlers/webpack/shared/create-framework-plugin/watch-output.d.ts +13 -0
  206. package/dist/bundlers/webpack/shared/create-framework-plugin.d.ts +3 -21
  207. package/dist/cli/context.d.ts +2 -2
  208. package/dist/cli/doctor.d.ts +1 -1
  209. package/dist/cli/helpers/options.d.ts +3 -3
  210. package/dist/cli/helpers.d.ts +1 -1
  211. package/dist/cli.cjs +37012 -0
  212. package/dist/cli.js +145 -176
  213. package/dist/compiler/artifact.d.ts +14 -0
  214. package/dist/compiler/candidate-index.d.ts +10 -0
  215. package/dist/compiler/compilation-change-coordinator.d.ts +28 -0
  216. package/dist/compiler/compilation-dependency-state.d.ts +16 -0
  217. package/dist/compiler/compilation-scope-graph.d.ts +31 -0
  218. package/dist/compiler/compilation-session-pool.d.ts +54 -0
  219. package/dist/compiler/compiler-owner-state.d.ts +3 -0
  220. package/dist/compiler/composition.d.ts +8 -0
  221. package/dist/compiler/emission-plan.d.ts +26 -0
  222. package/dist/compiler/index.d.ts +23 -0
  223. package/dist/compiler/invalidation.d.ts +3 -0
  224. package/dist/compiler/mode.d.ts +3 -0
  225. package/dist/compiler/owner-lifecycle.d.ts +1 -0
  226. package/dist/compiler/platform-adapter.d.ts +9 -0
  227. package/dist/compiler/runtime-affecting-signature.d.ts +2 -0
  228. package/dist/compiler/runtime-build-state.d.ts +6 -0
  229. package/dist/compiler/runtime-snapshot.d.ts +53 -0
  230. package/dist/compiler/scope-planner.d.ts +6 -0
  231. package/dist/compiler/semantic-css.d.ts +66 -0
  232. package/dist/compiler/session.d.ts +13 -0
  233. package/dist/compiler/shadow-gate.d.ts +26 -0
  234. package/dist/compiler/shadow-report-session.d.ts +37 -0
  235. package/dist/compiler/shadow-report.d.ts +15 -0
  236. package/dist/compiler/source-graph.d.ts +32 -0
  237. package/dist/compiler/tailwind-generation-session-pool.d.ts +22 -0
  238. package/dist/compiler/types.d.ts +95 -0
  239. package/dist/constants.d.ts +2 -2
  240. package/dist/context/compiler-context-cache.d.ts +1 -1
  241. package/dist/context/custom-attributes.d.ts +1 -1
  242. package/dist/context/handlers.d.ts +3 -3
  243. package/dist/context/index.d.ts +1 -1
  244. package/dist/context/runtime-package-replacements.d.ts +1 -1
  245. package/dist/context/style-options.d.ts +1 -1
  246. package/dist/context/tailwindcss.d.ts +3 -3
  247. package/dist/{context-VeFq_8vW.js → context-PZXBqrAJ.cjs} +32 -94
  248. package/dist/{context-BgGWVAmN.mjs → context-oTkxC5aZ.js} +23 -12
  249. package/dist/{core.mjs → core.cjs} +13 -12
  250. package/dist/core.d.ts +2 -2
  251. package/dist/core.js +12 -13
  252. package/dist/css-imports-DfNC3e6a.cjs +43 -0
  253. package/dist/css-loader-runtime-CSv0lKqV.cjs +11 -0
  254. package/dist/css-macro/postcss.cjs +19 -0
  255. package/dist/css-macro/postcss.js +2 -19
  256. package/dist/{css-macro.mjs → css-macro.cjs} +11 -8
  257. package/dist/css-macro.d.ts +2 -2
  258. package/dist/css-macro.js +8 -11
  259. package/dist/{defaults.mjs → defaults.cjs} +16 -11
  260. package/dist/defaults.d.ts +1 -1
  261. package/dist/defaults.js +11 -16
  262. package/dist/{escape.mjs → escape.cjs} +18 -4
  263. package/dist/escape.js +4 -18
  264. package/dist/framework/platform.d.ts +1 -1
  265. package/dist/{framework.mjs → framework.cjs} +47 -25
  266. package/dist/framework.d.ts +1 -1
  267. package/dist/framework.js +25 -47
  268. package/dist/generator/index.d.ts +6 -6
  269. package/dist/generator/options.d.ts +3 -3
  270. package/dist/generator/types.d.ts +2 -2
  271. package/dist/{generator-CEnUsjed.js → generator-C8D5cnbe.cjs} +730 -468
  272. package/dist/{generator-CEo920So.mjs → generator-CDdzqf1S.js} +747 -497
  273. package/dist/generator.cjs +12 -0
  274. package/dist/generator.d.ts +1 -1
  275. package/dist/generator.js +2 -12
  276. package/dist/{gulp-3m1dAiig.js → gulp-Cjcss8T_.cjs} +326 -241
  277. package/dist/{gulp-DP71z1jG.mjs → gulp-DNXQvDUw.js} +316 -234
  278. package/dist/gulp.cjs +5 -0
  279. package/dist/gulp.d.ts +4 -4
  280. package/dist/gulp.js +2 -5
  281. package/dist/{hmr-timing-1aS6--U7.mjs → hmr-timing-CuJwQzDc.js} +5230 -3259
  282. package/dist/hmr-timing-DMLfNfGG.cjs +555 -0
  283. package/dist/index.cjs +45 -0
  284. package/dist/index.d.ts +9 -9
  285. package/dist/index.js +9 -45
  286. package/dist/js/JsTokenUpdater.d.ts +1 -1
  287. package/dist/js/ModuleGraph.d.ts +3 -3
  288. package/dist/js/NodePathWalker.d.ts +2 -2
  289. package/dist/js/babel/process.d.ts +2 -2
  290. package/dist/js/babel.d.ts +8 -8
  291. package/dist/js/evalTransforms.d.ts +2 -2
  292. package/dist/js/fast-path/oxc.d.ts +1 -1
  293. package/dist/js/handlers.d.ts +2 -2
  294. package/dist/js/index.d.ts +3 -3
  295. package/dist/js/literal-transform.d.ts +1 -1
  296. package/dist/js/module-graph/ignored-exports.d.ts +4 -4
  297. package/dist/js/module-graph/types.d.ts +2 -2
  298. package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
  299. package/dist/js/precheck.d.ts +1 -1
  300. package/dist/js/replacement-cache.d.ts +1 -1
  301. package/dist/js/sourceAnalysis.d.ts +3 -3
  302. package/dist/js/taggedTemplateIgnore.d.ts +1 -1
  303. package/dist/object-Bvy6-w9r.js +47 -0
  304. package/dist/object-C_Vr6_S5.cjs +58 -0
  305. package/dist/options-DlvhQwWB.cjs +775 -0
  306. package/dist/pipeline-helpers-XtUmUlci.cjs +955 -0
  307. package/dist/postcss-html-transform.cjs +7 -0
  308. package/dist/postcss-html-transform.js +3 -5
  309. package/dist/postcss.cjs +15 -0
  310. package/dist/postcss.js +7 -11
  311. package/dist/presets/hbuilderx.d.ts +2 -2
  312. package/dist/presets/index.d.ts +4 -4
  313. package/dist/presets/shared.d.ts +1 -1
  314. package/dist/presets/taro.d.ts +2 -2
  315. package/dist/presets/uni-app-x.d.ts +1 -1
  316. package/dist/presets/uni-app.d.ts +2 -2
  317. package/dist/{presets.mjs → presets.cjs} +37 -24
  318. package/dist/presets.d.ts +1 -1
  319. package/dist/presets.js +24 -36
  320. package/dist/reset.cjs +19 -0
  321. package/dist/reset.d.ts +2 -2
  322. package/dist/reset.js +2 -19
  323. package/dist/{rolldown-runtime-emK7D4bc.js → rolldown-runtime-CVvi-lCc.cjs} +15 -0
  324. package/dist/{rspack.mjs → rspack.cjs} +10 -4
  325. package/dist/rspack.d.ts +3 -3
  326. package/dist/rspack.js +4 -10
  327. package/dist/runtime-branch/create-branch.d.ts +1 -1
  328. package/dist/runtime-branch/generator-target-env.d.ts +1 -1
  329. package/dist/runtime-branch/index.d.ts +2 -2
  330. package/dist/runtime-branch/mini-program.d.ts +1 -1
  331. package/dist/runtime-branch/native-app.d.ts +1 -1
  332. package/dist/runtime-branch/platform.d.ts +2 -2
  333. package/dist/runtime-branch/tailwind-version.d.ts +1 -1
  334. package/dist/runtime-branch/types.d.ts +2 -2
  335. package/dist/runtime-branch/web.d.ts +1 -1
  336. package/dist/runtime-branch.d.ts +1 -1
  337. package/dist/runtime-registry-Y7NrD2WH.cjs +31 -0
  338. package/dist/shared/classname-transform.d.ts +1 -1
  339. package/dist/shared/mpx-plugin-owner.d.ts +2 -0
  340. package/dist/shared/mpx.d.ts +1 -1
  341. package/dist/{source-candidate-scan-signature-Cf7259PR.mjs → source-candidate-scan-signature-B0S7f5P7.js} +26 -336
  342. package/dist/{source-candidate-scan-signature-BAahhiwb.js → source-candidate-scan-signature-BmSuoxR9.cjs} +31 -414
  343. package/dist/style-injector/internal.d.ts +6 -6
  344. package/dist/style-options-CEfXwZzX.cjs +75 -0
  345. package/dist/tailwindcss/candidates.d.ts +2 -2
  346. package/dist/tailwindcss/index.d.ts +1 -1
  347. package/dist/tailwindcss/runtime/cache.d.ts +1 -1
  348. package/dist/tailwindcss/runtime-factory.d.ts +2 -2
  349. package/dist/tailwindcss/runtime-options.d.ts +1 -1
  350. package/dist/tailwindcss/runtime-types.d.ts +2 -2
  351. package/dist/tailwindcss/runtime.d.ts +2 -2
  352. package/dist/tailwindcss/source-scan.d.ts +2 -2
  353. package/dist/tailwindcss/targets.d.ts +1 -1
  354. package/dist/tailwindcss/v4/config.d.ts +1 -1
  355. package/dist/tailwindcss/v4/css-sources.d.ts +2 -1
  356. package/dist/tailwindcss/v4/index.d.ts +2 -2
  357. package/dist/tailwindcss/v4/multi-runtime.d.ts +1 -1
  358. package/dist/tailwindcss/v4/runtime-factory.d.ts +5 -5
  359. package/dist/tailwindcss/v4/runtime-options.d.ts +1 -1
  360. package/dist/tailwindcss/v4-engine/css-macro-source.d.ts +1 -1
  361. package/dist/tailwindcss/v4-engine/generator/cache-stats.d.ts +26 -0
  362. package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
  363. package/dist/tailwindcss/v4-engine/generator/engine.d.ts +2 -0
  364. package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +51 -0
  365. package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +17 -0
  366. package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +2 -1
  367. package/dist/tailwindcss/v4-engine/generator.d.ts +2 -28
  368. package/dist/tailwindcss/v4-engine/index.d.ts +5 -5
  369. package/dist/tailwindcss/v4-engine/miniprogram.d.ts +2 -2
  370. package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
  371. package/dist/tailwindcss/v4-engine/types.d.ts +1 -0
  372. package/dist/{tailwindcss-KBYPJ2DW.js → tailwindcss-Cs94gJgf.cjs} +10 -770
  373. package/dist/{tailwindcss-xs704TRw.mjs → tailwindcss-D7TGiZR2.js} +23 -23
  374. package/dist/transform-BUEyOCT7.cjs +341 -0
  375. package/dist/transform-BbaPIji9.js +342 -0
  376. package/dist/typedoc.export.d.ts +4 -4
  377. package/dist/types/index.d.ts +7 -7
  378. package/dist/types/shared.d.ts +1 -1
  379. package/dist/types/typedoc-tailwindcss-runtime.d.ts +3 -3
  380. package/dist/types/user-defined-options/general.d.ts +5 -5
  381. package/dist/types/user-defined-options/important.d.ts +2 -2
  382. package/dist/types/user-defined-options/index.d.ts +9 -9
  383. package/dist/types/user-defined-options/matcher.d.ts +2 -2
  384. package/dist/types.cjs +0 -0
  385. package/dist/types.d.ts +1 -1
  386. package/dist/types.js +1 -0
  387. package/dist/uni-app-x/harmony.d.ts +1 -0
  388. package/dist/uni-app-x/index.d.ts +2 -2
  389. package/dist/uni-app-x/options.d.ts +1 -1
  390. package/dist/uni-app-x/style-asset/harmony-apply.d.ts +1 -0
  391. package/dist/uni-app-x/style-asset/style-value.d.ts +3 -0
  392. package/dist/uni-app-x/style-asset.d.ts +5 -4
  393. package/dist/uni-app-x/transform.d.ts +1 -1
  394. package/dist/uni-app-x/vite/harmony-apply.d.ts +19 -0
  395. package/dist/uni-app-x/vite/native-target.d.ts +2 -0
  396. package/dist/uni-app-x/vite.d.ts +5 -2
  397. package/dist/unocss/index.d.ts +1 -1
  398. package/dist/utils/disabled.d.ts +1 -1
  399. package/dist/utils/index.d.ts +3 -3
  400. package/dist/{hmr-timing-B8p4f0ca.js → v4-generation-core-D7MuR5ZF.cjs} +4886 -3330
  401. package/dist/{vite-nXZEiwG0.mjs → vite-BI1TeUPO.js} +6148 -4522
  402. package/dist/{vite-DUVjMduj.js → vite-CBzmUTu-.cjs} +6267 -4666
  403. package/dist/vite.cjs +4 -0
  404. package/dist/vite.d.ts +3 -3
  405. package/dist/vite.js +2 -4
  406. package/dist/watch-dependencies-BZGubvuJ.cjs +40 -0
  407. package/dist/{weapp-tw-css-generation-loader.js → weapp-tw-css-generation-loader.cjs} +3 -2
  408. package/dist/weapp-tw-css-import-rewrite-loader.cjs +201 -0
  409. package/dist/{weapp-tw-runtime-classset-loader.js → weapp-tw-runtime-classset-loader.cjs} +19 -15
  410. package/dist/{webpack-nppysF4B.js → webpack-Dao6bWEj.cjs} +1000 -1473
  411. package/dist/{webpack-C_UUFRgj.mjs → webpack-dAY9h8r8.js} +1462 -1185
  412. package/dist/webpack.cjs +5 -0
  413. package/dist/webpack.d.ts +2 -2
  414. package/dist/webpack.js +2 -5
  415. package/dist/wxml/Tokenizer.d.ts +2 -2
  416. package/dist/wxml/custom-attributes.d.ts +1 -1
  417. package/dist/wxml/index.d.ts +2 -2
  418. package/dist/wxml/shared.d.ts +1 -1
  419. package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +1 -1
  420. package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
  421. package/dist/wxml/utils/codegen.d.ts +1 -1
  422. package/dist/wxml/utils/custom-template.d.ts +2 -2
  423. package/dist/wxml/utils/fragment-helpers.d.ts +2 -2
  424. package/dist/wxml/utils/fragment-updater.d.ts +2 -2
  425. package/dist/wxml/utils/template-fragments.d.ts +2 -2
  426. package/dist/wxml/utils.d.ts +5 -5
  427. package/dist/wxml-DSMNuUaP.cjs +38609 -0
  428. package/dist/{cli.mjs → wxml-IBzZSaQC.js} +237 -718
  429. package/package.json +59 -54
  430. package/dist/css-macro/postcss.mjs +0 -2
  431. package/dist/generator.mjs +0 -2
  432. package/dist/gulp.mjs +0 -2
  433. package/dist/index.mjs +0 -9
  434. package/dist/object-BJSWl-E5.mjs +0 -9
  435. package/dist/object-COs_Mw6p.js +0 -14
  436. package/dist/postcss-html-transform.mjs +0 -5
  437. package/dist/postcss.mjs +0 -11
  438. package/dist/reset.mjs +0 -2
  439. package/dist/transform-B_KM9sLX.mjs +0 -14930
  440. package/dist/transform-CcYptivi.js +0 -14927
  441. package/dist/types.mjs +0 -1
  442. package/dist/vite.mjs +0 -2
  443. package/dist/watch-dependencies-bpG6kmAf.js +0 -80
  444. package/dist/weapp-tw-css-import-rewrite-loader-DNk0IxAt.js +0 -10198
  445. package/dist/weapp-tw-css-import-rewrite-loader.js +0 -10
  446. package/dist/webpack.mjs +0 -2
  447. package/dist/wxml-Ce10eREX.js +0 -3979
  448. package/dist/wxml-DdGdeqaH.mjs +0 -3861
  449. /package/dist/{auto-2dg_uhEJ.mjs → auto-2dg_uhEJ.js} +0 -0
  450. /package/dist/{auto-DtU6f3X6.js → auto-DtU6f3X6.cjs} +0 -0
  451. /package/dist/bundlers/{vite → shared}/source-scan/dependencies.d.ts +0 -0
  452. /package/dist/{cache-options-DavPxrhC.js → cache-options-DavPxrhC.cjs} +0 -0
  453. /package/dist/{cache-options-DwBtLwQe.mjs → cache-options-DwBtLwQe.js} +0 -0
  454. /package/dist/{logger-BNzxZbZj.mjs → logger-BNzxZbZj.js} +0 -0
  455. /package/dist/{logger-TlKT3xmR.js → logger-TlKT3xmR.cjs} +0 -0
  456. /package/dist/{utils-CuKLf1Zv.js → utils-CuKLf1Zv.cjs} +0 -0
  457. /package/dist/{utils-MVwpU07P.mjs → utils-MVwpU07P.js} +0 -0
@@ -1,6 +1,6 @@
1
- import type { SourceSideCssEntrySource } from '../source-files';
2
- import type { TailwindResolvedSource } from '../../../../generator';
3
- import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan';
1
+ import type { SourceSideCssEntrySource } from '../source-files.js';
2
+ import type { TailwindResolvedSource } from '../../../../generator/index.js';
3
+ import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
4
4
  export interface GeneratorSourceMetadata {
5
5
  candidateMatchedCssSource?: boolean | undefined;
6
6
  cssEntryIndex?: number | undefined;
@@ -13,8 +13,16 @@ export interface GeneratorSourceMetadata {
13
13
  sourceBase?: string | undefined;
14
14
  sourceCss?: string | undefined;
15
15
  }
16
+ declare const generatorSourceMetadataKey: unique symbol;
16
17
  export type GeneratorResolvedSource = TailwindResolvedSource & {
17
- __weappTailwindcssMeta?: GeneratorSourceMetadata | undefined;
18
+ [generatorSourceMetadataKey]?: GeneratorSourceMetadata | undefined;
18
19
  };
20
+ export interface GeneratorSourceRecord {
21
+ source: TailwindResolvedSource;
22
+ metadata: GeneratorSourceMetadata;
23
+ }
24
+ export declare function getGeneratorSourceMetadata(source: TailwindResolvedSource): GeneratorSourceMetadata | undefined;
19
25
  export declare function withGeneratorSourceMetadata(source: TailwindResolvedSource, metadata: GeneratorSourceMetadata): GeneratorResolvedSource;
20
- export declare function withMatchedSourceSideMetadata(source: TailwindResolvedSource, resolvedEntrySource: SourceSideCssEntrySource, metadata?: GeneratorSourceMetadata): import("@/generator").TailwindV4ResolvedSource;
26
+ export declare function createGeneratorSourceRecord(source: TailwindResolvedSource): GeneratorSourceRecord;
27
+ export declare function withMatchedSourceSideMetadata(source: TailwindResolvedSource, resolvedEntrySource: SourceSideCssEntrySource, metadata?: GeneratorSourceMetadata): import("../../../../generator/index.js").TailwindV4ResolvedSource;
28
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { TailwindV4CssSource } from './types';
2
+ import type { TailwindV4CssSource } from './types.js';
3
3
  export declare function resolvePostcssFromOption(cssHandlerOptions: IStyleHandlerOptions): string | undefined;
4
4
  export declare function resolvePostcssRequestOption(cssHandlerOptions: IStyleHandlerOptions): string | undefined;
5
5
  export declare function resolvePostcssSourceFile(cssHandlerOptions: IStyleHandlerOptions): string | undefined;
@@ -0,0 +1,4 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './types.js';
3
+ import type { NormalizedWeappTailwindcssGeneratorOptions } from '../../../../generator/index.js';
4
+ export declare function resolveGeneratorSource(_majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<import("../../../../generator/index.js").TailwindV4ResolvedSource>;
@@ -0,0 +1,5 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { GeneratorSourceRecord } from './metadata.js';
3
+ import type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './types.js';
4
+ import type { NormalizedWeappTailwindcssGeneratorOptions } from '../../../../generator/index.js';
5
+ export declare function resolveGeneratorSources(majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<GeneratorSourceRecord[]>;
@@ -0,0 +1,16 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { resolveSourceSideCssEntrySource } from '../source-files.js';
3
+ import type { GeneratorSourceSelectionOptions, TailwindV4CssSource, TailwindV4SourceOptions } from './types.js';
4
+ import type { NormalizedWeappTailwindcssGeneratorOptions, resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator/index.js';
5
+ export declare function resolveSingleTailwindV4CssSource(cssSource: TailwindV4CssSource, sourceOptions: TailwindV4SourceOptions, options?: {
6
+ includesPreflight?: boolean | undefined;
7
+ index?: number | undefined;
8
+ matched?: boolean;
9
+ primary?: boolean | undefined;
10
+ }): Promise<import("./metadata.js").GeneratorResolvedSource>;
11
+ export declare function resolveTailwindV4CssSourceEntries(cssSource: TailwindV4CssSource, sourceOptions: TailwindV4SourceOptions): Promise<import("../../source-scan.js").ResolvedTailwindV4CssEntries | undefined>;
12
+ export declare function resolveCandidateMatchedTailwindV4CssSource(_rawSource: string, _cssHandlerOptions: IStyleHandlerOptions, sourceOptions: TailwindV4SourceOptions, selectionOptions: GeneratorSourceSelectionOptions | undefined): Promise<import("./metadata.js").GeneratorResolvedSource | undefined>;
13
+ export declare function resolveTailwindV4CssEntryIncludesPreflight(cssEntry: string): Promise<boolean | undefined>;
14
+ export declare function resolveCandidateMatchedTailwindV4CssEntry(sourceOptions: TailwindV4SourceOptions, selectionOptions: GeneratorSourceSelectionOptions | undefined): Promise<import("./metadata.js").GeneratorResolvedSource | undefined>;
15
+ export declare function createTailwindV4CssSourceResolver(sourceOptions: TailwindV4SourceOptions, generatorOptions: NormalizedWeappTailwindcssGeneratorOptions | undefined): (cssSource: NonNullable<typeof sourceOptions.cssSources>[number], index: number) => Promise<import("./metadata.js").GeneratorResolvedSource>;
16
+ export declare function resolveTailwindV4SourceSideEntrySource(resolvedEntrySource: ReturnType<typeof resolveSourceSideCssEntrySource>, sourceOptions: ReturnType<typeof resolveTailwindV4SourceOptionsFromRuntime>, generatorOptions: NormalizedWeappTailwindcssGeneratorOptions | undefined, file: string): Promise<import("../../../../generator/index.js").TailwindV4ResolvedSource | undefined>;
@@ -0,0 +1,3 @@
1
+ import type { GeneratorSourceRecord } from './metadata.js';
2
+ import type { GeneratorSourceRuntimeState } from './types.js';
3
+ export declare function resolveGeneratorSourceEntries(record: GeneratorSourceRecord, runtimeState?: GeneratorSourceRuntimeState): Promise<import("../../../../tailwindcss/source-scan.js").TailwindSourceEntry[] | undefined>;
@@ -0,0 +1,5 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { GeneratorSourceSelectionOptions, TailwindV4SourceOptions } from './types.js';
3
+ import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator/index.js';
4
+ export declare function resolveMatchingTailwindV4CssEntry(rawSource: string, file: string, sourceOptions: ReturnType<typeof resolveTailwindV4SourceOptionsFromRuntime>): Promise<import("./metadata.js").GeneratorResolvedSource | undefined>;
5
+ export declare function resolveMatchingTailwindV4CssSource(rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, sourceOptions: TailwindV4SourceOptions, selectionOptions?: GeneratorSourceSelectionOptions | undefined): Promise<import("./metadata.js").GeneratorResolvedSource | undefined>;
@@ -1,7 +1,7 @@
1
- import type { SourceSideCssEntryOptions } from '../source-files';
2
- import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator';
3
- import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan';
4
- import type { InternalUserDefinedOptions } from '../../../../types';
1
+ import type { SourceSideCssEntryOptions } from '../source-files.js';
2
+ import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator/index.js';
3
+ import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
4
+ import type { InternalUserDefinedOptions } from '../../../../types/index.js';
5
5
  export interface GeneratorSourceRuntimeState {
6
6
  tailwindRuntime: InternalUserDefinedOptions['tailwindRuntime'];
7
7
  }
@@ -1,9 +1,7 @@
1
- import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './source-resolver/types';
3
- import type { NormalizedWeappTailwindcssGeneratorOptions, TailwindResolvedSource } from '../../../generator';
4
- export type { GeneratorResolvedSource, GeneratorSourceMetadata } from './source-resolver/metadata';
5
- export { resolveCssSourceBase } from './source-resolver/postcss-source';
6
- export type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './source-resolver/types';
7
- export declare function resolveGeneratorSource(_majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<import("@/generator").TailwindV4ResolvedSource>;
8
- export declare function resolveGeneratorSources(majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<TailwindResolvedSource[]>;
9
- export declare function resolveGeneratorSourceEntries(source: TailwindResolvedSource, runtimeState?: GeneratorSourceRuntimeState): Promise<import("@/tailwindcss/source-scan").TailwindSourceEntry[] | undefined>;
1
+ export type { GeneratorResolvedSource, GeneratorSourceMetadata, GeneratorSourceRecord } from './source-resolver/metadata.js';
2
+ export { createGeneratorSourceRecord, getGeneratorSourceMetadata } from './source-resolver/metadata.js';
3
+ export { resolveCssSourceBase } from './source-resolver/postcss-source.js';
4
+ export { resolveGeneratorSource } from './source-resolver/resolve-source.js';
5
+ export { resolveGeneratorSources } from './source-resolver/resolve-sources.js';
6
+ export { resolveGeneratorSourceEntries } from './source-resolver/source-entries.js';
7
+ export type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './source-resolver/types.js';
@@ -1,7 +1,8 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { TailwindV4CssSource } from './source-resolver/types';
3
- import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan';
4
- import type { InternalUserDefinedOptions } from '../../../types';
2
+ import type { TailwindV4CssSource } from './source-resolver/types.js';
3
+ import type { CompilationDependencyChange, SourceScope } from '../../../compiler/index.js';
4
+ import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
5
+ import type { InternalUserDefinedOptions } from '../../../types/index.js';
5
6
  export interface GenerateCssByGeneratorOptions {
6
7
  opts: InternalUserDefinedOptions;
7
8
  runtimeState: {
@@ -16,6 +17,13 @@ export interface GenerateCssByGeneratorOptions {
16
17
  cssSources?: TailwindV4CssSource[] | undefined;
17
18
  getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined) => Set<string>) | undefined;
18
19
  sourceCandidates?: Set<string> | undefined;
20
+ compilation?: {
21
+ changes?: CompilationDependencyChange[] | undefined;
22
+ enabled: boolean;
23
+ preserveDeletedCss: boolean;
24
+ scope: SourceScope;
25
+ } | undefined;
26
+ outputFile?: string | undefined;
19
27
  styleHandler: InternalUserDefinedOptions['styleHandler'];
20
28
  debug: (format: string, ...args: unknown[]) => void;
21
29
  generatorPlatform?: string | undefined;
@@ -45,5 +53,6 @@ export interface GenerateCssByGeneratorResult {
45
53
  preserve: boolean;
46
54
  } | undefined;
47
55
  rawCss?: string | undefined;
56
+ revision?: number | undefined;
48
57
  } | undefined;
49
58
  }
@@ -0,0 +1,9 @@
1
+ export declare function normalizeEmptyTailwindCustomVariants(css: string): string;
2
+ export declare function filterApplyOnlyGeneratedCss(css: string, source: string, options?: {
3
+ preserveVariables?: boolean | undefined;
4
+ preferScopedRules?: boolean | undefined;
5
+ }): string;
6
+ export declare function shouldFilterApplyOnlyGeneratedCss(_majorVersion: number | undefined, target: string, source: string, options: {
7
+ hasGeneratedCss: boolean;
8
+ hasGeneratedMarkers: boolean;
9
+ }): boolean;
@@ -0,0 +1,3 @@
1
+ export declare function removeTailwindSourceMediaBlocks(source: string): string;
2
+ export declare function terminateTailwindSourceAtRulesBeforeNextDirective(source: string): string;
3
+ export declare function removeTailwindApplyAtRules(source: string): string;
@@ -0,0 +1,4 @@
1
+ export declare const TAILWIND_V4_GENERATOR_AT_RULES: Set<string>;
2
+ export declare function removeBalancedAtRuleBlock(source: string, atRuleStart: number): string;
3
+ export declare function removeTailwindV4GeneratorAtRulesFallback(source: string): string;
4
+ export declare function removeTailwindV4GeneratedUserCssArtifacts(source: string): string;
@@ -0,0 +1,9 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ export declare function removeTailwindV4GeneratorAtRules(source: string): string;
3
+ export declare function isCommentOnlyCss(source: string): boolean;
4
+ export declare function removeMiniProgramHoverSelectors(source: string, enabled?: boolean | undefined): string;
5
+ export declare function removeProcessedMiniProgramUnsupportedCss(source: string, options: Partial<IStyleHandlerOptions>): string;
6
+ export declare function unwrapMiniProgramCascadeLayers(source: string): string;
7
+ export declare function collectBareSelectorUserCss(source: string): string;
8
+ export declare function stripTailwindSourceMediaFragments(source: string): string;
9
+ export declare function stripUnmatchedTailwindSourceMediaCloseFragments(source: string): string;
@@ -0,0 +1,10 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { InternalUserDefinedOptions } from '../../../../types/index.js';
3
+ export declare function transformGeneratorUserCss(source: string, options: {
4
+ generatorTarget: string;
5
+ generatorStyleOptions: Partial<IStyleHandlerOptions>;
6
+ cssUserHandlerOptions: IStyleHandlerOptions;
7
+ styleHandler: InternalUserDefinedOptions['styleHandler'];
8
+ importFallback: boolean;
9
+ processed?: boolean | undefined;
10
+ }): Promise<string>;
@@ -0,0 +1,15 @@
1
+ import { postcss } from '@weapp-tailwindcss/postcss';
2
+ export declare function splitUserCssLayerBlocks(source: string): {
3
+ layer: string;
4
+ rest: string;
5
+ };
6
+ export declare function hasUserCssLayerBlocks(source: string): boolean;
7
+ export declare function extractGeneratedCssForUserLayerSelectors(css: string, userLayerSource: string): {
8
+ layer: string;
9
+ rest: string;
10
+ };
11
+ export declare function normalizeGeneratedSelector(selector: string): string;
12
+ export declare function collectApplyOnlySourceSelectors(source: string): Set<string>;
13
+ export declare function hasOnlyApplyBackedSourceRules(source: string): boolean;
14
+ export declare function removeCssComments(css: string): string;
15
+ export declare function isEmptyCustomVariantBlock(rule: postcss.AtRule): boolean;
@@ -1,33 +1,5 @@
1
- import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { InternalUserDefinedOptions } from '../../../types';
3
- export declare function removeTailwindV4GeneratedUserCssArtifacts(source: string): string;
4
- export declare function removeTailwindV4GeneratorAtRules(source: string): string;
5
- export declare function isCommentOnlyCss(source: string): boolean;
6
- export declare function removeMiniProgramHoverSelectors(source: string, enabled?: boolean | undefined): string;
7
- export declare function stripTailwindSourceMediaFragments(source: string): string;
8
- export declare function stripUnmatchedTailwindSourceMediaCloseFragments(source: string): string;
9
- export declare function splitUserCssLayerBlocks(source: string): {
10
- layer: string;
11
- rest: string;
12
- };
13
- export declare function hasUserCssLayerBlocks(source: string): boolean;
14
- export declare function extractGeneratedCssForUserLayerSelectors(css: string, userLayerSource: string): {
15
- layer: string;
16
- rest: string;
17
- };
18
- export declare function normalizeEmptyTailwindCustomVariants(css: string): string;
19
- export declare function filterApplyOnlyGeneratedCss(css: string, source: string, options?: {
20
- preserveVariables?: boolean | undefined;
21
- }): string;
22
- export declare function shouldFilterApplyOnlyGeneratedCss(_majorVersion: number | undefined, target: string, source: string, options: {
23
- hasGeneratedCss: boolean;
24
- hasGeneratedMarkers: boolean;
25
- }): boolean;
26
- export declare function transformGeneratorUserCss(source: string, options: {
27
- generatorTarget: string;
28
- generatorStyleOptions: Partial<IStyleHandlerOptions>;
29
- cssUserHandlerOptions: IStyleHandlerOptions;
30
- styleHandler: InternalUserDefinedOptions['styleHandler'];
31
- importFallback: boolean;
32
- processed?: boolean | undefined;
33
- }): Promise<string>;
1
+ export { filterApplyOnlyGeneratedCss, normalizeEmptyTailwindCustomVariants, shouldFilterApplyOnlyGeneratedCss } from './user-css/apply-only.js';
2
+ export { removeTailwindV4GeneratedUserCssArtifacts } from './user-css/generated-cleanup.js';
3
+ export { isCommentOnlyCss, removeMiniProgramHoverSelectors, removeTailwindV4GeneratorAtRules, stripTailwindSourceMediaFragments, stripUnmatchedTailwindSourceMediaCloseFragments } from './user-css/source-fragments.js';
4
+ export { transformGeneratorUserCss } from './user-css/transform.js';
5
+ export { extractGeneratedCssForUserLayerSelectors, hasUserCssLayerBlocks, splitUserCssLayerBlocks } from './user-css/user-layers.js';
@@ -1,4 +1,4 @@
1
- import type { GenerateCssByGeneratorOptions } from './types';
1
+ import type { GenerateCssByGeneratorOptions } from './types.js';
2
2
  export interface ValidateCandidatesByGeneratorOptions extends Omit<GenerateCssByGeneratorOptions, 'runtime'> {
3
3
  candidates: Set<string>;
4
4
  generatedCssSources?: Iterable<string> | undefined;
@@ -1,10 +1,9 @@
1
- import type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult } from './generator-css/types';
2
- export { hasTailwindSourceDirectives, normalizeTailwindSourceForGenerator, removeTailwindSourceDirectives, resolveCssEntrySource, } from './generator-css/directives';
3
- export { removeTailwindApplyRules, } from './generator-css/legacy-compat';
4
- export { inheritLegacyUnitConvertedDeclarations, } from './generator-css/legacy-units';
5
- export { isPureLocalCssImportWrapper, } from './generator-css/local-imports';
6
- export { createCssAppend, hasTailwindGeneratedCss, hasTailwindGeneratedCssMarkers, removeTailwindGeneratedCssByBanner, splitGeneratorPlaceholderCssBySourceOrder, splitTailwindGeneratedCssByBanner, splitTailwindV4GeneratedCss, splitTailwindV4GeneratedCssBySourceOrder, stripGeneratorPlaceholderMarkers, stripTailwindBanner, stripTailwindBanners, } from './generator-css/markers';
7
- export { resolveGeneratorSource, } from './generator-css/source-resolver';
8
- export type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult, } from './generator-css/types';
9
- export { validateCandidatesByGenerator, } from './generator-css/validate';
10
- export declare function generateCssByGenerator(options: GenerateCssByGeneratorOptions): Promise<GenerateCssByGeneratorResult | undefined>;
1
+ export { hasTailwindSourceDirectives, normalizeTailwindSourceForGenerator, removeTailwindSourceDirectives, resolveCssEntrySource, } from './generator-css/directives.js';
2
+ export { removeTailwindApplyRules, } from './generator-css/legacy-compat.js';
3
+ export { inheritLegacyUnitConvertedDeclarations, } from './generator-css/legacy-units.js';
4
+ export { isPureLocalCssImportWrapper, } from './generator-css/local-imports.js';
5
+ export { createCssAppend, hasTailwindGeneratedCss, hasTailwindGeneratedCssMarkers, removeTailwindGeneratedCssByBanner, splitGeneratorPlaceholderCssBySourceOrder, splitTailwindGeneratedCssByBanner, splitTailwindV4GeneratedCss, splitTailwindV4GeneratedCssBySourceOrder, stripGeneratorPlaceholderMarkers, stripTailwindBanner, stripTailwindBanners, } from './generator-css/markers.js';
6
+ export { generateCssByGenerator } from './generator-css/pipeline.js';
7
+ export { resolveGeneratorSource, } from './generator-css/source-resolver.js';
8
+ export type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult, } from './generator-css/types.js';
9
+ export { validateCandidatesByGenerator, } from './generator-css/validate.js';
@@ -0,0 +1,4 @@
1
+ import type { RuntimeCompilationSnapshot, RuntimeSnapshotEntry } from '../../../compiler/index.js';
2
+ export declare function createRuntimeEntries(snapshot: RuntimeCompilationSnapshot): RuntimeSnapshotEntry[];
3
+ export declare function collectChangedRuntimeFiles(snapshot: RuntimeCompilationSnapshot): Set<string>;
4
+ export declare function resolveEntryExtension(entry: RuntimeSnapshotEntry): string;
@@ -0,0 +1,9 @@
1
+ export declare const MAX_RESTORED_CANDIDATE_CACHE_ENTRIES = 8192;
2
+ export declare const MAX_RESTORED_CANDIDATE_CACHE_CODE_UNITS = 1048576;
3
+ export declare function getRestoredCandidateCacheStats(escapeFragments: string[]): {
4
+ codeUnitCount: number;
5
+ entryCount: number;
6
+ };
7
+ export declare function createEscapeFragments(escapeMap: Record<string, string>): string[];
8
+ export declare function collectEscapedRuntimeCandidates(source: string, escapeMap: Record<string, string>, escapeFragments: string[]): Set<string>;
9
+ export declare function collectStrictEscapedRuntimeCandidates(source: string, escapeMap: Record<string, string>, escapeFragments: string[]): Set<string>;
@@ -0,0 +1,30 @@
1
+ import type { RuntimeCompilationSnapshot } from '../../compiler/index.js';
2
+ import type { TailwindcssRuntimeLike } from '../../types/index.js';
3
+ import type { IArbitraryValues } from '../../types/shared.js';
4
+ import { extractRawCandidatesWithPositions, extractValidCandidates } from '@tailwindcss-mangle/engine';
5
+ type ExtractValidCandidatesOptions = Parameters<typeof extractValidCandidates>[0];
6
+ type MemoryExtractValidCandidatesOptions = ExtractValidCandidatesOptions & {
7
+ content?: string;
8
+ extension?: string;
9
+ };
10
+ type ExtractValidCandidatesFn = (options?: MemoryExtractValidCandidatesOptions) => Promise<string[]>;
11
+ type ExtractRawCandidateResult = Awaited<ReturnType<typeof extractRawCandidatesWithPositions>>;
12
+ type ExtractRawCandidatesFn = (content: string, extension?: string, options?: {
13
+ bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
14
+ }) => Promise<ExtractRawCandidateResult>;
15
+ export interface RuntimeClassSetManager {
16
+ sync: (runtime: TailwindcssRuntimeLike, snapshot: RuntimeCompilationSnapshot, options?: RuntimeClassSetSyncOptions) => Promise<Set<string>>;
17
+ reset: () => Promise<void>;
18
+ }
19
+ export interface RuntimeClassSetSyncOptions {
20
+ baseClassSet?: Set<string> | undefined;
21
+ skipInitialFullScanWithBase?: boolean | undefined;
22
+ }
23
+ export interface CreateRuntimeClassSetManagerOptions {
24
+ bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
25
+ escapeMap?: Record<string, string> | undefined;
26
+ extractCandidates?: ExtractValidCandidatesFn;
27
+ extractRawCandidates?: ExtractRawCandidatesFn;
28
+ }
29
+ export declare function createRuntimeClassSetManager(options?: CreateRuntimeClassSetManagerOptions): RuntimeClassSetManager;
30
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { RuntimeEntryType } from '../../compiler/index.js';
2
+ export interface RuntimeEntryMatchers {
3
+ cssMatcher: (file: string) => boolean;
4
+ htmlMatcher: (file: string) => boolean;
5
+ jsMatcher: (file: string) => boolean;
6
+ wxsMatcher: (file: string) => boolean;
7
+ }
8
+ export declare function classifyRuntimeEntry(file: string, matchers: RuntimeEntryMatchers): RuntimeEntryType;
@@ -0,0 +1,8 @@
1
+ import type { RuntimeEntryType } from '../../compiler/index.js';
2
+ export declare function summarizeStringDiff(previous: string, next: string): string;
3
+ export declare function createLinkedImpactSignature(entry: string, linkedImpactsByEntry: Map<string, Set<string>>, sourceHashByFile: Map<string, string>): string | undefined;
4
+ export declare function createJsHashSalt(runtimeSignature: string, linkedImpactSignature?: string): string;
5
+ export declare function createStableTextSignature(input: string): string;
6
+ export declare function createCandidateSignature(candidates: Set<string>): string;
7
+ export declare function getSnapshotHash(snapshotMap: Map<string, string>, file: string, fallback: string): string;
8
+ export declare function hasRuntimeAffectingSourceChanges(changedByType: Record<RuntimeEntryType, Set<string>>): boolean;
@@ -0,0 +1,13 @@
1
+ import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../tailwindcss/source-scan.js';
2
+ export interface SourceCandidateScanRoot {
3
+ root: string;
4
+ entries?: TailwindSourceEntry[] | undefined;
5
+ explicit?: boolean | undefined;
6
+ }
7
+ export interface SourceCandidateScanSignatureInput {
8
+ inlineCandidates?: TailwindInlineSourceCandidates | undefined;
9
+ outDir?: string | undefined;
10
+ roots: SourceCandidateScanRoot[];
11
+ scanAllSources?: boolean | undefined;
12
+ }
13
+ export declare function createSourceCandidateScanSignature(input: SourceCandidateScanSignatureInput): string;
@@ -0,0 +1,8 @@
1
+ import type { SourceCandidateCollector, SourceCandidateCollectorOptions } from './types-and-cache.js';
2
+ export declare function createSourceCandidateCollector(options?: SourceCandidateCollectorOptions): SourceCandidateCollector;
3
+ export declare function getSourceCandidateContentCacheStatsForTest(): {
4
+ max: number;
5
+ size: number;
6
+ keys: string[];
7
+ };
8
+ export declare function clearSourceCandidateContentCacheForTest(): void;
@@ -0,0 +1,10 @@
1
+ import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
2
+ interface ResolveSourceCandidateScanFilesOptions {
3
+ entries?: TailwindSourceEntry[] | undefined;
4
+ explicit?: boolean | undefined;
5
+ filter: (id: string) => boolean;
6
+ outDir?: string | undefined;
7
+ root: string;
8
+ }
9
+ export declare function resolveSourceCandidateScanFiles(options: ResolveSourceCandidateScanFilesOptions): Promise<string[]>;
10
+ export {};
@@ -1 +1 @@
1
- export { extractScriptStringCandidates } from '../../../tailwindcss/candidates';
1
+ export { extractScriptStringCandidates } from '../../../tailwindcss/candidates.js';
@@ -0,0 +1,2 @@
1
+ import type { SourceCandidateCollectorOptions, SourceCandidateStore } from './types-and-cache.js';
2
+ export declare function createSourceCandidateStore(options?: SourceCandidateCollectorOptions): SourceCandidateStore;
@@ -0,0 +1,69 @@
1
+ import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
2
+ import type { ICustomAttributesEntities } from '../../../types/index.js';
3
+ import type { IArbitraryValues } from '../../../types/shared.js';
4
+ import { LRUCache } from 'lru-cache';
5
+ export interface SourceCandidateStore {
6
+ syncSource: (id: string, source: string) => Promise<void>;
7
+ sync: (id: string, source: string) => Promise<void>;
8
+ syncCss: (id: string, source: string) => Promise<void>;
9
+ merge: (id: string, source: string) => Promise<void>;
10
+ syncFile: (id: string) => Promise<void>;
11
+ syncCurrentSource: (id: string, source: string) => Promise<SourceCandidateChange>;
12
+ syncCurrentFile: (id: string) => Promise<SourceCandidateChange>;
13
+ scanRoot: (options: ScanSourceCandidateRootOptions) => Promise<void>;
14
+ syncInline: (inlineCandidates: TailwindInlineSourceCandidates | undefined) => void;
15
+ remove: (id: string) => SourceCandidateChange;
16
+ source: (id: string) => string | undefined;
17
+ sources: () => IterableIterator<[string, string]>;
18
+ values: () => Set<string>;
19
+ valuesForEntries: (entries: TailwindSourceEntry[] | undefined, options?: SourceCandidateFilterOptions) => Set<string>;
20
+ sourcesForEntries: (entries: TailwindSourceEntry[] | undefined, options?: SourceCandidateFilterOptions) => Map<string, Set<string>>;
21
+ snapshot: () => SourceCandidateCollectorSnapshot;
22
+ restore: (snapshot: SourceCandidateCollectorSnapshot) => void;
23
+ clearScan: () => void;
24
+ resetScan: () => void;
25
+ clear: () => void;
26
+ }
27
+ export interface SourceCandidateCollector extends SourceCandidateStore {
28
+ }
29
+ export interface SourceCandidateChange {
30
+ addedCandidates: Set<string>;
31
+ removedCandidates: Set<string>;
32
+ }
33
+ export interface SourceCandidateCollectorSnapshot {
34
+ candidatesById: Array<[string, string[]]>;
35
+ cssCandidatesById?: Array<[string, string[]]> | undefined;
36
+ cssSourceById?: Array<[string, string]> | undefined;
37
+ scanCandidatesById?: Array<[string, string[]]> | undefined;
38
+ scanSourceById?: Array<[string, string]> | undefined;
39
+ sourceById?: Array<[string, string]> | undefined;
40
+ transformCandidatesById?: Array<[string, string[]]> | undefined;
41
+ transformSourceById?: Array<[string, string]> | undefined;
42
+ inlineExcludedCandidates: string[];
43
+ inlineIncludedCandidates: string[];
44
+ }
45
+ export interface SourceCandidateFilterOptions {
46
+ excludeEntries?: TailwindSourceEntry[] | undefined;
47
+ }
48
+ export interface ScanSourceCandidateRootOptions {
49
+ root: string;
50
+ outDir?: string | undefined;
51
+ entries?: TailwindSourceEntry[] | undefined;
52
+ explicit?: boolean | undefined;
53
+ }
54
+ export interface SourceCandidateCollectorOptions {
55
+ bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
56
+ customAttributesEntities?: ICustomAttributesEntities | undefined;
57
+ disabledDefaultTemplateHandler?: boolean | undefined;
58
+ extractor?: ((source: string, extension: string) => Promise<Iterable<string>> | Iterable<string>) | undefined;
59
+ }
60
+ export declare const SOURCE_CANDIDATE_CONTENT_CACHE_MAX = 128;
61
+ export declare const sourceCandidateContentCache: LRUCache<string, string[], unknown>;
62
+ export declare function cleanUrl(id: string): string;
63
+ export declare function resolveSourceCandidateExtension(id: string): string;
64
+ export declare function createSourceCandidateContentCacheKey(extension: string, source: string, bareArbitraryValues: IArbitraryValues['bareArbitraryValues'] | undefined, customAttributesEntities: ICustomAttributesEntities | undefined, disabledDefaultTemplateHandler: boolean | undefined, extractor: SourceCandidateCollectorOptions['extractor']): string;
65
+ export declare function extractCandidates(source: string, extension: string, options: SourceCandidateCollectorOptions): Promise<Set<string>>;
66
+ export declare function isSourceCandidateRequest(id: string): boolean;
67
+ export declare function removeCandidateSet(candidateCount: Map<string, number>, candidates: Set<string>): void;
68
+ export declare function addCandidateSet(candidateCount: Map<string, number>, candidates: Set<string>): void;
69
+ export declare function diffCandidateSets(previous: Set<string>, next: Set<string>): SourceCandidateChange;
@@ -0,0 +1,4 @@
1
+ export { clearSourceCandidateContentCacheForTest, createSourceCandidateCollector, getSourceCandidateContentCacheStatsForTest } from './source-candidates/collector.js';
2
+ export { createSourceCandidateStore } from './source-candidates/store.js';
3
+ export { isSourceCandidateRequest } from './source-candidates/types-and-cache.js';
4
+ export type { SourceCandidateChange, SourceCandidateCollector, SourceCandidateCollectorOptions, SourceCandidateCollectorSnapshot, SourceCandidateFilterOptions, SourceCandidateStore } from './source-candidates/types-and-cache.js';
@@ -0,0 +1,18 @@
1
+ import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
2
+ import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
3
+ import type { UserDefinedOptions } from '../../../types/index.js';
4
+ export interface ResolvedTailwindV4CssEntries {
5
+ entries: TailwindSourceEntry[];
6
+ explicit: boolean;
7
+ includesPreflight: boolean;
8
+ inlineCandidates: TailwindInlineSourceCandidates;
9
+ dependencies: string[];
10
+ }
11
+ export declare function mergeTailwindInlineSourceCandidates(allInlineCandidates: Array<TailwindInlineSourceCandidates | undefined>): TailwindInlineSourceCandidates | undefined;
12
+ export declare function resolveTailwindV4EntriesFromCss(css: string, base: string): Promise<ResolvedTailwindV4CssEntries | undefined>;
13
+ export declare function resolveTailwindV4CssDependencies(css: string, base: string): Promise<string[]>;
14
+ export declare function collectExistingCssEntries(options: UserDefinedOptions): string[];
15
+ export declare function resolveTailwindV4EntriesFromCssCached(css: string, base: string): Promise<ResolvedTailwindV4CssEntries | undefined>;
16
+ export declare function resolveTailwindConfigEntriesFromCssCached(css: string, base: string): Promise<ResolvedTailwindV4CssEntries | undefined>;
17
+ export declare function discoverTailwindV4CssEntries(root: string, outDir: string | undefined): Promise<string[]>;
18
+ export declare function collectConfiguredCssSources(options: UserDefinedOptions): TailwindV4CssSource[];
@@ -0,0 +1,16 @@
1
+ import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../tailwindcss/source-scan.js';
2
+ import type { TailwindcssRuntimeLike, UserDefinedOptions } from '../../types/index.js';
3
+ export { discoverTailwindV4CssEntries, resolveTailwindConfigEntriesFromCssCached, resolveTailwindV4CssDependencies, resolveTailwindV4EntriesFromCss, resolveTailwindV4EntriesFromCssCached, } from './source-scan/css-entries.js';
4
+ export type { ResolvedTailwindV4CssEntries } from './source-scan/css-entries.js';
5
+ export interface ResolvedSourceScan {
6
+ dependencies?: string[] | undefined;
7
+ entries?: TailwindSourceEntry[] | undefined;
8
+ explicit?: boolean | undefined;
9
+ inlineCandidates?: TailwindInlineSourceCandidates | undefined;
10
+ }
11
+ export interface ResolveSourceScanOptions {
12
+ root?: string | undefined;
13
+ outDir?: string | undefined;
14
+ }
15
+ export declare function resolveSourceScanEntries(options: UserDefinedOptions, runtime: TailwindcssRuntimeLike, scanOptions?: ResolveSourceScanOptions): Promise<ResolvedSourceScan | undefined>;
16
+ export declare function createSourceScanMatcher(entries: TailwindSourceEntry[] | undefined): ((file: string) => boolean) | undefined;
@@ -0,0 +1,5 @@
1
+ type StaticContentValue = string | StaticContentValue[] | {
2
+ files: StaticContentValue;
3
+ };
4
+ export declare function readStaticConfigContent(configPath: string): StaticContentValue | undefined;
5
+ export {};
@@ -1,9 +1,17 @@
1
- import type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult } from './generator-css';
1
+ import type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult } from './generator-css.js';
2
+ import type { CompilationDependencyChange, CompilerShadowReport, CssStage, GenerationArtifact, SourceScope } from '../../compiler/index.js';
3
+ import type { InternalUserDefinedOptions } from '../../types/index.js';
2
4
  export interface TailwindV4GenerationCoreInput extends GenerateCssByGeneratorOptions {
5
+ compilationChanges?: CompilationDependencyChange[] | undefined;
6
+ frameworkPostcssOwner?: InternalUserDefinedOptions | undefined;
7
+ cssStage?: CssStage | undefined;
3
8
  outputFile?: string | undefined;
9
+ onCompilerShadowReport?: ((report: CompilerShadowReport) => void) | undefined;
10
+ scope?: SourceScope | undefined;
4
11
  sourceCandidates?: Set<string> | undefined;
5
12
  }
6
13
  export interface TailwindV4GenerationCoreResult extends GenerateCssByGeneratorResult {
14
+ artifact?: GenerationArtifact | undefined;
7
15
  classSet: Set<string>;
8
16
  dependencies: string[];
9
17
  metadata: NonNullable<GenerateCssByGeneratorResult['metadata']>;
@@ -1,5 +1,5 @@
1
1
  import type { OutputAsset, OutputChunk } from 'rollup';
2
- import type { LinkedJsModuleResult } from '../../types';
2
+ import type { LinkedJsModuleResult } from '../../types/index.js';
3
3
  export interface OutputEntry {
4
4
  fileName: string;
5
5
  output: OutputAsset | OutputChunk;