@weapp-tailwindcss/postcss 3.1.6 → 3.1.7

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.
@@ -0,0 +1 @@
1
+ export { type PostcssAppType, type PostcssStyleBranch, type PostcssStyleBranchProfile, resolvePostcssStyleBranch, type ResolvePostcssStyleBranchOptions, resolvePostcssStyleBranchProfile, } from './style';
@@ -0,0 +1,3 @@
1
+ import type { Result } from 'postcss';
2
+ import type { IStyleHandlerOptions } from '../../types';
3
+ export declare function postprocessMiniProgramCss(result: Result, _options: IStyleHandlerOptions): Result<import("postcss").Document | import("postcss").Root>;
@@ -0,0 +1,11 @@
1
+ import type { PostcssFrameworkProfile } from '../frameworks';
2
+ import type { PostcssStyleTarget } from '../style-targets';
3
+ import type { IStyleHandlerOptions } from '../types';
4
+ export type PostcssAppType = 'kbone' | 'mpx' | 'native' | 'remax' | 'taro' | 'uni-app' | 'uni-app-vite' | 'uni-app-x' | 'weapp-vite';
5
+ export type PostcssStyleBranch = PostcssStyleTarget;
6
+ export type PostcssStyleBranchProfile = PostcssFrameworkProfile;
7
+ export interface ResolvePostcssStyleBranchOptions extends Pick<IStyleHandlerOptions, 'platform' | 'uniAppX' | 'uniAppXCssTarget'> {
8
+ appType?: PostcssAppType | undefined;
9
+ }
10
+ export declare function resolvePostcssStyleBranch(options: ResolvePostcssStyleBranchOptions): PostcssStyleBranch;
11
+ export declare function resolvePostcssStyleBranchProfile(options: ResolvePostcssStyleBranchOptions): PostcssStyleBranchProfile;
@@ -0,0 +1,3 @@
1
+ import type { Result } from 'postcss';
2
+ import type { IStyleHandlerOptions } from '../../types';
3
+ export declare function postprocessUniAppXUvueCss(result: Result, options: IStyleHandlerOptions): Result<import("postcss").Document | import("postcss").Root>;
@@ -0,0 +1,3 @@
1
+ import type { Result } from 'postcss';
2
+ import type { IStyleHandlerOptions } from '../../types';
3
+ export declare function postprocessUniAppXWebviewCss(result: Result, options: IStyleHandlerOptions): Result<import("postcss").Document | import("postcss").Root>;
@@ -0,0 +1,3 @@
1
+ import type { Result } from 'postcss';
2
+ import type { IStyleHandlerOptions } from '../../types';
3
+ export declare function postprocessWebCss(result: Result, _options: IStyleHandlerOptions): Result<import("postcss").Document | import("postcss").Root>;
@@ -0,0 +1 @@
1
+ export declare const genericPostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1,5 @@
1
+ import type { PostcssFrameworkProfile, PostcssFrameworkStrategy, ResolvePostcssFrameworkOptions } from './types';
2
+ export declare function resolvePostcssFrameworkStrategy(options: ResolvePostcssFrameworkOptions): PostcssFrameworkStrategy;
3
+ export declare function resolvePostcssFrameworkProfile(options: ResolvePostcssFrameworkOptions): PostcssFrameworkProfile;
4
+ export declare function resolvePostcssStyleTarget(options: ResolvePostcssFrameworkOptions): import("..").PostcssStyleTarget;
5
+ export type { PostcssFrameworkProfile, PostcssFrameworkStrategy, PostcssFrameworkType, ResolvePostcssFrameworkOptions, } from './types';
@@ -0,0 +1 @@
1
+ export declare const kbonePostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1 @@
1
+ export declare const mpxPostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1 @@
1
+ export declare const nativePostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1 @@
1
+ export declare const remaxPostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1,5 @@
1
+ import type { PostcssStyleTarget } from '../style-targets';
2
+ import type { PostcssFrameworkStrategy, PostcssFrameworkType, ResolvePostcssFrameworkOptions } from './types';
3
+ export declare function isWebLikeStylePlatform(platform: string | undefined): boolean;
4
+ export declare function resolveWebPlatformOrTarget(options: Pick<ResolvePostcssFrameworkOptions, 'platform'>, fallbackTarget: PostcssStyleTarget): PostcssStyleTarget;
5
+ export declare function createStaticTargetFrameworkStrategy(framework: PostcssFrameworkType, fallbackTarget: PostcssStyleTarget): PostcssFrameworkStrategy;
@@ -0,0 +1 @@
1
+ export declare const taroPostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1,18 @@
1
+ import type { Result } from 'postcss';
2
+ import type { PostcssAppType } from '../branches';
3
+ import type { PostcssStyleTarget } from '../style-targets';
4
+ import type { IStyleHandlerOptions } from '../types';
5
+ export type PostcssFrameworkType = PostcssAppType | 'generic';
6
+ export interface ResolvePostcssFrameworkOptions extends Pick<IStyleHandlerOptions, 'platform' | 'uniAppX' | 'uniAppXCssTarget'> {
7
+ appType?: PostcssAppType | undefined;
8
+ }
9
+ export interface PostcssFrameworkStrategy {
10
+ framework: PostcssFrameworkType;
11
+ resolveStyleTarget: (options: ResolvePostcssFrameworkOptions) => PostcssStyleTarget;
12
+ }
13
+ export interface PostcssFrameworkProfile {
14
+ framework: PostcssFrameworkType;
15
+ target: PostcssStyleTarget;
16
+ branch: PostcssStyleTarget;
17
+ postprocess: (result: Result, options: IStyleHandlerOptions) => Result;
18
+ }
@@ -0,0 +1 @@
1
+ export declare const uniAppPostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1 @@
1
+ export declare const uniAppVitePostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
@@ -0,0 +1,2 @@
1
+ import type { PostcssFrameworkStrategy } from '../types';
2
+ export declare const uniAppXPostcssFrameworkStrategy: PostcssFrameworkStrategy;
@@ -0,0 +1 @@
1
+ export declare const weappVitePostcssFrameworkStrategy: import("..").PostcssFrameworkStrategy;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { type PostcssAppType, type PostcssStyleBranch, type PostcssStyleBranchProfile, resolvePostcssStyleBranch, type ResolvePostcssStyleBranchOptions, resolvePostcssStyleBranchProfile, } from './branches';
1
2
  export { type DynamicColorMixAlphaProtection, type DynamicColorMixAlphaProtectionOptions, type ModernColorValueNormalization, normalizeModernColorValue, protectDynamicColorMixAlpha, } from './compat/color-mix';
2
3
  export { finalizeMiniProgramCss, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, pruneMiniProgramGeneratedCss, removeUnsupportedAtSupports, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, stripMiniProgramCssSpecificityPlaceholders, unwrapUnsupportedCascadeLayers, } from './compat/mini-program-css';
3
4
  export { normalizeMiniProgramPrefixedDeclaration, removeUnsupportedMiniProgramPrefixedAtRule, } from './compat/mini-program-prefixes';
@@ -5,6 +6,7 @@ export { convertTailwindcssRpxDeclarationsToRem, convertTailwindcssRpxDeclaratio
5
6
  export { type NormalizedWebCssCompatOptions, normalizeWebCssCompatOptions, transformWebCssCompat, transformWebCssSafeSelectors, } from './compat/web-css';
6
7
  export { compileCssMacroConditionalComments, CSS_MACRO_STYLE_OPTIONS_MARKER, hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4Directive, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, transformCssMacroCss, transformCssMacroTailwindV4Source, withCssMacroStyleOptions, } from './css-macro/auto';
7
8
  export { CSS_MACRO_POSTCSS_PLUGIN_NAME, default as cssMacroPostcssPlugin } from './css-macro/postcss';
9
+ export { type PostcssFrameworkProfile, type PostcssFrameworkStrategy, type PostcssFrameworkType, type ResolvePostcssFrameworkOptions, resolvePostcssFrameworkProfile, resolvePostcssFrameworkStrategy, resolvePostcssStyleTarget, } from './frameworks';
8
10
  export { createWeappTailwindcssPostcssPlugin } from './generator-plugin';
9
11
  export type { NormalizedWeappTailwindcssPostcssGeneratorOptions, TailwindCandidateSource, TailwindResolvedSource, TailwindV4SourceOptions, WeappTailwindcssPostcssGenerateOptions, WeappTailwindcssPostcssGenerateResult, WeappTailwindcssPostcssGenerator, WeappTailwindcssPostcssGeneratorUserOptions, WeappTailwindcssPostcssPluginAdapters, WeappTailwindcssPostcssPluginOptions, WeappTailwindcssPostcssTarget, } from './generator-plugin';
10
12
  export { collectApplyOnlyCssSelectors, collectApplyOnlyCssSelectorsRoot, filterApplyOnlyGeneratedCss, filterApplyOnlyGeneratedCssRoot, } from './generator-plugin/apply-only';
@@ -20,6 +22,7 @@ export type { AcceptedPlugin, AtRule, Container, Declaration, Document, Helpers,
20
22
  export { createInjectPreflight } from './preflight';
21
23
  export { internalCssSelectorReplacer } from './shared';
22
24
  export { collectCssInlineSourceCandidates, createSourceScanPattern, createTailwindSourceEntryMatcher, expandInlineSourceCandidatePattern, expandTailwindSourceEntries, FULL_SOURCE_SCAN_EXTENSION_RE, FULL_SOURCE_SCAN_EXTENSIONS, FULL_SOURCE_SCAN_PATTERN, isFileExcludedByTailwindSourceEntries, isFileMatchedByTailwindSourceEntries, normalizeLegacyContentEntries, parseConfigParam, parseSourceFileParam, resolveCssSourceEntries, resolveSourceScanPath, resolveTailwindSourceEntry, type TailwindInlineSourceCandidates, type TailwindSourceEntry, toPosixPath, } from './source-scan';
25
+ export { createPostcssStyleTargetProfile, type PostcssStyleTarget, type PostcssStyleTargetProfile, } from './style-targets';
23
26
  export * from './types';
24
27
  export { containsCssAfterMinify, filterExistingCssRules, mergeCoveredCssRuleDeclarations, mergeMiniProgramPreflightRuleDeclarations, mergeMiniProgramThemeScopeRuleDeclarations, } from './vite-css-rules';
25
28
  export { composeRules as unitConversionComposeRules, presets as unitConversionPresets, } from 'postcss-rule-unit-converter';