@weapp-tailwindcss/postcss 3.3.7 → 3.3.9

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.
@@ -1,11 +1,12 @@
1
- export interface PruneMiniProgramGeneratedCssOptions {
1
+ import type { ApplyConfiguredCssCalcOptions } from '../../plugins/applyConfiguredCssCalc.js';
2
+ export interface PruneMiniProgramGeneratedCssOptions extends Pick<ApplyConfiguredCssCalcOptions, 'cssCalc' | 'cssOptions' | 'customPropertyValues' | 'customPropertyContextCss' | 'contextCss'> {
2
3
  preserveContentInit?: boolean;
3
4
  preservePreflight?: boolean;
4
5
  preserveConditionalComments?: boolean;
5
6
  preserveRawClassRules?: boolean;
6
7
  }
7
8
  /**
8
- * 在交给框架 PostCSS 前展开 Tailwind 生成的嵌套规则,并裁剪 Web-only 结构。
9
+ * 在主题作用域改写前按配置预计算 calc,再展开 Tailwind 生成的嵌套规则并裁剪 Web-only 结构。
9
10
  */
10
11
  export declare function normalizeMiniProgramGeneratedCssForPostcss(css: string, options?: PruneMiniProgramGeneratedCssOptions): Promise<string>;
11
12
  /**
@@ -1,4 +1,4 @@
1
1
  import type { Result as PostcssResult } from 'postcss';
2
2
  import type { IStyleHandlerOptions } from '../types.js';
3
3
  import postcss from 'postcss';
4
- export declare function applyUniAppXUvueCompatibility(result: PostcssResult, options?: Pick<IStyleHandlerOptions, 'customPropertyValues' | 'isMainChunk' | 'uniAppX' | 'uniAppXCssTarget' | 'uniAppXUnsupported'>): PostcssResult<postcss.Document | postcss.Root>;
4
+ export declare function applyUniAppXUvueCompatibility(result: PostcssResult, options?: Pick<IStyleHandlerOptions, 'customPropertyValues' | 'customPropertyCompatibilityValues' | 'isMainChunk' | 'uniAppX' | 'uniAppXCssTarget' | 'uniAppXUnsupported'>): PostcssResult<postcss.Document | postcss.Root>;