weapp-tailwindcss 5.5.6 → 5.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auto-DtU6f3X6.cjs → auto-B1OyRrE8.cjs} +1 -1
- package/dist/{auto-2dg_uhEJ.js → auto-ENr4xzzw.js} +1 -1
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +1 -1
- package/dist/bundlers/shared/css-cleanup/at-rules.d.ts +1 -1
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/css-source-trace.d.ts +2 -5
- package/dist/bundlers/shared/final-css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/framework-css-composition.d.ts +1 -1
- package/dist/bundlers/shared/framework-postcss.d.ts +1 -25
- package/dist/bundlers/shared/framework-user-css.d.ts +1 -4
- package/dist/bundlers/shared/generated-css-marker.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/candidates.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/class-selectors.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/config-directive.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/directives/fallback.d.ts +1 -11
- package/dist/bundlers/shared/generator-css/directives.d.ts +1 -25
- package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +1 -19
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +1 -23
- package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +1 -30
- package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +1 -12
- package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/local-imports.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/markers.d.ts +1 -28
- package/dist/bundlers/shared/generator-css/output-import-shell.d.ts +1 -8
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +1 -60
- package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +1 -6
- package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -21
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +1 -13
- package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +1 -7
- package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +1 -33
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +1 -28
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -14
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +1 -16
- package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +1 -22
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +1 -7
- package/dist/bundlers/shared/generator-css/types.d.ts +1 -64
- package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/user-css/compile-functions.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +1 -6
- package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +1 -15
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +1 -13
- package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +1 -15
- package/dist/bundlers/shared/generator-css/user-css.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/user-layer-order.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -7
- package/dist/bundlers/shared/generator-css.d.ts +1 -9
- package/dist/bundlers/shared/run-tasks.d.ts +1 -3
- package/dist/bundlers/shared/runtime-class-set.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/collector.d.ts +1 -8
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +1 -12
- package/dist/bundlers/shared/source-candidates/script.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/snapshot.d.ts +1 -19
- package/dist/bundlers/shared/source-candidates/source-priority.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/store.d.ts +1 -2
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +1 -75
- package/dist/bundlers/shared/source-candidates/views.d.ts +1 -12
- package/dist/bundlers/shared/source-candidates.d.ts +1 -4
- package/dist/bundlers/shared/source-scan/css-entries.d.ts +1 -18
- package/dist/bundlers/shared/source-scan/dependencies.d.ts +1 -2
- package/dist/bundlers/shared/source-scan.d.ts +1 -16
- package/dist/bundlers/shared/static-config-content.d.ts +1 -5
- package/dist/bundlers/shared/style-handler-options.d.ts +1 -7
- package/dist/bundlers/shared/style-requests.d.ts +1 -5
- package/dist/bundlers/shared/v4-generation-core.d.ts +1 -20
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +2 -2
- package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +1 -12
- package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +1 -4
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +4 -7
- package/dist/bundlers/vite/processed-css-assets/scoped-tailwind-noise.d.ts +1 -13
- package/dist/bundlers/vite/shared/framework-module-candidates.d.ts +2 -2
- package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -1
- package/dist/bundlers/vite/source-candidates.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +2 -7
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +4 -8
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +2 -7
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/watch-dependencies.d.ts +6 -0
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/source.d.ts +29 -0
- package/dist/{cache-CBJFB1HN.cjs → cache-CzvIGfwS.cjs} +1 -0
- package/dist/compiler/composition.d.ts +1 -1
- package/dist/compiler/runtime-affecting-signature/js.d.ts +1 -0
- package/dist/compiler/semantic-css.d.ts +1 -1
- package/dist/compiler/types.d.ts +1 -1
- package/dist/{compiler-D3GBwxoa.js → compiler-CThodfGH.js} +3098 -3067
- package/dist/{compiler-C8FqI-P3.cjs → compiler-DbwS3329.cjs} +20979 -20870
- package/dist/core/compiler/generation-cache.d.ts +4 -2
- package/dist/core/compiler/types.d.ts +1 -1
- package/dist/core.cjs +7 -7
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/css-cleanup-B6FUJC3z.cjs +1 -0
- package/dist/{css-imports-XvtI1zCY.cjs → css-imports-R_RDMjPz.cjs} +7 -21
- package/dist/css-macro/auto.d.ts +1 -1
- package/dist/css-macro/postcss.cjs +1 -1
- package/dist/css-macro.cjs +2 -2
- package/dist/css-macro.js +1 -1
- package/dist/final-css-cleanup-B6FUJC3z.cjs +1 -0
- package/dist/{final-css-cleanup-u_sI2p56.js → final-css-cleanup-BOzhuhGz.js} +3 -2
- package/dist/framework.cjs +1 -1
- package/dist/{v4-generation-core-Cz1D7wm1.cjs → generated-css-marker-B0RyziOH.cjs} +638 -1546
- package/dist/generation/candidates.d.ts +1 -0
- package/dist/generation/class-selectors.d.ts +4 -0
- package/dist/generation/config-directive.d.ts +1 -0
- package/dist/generation/directives/fallback.d.ts +1 -0
- package/dist/generation/directives.d.ts +1 -0
- package/dist/generation/framework-css-composition.d.ts +1 -0
- package/dist/generation/framework-postcss.d.ts +25 -0
- package/dist/generation/framework-user-css.d.ts +5 -0
- package/dist/generation/generation-helpers/preflight.d.ts +19 -0
- package/dist/generation/generation-helpers/results.d.ts +23 -0
- package/dist/generation/generation-helpers/runtime-isolation.d.ts +30 -0
- package/dist/generation/generation-helpers/source-order.d.ts +1 -0
- package/dist/generation/generation-helpers.d.ts +4 -0
- package/dist/generation/index.d.ts +9 -0
- package/dist/generation/legacy-compat.d.ts +12 -0
- package/dist/generation/legacy-selectors.d.ts +1 -0
- package/dist/generation/legacy-units.d.ts +1 -0
- package/dist/generation/local-imports.d.ts +1 -0
- package/dist/generation/markers.d.ts +1 -0
- package/dist/generation/output-import-shell.d.ts +1 -0
- package/dist/generation/pipeline/context.d.ts +60 -0
- package/dist/generation/pipeline/deferred-output.d.ts +3 -0
- package/dist/generation/pipeline/execution.d.ts +3 -0
- package/dist/generation/pipeline/fallback-output.d.ts +3 -0
- package/dist/generation/pipeline/ordered-output.d.ts +3 -0
- package/dist/generation/pipeline/preparation.d.ts +19 -0
- package/dist/generation/pipeline.d.ts +2 -0
- package/dist/generation/result-helpers.d.ts +6 -0
- package/dist/generation/scoped-rules.d.ts +1 -0
- package/dist/generation/service.d.ts +20 -0
- package/dist/generation/source-files.d.ts +21 -0
- package/dist/generation/source-resolver/apply-reference.d.ts +10 -0
- package/dist/generation/source-resolver/config.d.ts +7 -0
- package/dist/generation/source-resolver/configuration.d.ts +33 -0
- package/dist/generation/source-resolver/matching.d.ts +3 -0
- package/dist/generation/source-resolver/metadata.d.ts +28 -0
- package/dist/generation/source-resolver/postcss-source.d.ts +14 -0
- package/dist/generation/source-resolver/resolve-source.d.ts +4 -0
- package/dist/generation/source-resolver/resolve-sources.d.ts +5 -0
- package/dist/generation/source-resolver/single-source.d.ts +16 -0
- package/dist/generation/source-resolver/source-entries.d.ts +3 -0
- package/dist/generation/source-resolver/source-matching.d.ts +5 -0
- package/dist/generation/source-resolver/types.d.ts +22 -0
- package/dist/generation/source-resolver.d.ts +7 -0
- package/dist/generation/style-options.d.ts +8 -0
- package/dist/generation/style-requests.d.ts +5 -0
- package/dist/generation/types.d.ts +65 -0
- package/dist/generation/user-css/apply-only.d.ts +5 -0
- package/dist/generation/user-css/at-rules.d.ts +1 -0
- package/dist/generation/user-css/compile-functions.d.ts +3 -0
- package/dist/generation/user-css/generated-cleanup.d.ts +1 -0
- package/dist/generation/user-css/source-fragments.d.ts +1 -0
- package/dist/generation/user-css/transform.d.ts +1 -0
- package/dist/generation/user-css/user-layers.d.ts +1 -0
- package/dist/generation/user-css.d.ts +5 -0
- package/dist/generation/user-layer-order.d.ts +1 -0
- package/dist/generation/validate.d.ts +7 -0
- package/dist/generator-CxauQbx3.cjs +1868 -0
- package/dist/generator-oKZ5mCJ5.js +1637 -0
- package/dist/generator.cjs +10 -4
- package/dist/generator.js +1 -1
- package/dist/{gulp-BExe5RBF.cjs → gulp-CngHA9cU.cjs} +27 -26
- package/dist/{gulp-BhkIIk7J.js → gulp-DhddVxGA.js} +6 -5
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-CoiJIqDu.cjs → hmr-timing-Dc4c1VRg.cjs} +13 -13
- package/dist/{hmr-timing-B9Yt86-U.js → hmr-timing-xPpat-km.js} +518 -1360
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/js/ModuleGraph.d.ts +3 -1
- package/dist/js/babel/analyze.d.ts +6 -0
- package/dist/js/babel.d.ts +1 -2
- package/dist/js/fast-path/analysis.d.ts +14 -0
- package/dist/js/fast-path/oxc.d.ts +1 -1
- package/dist/js/oxc-parser.d.ts +4 -0
- package/dist/pipeline-helpers-EUud9R2K.cjs +516 -0
- package/dist/postcss-html-transform.cjs +1 -1
- package/dist/postcss.cjs +3 -2
- package/dist/postcss.d.ts +1 -1
- package/dist/postcss.js +3 -2
- package/dist/presets.cjs +3 -3
- package/dist/presets.js +2 -2
- package/dist/project-sources/candidates/collector.d.ts +8 -0
- package/dist/project-sources/candidates/scan-root.d.ts +12 -0
- package/dist/project-sources/candidates/script.d.ts +1 -0
- package/dist/project-sources/candidates/snapshot.d.ts +19 -0
- package/dist/project-sources/candidates/source-priority.d.ts +1 -0
- package/dist/project-sources/candidates/store.d.ts +2 -0
- package/dist/project-sources/candidates/types-and-cache.d.ts +75 -0
- package/dist/project-sources/candidates/views.d.ts +12 -0
- package/dist/project-sources/candidates.d.ts +4 -0
- package/dist/project-sources/css-entries.d.ts +18 -0
- package/dist/project-sources/dependencies.d.ts +2 -0
- package/dist/project-sources/index.d.ts +16 -0
- package/dist/project-sources/static-config-content.d.ts +5 -0
- package/dist/reset.cjs +1 -1
- package/dist/{rolldown-runtime-Ctb5zv51.cjs → rolldown-runtime-fg3euq-1.cjs} +7 -0
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.js +2 -2
- package/dist/{runtime-state-XYSycuGu.cjs → runtime-state-BOzuVoKl.cjs} +1 -1
- package/dist/{scoped-generator-B6Y1bxzM.js → scoped-generator-DlQrVbuC.js} +7 -6
- package/dist/{scoped-generator-BUBls_oM.cjs → scoped-generator-lbTwL6mD.cjs} +9 -9
- package/dist/{source-candidate-scan-signature-DNuGKTqf.js → source-candidate-scan-signature-BjVQYL-C.js} +3 -3
- package/dist/{source-candidate-scan-signature-BtJZp28T.cjs → source-candidate-scan-signature-nG-rg809.cjs} +4 -4
- package/dist/style-injector/internal.d.ts +35 -35
- package/dist/style-injector/options.d.ts +1 -1
- package/dist/tailwindcss/miniprogram.d.ts +1 -1
- package/dist/tailwindcss/remove-unsupported-css.d.ts +1 -1
- package/dist/tailwindcss/source-scan/inline-source.d.ts +1 -7
- package/dist/tailwindcss/source-scan.d.ts +3 -32
- package/dist/tailwindcss/v4/css-sources.d.ts +1 -1
- package/dist/tailwindcss/v4/preflight.d.ts +1 -3
- package/dist/tailwindcss/v4/rpx-theme-warning.d.ts +4 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +2 -3
- package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/rpx-candidates.d.ts +1 -6
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +5 -2
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +3 -7
- package/dist/tailwindcss/v4-engine/source.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/types.d.ts +3 -1
- package/dist/{tailwindcss-CBYjzRmV.cjs → tailwindcss-U3KIUegn.cjs} +65 -264
- package/dist/{tailwindcss-B_4E52WF.js → tailwindcss-kSd0ykiX.js} +71 -243
- package/dist/{transform-CkEnJYIP.js → transform-BAon9ykq.js} +25 -16
- package/dist/{transform-FkqbTBJR.cjs → transform-DVg4q8hh.cjs} +32 -23
- package/dist/types/index.d.ts +2 -2
- package/dist/types/user-defined-options/general.d.ts +1 -1
- package/dist/uni-app-x/border-preflight.d.ts +1 -1
- package/dist/uni-app-x/component-local-style.d.ts +3 -1
- package/dist/uni-app-x/vite/style-result.d.ts +1 -1
- package/dist/utils/run-tasks.d.ts +3 -0
- package/dist/vite/web.cjs +1 -1
- package/dist/vite/web.js +1 -1
- package/dist/{vite-lP35OguX.js → vite-D-RGkmOE.js} +62 -674
- package/dist/{vite-DxuKPZlp.cjs → vite-IX83wh_L.cjs} +217 -828
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/{watch-dependencies-GbC14Rlt.cjs → watch-dependencies-C1so1whD.cjs} +14 -1
- package/dist/weapp-tw-css-generation-loader.cjs +4 -3
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +33 -28
- package/dist/weapp-tw-runtime-classset-loader.cjs +5 -18
- package/dist/{web-Dfz_jpNj.js → web--kA4HUTm.js} +16 -115
- package/dist/{web-DhDxhlkq.cjs → web-DHfZ_KC9.cjs} +83 -192
- package/dist/{webpack-R2Sbggiy.cjs → webpack-BetjemzT.cjs} +87 -87
- package/dist/{webpack-D6jp1o3m.js → webpack-Bhkd27Rs.js} +28 -441
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +12 -7
- package/dist/final-css-cleanup-CDTmVAye.cjs +0 -1
- package/dist/generator-Bvr4WmuF.cjs +0 -3891
- package/dist/generator-C0BJjyLM.js +0 -3343
- package/dist/pipeline-helpers-BOjTEmMi.cjs +0 -971
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, transformCssMacroCss, transformCssMacroTailwindV4Source, withCssMacroStyleOptions } from "@weapp-tailwindcss/postcss";
|
|
1
|
+
import { hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, transformCssMacroCss, transformCssMacroTailwindV4Source, withCssMacroStyleOptions } from "@weapp-tailwindcss/postcss/transform";
|
|
2
2
|
//#region src/css-macro/auto.ts
|
|
3
3
|
const CSS_MACRO_PLUGIN_MARKER = "__weappTailwindcssCssMacro";
|
|
4
4
|
function markCssMacroPlugin(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type File from 'vinyl';
|
|
2
|
-
import type { SourceCandidateCollector } from '../../../shared/source-candidates.js';
|
|
3
2
|
import type { getCompilerContext } from '../../../../context/index.js';
|
|
3
|
+
import type { SourceCandidateCollector } from '../../../../project-sources/candidates.js';
|
|
4
4
|
import type { TailwindRuntimeState } from '../../../../tailwindcss/runtime.js';
|
|
5
5
|
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, JsModuleGraphOptions } from '../../../../types/index.js';
|
|
6
6
|
type DebugFunction = (formatter: unknown, ...args: unknown[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { removeUnsupportedAtSupports, removeUnsupportedMiniProgramAtRules, } from '@weapp-tailwindcss/postcss';
|
|
1
|
+
export { removeUnsupportedAtSupports, removeUnsupportedMiniProgramAtRules, } from '@weapp-tailwindcss/postcss/transform';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { finalizeMiniProgramCss, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, pruneMiniProgramGeneratedCss, removeUnsupportedAtSupports, removeUnsupportedMiniProgramAtRules, stripMiniProgramCssSpecificityPlaceholders, } from '@weapp-tailwindcss/postcss';
|
|
1
|
+
export { finalizeMiniProgramCss, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, pruneMiniProgramGeneratedCss, removeUnsupportedAtSupports, removeUnsupportedMiniProgramAtRules, stripMiniProgramCssSpecificityPlaceholders, } from '@weapp-tailwindcss/postcss/transform';
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import type { CssTokenSourceMap } from '@weapp-tailwindcss/postcss/transform';
|
|
1
2
|
import type { TailwindSourceEntry } from '../../tailwindcss/source-scan.js';
|
|
2
3
|
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
3
|
-
export
|
|
4
|
-
token: string;
|
|
5
|
-
sources: string[];
|
|
6
|
-
}
|
|
7
|
-
export type CssTokenSourceMap = Map<string, CssTokenSource>;
|
|
4
|
+
export type { CssTokenSource, CssTokenSourceMap } from '@weapp-tailwindcss/postcss/transform';
|
|
8
5
|
export type CssSourceTraceGetter = (entries: TailwindSourceEntry[] | undefined) => CssTokenSourceMap | undefined;
|
|
9
6
|
export interface CssSourceTraceOptions {
|
|
10
7
|
root?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { finalizeMiniProgramCssStructure, hasEmptyCssBlockCandidate, } from '@weapp-tailwindcss/postcss';
|
|
1
|
+
export { finalizeMiniProgramCssStructure, hasEmptyCssBlockCandidate, } from '@weapp-tailwindcss/postcss/transform';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../generation/framework-css-composition.js';
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GenerateCssByGeneratorResult } from './generator-css.js';
|
|
3
|
-
import type { BundlerStyleHandlerOptions as IStyleHandlerOptions } from './style-handler-options.js';
|
|
4
|
-
import type { Compiler, CompilerSnapshot } from '../../core/compiler/index.js';
|
|
5
|
-
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
6
|
-
export declare function resolveFrameworkPostcssOptions(value: unknown): LoadedPostcssOptions | undefined;
|
|
7
|
-
export declare function collectFrameworkPostcssOptionsFromLoaderEntries(entries: unknown[], loaderContext?: unknown): LoadedPostcssOptions | undefined;
|
|
8
|
-
export declare function captureFrameworkPostcssOptions(owner: InternalUserDefinedOptions, options: unknown): LoadedPostcssOptions | undefined;
|
|
9
|
-
export declare function captureResolvedFrameworkPostcssOptions(owner: InternalUserDefinedOptions, options: LoadedPostcssOptions | undefined): LoadedPostcssOptions | undefined;
|
|
10
|
-
export declare function hasFrameworkPostcssOptions(owner: InternalUserDefinedOptions): boolean;
|
|
11
|
-
export declare function adaptGeneratedCssWithFrameworkPipeline(owner: InternalUserDefinedOptions, generated: GenerateCssByGeneratorResult, options: {
|
|
12
|
-
cssHandlerOptions: IStyleHandlerOptions;
|
|
13
|
-
file: string;
|
|
14
|
-
majorVersion: number;
|
|
15
|
-
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
16
|
-
}): Promise<string>;
|
|
17
|
-
export declare function adaptGeneratedCssWithFrameworkRootPipeline(owner: InternalUserDefinedOptions, generated: GenerateCssByGeneratorResult, options: {
|
|
18
|
-
cssHandlerOptions: IStyleHandlerOptions;
|
|
19
|
-
file: string;
|
|
20
|
-
majorVersion: number;
|
|
21
|
-
rawCandidates: Iterable<string>;
|
|
22
|
-
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
23
|
-
compiler?: Compiler | undefined;
|
|
24
|
-
snapshot?: CompilerSnapshot | undefined;
|
|
25
|
-
}): Promise<string>;
|
|
1
|
+
export * from '../../generation/framework-postcss.js';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { NormalizedWeappTailwindcssGeneratorOptions } from '../../generator/index.js';
|
|
3
|
-
export declare function normalizeFrameworkProcessedUserCss(source: string): string;
|
|
4
|
-
export declare function restoreFrameworkProcessedUserCss(css: string, generated: GenerateCssByGeneratorResult, source: string, options: GenerateCssByGeneratorOptions, generatorOptions: NormalizedWeappTailwindcssGeneratorOptions): Promise<string>;
|
|
1
|
+
export * from '../../generation/framework-user-css.js';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
bundler: 'gulp' | 'vite' | 'webpack';
|
|
3
|
-
file?: string | undefined;
|
|
4
|
-
css: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function createBundlerGeneratedCssMarker(bundler: 'gulp' | 'vite' | 'webpack', file: string): string;
|
|
7
|
-
export declare function createBundlerGeneratedCssEndMarker(bundler: 'gulp' | 'vite' | 'webpack', file: string): string;
|
|
8
|
-
export declare function hasBundlerGeneratedCssMarker(source: unknown): boolean;
|
|
9
|
-
export declare function stripBundlerGeneratedCssMarkers(source: string): string;
|
|
10
|
-
export declare function parseBundlerGeneratedCssMarkerBlocks(source: string): BundlerGeneratedCssMarkerBlock[];
|
|
1
|
+
export { type BundlerGeneratedCssMarkerBlock, createBundlerGeneratedCssEndMarker, createBundlerGeneratedCssMarker, hasBundlerGeneratedCssMarker, parseBundlerGeneratedCssMarkerBlocks, stripBundlerGeneratedCssMarkers } from '@weapp-tailwindcss/postcss/transform';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function collectGeneratorCssCandidates(css: string): string[];
|
|
1
|
+
export * from '../../../generation/candidates.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function collectGeneratedRawSourceCandidates(candidates: Iterable<string>, rawSource: string, escapeMap: Record<string, string> | undefined): Set<string>;
|
|
3
|
-
export declare function collectGeneratedRawSourceCandidatesFromCss(candidates: Iterable<string>, cssSources: Iterable<string>, escapeMap: Record<string, string> | undefined): Set<string>;
|
|
1
|
+
export * from '../../../generation/class-selectors.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function normalizeConfigDirective(css: string, config: string | undefined): string;
|
|
1
|
+
export * from '../../../generation/config-directive.js';
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
importFallback?: boolean | undefined;
|
|
3
|
-
}
|
|
4
|
-
export declare function extractTailwindDirectiveLines(rawSource: string, options?: TailwindDirectiveOptions & {
|
|
5
|
-
removeConfig?: boolean;
|
|
6
|
-
}): string[];
|
|
7
|
-
export declare function extractTailwindSourceForPostcssFallback(rawSource: string, options?: TailwindDirectiveOptions & {
|
|
8
|
-
removeConfig?: boolean;
|
|
9
|
-
}): string | undefined;
|
|
10
|
-
export declare function extractConfigRequestFromSource(rawSource: string): string | undefined;
|
|
11
|
-
export {};
|
|
1
|
+
export * from '../../../../generation/directives/fallback.js';
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
importFallback?: boolean | undefined;
|
|
3
|
-
preserveApplyContext?: boolean | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare function parseImportRequest(params: string): string | undefined;
|
|
6
|
-
export declare function hasLocalCssImport(rawSource: string): boolean;
|
|
7
|
-
export declare function normalizeTailwindConfigDirectives(rawSource: string, base: string): string;
|
|
8
|
-
export declare function normalizeTailwindSourceForGenerator(rawSource: string, options?: TailwindDirectiveOptions): string;
|
|
9
|
-
export declare function normalizeTailwindSourceDirectives(rawSource: string, options?: TailwindDirectiveOptions): string;
|
|
10
|
-
export declare function removeTailwindSourceDirectives(rawSource: string, options?: TailwindDirectiveOptions): string;
|
|
11
|
-
export declare function hasTailwindSourceDirectives(rawSource: string, options?: TailwindDirectiveOptions): boolean;
|
|
12
|
-
export declare function hasTailwindNonRootGenerationDirectives(rawSource: string, options?: TailwindDirectiveOptions): boolean;
|
|
13
|
-
export declare function hasTailwindRootImportDirectives(rawSource: string, options?: TailwindDirectiveOptions): boolean;
|
|
14
|
-
export declare function hasTailwindRootDirectives(rawSource: string, options?: TailwindDirectiveOptions): boolean;
|
|
15
|
-
export declare function hasTailwindApplyDirective(rawSource: string): boolean;
|
|
16
|
-
export declare function resolveCssEntrySource(rawSource: string, base: string, options?: {
|
|
17
|
-
removeConfig?: boolean;
|
|
18
|
-
importFallback?: boolean;
|
|
19
|
-
}): {
|
|
20
|
-
css: string;
|
|
21
|
-
config: string | undefined;
|
|
22
|
-
configRequest: string | undefined;
|
|
23
|
-
base: string;
|
|
24
|
-
} | undefined;
|
|
25
|
-
export {};
|
|
1
|
+
export * from '../../../generation/directives.js';
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
3
|
-
export declare function hasMiniProgramTailwindV4PreflightReset(css: string): boolean;
|
|
4
|
-
export declare function finalizeMiniProgramGeneratorCss(css: string, target: string, _majorVersion: number | undefined, cssPreflight: InternalUserDefinedOptions['cssPreflight'], options?: {
|
|
5
|
-
injectPreflight?: boolean | undefined;
|
|
6
|
-
preservePreflight?: boolean | undefined;
|
|
7
|
-
removeEmptyAtRuleAncestors?: boolean | undefined;
|
|
8
|
-
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
9
|
-
}): string;
|
|
10
|
-
export declare function resolveMiniProgramPreflightModeForGeneratorCss(opts: InternalUserDefinedOptions, options: {
|
|
11
|
-
cssHandlerOptions: IStyleHandlerOptions;
|
|
12
|
-
isolateCurrentCssCandidates: boolean;
|
|
13
|
-
localImports?: string | undefined;
|
|
14
|
-
primaryCssSource?: boolean | undefined;
|
|
15
|
-
explicitCssSource?: boolean | undefined;
|
|
16
|
-
}): {
|
|
17
|
-
inject: boolean;
|
|
18
|
-
preserve: boolean;
|
|
19
|
-
};
|
|
1
|
+
export * from '../../../../generation/generation-helpers/preflight.js';
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CompilerGenerateResult, CompilerSnapshot } from '../../../../core/compiler/index.js';
|
|
3
|
-
export declare function shouldFinalizeMarkedUserLayerComponentsCss(file: string): boolean;
|
|
4
|
-
export declare function splitRawSourceByGeneratedCssOrder(rawSource: string, rawTailwindCss: string): {
|
|
5
|
-
before: string;
|
|
6
|
-
after: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
export declare function shouldUseGeneratorForCurrentCss(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
|
|
9
|
-
forceGenerator?: boolean | undefined;
|
|
10
|
-
hasGeneratedCss: boolean;
|
|
11
|
-
hasGeneratedMarkers: boolean;
|
|
12
|
-
hasSourceDirectives: boolean;
|
|
13
|
-
rawSource: string;
|
|
14
|
-
runtimeCandidateCount?: number | undefined;
|
|
15
|
-
target?: string | undefined;
|
|
16
|
-
configuredCssSourceCount?: number | undefined;
|
|
17
|
-
}): boolean | undefined;
|
|
18
|
-
export declare function hasGeneratorSourceDirectives(source: string, importFallback: boolean): boolean;
|
|
19
|
-
export declare function createRuntimeWithCurrentCssCandidates(runtime: Set<string>, currentCssCandidates: string[], isolateCurrentCssCandidates: boolean): Set<string>;
|
|
20
|
-
export declare function mergeGeneratorResults(generatedResults: GeneratorResult[]): GeneratorResult | undefined;
|
|
21
|
-
export type GeneratorResult = Omit<CompilerGenerateResult, 'cache' | 'revision' | 'snapshot'> & {
|
|
22
|
-
snapshot?: CompilerSnapshot | undefined;
|
|
23
|
-
};
|
|
1
|
+
export * from '../../../../generation/generation-helpers/results.js';
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorSourceRecord } from '../source-resolver.js';
|
|
3
|
-
import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
|
|
4
|
-
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
5
|
-
export declare function mergeScopedRuntimeWithCurrentRuntime(scopedRuntime: Set<string>, runtime: Set<string>, options: {
|
|
6
|
-
currentCssCandidates?: string[] | undefined;
|
|
7
|
-
cssHandlerOptions: IStyleHandlerOptions;
|
|
8
|
-
isolateCssSource: boolean;
|
|
9
|
-
majorVersion?: number | undefined;
|
|
10
|
-
matchedCssSourceFile: boolean;
|
|
11
|
-
}): Set<string>;
|
|
12
|
-
export declare function shouldIsolateScopedCssSource(_majorVersion: number | undefined, record: GeneratorSourceRecord, sourceEntries: TailwindSourceEntry[] | undefined, options: {
|
|
13
|
-
cssHandlerOptions?: IStyleHandlerOptions | undefined;
|
|
14
|
-
target: string;
|
|
15
|
-
}): boolean;
|
|
16
|
-
export declare function shouldIsolateCurrentTailwindV4CssCandidates(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
|
|
17
|
-
hasGeneratedCss: boolean;
|
|
18
|
-
hasGeneratedMarkers: boolean;
|
|
19
|
-
rawSource: string;
|
|
20
|
-
}): boolean;
|
|
21
|
-
export declare function shouldScanTailwindV4Sources(majorVersion: number | undefined, target: string, generatorRuntime: Set<string>, isolateCssSource: boolean): boolean;
|
|
22
|
-
export declare function shouldAppendWebBundleCssFallback(target: string, _options: {
|
|
23
|
-
hasSourceDirectives: boolean;
|
|
24
|
-
hasMatchedCssSourceFile: boolean;
|
|
25
|
-
}): target is "web";
|
|
26
|
-
export declare function isEmptyCssSourceOrderParts(parts: {
|
|
27
|
-
before: string;
|
|
28
|
-
after: string;
|
|
29
|
-
}): boolean;
|
|
30
|
-
export declare function resolveGeneratorStyleOptions(opts: InternalUserDefinedOptions, cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined): Partial<IStyleHandlerOptions>;
|
|
1
|
+
export * from '../../../../generation/generation-helpers/runtime-isolation.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function deduplicateGeneratedCssRules(css: string): string;
|
|
1
|
+
export * from '../../../../generation/generation-helpers/source-order.js';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { createRuntimeWithCurrentCssCandidates, hasGeneratorSourceDirectives, mergeGeneratorResults, shouldFinalizeMarkedUserLayerComponentsCss, shouldUseGeneratorForCurrentCss, splitRawSourceByGeneratedCssOrder } from './generation-helpers/results.js';
|
|
3
|
-
export { isEmptyCssSourceOrderParts, mergeScopedRuntimeWithCurrentRuntime, resolveGeneratorStyleOptions, shouldAppendWebBundleCssFallback, shouldIsolateCurrentTailwindV4CssCandidates, shouldIsolateScopedCssSource, shouldScanTailwindV4Sources } from './generation-helpers/runtime-isolation.js';
|
|
4
|
-
export { createCssSourceOrderAppend, deduplicateGeneratedCssRules } from './generation-helpers/source-order.js';
|
|
1
|
+
export * from '../../../generation/generation-helpers.js';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TailwindResolvedSource } from '../../../generator/index.js';
|
|
3
|
-
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
4
|
-
import { removeTailwindApplyRules } from '@weapp-tailwindcss/postcss';
|
|
5
|
-
export { removeTailwindApplyRules };
|
|
6
|
-
export declare function hasConfiguredContainerCompatSources(sources: TailwindResolvedSource[]): boolean;
|
|
7
|
-
export declare function appendLegacyCompatCss(css: string, rawSource: string, generatorTarget: string, styleHandler: InternalUserDefinedOptions['styleHandler'], cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined, options?: {
|
|
8
|
-
preserveSelectorOverrides?: boolean | undefined;
|
|
9
|
-
generatedSource?: string | undefined;
|
|
10
|
-
compileAuthorCssFunctions?: ((css: string) => Promise<string>) | undefined;
|
|
11
|
-
}): Promise<string>;
|
|
12
|
-
export declare function appendLegacyContainerCompatCss(css: string, rawSource: string, file: string, runtime: Set<string>, configuredContainerCompat: boolean, generatorTarget: string, styleHandler: InternalUserDefinedOptions['styleHandler'], cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined): Promise<string>;
|
|
1
|
+
export * from '../../../generation/legacy-compat.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function removeDuplicatedViteMarkers(css: string, baseCss: string): string;
|
|
1
|
+
export * from '../../../generation/legacy-selectors.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../../generation/legacy-units.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../../generation/local-imports.js';
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const TAILWIND_GENERATED_CSS_MARKER_RE: RegExp;
|
|
3
|
-
export declare const GENERATOR_PLACEHOLDER_MARKER_RE: RegExp;
|
|
4
|
-
export declare const GENERATOR_PLACEHOLDER_MARKER_GLOBAL_RE: RegExp;
|
|
5
|
-
export declare const TAILWIND_BANNER_PREFIX_RE: RegExp;
|
|
6
|
-
export declare const TAILWIND_BANNER_RE: RegExp;
|
|
7
|
-
export declare const TAILWIND_BANNER_GLOBAL_RE: RegExp;
|
|
8
|
-
export declare const VITE_MARKER_RE: RegExp;
|
|
9
|
-
export declare function createCssAppend(base: string, extra: string): string;
|
|
10
|
-
export declare function splitTailwindV4GeneratedCss(rawSource: string, rawTailwindCss: string): string | undefined;
|
|
11
|
-
export declare function splitTailwindV4GeneratedCssBySourceOrder(rawSource: string, rawTailwindCss: string): {
|
|
12
|
-
before: string;
|
|
13
|
-
after: string;
|
|
14
|
-
} | undefined;
|
|
15
|
-
export declare function splitGeneratorPlaceholderCssBySourceOrder(rawSource: string, rawTailwindCss?: string): {
|
|
16
|
-
before: string;
|
|
17
|
-
after: string;
|
|
18
|
-
} | undefined;
|
|
19
|
-
export declare function removeTailwindGeneratedCssByBanner(rawSource: string): string | undefined;
|
|
20
|
-
export declare function splitTailwindGeneratedCssByBanner(rawSource: string, start?: number): {
|
|
21
|
-
before: string;
|
|
22
|
-
after: string;
|
|
23
|
-
} | undefined;
|
|
24
|
-
export declare function stripTailwindBanner(css: string): string;
|
|
25
|
-
export declare function stripTailwindBanners(css: string): string;
|
|
26
|
-
export declare function stripGeneratorPlaceholderMarkers(css: string): string;
|
|
27
|
-
export declare function hasTailwindGeneratedCss(rawSource: string): boolean;
|
|
28
|
-
export declare function hasTailwindGeneratedCssMarkers(rawSource: string): boolean;
|
|
1
|
+
export * from '../../../generation/markers.js';
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
outputFile: string;
|
|
3
|
-
outputFiles: Iterable<string>;
|
|
4
|
-
cssOnly?: boolean;
|
|
5
|
-
}): string;
|
|
6
|
-
export declare function removeSelfMiniProgramOutputImports(css: string, outputFile: string): string;
|
|
7
|
-
export declare function removeMiniProgramOutputImports(css: string): string;
|
|
8
|
-
export declare function normalizeMiniProgramGeneratorCssSource(css: string, outputFile?: string | undefined, outputFiles?: Iterable<string>): string;
|
|
1
|
+
export * from '../../../generation/output-import-shell.js';
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorResult } from '../generation-helpers/results.js';
|
|
3
|
-
import type { TailwindV4CssSource } from '../source-resolver/types.js';
|
|
4
|
-
import type { GenerateCssByGeneratorOptions } from '../types.js';
|
|
5
|
-
import type { NormalizedWeappTailwindcssGeneratorOptions, TailwindResolvedSource } from '../../../../generator/index.js';
|
|
6
|
-
import type { RuntimeBranch } from '../../../../runtime-branch.js';
|
|
7
|
-
export interface GeneratorPipelineExecutionContext {
|
|
8
|
-
cssHandlerOptions: GenerateCssByGeneratorOptions['cssHandlerOptions'];
|
|
9
|
-
cssUserHandlerOptions: GenerateCssByGeneratorOptions['cssUserHandlerOptions'];
|
|
10
|
-
debug: GenerateCssByGeneratorOptions['debug'];
|
|
11
|
-
file: string;
|
|
12
|
-
finalizeGeneratorCss: (css: string, target: string, options?: {
|
|
13
|
-
injectPreflight?: boolean | undefined;
|
|
14
|
-
preservePreflight?: boolean | undefined;
|
|
15
|
-
removeEmptyAtRuleAncestors?: boolean | undefined;
|
|
16
|
-
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
17
|
-
}) => string;
|
|
18
|
-
generatedUserCssRawSource: string;
|
|
19
|
-
generatorBranch: RuntimeBranch;
|
|
20
|
-
generatorOptions: NormalizedWeappTailwindcssGeneratorOptions;
|
|
21
|
-
generatorRawSource: string;
|
|
22
|
-
getSourceCandidatesForEntries: GenerateCssByGeneratorOptions['getSourceCandidatesForEntries'];
|
|
23
|
-
hasDistinctUserRawSource: boolean;
|
|
24
|
-
hasGeneratedCss: boolean;
|
|
25
|
-
hasGeneratedMarkers: boolean;
|
|
26
|
-
hasSourceDirectives: boolean;
|
|
27
|
-
hasWebUserCssFallbackSource: boolean;
|
|
28
|
-
legacyCompatUserCssRawSource: string;
|
|
29
|
-
localImports: string | undefined;
|
|
30
|
-
majorVersion: number;
|
|
31
|
-
normalizeGeneratorSource: (source: TailwindResolvedSource) => TailwindResolvedSource;
|
|
32
|
-
normalizedCssSources: TailwindV4CssSource[] | undefined;
|
|
33
|
-
options: GenerateCssByGeneratorOptions;
|
|
34
|
-
opts: GenerateCssByGeneratorOptions['opts'];
|
|
35
|
-
prepareFinalGeneratorCss: (css: string) => string;
|
|
36
|
-
runtime: Set<string>;
|
|
37
|
-
runtimeState: GenerateCssByGeneratorOptions['runtimeState'];
|
|
38
|
-
shouldPreserveLegacyCompatSelectorOverrides: boolean;
|
|
39
|
-
styleHandler: GenerateCssByGeneratorOptions['styleHandler'];
|
|
40
|
-
userCssOrderSource: string;
|
|
41
|
-
userCssRawSource: string;
|
|
42
|
-
userRawSourceProcessed: boolean | undefined;
|
|
43
|
-
useMiniProgramCssBranch: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface GeneratorPipelineOutputContext extends GeneratorPipelineExecutionContext {
|
|
46
|
-
compileAuthorCssFunctions: (css: string) => Promise<string>;
|
|
47
|
-
configuredContainerCompat: boolean;
|
|
48
|
-
filterGeneratedApplyOnlyCss: (css: string) => string;
|
|
49
|
-
generated: GeneratorResult;
|
|
50
|
-
generatedCss: string;
|
|
51
|
-
generatorStyleOptions: Partial<IStyleHandlerOptions>;
|
|
52
|
-
hasMatchedCssSourceFile: boolean;
|
|
53
|
-
isolateCurrentCssCandidates: boolean;
|
|
54
|
-
preflightMode: {
|
|
55
|
-
inject: boolean;
|
|
56
|
-
preserve: boolean;
|
|
57
|
-
};
|
|
58
|
-
runtimeWithCurrentCss: Set<string>;
|
|
59
|
-
shouldFilterApplyOnlyCss: boolean;
|
|
60
|
-
}
|
|
1
|
+
export * from '../../../../generation/pipeline/context.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorPipelineOutputContext } from './context.js';
|
|
3
|
-
export declare function finalizeDeferredGeneratorCss(context: GeneratorPipelineOutputContext): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
1
|
+
export * from '../../../../generation/pipeline/deferred-output.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorPipelineExecutionContext } from './context.js';
|
|
3
|
-
export declare function executeGeneratorPipeline(context: GeneratorPipelineExecutionContext): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
1
|
+
export * from '../../../../generation/pipeline/execution.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorPipelineOutputContext } from './context.js';
|
|
3
|
-
export declare function finalizeFallbackGeneratorCss(context: GeneratorPipelineOutputContext): Promise<GenerateCssByGeneratorResult>;
|
|
1
|
+
export * from '../../../../generation/pipeline/fallback-output.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorPipelineOutputContext } from './context.js';
|
|
3
|
-
export declare function finalizeOrderedGeneratorCss(context: GeneratorPipelineOutputContext): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
1
|
+
export * from '../../../../generation/pipeline/ordered-output.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function generateCssByGenerator(options: GenerateCssByGeneratorOptions): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
1
|
+
export * from '../../../generation/pipeline.js';
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { finalizeMiniProgramGeneratorCss } from './generation-helpers.js';
|
|
3
|
-
export declare function isCssAlreadyRepresentedByMarkers(css: string, source: string): boolean;
|
|
4
|
-
export declare function resolveGeneratedCssClassSet(target: string, classSet: ReadonlySet<string>, candidates: Iterable<string>, css: string, escapeMap: Record<string, string> | undefined, previousClassSet?: Set<string> | undefined): Set<string>;
|
|
5
|
-
export declare function finalizeWebGeneratorCss(css: string, target: string, webCompat: ReturnType<typeof normalizeWeappTailwindcssGeneratorOptions>['webCompat']): string;
|
|
6
|
-
export declare function finalizeIncrementalGeneratorCss(previousCss: string, incrementalCss: string, target: string, majorVersion: number | undefined, cssPreflight: Parameters<typeof finalizeMiniProgramGeneratorCss>[3], options: Parameters<typeof finalizeMiniProgramGeneratorCss>[4], webCompat: ReturnType<typeof normalizeWeappTailwindcssGeneratorOptions>['webCompat']): string;
|
|
1
|
+
export * from '../../../generation/result-helpers.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../../generation/scoped-rules.js';
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
projectRoot?: string | undefined;
|
|
3
|
-
cwd?: string | undefined;
|
|
4
|
-
outputRoot?: string | undefined;
|
|
5
|
-
sourceFile?: string | undefined;
|
|
6
|
-
sourceCss?: string | undefined;
|
|
7
|
-
cssSources?: Array<{
|
|
8
|
-
file?: string | undefined;
|
|
9
|
-
}> | undefined;
|
|
10
|
-
cssEntries?: string[] | undefined;
|
|
11
|
-
}
|
|
12
|
-
export interface SourceSideCssEntrySource {
|
|
13
|
-
css: string;
|
|
14
|
-
config?: string | undefined;
|
|
15
|
-
configRequest?: string | undefined;
|
|
16
|
-
base: string;
|
|
17
|
-
file: string;
|
|
18
|
-
}
|
|
19
|
-
export declare function resolveSourceSideCssEntrySource(file: string, sourceOptions: SourceSideCssEntryOptions, resolveOptions?: {
|
|
20
|
-
removeConfig?: boolean;
|
|
21
|
-
}): SourceSideCssEntrySource | undefined;
|
|
1
|
+
export * from '../../../generation/source-files.js';
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
cssEntries?: string[] | undefined;
|
|
3
|
-
cssSources?: Array<{
|
|
4
|
-
css?: string | undefined;
|
|
5
|
-
file?: string | undefined;
|
|
6
|
-
}> | undefined;
|
|
7
|
-
packageName?: string | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare function createTailwindV4ApplyReferenceSource(css: string, sourceOptions: TailwindV4ApplyReferenceSourceOptions): string;
|
|
10
|
-
export declare function createTailwindV4SourceReferenceSource(css: string, sourceOptions: {
|
|
11
|
-
packageName?: string | undefined;
|
|
12
|
-
}, referenceDirective?: string): string;
|
|
13
|
-
export {};
|
|
1
|
+
export * from '../../../../generation/source-resolver/apply-reference.js';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
projectRoot?: string | undefined;
|
|
3
|
-
cwd?: string | undefined;
|
|
4
|
-
config?: string | undefined;
|
|
5
|
-
sourceFile?: string | undefined;
|
|
6
|
-
outputRoot?: string | undefined;
|
|
7
|
-
}): string | undefined;
|
|
1
|
+
export * from '../../../../generation/source-resolver/config.js';
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorSourceRuntimeState, SourceStyleMatchOptions, TailwindV4CssSource, TailwindV4SourceOptions } from './types.js';
|
|
3
|
-
import type { TailwindResolvedSource } from '../../../../generator/index.js';
|
|
4
|
-
export declare function createCssEntrySources(cssEntries: string[] | undefined): {
|
|
5
|
-
file: string;
|
|
6
|
-
}[] | undefined;
|
|
7
|
-
export declare function mergeCssSources(cssSources: TailwindV4CssSource[] | undefined, cssEntrySources: TailwindV4CssSource[] | undefined): import("@tailwindcss-mangle/engine").TailwindV4CssSource[] | undefined;
|
|
8
|
-
export declare function resolveUniqueTailwindV4CssConfig(sourceOptions: TailwindV4SourceOptions): string | undefined;
|
|
9
|
-
export declare function createSingleTailwindV4SourceOptions(sourceOptions: TailwindV4SourceOptions, options: {
|
|
10
|
-
base: string;
|
|
11
|
-
css: string;
|
|
12
|
-
cssEntries?: string[] | undefined;
|
|
13
|
-
}): Partial<{
|
|
14
|
-
projectRoot: string;
|
|
15
|
-
baseFallbacks: string[];
|
|
16
|
-
packageName: string;
|
|
17
|
-
base: string;
|
|
18
|
-
css: string;
|
|
19
|
-
cssEntries: string[];
|
|
20
|
-
}>;
|
|
21
|
-
export declare function resolveTailwindV4CssEntrySource(cssEntry: string, sourceOptions: TailwindV4SourceOptions, options?: {
|
|
22
|
-
candidateMatched?: boolean | undefined;
|
|
23
|
-
includesPreflight?: boolean | undefined;
|
|
24
|
-
index?: number | undefined;
|
|
25
|
-
}): Promise<import("./metadata.js").GeneratorResolvedSource>;
|
|
26
|
-
export declare function canResolveSourceSideCssEntry(file: string, cssHandlerOptions: IStyleHandlerOptions, sourceOptions?: Pick<SourceStyleMatchOptions, 'sourceFile' | 'cssSources' | 'outputRoot'>): boolean;
|
|
27
|
-
export declare function shouldResolveSourceSideCssEntry(rawSource: string): boolean;
|
|
28
|
-
export declare function normalizeTailwindV4CssSourceConfig(cssSource: TailwindV4CssSource, sourceBase: string): import("@tailwindcss-mangle/engine").TailwindV4CssSource;
|
|
29
|
-
export declare function normalizeResolvedTailwindV4SourceConfig<T extends TailwindResolvedSource>(source: T, file: string | undefined, sourceOptions: TailwindV4SourceOptions | undefined): T;
|
|
30
|
-
export declare function normalizeTailwindV4CssSourceConfigs(sourceOptions: TailwindV4SourceOptions): TailwindV4SourceOptions;
|
|
31
|
-
export declare function tryResolveTailwindV4SourceOptions(runtimeState: GeneratorSourceRuntimeState): TailwindV4SourceOptions | undefined;
|
|
32
|
-
export declare function hasConfiguredTailwindV4CssSource(sourceOptions: TailwindV4SourceOptions | undefined): boolean;
|
|
33
|
-
export declare function isSameTailwindV4CssSource(a: TailwindV4CssSource | undefined, b: TailwindV4CssSource | undefined): boolean;
|
|
1
|
+
export * from '../../../../generation/source-resolver/configuration.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function normalizeCssSourceForCompare(css: string): string;
|
|
3
|
-
export declare function scoreTailwindV4CssSourceFileMatch(file: string, cssSourceFile: string, sourceOptions: SourceStyleMatchOptions): number;
|
|
1
|
+
export * from '../../../../generation/source-resolver/matching.js';
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TailwindResolvedSource } from '../../../../generator/index.js';
|
|
3
|
-
import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
|
|
4
|
-
export interface GeneratorSourceMetadata {
|
|
5
|
-
candidateMatchedCssSource?: boolean | undefined;
|
|
6
|
-
cssEntryIndex?: number | undefined;
|
|
7
|
-
cssSourceIndex?: number | undefined;
|
|
8
|
-
includesPreflight?: boolean | undefined;
|
|
9
|
-
isolateCssSource?: boolean | undefined;
|
|
10
|
-
matchedCssSourceFile?: string | undefined;
|
|
11
|
-
primaryCssSource?: boolean | undefined;
|
|
12
|
-
sourceEntries?: TailwindSourceEntry[] | undefined;
|
|
13
|
-
sourceBase?: string | undefined;
|
|
14
|
-
sourceCss?: string | undefined;
|
|
15
|
-
}
|
|
16
|
-
declare const generatorSourceMetadataKey: unique symbol;
|
|
17
|
-
export type GeneratorResolvedSource = TailwindResolvedSource & {
|
|
18
|
-
[generatorSourceMetadataKey]?: GeneratorSourceMetadata | undefined;
|
|
19
|
-
};
|
|
20
|
-
export interface GeneratorSourceRecord {
|
|
21
|
-
source: TailwindResolvedSource;
|
|
22
|
-
metadata: GeneratorSourceMetadata;
|
|
23
|
-
}
|
|
24
|
-
export declare function getGeneratorSourceMetadata(source: TailwindResolvedSource): GeneratorSourceMetadata | undefined;
|
|
25
|
-
export declare function withGeneratorSourceMetadata(source: TailwindResolvedSource, metadata: GeneratorSourceMetadata): GeneratorResolvedSource;
|
|
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
|
+
export * from '../../../../generation/source-resolver/metadata.js';
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TailwindV4CssSource } from './types.js';
|
|
3
|
-
export declare function resolvePostcssFromOption(cssHandlerOptions: IStyleHandlerOptions): string | undefined;
|
|
4
|
-
export declare function resolvePostcssRequestOption(cssHandlerOptions: IStyleHandlerOptions): string | undefined;
|
|
5
|
-
export declare function resolvePostcssSourceFile(cssHandlerOptions: IStyleHandlerOptions): string | undefined;
|
|
6
|
-
export declare function resolveCssHandlerSourceOptions(cssHandlerOptions: IStyleHandlerOptions): {
|
|
7
|
-
outputRoot?: string | undefined;
|
|
8
|
-
requestFile?: string | undefined;
|
|
9
|
-
sourceFile?: string | undefined;
|
|
10
|
-
sourceCss?: string | undefined;
|
|
11
|
-
cssSources?: TailwindV4CssSource[] | undefined;
|
|
12
|
-
cssEntries?: string[] | undefined;
|
|
13
|
-
} | undefined;
|
|
14
|
-
export declare function resolveCssSourceBase(file: string, cssHandlerOptions: IStyleHandlerOptions): string;
|
|
1
|
+
export * from '../../../../generation/source-resolver/postcss-source.js';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
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>;
|
|
1
|
+
export * from '../../../../generation/source-resolver/resolve-source.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
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[]>;
|
|
1
|
+
export * from '../../../../generation/source-resolver/resolve-sources.js';
|