weapp-tailwindcss 5.2.14 → 5.3.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.
Files changed (59) hide show
  1. package/README.md +55 -8
  2. package/README.zh-CN.md +64 -0
  3. package/dist/bundlers/rspack/rule-match.d.ts +13 -0
  4. package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +7 -0
  5. package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +1 -0
  6. package/dist/bundlers/vite/shared/framework-plugin-order.d.ts +2 -0
  7. package/dist/{transform-BiHG42Rp.cjs → component-local-style-BirkN5f8.cjs} +33 -168
  8. package/dist/{transform-52FLRu-0.js → component-local-style-CFL4ClhS.js} +22 -174
  9. package/dist/generator/index.d.ts +2 -2
  10. package/dist/generator.cjs +7 -0
  11. package/dist/generator.js +2 -2
  12. package/dist/{gulp-DzIR7eO3.cjs → gulp-B0qcNiuP.cjs} +2 -2
  13. package/dist/{gulp-DG6cWPF4.js → gulp-D1vDx4H1.js} +1 -1
  14. package/dist/gulp.cjs +1 -1
  15. package/dist/gulp.js +1 -1
  16. package/dist/{hmr-timing-CoyM6Dg2.js → hmr-timing-Dq1_msos.js} +5 -7
  17. package/dist/{hmr-timing-BIPr9t9m.cjs → hmr-timing-pF6k35pP.cjs} +1 -1
  18. package/dist/index.cjs +3 -3
  19. package/dist/index.js +3 -3
  20. package/dist/{pipeline-helpers-Bp343-ik.cjs → pipeline-helpers-DA5-EzbO.cjs} +1 -1
  21. package/dist/rspack.cjs +124 -7
  22. package/dist/rspack.js +124 -7
  23. package/dist/{source-candidate-scan-signature-J9EW91KX.cjs → source-candidate-scan-signature-DGQufJk3.cjs} +1 -1
  24. package/dist/{source-candidate-scan-signature-BLXoEZN5.js → source-candidate-scan-signature-DSsjYtlq.js} +1 -1
  25. package/dist/tailwindcss/candidates.d.ts +2 -2
  26. package/dist/transform-BYhgJszj.cjs +200 -0
  27. package/dist/transform-Ck31voUU.js +201 -0
  28. package/dist/uni-app-x/component-local-style.d.ts +3 -1
  29. package/dist/uni-app-x/transform.d.ts +2 -0
  30. package/dist/uni-app-x/vite/style-request.d.ts +1 -0
  31. package/dist/uni-app-x/vite/web-local-style.d.ts +6 -0
  32. package/dist/{v4-generation-core-CCnEsAgV.cjs → v4-generation-core-BEYGV4eB.cjs} +5 -7
  33. package/dist/{vite-DNTQV3gN.js → vite-DBgbFsei.js} +184 -64
  34. package/dist/{vite-RJpkDte7.cjs → vite-jftHIupF.cjs} +184 -64
  35. package/dist/vite.cjs +1 -1
  36. package/dist/vite.js +1 -1
  37. package/dist/weapp-tw-css-import-rewrite-loader.cjs +2 -2
  38. package/dist/{webpack-DYoIysDo.js → webpack-BSIWFzAA.js} +3 -3
  39. package/dist/{webpack-BY5y7f0X.cjs → webpack-DhwW2cva.cjs} +4 -4
  40. package/dist/webpack.cjs +1 -1
  41. package/dist/webpack.js +1 -1
  42. package/package.json +9 -14
  43. package/README.en.md +0 -17
  44. package/bin/weapp-tailwindcss.cjs +0 -8
  45. package/dist/cli/context.d.ts +0 -3
  46. package/dist/cli/doctor/constants.d.ts +0 -7
  47. package/dist/cli/doctor/types.d.ts +0 -31
  48. package/dist/cli/doctor.d.ts +0 -4
  49. package/dist/cli/helpers/options/format.d.ts +0 -2
  50. package/dist/cli/helpers/options/parse.d.ts +0 -3
  51. package/dist/cli/helpers/options/resolve.d.ts +0 -1
  52. package/dist/cli/helpers/options.d.ts +0 -3
  53. package/dist/cli/helpers.d.ts +0 -4
  54. package/dist/cli/mount-options.d.ts +0 -4
  55. package/dist/cli/types.d.ts +0 -15
  56. package/dist/cli/vscode-entry.d.ts +0 -14
  57. package/dist/cli.cjs +0 -37065
  58. package/dist/cli.d.ts +0 -1
  59. package/dist/cli.js +0 -2298
@@ -1,2 +0,0 @@
1
- export declare function normalizeTokenFormat(format: string): "json" | "lines" | "grouped-json";
2
- export declare function normalizeExtractFormat(format: string | undefined): 'json' | 'lines' | undefined;
@@ -1,3 +0,0 @@
1
- export declare function readStringOption(flag: string, value: unknown): string | undefined;
2
- export declare function readStringArrayOption(flag: string, value: unknown): string[] | undefined;
3
- export declare function toBoolean(value: unknown, fallback: boolean): boolean;
@@ -1 +0,0 @@
1
- export declare function resolveCliCwd(value: unknown): string | undefined;
@@ -1,3 +0,0 @@
1
- export { normalizeExtractFormat, normalizeTokenFormat } from './options/format.js';
2
- export { readStringArrayOption, readStringOption, toBoolean } from './options/parse.js';
3
- export { resolveCliCwd } from './options/resolve.js';
@@ -1,4 +0,0 @@
1
- import { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean } from './helpers/options.js';
2
- export declare function ensureDir(dir: string): Promise<void>;
3
- export declare function commandAction<T extends unknown[]>(handler: (...args: T) => Promise<void>): (...args: T) => Promise<void>;
4
- export { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean, };
@@ -1,4 +0,0 @@
1
- export declare const PATCH_COMMAND_OBSOLETE_NOTICE = "\u63D0\u793A\uFF1Aweapp-tailwindcss@5 \u5DF2\u7531\u6784\u5EFA\u8FD0\u884C\u65F6\u63A5\u7BA1 Tailwind CSS \u5904\u7406\uFF0Cweapp-tw patch \u5DF2\u65E0\u9700\u6267\u884C\uFF1B\u8BF7\u79FB\u9664 package.json \u4E2D\u7684 postinstall \u94A9\u5B50\u3002";
2
- export declare const obsoletePatchCommands: readonly ["extract", "tokens", "init", "migrate", "restore", "validate"];
3
- export declare function logPatchCommandObsoleteNotice(): void;
4
- export declare function logObsoletePatchCommand(command: string): void;
@@ -1,15 +0,0 @@
1
- export interface CommonCommandOptions {
2
- cwd?: string | boolean;
3
- }
4
- export interface ExtractCommandOptions extends CommonCommandOptions {
5
- output?: string | boolean;
6
- format?: string | boolean;
7
- css?: string | boolean;
8
- write?: boolean | string;
9
- }
10
- export interface TokensCommandOptions extends CommonCommandOptions {
11
- output?: string | boolean;
12
- format?: string | boolean;
13
- groupKey?: string | boolean;
14
- write?: boolean | string;
15
- }
@@ -1,14 +0,0 @@
1
- export declare const DEFAULT_VSCODE_ENTRY_OUTPUT = ".vscode/weapp-tailwindcss.intellisense.css";
2
- export declare const DEFAULT_VSCODE_SOURCES: string[];
3
- export interface GenerateVscodeEntryOptions {
4
- baseDir: string;
5
- cssEntry: string;
6
- output?: string | undefined;
7
- sources?: string[] | undefined;
8
- force?: boolean | undefined;
9
- }
10
- export interface GenerateVscodeEntryResult {
11
- outputPath: string;
12
- cssEntryPath: string;
13
- }
14
- export declare function generateVscodeIntellisenseEntry(options: GenerateVscodeEntryOptions): Promise<GenerateVscodeEntryResult>;