@weapp-tailwindcss/postcss 3.1.4 → 3.1.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.
- package/dist/compat/color-mix/constants.d.ts +1 -0
- package/dist/compat/color-mix/modern.d.ts +1 -0
- package/dist/compat/tailwindcss-v4.d.ts +2 -0
- package/dist/compat/web-css.d.ts +3 -0
- package/dist/generator-plugin/local-imports.d.ts +4 -1
- package/dist/generator-plugin/types.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1114 -1242
- package/dist/index.mjs +1109 -1238
- package/dist/types.d.ts +39 -2
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const COLOR_MIX_NAME = "color-mix";
|
|
2
2
|
export declare const MODERN_COLOR_FUNCTION_NAMES: Set<string>;
|
|
3
|
+
export declare const MODERN_COLOR_SYNTAX_FUNCTION_NAMES: Set<string>;
|
|
3
4
|
export declare const PLACEHOLDER_PREFIX = "__weapp_tw_color_mix_";
|
|
4
5
|
export declare const DYNAMIC_ALPHA_RE: RegExp;
|
|
5
6
|
export declare const INTERNAL_TAILWIND_ALPHA_RE: RegExp;
|
|
@@ -9,6 +9,8 @@ export declare function collectUsedTailwindcssV4Variables(root: Root): Set<strin
|
|
|
9
9
|
export declare function usesTailwindcssV4ContentVariable(root: Root): boolean;
|
|
10
10
|
export declare function createUsedCssVarsV4Nodes(usedProps: ReadonlySet<string>): PostcssDeclaration[];
|
|
11
11
|
export declare function createMissingCssVarsV4Nodes(root: Root, usedProps: ReadonlySet<string>): PostcssDeclaration[];
|
|
12
|
+
export declare function normalizeTailwindcssV4GradientPosition(value: string): string;
|
|
13
|
+
export declare function normalizeTailwindcssV4InfinityCalcValue(value: string): string;
|
|
12
14
|
export declare function mergeTailwindcssV4GradientDirectionRules(root: Root): void;
|
|
13
15
|
export declare function appendTailwindcssV4MiniProgramGradientRules(root: Root): void;
|
|
14
16
|
export declare function isTailwindcssV4ModernCheck(atRule: AtRule): boolean;
|
package/dist/compat/web-css.d.ts
CHANGED
|
@@ -5,3 +5,6 @@ export interface NormalizedWebCssCompatOptions {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function normalizeWebCssCompatOptions(options: WebCssCompatUserOptions | undefined): NormalizedWebCssCompatOptions;
|
|
7
7
|
export declare function transformWebCssCompat(css: string, options: WebCssCompatUserOptions | undefined): string;
|
|
8
|
+
export declare function transformWebCssSafeSelectors(css: string, options?: {
|
|
9
|
+
escapeMap?: Record<string, string> | undefined;
|
|
10
|
+
} | undefined): string;
|
|
@@ -3,6 +3,9 @@ import type { TailwindCssDirectiveOptions } from './directives';
|
|
|
3
3
|
export interface RewriteLocalCssImportRequestOptions {
|
|
4
4
|
styleOutputExtension?: string | undefined;
|
|
5
5
|
}
|
|
6
|
+
export interface RestoreLocalCssImportOptions {
|
|
7
|
+
outputFile?: string | undefined;
|
|
8
|
+
}
|
|
6
9
|
export declare function createCssSourceOrderAppend(base: string, extra: string): string;
|
|
7
10
|
export declare function isLocalCssImportRequest(request: string): boolean;
|
|
8
11
|
export declare function removeTailwindSourceDirectivesRoot(root: Root, options?: TailwindCssDirectiveOptions): boolean;
|
|
@@ -19,7 +22,7 @@ export declare function splitLocalCssImports(source: string): {
|
|
|
19
22
|
imports: string;
|
|
20
23
|
source: string;
|
|
21
24
|
} | undefined;
|
|
22
|
-
export declare function restoreLocalCssImports(css: string, imports: string | undefined): string;
|
|
25
|
+
export declare function restoreLocalCssImports(css: string, imports: string | undefined, options?: RestoreLocalCssImportOptions): string;
|
|
23
26
|
export declare function normalizeOutputImportRequest(request: string, styleOutputExtension: string | undefined): string;
|
|
24
27
|
export declare function rewriteLocalCssImportRequestsForOutputRoot(root: Root, options?: RewriteLocalCssImportRequestOptions): boolean;
|
|
25
28
|
export declare function rewriteLocalCssImportRequestsForOutput(css: string, options?: RewriteLocalCssImportRequestOptions): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions, WebCssCompatUserOptions } from '../types';
|
|
2
|
-
export type WeappTailwindcssPostcssTarget = 'weapp' | 'web'
|
|
2
|
+
export type WeappTailwindcssPostcssTarget = 'weapp' | 'web';
|
|
3
3
|
export interface TailwindCandidateSource {
|
|
4
4
|
content: string;
|
|
5
5
|
extension?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { type DynamicColorMixAlphaProtection, type DynamicColorMixAlphaProtectio
|
|
|
2
2
|
export { finalizeMiniProgramCss, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, pruneMiniProgramGeneratedCss, removeUnsupportedAtSupports, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, stripMiniProgramCssSpecificityPlaceholders, unwrapUnsupportedCascadeLayers, } from './compat/mini-program-css';
|
|
3
3
|
export { normalizeMiniProgramPrefixedDeclaration, removeUnsupportedMiniProgramPrefixedAtRule, } from './compat/mini-program-prefixes';
|
|
4
4
|
export { convertTailwindcssRpxDeclarationsToRem, convertTailwindcssRpxDeclarationToRem, convertTailwindcssRpxValueToRem, normalizeTailwindcssRpxDeclaration, normalizeTailwindcssRpxDeclarations, normalizeTailwindcssWebRpxDeclarations, type TailwindcssRpxToRemOptions, } from './compat/tailwindcss-rpx';
|
|
5
|
-
export { type NormalizedWebCssCompatOptions, normalizeWebCssCompatOptions, transformWebCssCompat, } from './compat/web-css';
|
|
5
|
+
export { type NormalizedWebCssCompatOptions, normalizeWebCssCompatOptions, transformWebCssCompat, transformWebCssSafeSelectors, } from './compat/web-css';
|
|
6
6
|
export { compileCssMacroConditionalComments, CSS_MACRO_STYLE_OPTIONS_MARKER, hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4Directive, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, transformCssMacroCss, transformCssMacroTailwindV4Source, withCssMacroStyleOptions, } from './css-macro/auto';
|
|
7
7
|
export { CSS_MACRO_POSTCSS_PLUGIN_NAME, default as cssMacroPostcssPlugin } from './css-macro/postcss';
|
|
8
8
|
export { createWeappTailwindcssPostcssPlugin } from './generator-plugin';
|