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,16 +1 @@
|
|
|
1
|
-
|
|
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, currentCss?: string): Promise<import("../../../../generator/index.js").TailwindV4ResolvedSource | undefined>;
|
|
1
|
+
export * from '../../../../generation/source-resolver/single-source.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratorSourceRuntimeState } from './types.js';
|
|
3
|
-
export declare function resolveGeneratorSourceEntries(record: GeneratorSourceRecord, runtimeState?: GeneratorSourceRuntimeState): Promise<import("../../../../tailwindcss/source-scan.js").TailwindSourceEntry[] | undefined>;
|
|
1
|
+
export * from '../../../../generation/source-resolver/source-entries.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export * from '../../../../generation/source-resolver/source-matching.js';
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
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
|
-
export interface GeneratorSourceRuntimeState {
|
|
6
|
-
tailwindRuntime: InternalUserDefinedOptions['tailwindRuntime'];
|
|
7
|
-
}
|
|
8
|
-
export interface GeneratorSourceSelectionOptions {
|
|
9
|
-
runtime?: Set<string> | undefined;
|
|
10
|
-
getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined) => Set<string>) | undefined;
|
|
11
|
-
cssEntries?: string[] | undefined;
|
|
12
|
-
cssSources?: TailwindV4CssSource[] | undefined;
|
|
13
|
-
}
|
|
14
|
-
export type TailwindV4SourceOptions = ReturnType<typeof resolveTailwindV4SourceOptionsFromRuntime> & {
|
|
15
|
-
config?: string | undefined;
|
|
16
|
-
outputRoot?: string | undefined;
|
|
17
|
-
sourceFile?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
export type TailwindV4CssSource = NonNullable<TailwindV4SourceOptions['cssSources']>[number];
|
|
20
|
-
export type TailwindV4CssSourceRef = Pick<TailwindV4CssSource, 'file'>;
|
|
21
|
-
export interface SourceStyleMatchOptions extends SourceSideCssEntryOptions {
|
|
22
|
-
}
|
|
1
|
+
export * from '../../../../generation/source-resolver/types.js';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
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
|
+
export * from '../../../generation/source-resolver.js';
|
|
@@ -1,64 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TailwindV4CssSource } from './source-resolver/types.js';
|
|
3
|
-
import type { CompilationDependencyChange, SourceScope } from '../../../compiler/index.js';
|
|
4
|
-
import type { CompilerSnapshot } from '../../../core/compiler/index.js';
|
|
5
|
-
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
6
|
-
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
7
|
-
export interface GenerateCssByGeneratorOptions {
|
|
8
|
-
opts: InternalUserDefinedOptions;
|
|
9
|
-
runtimeState: {
|
|
10
|
-
tailwindRuntime: InternalUserDefinedOptions['tailwindRuntime'];
|
|
11
|
-
readyPromise: Promise<void>;
|
|
12
|
-
};
|
|
13
|
-
runtime: Set<string>;
|
|
14
|
-
rawSource: string;
|
|
15
|
-
file: string;
|
|
16
|
-
cssHandlerOptions: BundlerStyleHandlerOptions;
|
|
17
|
-
cssUserHandlerOptions: BundlerStyleHandlerOptions;
|
|
18
|
-
cssSources?: TailwindV4CssSource[] | undefined;
|
|
19
|
-
getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined) => Set<string>) | undefined;
|
|
20
|
-
sourceCandidates?: Set<string> | undefined;
|
|
21
|
-
compilation?: {
|
|
22
|
-
changes?: CompilationDependencyChange[] | undefined;
|
|
23
|
-
enabled: boolean;
|
|
24
|
-
preserveDeletedCss: boolean;
|
|
25
|
-
scope: SourceScope;
|
|
26
|
-
} | undefined;
|
|
27
|
-
outputFile?: string | undefined;
|
|
28
|
-
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
29
|
-
debug: (format: string, ...args: unknown[]) => void;
|
|
30
|
-
generatorPlatform?: string | undefined;
|
|
31
|
-
userRawSource?: string | undefined;
|
|
32
|
-
userRawSourceProcessed?: boolean | undefined;
|
|
33
|
-
frameworkProcessedUserCss?: string | undefined;
|
|
34
|
-
forceGenerator?: boolean | undefined;
|
|
35
|
-
previousCss?: string | undefined;
|
|
36
|
-
previousClassSet?: Set<string> | undefined;
|
|
37
|
-
incrementalCache?: boolean | undefined;
|
|
38
|
-
deferEmptyScopedCssSource?: boolean | undefined;
|
|
39
|
-
deferCssAdaptation?: boolean | undefined;
|
|
40
|
-
disableSourceScan?: boolean | undefined;
|
|
41
|
-
restoreLocalCssImports?: boolean | undefined;
|
|
42
|
-
}
|
|
43
|
-
export interface GenerateCssByGeneratorResult {
|
|
44
|
-
css: string;
|
|
45
|
-
frameworkProcessedUserCss?: string | undefined;
|
|
46
|
-
compileAuthorCssFunctions?: ((css: string) => Promise<string>) | undefined;
|
|
47
|
-
classSet: ReadonlySet<string>;
|
|
48
|
-
target: string;
|
|
49
|
-
source: 'generator';
|
|
50
|
-
dependencies: string[];
|
|
51
|
-
snapshot?: CompilerSnapshot | undefined;
|
|
52
|
-
incremental?: boolean | undefined;
|
|
53
|
-
metadata?: {
|
|
54
|
-
file: string;
|
|
55
|
-
majorVersion?: number | undefined;
|
|
56
|
-
outputFile?: string | undefined;
|
|
57
|
-
preflightMode?: {
|
|
58
|
-
inject: boolean;
|
|
59
|
-
preserve: boolean;
|
|
60
|
-
} | undefined;
|
|
61
|
-
rawCss?: string | undefined;
|
|
62
|
-
revision?: number | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
}
|
|
1
|
+
export * from '../../../generation/types.js';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function filterApplyOnlyGeneratedCss(css: string, source: string, options?: {
|
|
3
|
-
preserveVariables?: boolean | undefined;
|
|
4
|
-
preserveRuntimeProperties?: boolean | undefined;
|
|
5
|
-
preferScopedRules?: boolean | undefined;
|
|
6
|
-
}): string;
|
|
7
|
-
export declare function shouldFilterApplyOnlyGeneratedCss(_majorVersion: number | undefined, target: string, source: string, options: {
|
|
8
|
-
hasGeneratedCss: boolean;
|
|
9
|
-
hasGeneratedMarkers: boolean;
|
|
10
|
-
}): boolean;
|
|
1
|
+
export * from '../../../../generation/user-css/apply-only.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function terminateTailwindSourceAtRulesBeforeNextDirective(source: string): string;
|
|
3
|
-
export declare function removeTailwindApplyAtRules(source: string): string;
|
|
1
|
+
export * from '../../../../generation/user-css/at-rules.js';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TailwindResolvedSource } from '../../../../generator/index.js';
|
|
3
|
-
export declare function shouldCompileAuthorCssFunctions(css: string): boolean;
|
|
4
|
-
export declare function createAuthorCssFunctionCompiler(sources: TailwindResolvedSource[], session: TailwindGenerationSessionPool): (css: string) => Promise<string>;
|
|
1
|
+
export * from '../../../../generation/user-css/compile-functions.js';
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function removeBalancedAtRuleBlock(source: string, atRuleStart: number): string;
|
|
3
|
-
export declare function removeTailwindV4GeneratorAtRulesFallback(source: string): string;
|
|
4
|
-
export type GeneratedThemeDeclarationResolver = () => ReadonlySet<string>;
|
|
5
|
-
export declare function createGeneratedThemeDeclarationResolver(source: string): GeneratedThemeDeclarationResolver;
|
|
6
|
-
export declare function removeTailwindV4GeneratedUserCssArtifacts(source: string, generatedSource?: string | GeneratedThemeDeclarationResolver): string;
|
|
1
|
+
export * from '../../../../generation/user-css/generated-cleanup.js';
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function removeTailwindV4GeneratorAtRules(source: string): string;
|
|
3
|
-
export declare function isCommentOnlyCss(source: string): boolean;
|
|
4
|
-
export interface RemoveMiniProgramInteractiveSelectorsOptions {
|
|
5
|
-
active?: boolean | undefined;
|
|
6
|
-
hover?: boolean | undefined;
|
|
7
|
-
focus?: boolean | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare function removeMiniProgramInteractiveSelectors(source: string, options?: RemoveMiniProgramInteractiveSelectorsOptions): string;
|
|
10
|
-
export declare function removeMiniProgramHoverSelectors(source: string, enabled?: boolean | undefined): string;
|
|
11
|
-
export declare function removeProcessedMiniProgramUnsupportedCss(source: string, options: Partial<IStyleHandlerOptions>): string;
|
|
12
|
-
export declare function unwrapMiniProgramCascadeLayers(source: string): string;
|
|
13
|
-
export declare function collectBareSelectorUserCss(source: string, transformedCss?: string): string;
|
|
14
|
-
export declare function stripTailwindSourceMediaFragments(source: string): string;
|
|
15
|
-
export declare function stripUnmatchedTailwindSourceMediaCloseFragments(source: string): string;
|
|
1
|
+
export * from '../../../../generation/user-css/source-fragments.js';
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GeneratedThemeDeclarationResolver } from './generated-cleanup.js';
|
|
3
|
-
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
4
|
-
export declare function transformGeneratorUserCss(source: string, options: {
|
|
5
|
-
compileAuthorCssFunctions?: ((css: string) => Promise<string>) | undefined;
|
|
6
|
-
generatorTarget: string;
|
|
7
|
-
generatorStyleOptions: Partial<IStyleHandlerOptions>;
|
|
8
|
-
cssUserHandlerOptions: IStyleHandlerOptions;
|
|
9
|
-
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
10
|
-
importFallback: boolean;
|
|
11
|
-
generatedSource?: string | GeneratedThemeDeclarationResolver | undefined;
|
|
12
|
-
processed?: boolean | undefined;
|
|
13
|
-
}): Promise<string>;
|
|
1
|
+
export * from '../../../../generation/user-css/transform.js';
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export * from '../../../../generation/user-css/user-layers.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { removeTailwindV4GeneratedUserCssArtifacts } from './user-css/generated-cleanup.js';
|
|
3
|
-
export { isCommentOnlyCss, removeMiniProgramHoverSelectors, removeMiniProgramInteractiveSelectors, 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
|
+
export * from '../../../generation/user-css.js';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function extractMarkedUserLayerComponentsCss(css: string): {
|
|
3
|
-
layers: string[];
|
|
4
|
-
rest: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function reorderMarkedUserLayerComponentsCss(css: string): string;
|
|
7
|
-
export declare function mergeMarkedUserLayerComponentsCss(baseCss: string, markedCss: string): {
|
|
8
|
-
css: string;
|
|
9
|
-
merged: boolean;
|
|
10
|
-
};
|
|
1
|
+
export * from '../../../generation/user-layer-order.js';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ValidateCandidatesByGeneratorOptions extends Omit<GenerateCssByGeneratorOptions, 'runtime'> {
|
|
3
|
-
candidates: Set<string>;
|
|
4
|
-
generatedCssSources?: Iterable<string> | undefined;
|
|
5
|
-
skipGenerateFallback?: boolean | undefined;
|
|
6
|
-
}
|
|
7
|
-
export declare function validateCandidatesByGenerator(options: ValidateCandidatesByGeneratorOptions): Promise<Set<string>>;
|
|
1
|
+
export * from '../../../generation/validate.js';
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export
|
|
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';
|
|
1
|
+
export * from '../../generation/index.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function resolveTaskConcurrency(defaultLimit?: number): number;
|
|
3
|
-
export declare function pushConcurrentTaskFactories(queue: Array<Promise<void>>, factories: Array<() => Promise<unknown>>, limit?: number): void;
|
|
1
|
+
export * from '../../utils/run-tasks.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RuntimeCompilationSnapshot } from '../../compiler/index.js';
|
|
2
2
|
import type { TailwindcssRuntimeLike } from '../../types/index.js';
|
|
3
3
|
import type { IArbitraryValues } from '../../types/shared.js';
|
|
4
|
-
import { extractRawCandidatesWithPositions, extractValidCandidates } from '@tailwindcss
|
|
4
|
+
import { extractRawCandidatesWithPositions, extractValidCandidates } from '@weapp-tailwindcss/engine';
|
|
5
5
|
type ExtractValidCandidatesOptions = Parameters<typeof extractValidCandidates>[0];
|
|
6
6
|
type MemoryExtractValidCandidatesOptions = ExtractValidCandidatesOptions & {
|
|
7
7
|
content?: string;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
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;
|
|
1
|
+
export * from '../../../project-sources/candidates/collector.js';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
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
|
-
type SourceCandidateEligibilityRoot = Omit<ResolveSourceCandidateScanFilesOptions, 'filter'>;
|
|
10
|
-
export declare function createSourceCandidateEligibilityMatcher(roots: SourceCandidateEligibilityRoot[], eligibleFiles?: Iterable<string>): (file: string) => boolean;
|
|
11
|
-
export declare function resolveSourceCandidateScanFiles(options: ResolveSourceCandidateScanFilesOptions): Promise<string[]>;
|
|
12
|
-
export {};
|
|
1
|
+
export * from '../../../project-sources/candidates/scan-root.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../../project-sources/candidates/script.js';
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type CandidateMap = Map<string, Set<string>>;
|
|
3
|
-
type SourceMap = Map<string, string>;
|
|
4
|
-
interface SnapshotMaps {
|
|
5
|
-
candidatesById: CandidateMap;
|
|
6
|
-
scanCandidatesById: CandidateMap;
|
|
7
|
-
transformCandidatesById: CandidateMap;
|
|
8
|
-
cssCandidatesById: CandidateMap;
|
|
9
|
-
moduleCandidatesById: CandidateMap;
|
|
10
|
-
scanSourceById: SourceMap;
|
|
11
|
-
transformSourceById: SourceMap;
|
|
12
|
-
cssSourceById: SourceMap;
|
|
13
|
-
moduleSourceById: SourceMap;
|
|
14
|
-
inlineIncludedCandidates: Set<string>;
|
|
15
|
-
inlineExcludedCandidates: Set<string>;
|
|
16
|
-
}
|
|
17
|
-
export declare function createCandidateSnapshot(maps: SnapshotMaps): SourceCandidateCollectorSnapshot;
|
|
18
|
-
export declare function restoreCandidateSnapshot(maps: SnapshotMaps, snapshot: SourceCandidateCollectorSnapshot, clear: () => void, recompute: (id: string) => void, setInlineCandidates: (included: Set<string>, excluded: Set<string>) => void): void;
|
|
19
|
-
export {};
|
|
1
|
+
export * from '../../../project-sources/candidates/snapshot.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../../project-sources/candidates/source-priority.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function createSourceCandidateStore(options?: SourceCandidateCollectorOptions): SourceCandidateStore;
|
|
1
|
+
export * from '../../../project-sources/candidates/store.js';
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
|
|
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
|
-
syncModuleSource: (id: string, source: string, extension?: string) => Promise<Set<string>>;
|
|
10
|
-
merge: (id: string, source: string) => Promise<void>;
|
|
11
|
-
syncFile: (id: string) => Promise<void>;
|
|
12
|
-
syncCurrentSource: (id: string, source: string) => Promise<SourceCandidateChange>;
|
|
13
|
-
syncCurrentFile: (id: string) => Promise<SourceCandidateChange>;
|
|
14
|
-
resolveScanFiles: (options: ScanSourceCandidateRootOptions) => Promise<string[]>;
|
|
15
|
-
scanRoot: (options: ScanSourceCandidateRootOptions) => Promise<void>;
|
|
16
|
-
syncInline: (inlineCandidates: TailwindInlineSourceCandidates | undefined) => void;
|
|
17
|
-
remove: (id: string) => SourceCandidateChange;
|
|
18
|
-
source: (id: string) => string | undefined;
|
|
19
|
-
sources: () => IterableIterator<[string, string]>;
|
|
20
|
-
values: () => Set<string>;
|
|
21
|
-
valuesForEntries: (entries: TailwindSourceEntry[] | undefined, options?: SourceCandidateFilterOptions) => Set<string>;
|
|
22
|
-
sourcesForEntries: (entries: TailwindSourceEntry[] | undefined, options?: SourceCandidateFilterOptions) => Map<string, Set<string>>;
|
|
23
|
-
snapshot: () => SourceCandidateCollectorSnapshot;
|
|
24
|
-
restore: (snapshot: SourceCandidateCollectorSnapshot) => void;
|
|
25
|
-
clearScan: () => void;
|
|
26
|
-
resetScan: () => void;
|
|
27
|
-
clear: () => void;
|
|
28
|
-
getRevision: () => number;
|
|
29
|
-
}
|
|
30
|
-
export interface SourceCandidateCollector extends SourceCandidateStore {
|
|
31
|
-
}
|
|
32
|
-
export interface SourceCandidateChange {
|
|
33
|
-
addedCandidates: Set<string>;
|
|
34
|
-
removedCandidates: Set<string>;
|
|
35
|
-
}
|
|
36
|
-
export interface SourceCandidateCollectorSnapshot {
|
|
37
|
-
candidatesById: Array<[string, string[]]>;
|
|
38
|
-
cssCandidatesById?: Array<[string, string[]]> | undefined;
|
|
39
|
-
cssSourceById?: Array<[string, string]> | undefined;
|
|
40
|
-
moduleCandidatesById?: Array<[string, string[]]> | undefined;
|
|
41
|
-
moduleSourceById?: Array<[string, string]> | undefined;
|
|
42
|
-
scanCandidatesById?: Array<[string, string[]]> | undefined;
|
|
43
|
-
scanSourceById?: Array<[string, string]> | undefined;
|
|
44
|
-
sourceById?: Array<[string, string]> | undefined;
|
|
45
|
-
transformCandidatesById?: Array<[string, string[]]> | undefined;
|
|
46
|
-
transformSourceById?: Array<[string, string]> | undefined;
|
|
47
|
-
inlineExcludedCandidates: string[];
|
|
48
|
-
inlineIncludedCandidates: string[];
|
|
49
|
-
}
|
|
50
|
-
export interface SourceCandidateFilterOptions {
|
|
51
|
-
excludeEntries?: TailwindSourceEntry[] | undefined;
|
|
52
|
-
}
|
|
53
|
-
export interface ScanSourceCandidateRootOptions {
|
|
54
|
-
root: string;
|
|
55
|
-
outDir?: string | undefined;
|
|
56
|
-
entries?: TailwindSourceEntry[] | undefined;
|
|
57
|
-
explicit?: boolean | undefined;
|
|
58
|
-
onFilesResolved?: ((files: string[]) => void) | undefined;
|
|
59
|
-
}
|
|
60
|
-
export interface SourceCandidateCollectorOptions {
|
|
61
|
-
bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
|
|
62
|
-
customAttributesEntities?: ICustomAttributesEntities | undefined;
|
|
63
|
-
disabledDefaultTemplateHandler?: boolean | undefined;
|
|
64
|
-
extractor?: ((source: string, extension: string) => Promise<Iterable<string>> | Iterable<string>) | undefined;
|
|
65
|
-
}
|
|
66
|
-
export declare const SOURCE_CANDIDATE_CONTENT_CACHE_MAX = 128;
|
|
67
|
-
export declare const sourceCandidateContentCache: LRUCache<string, string[], unknown>;
|
|
68
|
-
export declare function cleanUrl(id: string): string;
|
|
69
|
-
export declare function resolveSourceCandidateExtension(id: string): string;
|
|
70
|
-
export declare function createSourceCandidateContentCacheKey(extension: string, source: string, bareArbitraryValues: IArbitraryValues['bareArbitraryValues'] | undefined, customAttributesEntities: ICustomAttributesEntities | undefined, disabledDefaultTemplateHandler: boolean | undefined, extractor: SourceCandidateCollectorOptions['extractor']): string;
|
|
71
|
-
export declare function extractCandidates(source: string, extension: string, options: SourceCandidateCollectorOptions): Promise<Set<string>>;
|
|
72
|
-
export declare function isSourceCandidateRequest(id: string): boolean;
|
|
73
|
-
export declare function removeCandidateSet(candidateCount: Map<string, number>, candidates: Set<string>): void;
|
|
74
|
-
export declare function addCandidateSet(candidateCount: Map<string, number>, candidates: Set<string>): void;
|
|
75
|
-
export declare function diffCandidateSets(previous: Set<string>, next: Set<string>): SourceCandidateChange;
|
|
1
|
+
export * from '../../../project-sources/candidates/types-and-cache.js';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type CandidateMap = Map<string, Set<string>>;
|
|
3
|
-
interface CandidateViewOptions {
|
|
4
|
-
candidatesById: CandidateMap;
|
|
5
|
-
moduleCandidatesById: CandidateMap;
|
|
6
|
-
candidateCount: Map<string, number>;
|
|
7
|
-
inlineIncludedCandidates: Set<string>;
|
|
8
|
-
inlineExcludedCandidates: Set<string>;
|
|
9
|
-
}
|
|
10
|
-
export declare function collectCandidateValues(view: CandidateViewOptions, entries?: TailwindSourceEntry[], excludeEntries?: TailwindSourceEntry[]): Set<string>;
|
|
11
|
-
export declare function collectCandidateSources(view: CandidateViewOptions, entries?: TailwindSourceEntry[], excludeEntries?: TailwindSourceEntry[]): Map<string, Set<string>>;
|
|
12
|
-
export {};
|
|
1
|
+
export * from '../../../project-sources/candidates/views.js';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export
|
|
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';
|
|
1
|
+
export * from '../../project-sources/candidates.js';
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
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[];
|
|
1
|
+
export * from '../../../project-sources/css-entries.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function addSourceScanDependencies(dependencies: Set<string>, files: string[] | undefined): void;
|
|
1
|
+
export * from '../../../project-sources/dependencies.js';
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
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;
|
|
1
|
+
export * from '../../project-sources/index.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
files: StaticContentValue;
|
|
3
|
-
};
|
|
4
|
-
export declare function readStaticConfigContent(configPath: string): StaticContentValue | undefined;
|
|
5
|
-
export {};
|
|
1
|
+
export * from '../../project-sources/static-config-content.js';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SourceSideCssEntryOptions } from './generator-css/source-files.js';
|
|
3
|
-
export interface BundlerStyleHandlerOptions extends IStyleHandlerOptions {
|
|
4
|
-
sourceOptions?: SourceSideCssEntryOptions & {
|
|
5
|
-
requestFile?: string | undefined;
|
|
6
|
-
} | undefined;
|
|
7
|
-
}
|
|
1
|
+
export type { GenerationStyleHandlerOptions as BundlerStyleHandlerOptions } from '../../generation/style-options.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function isSourceStyleRequest(request: string | undefined): boolean;
|
|
3
|
-
export declare function isSfcStyleSourceRequest(request: string | undefined): boolean;
|
|
4
|
-
export declare function isSourcePreprocessorRequest(request: string | undefined, lang?: string): boolean;
|
|
5
|
-
export declare function isVueScopedStyleRequest(request: string | undefined): boolean;
|
|
1
|
+
export * from '../../generation/style-requests.js';
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CompilationDependencyChange, CompilerShadowReport, CssStage, GenerationArtifact, SourceScope } from '../../compiler/index.js';
|
|
3
|
-
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
4
|
-
export interface TailwindV4GenerationCoreInput extends GenerateCssByGeneratorOptions {
|
|
5
|
-
compilerMode?: 'legacy' | undefined;
|
|
6
|
-
compilationChanges?: CompilationDependencyChange[] | undefined;
|
|
7
|
-
frameworkPostcssOwner?: InternalUserDefinedOptions | undefined;
|
|
8
|
-
cssStage?: CssStage | undefined;
|
|
9
|
-
outputFile?: string | undefined;
|
|
10
|
-
onCompilerShadowReport?: ((report: CompilerShadowReport) => void) | undefined;
|
|
11
|
-
scope?: SourceScope | undefined;
|
|
12
|
-
sourceCandidates?: Set<string> | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface TailwindV4GenerationCoreResult extends GenerateCssByGeneratorResult {
|
|
15
|
-
artifact?: GenerationArtifact | undefined;
|
|
16
|
-
classSet: Set<string>;
|
|
17
|
-
dependencies: string[];
|
|
18
|
-
metadata: NonNullable<GenerateCssByGeneratorResult['metadata']>;
|
|
19
|
-
}
|
|
20
|
-
export declare function generateTailwindV4Css(options: TailwindV4GenerationCoreInput): Promise<TailwindV4GenerationCoreResult | undefined>;
|
|
1
|
+
export * from '../../generation/service.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TailwindV4CssSource } from '@tailwindcss
|
|
1
|
+
import type { TailwindV4CssSource } from '@weapp-tailwindcss/engine';
|
|
2
2
|
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
3
3
|
export interface ConfiguredCssSourceEntry {
|
|
4
4
|
file: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TailwindV4GenerationCoreInput, TailwindV4GenerationCoreResult } from '
|
|
2
|
-
import { generateTailwindV4Css } from '
|
|
1
|
+
import type { TailwindV4GenerationCoreInput, TailwindV4GenerationCoreResult } from '../../../generation/service.js';
|
|
2
|
+
import { generateTailwindV4Css } from '../../../generation/service.js';
|
|
3
3
|
export type ViteCssTransformTaskKind = 'tailwind' | 'web' | 'import-shell' | 'style';
|
|
4
4
|
export interface ViteCssTransformTaskResult {
|
|
5
5
|
classSet?: Set<string> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OutputAsset, OutputBundle } from 'rollup';
|
|
2
2
|
import type { CollectViteProcessedCssAssetOptions } from './markers-imports.js';
|
|
3
3
|
export declare function restoreCssImportAtRules(source: string, filtered: string, file?: string): string;
|
|
4
|
-
export
|
|
4
|
+
export { removeCommentOnlyAtRules } from '@weapp-tailwindcss/postcss/transform';
|
|
5
5
|
export declare function collectImportedBundleCssSources(bundle: OutputBundle, importedStyleFiles: Set<string>): string[];
|
|
6
6
|
export declare function collectBundleAssetFiles(bundle: OutputBundle): Set<string>;
|
|
7
7
|
export declare function resolveConfiguredCssEntryRootInjectionTarget(bundle: OutputBundle, options: Pick<CollectViteProcessedCssAssetOptions, 'cssPipelineStrategy' | 'createCssPipelineContext' | 'opts'>, sourceFile: string | undefined, outputFile: string): string | undefined;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import type { OutputBundle } from 'rollup';
|
|
2
2
|
import type { CssAssetMarkerMatcher, CssAssetResultRecorder } from './markers-imports.js';
|
|
3
|
-
import { postcss } from '@weapp-tailwindcss/postcss';
|
|
4
3
|
export { normalizeCssSignatureValue } from './scoped-tailwind-noise.js';
|
|
5
|
-
export
|
|
6
|
-
rules: Set<string>;
|
|
7
|
-
atRules: Set<string>;
|
|
8
|
-
declarationsBySelector: Map<string, Set<string>>;
|
|
9
|
-
normalizedRuleCss: Set<string>;
|
|
10
|
-
};
|
|
11
|
-
export type ComparableCssCoverage = ReturnType<typeof collectRootScopedComparableCssCoverage>;
|
|
4
|
+
export { collectRootScopedComparableCssCoverage, type ComparableCssCoverage, isRuleCoveredByRootCss, removeScopedTailwindPreflightCss } from '@weapp-tailwindcss/postcss/transform';
|
|
12
5
|
export declare function prepareImportedCssCoverage(importedCssSources: string[]): {
|
|
13
6
|
coverage: {
|
|
14
7
|
rules: Set<string>;
|
|
@@ -18,10 +11,6 @@ export declare function prepareImportedCssCoverage(importedCssSources: string[])
|
|
|
18
11
|
};
|
|
19
12
|
sources: string[];
|
|
20
13
|
} | undefined;
|
|
21
|
-
export declare function isRuleCoveredByRootCss(rule: postcss.Rule, coverage: ReturnType<typeof collectRootScopedComparableCssCoverage>): boolean;
|
|
22
|
-
export declare function removeScopedTailwindPreflightCss(css: string, options?: {
|
|
23
|
-
preserveRuntimeProperties?: boolean;
|
|
24
|
-
}): string;
|
|
25
14
|
export declare function collectSingleViteGeneratedCssMarkerFile(rawSource: string): string | undefined;
|
|
26
15
|
export declare function shouldFilterRootGeneratedCssMarkerForScopedAsset(targetFile: string, markerFile: string, resolveViteProcessedCssOutputFile: ((file: string) => string | undefined) | undefined): boolean;
|
|
27
16
|
export declare function removeCssCoveredByRootStyleBundleSources(bundle: OutputBundle, file: string, css: string): string;
|