weapp-tailwindcss 5.5.5 → 5.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +5 -4
  2. package/dist/bundlers/shared/final-css-cleanup.d.ts +1 -2
  3. package/dist/bundlers/shared/framework-css-composition.d.ts +1 -0
  4. package/dist/bundlers/shared/framework-postcss.d.ts +2 -1
  5. package/dist/bundlers/shared/framework-user-css.d.ts +1 -0
  6. package/dist/bundlers/shared/generated-css-marker.d.ts +1 -0
  7. package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +5 -7
  8. package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +4 -1
  9. package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +1 -4
  10. package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -1
  11. package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +4 -2
  12. package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +1 -1
  13. package/dist/bundlers/shared/generator-css/types.d.ts +6 -3
  14. package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +1 -0
  15. package/dist/bundlers/shared/generator-css/user-css/compile-functions.d.ts +4 -0
  16. package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +3 -1
  17. package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +1 -1
  18. package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +3 -0
  19. package/dist/bundlers/shared/style-handler-options.d.ts +7 -0
  20. package/dist/bundlers/shared/v4-generation-core.d.ts +0 -1
  21. package/dist/bundlers/vite/css-finalizer/css-calc.d.ts +3 -0
  22. package/dist/bundlers/vite/css-finalizer/final-assets.d.ts +3 -0
  23. package/dist/bundlers/vite/css-handler-options.d.ts +1 -1
  24. package/dist/bundlers/vite/frameworks/generic/web.d.ts +2 -1
  25. package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +1 -0
  26. package/dist/bundlers/vite/generate-bundle/finalize/sync-processed-css.d.ts +4 -0
  27. package/dist/bundlers/vite/generate-bundle/framework-style-memory.d.ts +4 -0
  28. package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +7 -0
  29. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -0
  30. package/dist/bundlers/vite/generate-bundle/rollup-assets.d.ts +1 -1
  31. package/dist/bundlers/vite/generate-bundle/runtime.d.ts +3 -1
  32. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +1 -1
  33. package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +2 -2
  34. package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -1
  35. package/dist/bundlers/vite/generate-bundle/web-css-module.d.ts +1 -0
  36. package/dist/bundlers/vite/plugin-hook.d.ts +3 -0
  37. package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +3 -1
  38. package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +1 -1
  39. package/dist/bundlers/vite/processed-css-assets/scoped-tailwind-noise.d.ts +1 -1
  40. package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +3 -1
  41. package/dist/bundlers/vite/shared/framework-module-candidates.d.ts +2 -1
  42. package/dist/bundlers/vite/shared/framework-runtime-configuration.d.ts +3 -0
  43. package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +9 -0
  44. package/dist/bundlers/vite/shared/framework-runtime-utils.d.ts +6 -5
  45. package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +3 -3
  46. package/dist/bundlers/vite/shared/framework-strategy.d.ts +3 -1
  47. package/dist/bundlers/vite/shared/hmr-source.d.ts +2 -0
  48. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +2 -1
  49. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +1 -1
  50. package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +1 -1
  51. package/dist/compiler/index.d.ts +2 -0
  52. package/dist/compiler/semantic-css.d.ts +1 -1
  53. package/dist/compiler/types.d.ts +1 -1
  54. package/dist/{compiler-Cc0JXfbw.cjs → compiler-C8FqI-P3.cjs} +17378 -40552
  55. package/dist/{compiler-D_vxtEdw.js → compiler-D3GBwxoa.js} +32 -23
  56. package/dist/core/compiler/transforms.d.ts +1 -1
  57. package/dist/core.cjs +4 -4
  58. package/dist/core.js +4 -4
  59. package/dist/{css-imports-FRZwX4P6.cjs → css-imports-XvtI1zCY.cjs} +2 -3
  60. package/dist/css-macro.cjs +1 -1
  61. package/dist/css-macro.js +1 -1
  62. package/dist/{defaults-CKx-4LcW.js → defaults-AQuvJS-h.js} +4 -2
  63. package/dist/{defaults-CiGsr8Xq.cjs → defaults-CyX5iO9y.cjs} +4 -2
  64. package/dist/defaults.cjs +1 -1
  65. package/dist/defaults.js +1 -1
  66. package/dist/final-css-cleanup-CDTmVAye.cjs +1 -0
  67. package/dist/{final-css-cleanup-B0HUBtiE.js → final-css-cleanup-u_sI2p56.js} +1 -126
  68. package/dist/framework/index.d.ts +1 -1
  69. package/dist/framework/platform.d.ts +2 -2
  70. package/dist/{generator-BdSIvFEO.cjs → generator-Bvr4WmuF.cjs} +135 -149
  71. package/dist/{generator-CAOx1Sqm.js → generator-C0BJjyLM.js} +116 -130
  72. package/dist/generator.cjs +1 -1
  73. package/dist/generator.js +1 -1
  74. package/dist/{gulp-Dnt8VL8D.cjs → gulp-BExe5RBF.cjs} +8 -8
  75. package/dist/{gulp-B1mPTMqw.js → gulp-BhkIIk7J.js} +5 -5
  76. package/dist/gulp.cjs +1 -1
  77. package/dist/gulp.js +1 -1
  78. package/dist/{hmr-timing-wAt0LavM.js → hmr-timing-B9Yt86-U.js} +299 -404
  79. package/dist/{hmr-timing-qpX410qU.cjs → hmr-timing-CoiJIqDu.cjs} +4 -4
  80. package/dist/index.cjs +4 -4
  81. package/dist/index.js +4 -4
  82. package/dist/js/NodePathWalker.d.ts +1 -1
  83. package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
  84. package/dist/js/node-path-walker/import-tokens.d.ts +1 -1
  85. package/dist/{pipeline-helpers-BHagysZY.cjs → pipeline-helpers-BOjTEmMi.cjs} +6 -6
  86. package/dist/postcss.cjs +1 -1
  87. package/dist/postcss.js +1 -1
  88. package/dist/presets.cjs +2 -2
  89. package/dist/presets.js +2 -2
  90. package/dist/rspack.cjs +2 -2
  91. package/dist/rspack.js +2 -2
  92. package/dist/{scoped-generator-BqxVxNp9.js → scoped-generator-B6Y1bxzM.js} +46 -31
  93. package/dist/{scoped-generator-CtetE5rm.cjs → scoped-generator-BUBls_oM.cjs} +46 -31
  94. package/dist/{source-candidate-scan-signature-BDGB9nKZ.cjs → source-candidate-scan-signature-BtJZp28T.cjs} +32 -3
  95. package/dist/{source-candidate-scan-signature-Lm32zKVA.js → source-candidate-scan-signature-DNuGKTqf.js} +21 -4
  96. package/dist/style-injector/internal.d.ts +118 -8
  97. package/dist/style-injector/options.d.ts +5 -1
  98. package/dist/tailwindcss/runtime-options.d.ts +5 -0
  99. package/dist/tailwindcss/v4/preflight.d.ts +0 -1
  100. package/dist/tailwindcss/v4-engine/generator/style-context.d.ts +1 -3
  101. package/dist/{tailwindcss-DTV9MoJT.js → tailwindcss-B_4E52WF.js} +7 -13
  102. package/dist/{tailwindcss-9e6ZuYgS.cjs → tailwindcss-CBYjzRmV.cjs} +4 -10
  103. package/dist/{transform-BbbZvFQq.js → transform-CkEnJYIP.js} +18 -12
  104. package/dist/{transform-D21f8Dm8.cjs → transform-FkqbTBJR.cjs} +17 -11
  105. package/dist/types/index.d.ts +3 -2
  106. package/dist/uni-app-x/border-preflight.d.ts +1 -2
  107. package/dist/uni-app-x/component-local-style.d.ts +2 -1
  108. package/dist/uni-app-x/transform.d.ts +4 -2
  109. package/dist/uni-app-x/vite/author-apply.d.ts +3 -1
  110. package/dist/uni-app-x/vite/native-hmr.d.ts +1 -1
  111. package/dist/uni-app-x/vite/style-result.d.ts +5 -0
  112. package/dist/{v4-generation-core-DJBWZ_D0.cjs → v4-generation-core-Cz1D7wm1.cjs} +313 -418
  113. package/dist/vite/web.cjs +1 -1
  114. package/dist/vite/web.js +1 -1
  115. package/dist/{vite-CaH7WjX6.cjs → vite-DxuKPZlp.cjs} +565 -592
  116. package/dist/{vite-CuYntLZP.js → vite-lP35OguX.js} +558 -578
  117. package/dist/vite-web.d.ts +1 -1
  118. package/dist/vite.cjs +1 -1
  119. package/dist/vite.js +1 -1
  120. package/dist/weapp-tw-css-generation-loader.cjs +2 -2
  121. package/dist/weapp-tw-css-import-rewrite-loader.cjs +7 -7
  122. package/dist/{web-CdXkY_VO.js → web-Dfz_jpNj.js} +144 -107
  123. package/dist/{web-CYs2Kcaa.cjs → web-DhDxhlkq.cjs} +156 -107
  124. package/dist/{webpack-BnCSOUuu.js → webpack-D6jp1o3m.js} +18 -17
  125. package/dist/{webpack-BQNnpQPC.cjs → webpack-R2Sbggiy.cjs} +20 -20
  126. package/dist/webpack.cjs +1 -1
  127. package/dist/webpack.js +1 -1
  128. package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
  129. package/dist/wxml/utils/custom-template.d.ts +1 -1
  130. package/package.json +8 -10
  131. package/dist/final-css-cleanup-DSjczga3.cjs +0 -138
  132. package/dist/tailwindcss/v4-engine/css-import.d.ts +0 -14
  133. package/dist/uni-app-x/style-asset/source-parser.d.ts +0 -2
@@ -1,4 +1,5 @@
1
1
  import type File from 'vinyl';
2
+ import type { SourceCandidateCollector } from '../../../shared/source-candidates.js';
2
3
  import type { getCompilerContext } from '../../../../context/index.js';
3
4
  import type { TailwindRuntimeState } from '../../../../tailwindcss/runtime.js';
4
5
  import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, JsModuleGraphOptions } from '../../../../types/index.js';
@@ -17,18 +18,18 @@ export interface GulpFileTransformContext {
17
18
  preserve: boolean;
18
19
  }>;
19
20
  getCompilationDependencyRevision: (scopeId: string) => number;
20
- getSourceCandidateGetter: () => ((entries?: unknown) => Set<string>) | undefined;
21
- getSourceCandidateSourceGetter: () => ((entries?: unknown) => Map<string, Set<string>>) | undefined;
21
+ getSourceCandidateGetter: () => SourceCandidateCollector['valuesForEntries'] | undefined;
22
+ getSourceCandidateSourceGetter: () => SourceCandidateCollector['sourcesForEntries'] | undefined;
22
23
  getRuntimeSet: () => Set<string>;
23
24
  gulpProcessCacheKeys: Set<string>;
24
25
  opts: ReturnType<typeof getCompilerContext>;
25
- refreshGulpV4SourceCandidates: (forceRefresh?: boolean) => Promise<((entries?: unknown) => Set<string>) | undefined>;
26
+ refreshGulpV4SourceCandidates: (forceRefresh?: boolean) => Promise<SourceCandidateCollector['valuesForEntries'] | undefined>;
26
27
  refreshRuntimeSet: (options?: RuntimeRefreshOptions) => Promise<Set<string>>;
27
28
  refreshRuntimeSetForSource: (file: File, rawSource: string, type: 'html' | 'js') => Promise<Set<string>>;
28
29
  registerAutoCssSource: (file: File, rawSource: string) => Promise<boolean>;
29
30
  rememberCompilationScope: (sourceFile: string, scopeId: string) => void;
30
31
  resolveGulpStyleOutputExtension: (file: File) => string | undefined;
31
- resolveGulpTransformTimingDetails: (phase: string) => unknown;
32
+ resolveGulpTransformTimingDetails: (phase: string) => Record<string, unknown>;
32
33
  resolveModuleGraphOptions: (moduleGraph?: JsModuleGraphOptions) => JsModuleGraphOptions;
33
34
  resolveWxmlHandlerOptions: (options?: Partial<ITemplateHandlerOptions>) => Partial<ITemplateHandlerOptions>;
34
35
  resolveWxssFileHandlerOptions: (file: File, rawSource: string, options?: Partial<IStyleHandlerOptions>) => Partial<IStyleHandlerOptions>;
@@ -1,2 +1 @@
1
- export declare function hasEmptyCssBlockCandidate(css: string): boolean;
2
- export declare function finalizeMiniProgramCssStructure(css: string): string;
1
+ export { finalizeMiniProgramCssStructure, hasEmptyCssBlockCandidate, } from '@weapp-tailwindcss/postcss';
@@ -0,0 +1 @@
1
+ export declare function composeFrameworkProcessedCss(before: string, generated: string, after: string): string;
@@ -1,5 +1,6 @@
1
- import type { IStyleHandlerOptions, LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
1
+ import type { LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
2
2
  import type { GenerateCssByGeneratorResult } from './generator-css.js';
3
+ import type { BundlerStyleHandlerOptions as IStyleHandlerOptions } from './style-handler-options.js';
3
4
  import type { Compiler, CompilerSnapshot } from '../../core/compiler/index.js';
4
5
  import type { InternalUserDefinedOptions } from '../../types/index.js';
5
6
  export declare function resolveFrameworkPostcssOptions(value: unknown): LoadedPostcssOptions | undefined;
@@ -1,3 +1,4 @@
1
1
  import type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult } from './generator-css.js';
2
2
  import type { NormalizedWeappTailwindcssGeneratorOptions } from '../../generator/index.js';
3
+ export declare function normalizeFrameworkProcessedUserCss(source: string): string;
3
4
  export declare function restoreFrameworkProcessedUserCss(css: string, generated: GenerateCssByGeneratorResult, source: string, options: GenerateCssByGeneratorOptions, generatorOptions: NormalizedWeappTailwindcssGeneratorOptions): Promise<string>;
@@ -4,6 +4,7 @@ export interface BundlerGeneratedCssMarkerBlock {
4
4
  css: string;
5
5
  }
6
6
  export declare function createBundlerGeneratedCssMarker(bundler: 'gulp' | 'vite' | 'webpack', file: string): string;
7
+ export declare function createBundlerGeneratedCssEndMarker(bundler: 'gulp' | 'vite' | 'webpack', file: string): string;
7
8
  export declare function hasBundlerGeneratedCssMarker(source: unknown): boolean;
8
9
  export declare function stripBundlerGeneratedCssMarkers(source: string): string;
9
10
  export declare function parseBundlerGeneratedCssMarkerBlocks(source: string): BundlerGeneratedCssMarkerBlock[];
@@ -1,5 +1,5 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { createWeappTailwindcssGenerator } from '../../../../generator/index.js';
2
+ import type { CompilerGenerateResult, CompilerSnapshot } from '../../../../core/compiler/index.js';
3
3
  export declare function shouldFinalizeMarkedUserLayerComponentsCss(file: string): boolean;
4
4
  export declare function splitRawSourceByGeneratedCssOrder(rawSource: string, rawTailwindCss: string): {
5
5
  before: string;
@@ -17,9 +17,7 @@ export declare function shouldUseGeneratorForCurrentCss(_majorVersion: number |
17
17
  }): boolean | undefined;
18
18
  export declare function hasGeneratorSourceDirectives(source: string, importFallback: boolean): boolean;
19
19
  export declare function createRuntimeWithCurrentCssCandidates(runtime: Set<string>, currentCssCandidates: string[], isolateCurrentCssCandidates: boolean): Set<string>;
20
- export declare function mergeGeneratorResults(generatedResults: GeneratorResult[]): (import("../../../../generator/index.js").TailwindV4GenerateResult & {
21
- target: import("../../../../generator/index.js").WeappTailwindcssGeneratorTarget;
22
- rawCss: string;
23
- }) | undefined;
24
- type GeneratorResult = Awaited<ReturnType<ReturnType<typeof createWeappTailwindcssGenerator>['generate']>>;
25
- export {};
20
+ export declare function mergeGeneratorResults(generatedResults: GeneratorResult[]): GeneratorResult | undefined;
21
+ export type GeneratorResult = Omit<CompilerGenerateResult, 'cache' | 'revision' | 'snapshot'> & {
22
+ snapshot?: CompilerSnapshot | undefined;
23
+ };
@@ -1,9 +1,12 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
2
  import type { TailwindResolvedSource } from '../../../generator/index.js';
3
3
  import type { InternalUserDefinedOptions } from '../../../types/index.js';
4
- export declare function removeTailwindApplyRules(rawSource: string): string;
4
+ import { removeTailwindApplyRules } from '@weapp-tailwindcss/postcss';
5
+ export { removeTailwindApplyRules };
5
6
  export declare function hasConfiguredContainerCompatSources(sources: TailwindResolvedSource[]): boolean;
6
7
  export declare function appendLegacyCompatCss(css: string, rawSource: string, generatorTarget: string, styleHandler: InternalUserDefinedOptions['styleHandler'], cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined, options?: {
7
8
  preserveSelectorOverrides?: boolean | undefined;
9
+ generatedSource?: string | undefined;
10
+ compileAuthorCssFunctions?: ((css: string) => Promise<string>) | undefined;
8
11
  }): Promise<string>;
9
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,5 +1,2 @@
1
- export declare function normalizeCompatSelectors(selector: string): string[];
2
- export declare function collectGeneratedSelectors(css: string): Set<string>;
3
- export declare function removeGeneratedSelectorCompatCss(css: string, generatedCss: string): string;
4
- export declare function collectDedupedPostTransformCompatCss(css: string, generatedCss: string): string;
1
+ export { collectDedupedPostTransformCompatCss, collectGeneratedSelectors, normalizeCompatSelectors, removeGeneratedSelectorCompatCss, } from '@weapp-tailwindcss/postcss';
5
2
  export declare function removeDuplicatedViteMarkers(css: string, baseCss: string): string;
@@ -1 +1 @@
1
- export declare function inheritLegacyUnitConvertedDeclarations(css: string, legacyCss: string): string;
1
+ export { inheritLegacyUnitConvertedDeclarations } from '@weapp-tailwindcss/postcss';
@@ -1,7 +1,8 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { GeneratorResult } from '../generation-helpers/results.js';
2
3
  import type { TailwindV4CssSource } from '../source-resolver/types.js';
3
4
  import type { GenerateCssByGeneratorOptions } from '../types.js';
4
- import type { NormalizedWeappTailwindcssGeneratorOptions, TailwindResolvedSource, WeappTailwindcssGenerateResult } from '../../../../generator/index.js';
5
+ import type { NormalizedWeappTailwindcssGeneratorOptions, TailwindResolvedSource } from '../../../../generator/index.js';
5
6
  import type { RuntimeBranch } from '../../../../runtime-branch.js';
6
7
  export interface GeneratorPipelineExecutionContext {
7
8
  cssHandlerOptions: GenerateCssByGeneratorOptions['cssHandlerOptions'];
@@ -42,9 +43,10 @@ export interface GeneratorPipelineExecutionContext {
42
43
  useMiniProgramCssBranch: boolean;
43
44
  }
44
45
  export interface GeneratorPipelineOutputContext extends GeneratorPipelineExecutionContext {
46
+ compileAuthorCssFunctions: (css: string) => Promise<string>;
45
47
  configuredContainerCompat: boolean;
46
48
  filterGeneratedApplyOnlyCss: (css: string) => string;
47
- generated: WeappTailwindcssGenerateResult;
49
+ generated: GeneratorResult;
48
50
  generatedCss: string;
49
51
  generatorStyleOptions: Partial<IStyleHandlerOptions>;
50
52
  hasMatchedCssSourceFile: boolean;
@@ -8,6 +8,6 @@ interface TailwindV4ApplyReferenceSourceOptions {
8
8
  }
9
9
  export declare function createTailwindV4ApplyReferenceSource(css: string, sourceOptions: TailwindV4ApplyReferenceSourceOptions): string;
10
10
  export declare function createTailwindV4SourceReferenceSource(css: string, sourceOptions: {
11
- packageName?: string;
11
+ packageName?: string | undefined;
12
12
  }, referenceDirective?: string): string;
13
13
  export {};
@@ -1,4 +1,4 @@
1
- import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
1
+ import type { BundlerStyleHandlerOptions } from '../style-handler-options.js';
2
2
  import type { TailwindV4CssSource } from './source-resolver/types.js';
3
3
  import type { CompilationDependencyChange, SourceScope } from '../../../compiler/index.js';
4
4
  import type { CompilerSnapshot } from '../../../core/compiler/index.js';
@@ -13,8 +13,8 @@ export interface GenerateCssByGeneratorOptions {
13
13
  runtime: Set<string>;
14
14
  rawSource: string;
15
15
  file: string;
16
- cssHandlerOptions: IStyleHandlerOptions;
17
- cssUserHandlerOptions: IStyleHandlerOptions;
16
+ cssHandlerOptions: BundlerStyleHandlerOptions;
17
+ cssUserHandlerOptions: BundlerStyleHandlerOptions;
18
18
  cssSources?: TailwindV4CssSource[] | undefined;
19
19
  getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined) => Set<string>) | undefined;
20
20
  sourceCandidates?: Set<string> | undefined;
@@ -30,6 +30,7 @@ export interface GenerateCssByGeneratorOptions {
30
30
  generatorPlatform?: string | undefined;
31
31
  userRawSource?: string | undefined;
32
32
  userRawSourceProcessed?: boolean | undefined;
33
+ frameworkProcessedUserCss?: string | undefined;
33
34
  forceGenerator?: boolean | undefined;
34
35
  previousCss?: string | undefined;
35
36
  previousClassSet?: Set<string> | undefined;
@@ -41,6 +42,8 @@ export interface GenerateCssByGeneratorOptions {
41
42
  }
42
43
  export interface GenerateCssByGeneratorResult {
43
44
  css: string;
45
+ frameworkProcessedUserCss?: string | undefined;
46
+ compileAuthorCssFunctions?: ((css: string) => Promise<string>) | undefined;
44
47
  classSet: ReadonlySet<string>;
45
48
  target: string;
46
49
  source: 'generator';
@@ -1,6 +1,7 @@
1
1
  export declare function normalizeEmptyTailwindCustomVariants(css: string): string;
2
2
  export declare function filterApplyOnlyGeneratedCss(css: string, source: string, options?: {
3
3
  preserveVariables?: boolean | undefined;
4
+ preserveRuntimeProperties?: boolean | undefined;
4
5
  preferScopedRules?: boolean | undefined;
5
6
  }): string;
6
7
  export declare function shouldFilterApplyOnlyGeneratedCss(_majorVersion: number | undefined, target: string, source: string, options: {
@@ -0,0 +1,4 @@
1
+ import type { TailwindGenerationSessionPool } from '../../../../compiler/tailwind-generation-session-pool.js';
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,4 +1,6 @@
1
1
  export declare const TAILWIND_V4_GENERATOR_AT_RULES: Set<string>;
2
2
  export declare function removeBalancedAtRuleBlock(source: string, atRuleStart: number): string;
3
3
  export declare function removeTailwindV4GeneratorAtRulesFallback(source: string): string;
4
- export declare function removeTailwindV4GeneratedUserCssArtifacts(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;
@@ -10,6 +10,6 @@ export declare function removeMiniProgramInteractiveSelectors(source: string, op
10
10
  export declare function removeMiniProgramHoverSelectors(source: string, enabled?: boolean | undefined): string;
11
11
  export declare function removeProcessedMiniProgramUnsupportedCss(source: string, options: Partial<IStyleHandlerOptions>): string;
12
12
  export declare function unwrapMiniProgramCascadeLayers(source: string): string;
13
- export declare function collectBareSelectorUserCss(source: string): string;
13
+ export declare function collectBareSelectorUserCss(source: string, transformedCss?: string): string;
14
14
  export declare function stripTailwindSourceMediaFragments(source: string): string;
15
15
  export declare function stripUnmatchedTailwindSourceMediaCloseFragments(source: string): string;
@@ -1,10 +1,13 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { GeneratedThemeDeclarationResolver } from './generated-cleanup.js';
2
3
  import type { InternalUserDefinedOptions } from '../../../../types/index.js';
3
4
  export declare function transformGeneratorUserCss(source: string, options: {
5
+ compileAuthorCssFunctions?: ((css: string) => Promise<string>) | undefined;
4
6
  generatorTarget: string;
5
7
  generatorStyleOptions: Partial<IStyleHandlerOptions>;
6
8
  cssUserHandlerOptions: IStyleHandlerOptions;
7
9
  styleHandler: InternalUserDefinedOptions['styleHandler'];
8
10
  importFallback: boolean;
11
+ generatedSource?: string | GeneratedThemeDeclarationResolver | undefined;
9
12
  processed?: boolean | undefined;
10
13
  }): Promise<string>;
@@ -0,0 +1,7 @@
1
+ import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
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
+ }
@@ -6,7 +6,6 @@ export interface TailwindV4GenerationCoreInput extends GenerateCssByGeneratorOpt
6
6
  compilationChanges?: CompilationDependencyChange[] | undefined;
7
7
  frameworkPostcssOwner?: InternalUserDefinedOptions | undefined;
8
8
  cssStage?: CssStage | undefined;
9
- frameworkProcessedUserCss?: string | undefined;
10
9
  outputFile?: string | undefined;
11
10
  onCompilerShadowReport?: ((report: CompilerShadowReport) => void) | undefined;
12
11
  scope?: SourceScope | undefined;
@@ -0,0 +1,3 @@
1
+ import type { OutputBundle } from 'rollup';
2
+ import type { CssFinalizerContext } from './options.js';
3
+ export declare function finalizeWebCssCalc(bundle: OutputBundle, context: CssFinalizerContext): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import type { OutputBundle } from 'rollup';
2
+ import type { CssFinalizerContext } from './options.js';
3
+ export declare function finalizeCssAssets(bundle: OutputBundle, context: CssFinalizerContext, isWebGeneratorTarget: boolean, files: ReadonlySet<string>): Promise<void> | undefined;
@@ -12,7 +12,7 @@ type CssHandlerOptions = IStyleHandlerOptions & {
12
12
  } | undefined;
13
13
  };
14
14
  interface CssHandlerOptionsCacheOptions {
15
- getAppType: () => InternalUserDefinedOptions['appType'];
15
+ getAppType: () => InternalUserDefinedOptions['appType'] | undefined;
16
16
  mainCssChunkMatcher: InternalUserDefinedOptions['mainCssChunkMatcher'];
17
17
  getMajorVersion: () => number | undefined;
18
18
  getOutputRoot?: (() => string | undefined) | undefined;
@@ -1,2 +1,3 @@
1
+ import type { Plugin } from 'vite';
1
2
  import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
2
- export declare function createGenericWebVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): any[] | undefined;
3
+ export declare function createGenericWebVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): Plugin<any>[] | undefined;
@@ -34,6 +34,7 @@ export interface ViteCssTransformDecisionPlan {
34
34
  }
35
35
  export declare function resolveViteCssTransformDecisionPlan(options: ResolveViteCssTransformDecisionPlanOptions): ViteCssTransformDecisionPlan;
36
36
  export interface ResolveViteCssTransformCachePlanOptions {
37
+ cssBundleSourceHash?: string | undefined;
37
38
  cssIsMainChunk: boolean;
38
39
  cssRuntimeAffectingHash: string;
39
40
  cssShareScope: string;
@@ -0,0 +1,4 @@
1
+ import type { FinalizeGenerateBundleOptions } from './root-import-shell.js';
2
+ type SyncProcessedCssOptions = Pick<FinalizeGenerateBundleOptions, 'bundle' | 'opts' | 'cssPipelineStrategy' | 'createCssPipelineContext' | 'isViteProcessedCssAsset' | 'markCssAssetProcessed' | 'recordCssAssetResult' | 'recordViteProcessedCssAssetResult' | 'rootDir' | 'isWebGeneratorTarget' | 'shouldPreserveAppCssExtension' | 'sourceRoot' | 'defaultStyleOutputExtension' | 'bundleFiles' | 'transformWebTargetCss' | 'debug' | 'recordTimingDetail' | 'getViteProcessedCssAssetResults' | 'onUpdate' | 'pendingRememberedCssReplayUpdates'>;
3
+ export declare function syncProcessedCss(options: SyncProcessedCssOptions): number;
4
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { OutputBundle } from 'rollup';
2
+ export declare function createFrameworkStyleMemory(targetByFile: Map<string, string>): {
3
+ prepare(bundle: OutputBundle, removedFiles: Iterable<string>): () => void;
4
+ };
@@ -5,5 +5,12 @@ interface JsHandlerOptionsFactoryOptions {
5
5
  moduleGraph: CreateJsHandlerOptions['moduleGraph'];
6
6
  }
7
7
  export declare function resolveUniAppXJsTransformEnabled(uniAppX: InternalUserDefinedOptions['uniAppX'] | undefined): boolean;
8
+ export declare function resolveGenerateBundleJsFastPath(options: {
9
+ experimentalJsFastPath?: CreateJsHandlerOptions['experimentalJsFastPath'];
10
+ useIncrementalMode: boolean;
11
+ }): {
12
+ experimentalJsFastPath: boolean | "oxc";
13
+ moduleGraphEnabled: boolean;
14
+ };
8
15
  export declare function createJsHandlerOptionsFactory(options: JsHandlerOptionsFactoryOptions): (absoluteFilename: string, extra?: CreateJsHandlerOptions) => CreateJsHandlerOptions;
9
16
  export {};
@@ -2,6 +2,7 @@ import type { OutputAsset } from 'rollup';
2
2
  import type { RememberedCssSource } from './types.js';
3
3
  import type { InternalUserDefinedOptions } from '../../../types/index.js';
4
4
  export declare function createRememberedCssRuntimeSignature(cssRuntimeSignature: string, cssRuntimeAffectingHash: string): string;
5
+ export declare function createGeneratedReplayCacheKey(outputFile: string): string;
5
6
  export declare function resolveRememberedCssSourceForTest(sources: Iterable<[string, RememberedCssSource]> | undefined, outputFile: string, file: string, originalSource: OutputAsset, outputRoot: string, sourceRoot: string | undefined): RememberedCssSource | undefined;
6
7
  export declare function findRememberedCssSources(sources: Iterable<[string, RememberedCssSource]> | undefined, outputFile: string, file: string, originalSource: OutputAsset, outputRoot: string, sourceRoot: string | undefined): RememberedCssSource[];
7
8
  export declare function mergeRememberedCssSources(sources: RememberedCssSource[], outputFile: string): RememberedCssSource | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { OutputAsset } from 'rollup';
2
2
  interface GeneratorDependencyContext {
3
- addWatchFile?: (id: string) => void;
3
+ addWatchFile?: ((id: string) => void) | undefined;
4
4
  }
5
5
  export declare function createReplayCssAsset(fileName: string, source: string): OutputAsset;
6
6
  export declare function registerGeneratorDependencies(ctx: GeneratorDependencyContext, dependencies: readonly string[] | undefined): void;
@@ -1,6 +1,8 @@
1
+ import type { OutputBundle } from 'rollup';
2
+ import type { GenerateBundleContext, GenerateBundleThis } from './types.js';
1
3
  import { resolveMiniProgramStyleOutputExtension as resolveMiniProgramStyleOutputExtension2, resolveReplayCssOutputFile as resolveReplayCssOutputFile2, resolveReplayCssOutputFileFromSourceRoot, resolveViteCssPipelineOutputFile as resolveViteCssPipelineOutputFile2, resolveViteCssPipelineOutputFileFromSourceFile } from '../css-output.js';
2
4
  import { normalizeBundleFileNameKeysForTest } from './bundle-file-names.js';
3
5
  import { resolveRememberedCssSourceForTest } from './remembered-css.js';
4
6
  import { shouldKeepRootMiniProgramStyleAsImportShell as shouldKeepRootMiniProgramStyleAsImportShell2, shouldMoveRootMiniProgramStyleToImportShellOrigin as shouldMoveRootMiniProgramStyleToImportShellOrigin2 } from './root-style-output.js';
5
- declare function createGenerateBundleHook(context: any): any;
7
+ declare function createGenerateBundleHook(context: GenerateBundleContext): (this: GenerateBundleThis, _opt: unknown, bundle: OutputBundle) => Promise<void>;
6
8
  export { createGenerateBundleHook, normalizeBundleFileNameKeysForTest, resolveMiniProgramStyleOutputExtension2 as resolveMiniProgramStyleOutputExtension, resolveRememberedCssSourceForTest, resolveReplayCssOutputFile2 as resolveReplayCssOutputFile, resolveReplayCssOutputFileFromSourceRoot, resolveViteCssPipelineOutputFile2 as resolveViteCssPipelineOutputFile, resolveViteCssPipelineOutputFileFromSourceFile, shouldKeepRootMiniProgramStyleAsImportShell2 as shouldKeepRootMiniProgramStyleAsImportShell, shouldMoveRootMiniProgramStyleToImportShellOrigin2 as shouldMoveRootMiniProgramStyleToImportShellOrigin };
@@ -18,4 +18,4 @@ export declare function hasTailwindGenerationSource(source: string, options?: {
18
18
  export declare function resolveSfcStyleSourceFromOutputFile(outputFile: string, snapshot: BundleSnapshot, outputRoot: string, sourceRoot: string | undefined, cssMatcher: ((file: string) => boolean) | undefined, getSfcSource: ((file: string) => string | undefined) | undefined, debug: (format: string, ...args: unknown[]) => void): Promise<RememberedCssSource | undefined>;
19
19
  export declare function normalizeSfcSourceFileForCompare(file: string): string;
20
20
  export declare function collectChunkModuleIds(output: OutputChunk): string[];
21
- export declare function resolveSourceStyleSourceFromOutputFile(outputFile: string, snapshot: BundleSnapshot, outputRoot: string, sourceRoot: string | undefined, getSourceStyleSource: ((file: string) => string | undefined) | undefined, getSourceStyleSources: (() => Iterable<[string, string]>) | undefined, configuredSourceEntries: Iterable<[string, string]> | undefined, debug: (format: string, ...args: unknown[]) => void): RememberedCssSource | undefined;
21
+ export declare function resolveSourceStyleSourceFromOutputFile(outputFile: string, snapshot: BundleSnapshot, outputRoot: string, sourceRoot: string | undefined, getSourceStyleSource: ((file: string) => string | undefined) | undefined, getSourceStyleSources: (() => Iterable<[string, string]>) | undefined, configuredSourceEntries: Iterable<readonly [string, string]> | undefined, debug: (format: string, ...args: unknown[]) => void): RememberedCssSource | undefined;
@@ -7,9 +7,9 @@ export interface TemporaryCssSourceEntry {
7
7
  export interface CollectTemporaryCssSourceEntriesOptions {
8
8
  configuredEntries: TemporaryCssSourceEntry[];
9
9
  configuredScopeEntries: TemporaryCssSourceEntry[];
10
- currentSubpackageRoots: string[] | undefined;
10
+ currentSubpackageRoots: Set<string> | undefined;
11
11
  explicitSourceFileKeys: ReadonlySet<string>;
12
- isSubpackageOutputFile: (file: string, roots: string[]) => boolean;
12
+ isSubpackageOutputFile: (file: string, roots: Set<string>) => boolean;
13
13
  normalizeConfiguredSourceFile: (file: string) => string;
14
14
  rememberedEntries: TemporaryCssSourceEntry[];
15
15
  resolveRuntimeLinkedSource: (file: string) => TemporaryCssSourceEntry | undefined;
@@ -53,7 +53,7 @@ export interface GenerateBundleContext {
53
53
  getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined, options?: SourceCandidateFilterOptions) => Set<string>) | undefined;
54
54
  getSourceCandidateSourcesForEntries?: ((entries: TailwindSourceEntry[] | undefined, options?: SourceCandidateFilterOptions) => Map<string, Set<string>>) | undefined;
55
55
  waitForSourceCandidateSyncs?: () => Promise<void>;
56
- rememberCssSource?: (entry: RememberedCssSource, cssRuntimeSignature?: string) => void;
56
+ rememberCssSource?: ((entry: RememberedCssSource, cssRuntimeSignature?: string) => void) | undefined;
57
57
  getRememberedCssSources?: () => Iterable<[string, RememberedCssSource]>;
58
58
  getRememberedCssSignature?: (file: string) => string | undefined;
59
59
  setRememberedCssSignature?: (file: string, cssRuntimeSignature: string) => void;
@@ -0,0 +1 @@
1
+ export declare function replaceWebCssModule(source: string, sourceFile: string, generated: string): string | undefined;
@@ -0,0 +1,3 @@
1
+ export declare function getViteHookHandler<T extends (...args: never[]) => unknown>(hook: T | {
2
+ handler: T;
3
+ } | undefined): T | undefined;
@@ -19,7 +19,9 @@ export declare function prepareImportedCssCoverage(importedCssSources: string[])
19
19
  sources: string[];
20
20
  } | undefined;
21
21
  export declare function isRuleCoveredByRootCss(rule: postcss.Rule, coverage: ReturnType<typeof collectRootScopedComparableCssCoverage>): boolean;
22
- export declare function removeScopedTailwindPreflightCss(css: string): string;
22
+ export declare function removeScopedTailwindPreflightCss(css: string, options?: {
23
+ preserveRuntimeProperties?: boolean;
24
+ }): string;
23
25
  export declare function collectSingleViteGeneratedCssMarkerFile(rawSource: string): string | undefined;
24
26
  export declare function shouldFilterRootGeneratedCssMarkerForScopedAsset(targetFile: string, markerFile: string, resolveViteProcessedCssOutputFile: ((file: string) => string | undefined) | undefined): boolean;
25
27
  export declare function removeCssCoveredByRootStyleBundleSources(bundle: OutputBundle, file: string, css: string): string;
@@ -71,7 +71,7 @@ export declare function dedupeViteCssResults<T extends {
71
71
  css: string;
72
72
  outputFile?: string | undefined;
73
73
  }>(records: T[]): T[];
74
- export declare function removeTailwindEntryDirectivesFromCss(css: string): string;
74
+ export declare function removeTailwindEntryDirectivesFromCss(css: string, preserveCssLayers?: boolean): string;
75
75
  interface NormalizeInjectableCssResult {
76
76
  css: string;
77
77
  importedStyleFiles: Set<string>;
@@ -1,4 +1,4 @@
1
- import type { AtRule, Rule } from 'postcss';
1
+ import type { AtRule, Rule } from '@weapp-tailwindcss/postcss';
2
2
  export declare function hasVueScopedAttr(value: string): boolean;
3
3
  export declare function normalizeCssSignatureValue(value: string): string;
4
4
  export declare function isScopedUniversalTailwindPreflightRule(rule: Rule): boolean;
@@ -1,2 +1,4 @@
1
- declare function createViteFrameworkPlugins(options: {} | undefined, frameworkBranch: any): any;
1
+ import type { ViteFrameworkBranchContext } from './create-framework-plugins.js';
2
+ import type { ViteFrameworkRuntimeOptions } from './framework-runtime-options.js';
3
+ declare function createViteFrameworkPlugins(options: ViteFrameworkRuntimeOptions | undefined, frameworkBranch: ViteFrameworkBranchContext): any;
2
4
  export { createViteFrameworkPlugins };
@@ -1,5 +1,6 @@
1
- import type { ValidateCandidatesByGeneratorOptions } from '../../shared/generator-css.js';
2
1
  import type { SourceCandidateStore } from '../../shared/source-candidates/types-and-cache.js';
2
+ import { validateCandidatesByGenerator } from '../../shared/generator-css.js';
3
+ type ValidateCandidatesByGeneratorOptions = Parameters<typeof validateCandidatesByGenerator>[0];
3
4
  interface FrameworkModuleCandidateRegistrarOptions {
4
5
  cacheCurrent: () => void;
5
6
  debug: ValidateCandidatesByGeneratorOptions['debug'];
@@ -0,0 +1,3 @@
1
+ import type { InternalUserDefinedOptions } from '../../../types/index.js';
2
+ export declare function createFrameworkCssEntrySync(opts: InternalUserDefinedOptions, rawCssEntries: string[] | undefined): (anchor: string | undefined) => boolean;
3
+ export declare function resolveFrameworkStylePlatform(opts: InternalUserDefinedOptions, outDir: string | undefined): string | undefined;
@@ -1 +1,10 @@
1
+ import type { ViteCapabilityProfile } from '../capability-profile.js';
2
+ import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../types/index.js';
3
+ export type ViteFrameworkRuntimeOptions = (UserDefinedOptions | InternalUserDefinedOptions) & {
4
+ __internalViteCapabilityProfile?: ViteCapabilityProfile | undefined;
5
+ __internalViteRawOptions?: UserDefinedOptions | undefined;
6
+ __internalViteRawExplicitAppType?: boolean | undefined;
7
+ __internalViteRawExplicitTailwindcssBasedir?: boolean | undefined;
8
+ __internalViteRawExplicitGeneratorTarget?: boolean | undefined;
9
+ };
1
10
  export declare function sameStringList(first?: readonly string[], second?: readonly string[]): boolean;
@@ -1,5 +1,6 @@
1
- export declare function collectConfiguredCssEntries(options: any): any[] | undefined;
2
- export declare function inferPlatformFromOutDir(outDir: any): string | undefined;
3
- export declare function isWebOrNativeAppPlatform(platform: any): boolean;
4
- export declare function isInternalUserDefinedOptions(options: any): boolean;
5
- export declare function isNuxtPageHotModule(id: any): boolean;
1
+ import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../types/index.js';
2
+ export declare function collectConfiguredCssEntries(options: UserDefinedOptions): string[] | undefined;
3
+ export declare function inferPlatformFromOutDir(outDir: string | undefined): string | undefined;
4
+ export declare function isWebOrNativeAppPlatform(platform: string | undefined): boolean;
5
+ export declare function isInternalUserDefinedOptions(options: UserDefinedOptions | InternalUserDefinedOptions): options is InternalUserDefinedOptions;
6
+ export declare function isNuxtPageHotModule(id: unknown): boolean;
@@ -2,7 +2,7 @@ import type { HmrContext } from 'vite';
2
2
  import type { createViteCssMemory } from '../css-memory.js';
3
3
  import type { createViteRuntimeClassSet } from '../runtime-class-set.js';
4
4
  import type { createSourceCandidateCollector } from '../source-candidates.js';
5
- import type { createViteHmrCandidateState } from './framework-hmr-candidate-state.js';
5
+ import type { createViteHmrCandidateState, ViteSourceCandidateChange } from './framework-hmr-candidate-state.js';
6
6
  type SourceCandidateCollector = ReturnType<typeof createSourceCandidateCollector>;
7
7
  type CssMemory = ReturnType<typeof createViteCssMemory>;
8
8
  type RuntimeState = ReturnType<typeof createViteRuntimeClassSet>['runtimeState'];
@@ -41,12 +41,12 @@ export declare function createFrameworkSourceScanSession(options: FrameworkSourc
41
41
  queueChangedFile: (change: Omit<PendingSourceCandidateFileChange, "file"> & {
42
42
  id: string;
43
43
  }) => void;
44
- flushChangedFiles: () => any;
44
+ flushChangedFiles: () => Promise<Map<string, ViteSourceCandidateChange | undefined>>;
45
45
  shouldDiscoverAutoCssSources: (autoCssSourcesDiscovered: boolean) => boolean;
46
46
  sync: (syncOptions?: {
47
47
  force?: boolean;
48
48
  }) => Promise<void>;
49
- syncChangedFile: (id: string, sourceOverride?: string) => any;
49
+ syncChangedFile: (id: string, sourceOverride?: string) => Promise<ViteSourceCandidateChange | undefined>;
50
50
  waitForPendingSyncs: () => Promise<void>;
51
51
  };
52
52
  export {};
@@ -86,7 +86,9 @@ export interface ViteFrameworkCssPipelineStrategy {
86
86
  shouldTransformServeJs?: (context: ViteFrameworkCssPipelineContext) => boolean;
87
87
  transformGeneratedCss?: (css: string, context: ViteFrameworkCssPipelineContext & {
88
88
  defaultWebCssCompat: (css: string) => string;
89
- removeScopedPreflight: (css: string) => string;
89
+ removeScopedPreflight: (css: string, options?: {
90
+ preserveRuntimeProperties?: boolean;
91
+ }) => string;
90
92
  shouldApplyWebCssCompat: boolean;
91
93
  }) => string;
92
94
  }
@@ -0,0 +1,2 @@
1
+ import type { HmrContext } from 'vite';
2
+ export declare function readViteHmrSource(context: Pick<HmrContext, 'read'>): Promise<string | undefined>;
@@ -1,4 +1,5 @@
1
+ import type { sources } from 'webpack';
1
2
  export interface WebpackCssAssetTaskContext {
2
3
  [key: string]: any;
3
4
  }
4
- export declare function processWebpackProcessedCssAsset(element: any, context: WebpackCssAssetTaskContext): Promise<boolean>;
5
+ export declare function processWebpackProcessedCssAsset(element: [string, Pick<sources.Source, 'source'>], context: WebpackCssAssetTaskContext): Promise<boolean>;
@@ -3,7 +3,7 @@ import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefin
3
3
  export { weappTailwindcssPackageDir } from '../shared/create-framework-plugin.js';
4
4
  export declare class WeappTailwindcss implements IBaseWebpackPlugin {
5
5
  options: InternalUserDefinedOptions;
6
- appType?: AppType;
6
+ appType: AppType | undefined;
7
7
  constructor(options?: UserDefinedOptions);
8
8
  apply(compiler: Compiler): void;
9
9
  }
@@ -12,7 +12,7 @@ export interface WebpackFrameworkBranchContext {
12
12
  }
13
13
  export declare class WebpackFrameworkPlugin implements IBaseWebpackPlugin {
14
14
  options: InternalUserDefinedOptions;
15
- appType?: AppType;
15
+ appType: AppType | undefined;
16
16
  private hasInitialTailwindCssRoots;
17
17
  private frameworkBranch;
18
18
  constructor(options: (UserDefinedOptions | InternalUserDefinedOptions) | undefined, frameworkBranch: WebpackFrameworkBranchContext);
@@ -2,6 +2,7 @@ export * from './artifact.js';
2
2
  export * from './cache-telemetry.js';
3
3
  export * from './candidate-index.js';
4
4
  export * from './capabilities.js';
5
+ export type { CompilerHost as CompilerAdapterLifecycle } from './capabilities.js';
5
6
  export * from './compilation-change-coordinator.js';
6
7
  export * from './compilation-scope-graph.js';
7
8
  export * from './compilation-session-pool.js';
@@ -10,6 +11,7 @@ export * from './emission-plan.js';
10
11
  export * from './events.js';
11
12
  export * from './framework-compiler-session.js';
12
13
  export * from './host.js';
14
+ export type { CompilerHost } from './host.js';
13
15
  export * from './invalidation.js';
14
16
  export * from './mode.js';
15
17
  export * from './owner-lifecycle.js';
@@ -1,4 +1,4 @@
1
- import type { Root } from 'postcss';
1
+ import type { Root } from '@weapp-tailwindcss/postcss';
2
2
  import type { GenerationArtifact } from './types.js';
3
3
  export interface SemanticCssDeclaration {
4
4
  type: 'declaration';
@@ -1,4 +1,4 @@
1
- import type { Root } from 'postcss';
1
+ import type { Root } from '@weapp-tailwindcss/postcss';
2
2
  export type CompilerMode = 'legacy' | 'shadow' | 'graph';
3
3
  export type CssFragmentKind = 'tailwind' | 'theme' | 'preflight' | 'user' | 'import';
4
4
  export type CssStage = 'raw' | 'framework-processed' | 'adapted';