weapp-tailwindcss 3.4.0-alpha.2 → 3.4.0
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/bundlers/gulp/index.d.ts +1 -1
- package/dist/bundlers/vite/index.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/js/handlers.d.ts +1 -1
- package/dist/js/index.d.ts +1 -1
- package/dist/mangle/index.d.ts +1 -1
- package/dist/postcss/index.d.ts +1 -1
- package/dist/postcss/mp.d.ts +1 -1
- package/dist/postcss/plugins/index.d.ts +1 -1
- package/dist/postcss/plugins/post.d.ts +1 -1
- package/dist/postcss/plugins/pre.d.ts +1 -1
- package/dist/postcss/preflight.d.ts +1 -1
- package/dist/postcss/selectorParser.d.ts +1 -1
- package/dist/postcss/shared.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/wxml/shared.d.ts +1 -1
- package/dist/wxml/utils.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import stream from 'node:stream';
|
|
3
|
-
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from
|
|
3
|
+
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from "../../types";
|
|
4
4
|
export declare function createPlugins(options?: UserDefinedOptions): {
|
|
5
5
|
transformWxss: (options?: Partial<IStyleHandlerOptions>) => stream.Transform;
|
|
6
6
|
transformWxml: (options?: Partial<ITemplateHandlerOptions>) => stream.Transform;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Compiler } from 'webpack4';
|
|
2
|
-
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from
|
|
2
|
+
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from "../../../types";
|
|
3
3
|
export declare class UnifiedWebpackPluginV4 implements IBaseWebpackPlugin {
|
|
4
4
|
options: InternalUserDefinedOptions;
|
|
5
5
|
appType?: AppType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Compiler } from 'webpack';
|
|
2
|
-
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from
|
|
2
|
+
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from "../../../types";
|
|
3
3
|
export declare class UnifiedWebpackPluginV5 implements IBaseWebpackPlugin {
|
|
4
4
|
options: InternalUserDefinedOptions;
|
|
5
5
|
appType?: AppType;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from
|
|
1
|
+
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from "./types";
|
|
2
2
|
export declare function createContext(options?: UserDefinedOptions): {
|
|
3
3
|
transformWxss: (rawCss: string, options?: Partial<IStyleHandlerOptions>) => Promise<string>;
|
|
4
4
|
transformWxml: (rawWxml: string, options?: ITemplateHandlerOptions) => Promise<string>;
|
package/dist/js/handlers.d.ts
CHANGED
package/dist/js/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateJsHandlerOptions, IJsHandlerOptions, JsHandlerResult } from
|
|
1
|
+
import type { CreateJsHandlerOptions, IJsHandlerOptions, JsHandlerResult } from "../types";
|
|
2
2
|
export declare function jsHandler(rawSource: string, options: IJsHandlerOptions): JsHandlerResult;
|
|
3
3
|
export declare function jsHandlerAsync(rawSource: string, options: IJsHandlerOptions): Promise<JsHandlerResult>;
|
|
4
4
|
export declare function createJsHandler(options: CreateJsHandlerOptions): {
|
package/dist/mangle/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMangleScopeContext, UserDefinedOptions } from
|
|
1
|
+
import type { IMangleScopeContext, UserDefinedOptions } from "../types";
|
|
2
2
|
export declare const defaultMangleContext: IMangleScopeContext;
|
|
3
3
|
export declare function useMangleStore(): {
|
|
4
4
|
mangleContext: IMangleScopeContext;
|
package/dist/postcss/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { IStyleHandlerOptions } from
|
|
1
|
+
import type { IStyleHandlerOptions } from "../types";
|
|
2
2
|
export declare function styleHandler(rawSource: string, options: IStyleHandlerOptions): Promise<string>;
|
|
3
3
|
export declare function createStyleHandler(options: Partial<IStyleHandlerOptions>): (rawSource: string, opt?: Partial<IStyleHandlerOptions>) => Promise<string>;
|
package/dist/postcss/mp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule } from 'postcss';
|
|
2
|
-
import type { IStyleHandlerOptions } from
|
|
2
|
+
import type { IStyleHandlerOptions } from "../types";
|
|
3
3
|
export declare function testIfVariablesScope(node: Rule, count?: number): boolean;
|
|
4
4
|
export declare function testIfTwBackdrop(node: Rule, count?: number): boolean;
|
|
5
5
|
export declare function makePseudoVarRule(): Rule;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptedPlugin } from 'postcss';
|
|
2
|
-
import type { IStyleHandlerOptions } from
|
|
2
|
+
import type { IStyleHandlerOptions } from "../../types";
|
|
3
3
|
export declare function getPlugins(options: IStyleHandlerOptions): AcceptedPlugin[];
|
|
4
4
|
export { postcssWeappTailwindcssPostPlugin } from './post';
|
|
5
5
|
export { postcssWeappTailwindcssPrePlugin } from './pre';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginCreator } from 'postcss';
|
|
2
|
-
import type { IStyleHandlerOptions } from
|
|
2
|
+
import type { IStyleHandlerOptions } from "../../types";
|
|
3
3
|
export type PostcssWeappTailwindcssRenamePlugin = PluginCreator<IStyleHandlerOptions>;
|
|
4
4
|
declare const postcssWeappTailwindcssPostPlugin: PostcssWeappTailwindcssRenamePlugin;
|
|
5
5
|
export { postcssWeappTailwindcssPostPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginCreator } from 'postcss';
|
|
2
|
-
import type { IStyleHandlerOptions } from
|
|
2
|
+
import type { IStyleHandlerOptions } from "../../types";
|
|
3
3
|
export type PostcssWeappTailwindcssRenamePlugin = PluginCreator<IStyleHandlerOptions>;
|
|
4
4
|
declare const postcssWeappTailwindcssPrePlugin: PostcssWeappTailwindcssRenamePlugin;
|
|
5
5
|
export { postcssWeappTailwindcssPrePlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { CssPreflightOptions, IPropValue } from
|
|
1
|
+
import type { CssPreflightOptions, IPropValue } from "../types";
|
|
2
2
|
export type InjectPreflight = () => IPropValue[];
|
|
3
3
|
export declare function createInjectPreflight(options?: CssPreflightOptions): InjectPreflight;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import selectorParser from 'postcss-selector-parser';
|
|
2
2
|
import type { Rule } from 'postcss';
|
|
3
|
-
import type { IStyleHandlerOptions } from
|
|
3
|
+
import type { IStyleHandlerOptions } from "../types";
|
|
4
4
|
export declare function ruleTransformSync(rule: Rule, options: IStyleHandlerOptions): void;
|
|
5
5
|
export declare function isOnlyBeforeAndAfterPseudoElement(node: Rule): boolean;
|
|
6
6
|
export declare const fallbackRemove: selectorParser.Processor<void, selectorParser.Selectors>;
|
package/dist/postcss/shared.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { InternalCssSelectorReplacerOptions } from
|
|
1
|
+
import type { InternalCssSelectorReplacerOptions } from "../types";
|
|
2
2
|
export declare function internalCssSelectorReplacer(selectors: string, options?: InternalCssSelectorReplacerOptions): string;
|
|
3
3
|
export declare function composeIsPseudo(strs: string | string[]): string;
|
package/dist/types.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { Result } from 'postcss-load-config';
|
|
|
8
8
|
import type { ILengthUnitsPatchOptions, TailwindcssPatcher } from 'tailwindcss-patch';
|
|
9
9
|
import type { InjectPreflight } from './postcss/preflight';
|
|
10
10
|
import type { IContext as PostcssContext } from './postcss/plugins/ctx';
|
|
11
|
-
import type { ICreateCacheReturnType } from
|
|
11
|
+
import type { ICreateCacheReturnType } from "./cache";
|
|
12
12
|
type PostcssOptions = Partial<Omit<Result, 'file'>>;
|
|
13
13
|
export type ItemOrItemArray<T> = T | T[];
|
|
14
14
|
export type AppType = 'uni-app' | 'uni-app-vite' | 'taro' | 'remax' | 'rax' | 'native' | 'kbone' | 'mpx';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions } from
|
|
1
|
+
import type { InternalUserDefinedOptions } from "./types";
|
|
2
2
|
export declare function isRegexp(value: unknown): boolean;
|
|
3
3
|
export declare function isMap(value: unknown): boolean;
|
|
4
4
|
export declare function regExpTest(arr: (string | RegExp)[] | undefined, str: string): boolean;
|
package/dist/wxml/shared.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ITemplateHandlerOptions } from
|
|
1
|
+
import type { ITemplateHandlerOptions } from "../types";
|
|
2
2
|
export declare function replaceWxml(original: string, options?: ITemplateHandlerOptions): string;
|
package/dist/wxml/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import MagicString from 'magic-string';
|
|
2
2
|
import type { Token } from './Tokenizer';
|
|
3
|
-
import type { ItemOrItemArray } from
|
|
4
|
-
import type { ITemplateHandlerOptions, RawSource } from
|
|
3
|
+
import type { ItemOrItemArray } from "../reg";
|
|
4
|
+
import type { ITemplateHandlerOptions, RawSource } from "../types";
|
|
5
5
|
export declare function generateCode(match: string, options?: ITemplateHandlerOptions): string;
|
|
6
6
|
export declare function extractSource(original: string): RawSource[];
|
|
7
7
|
export declare function handleEachClassFragment(original: string, options?: ITemplateHandlerOptions): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "3.4.0
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "SonOfMagic <qq1324318532@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"postcss-rem-to-responsive-pixel": "~6.0.1",
|
|
145
145
|
"postcss-selector-parser": "~6.1.1",
|
|
146
146
|
"semver": "~7.6.2",
|
|
147
|
-
"tailwindcss-patch": "4.0.0
|
|
147
|
+
"tailwindcss-patch": "~4.0.0",
|
|
148
148
|
"webpack-sources": "3.2.3"
|
|
149
149
|
},
|
|
150
150
|
"scripts": {
|