weapp-tailwindcss 5.4.2 → 5.5.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 (89) hide show
  1. package/README.md +13 -1
  2. package/README.zh-CN.md +13 -1
  3. package/dist/bundlers/shared/v4-generation-core.d.ts +1 -0
  4. package/dist/bundlers/vite/capability-profile.d.ts +1 -0
  5. package/dist/bundlers/vite/css-finalizer/web-plugin.d.ts +3 -0
  6. package/dist/bundlers/vite/css-handler-options.d.ts +32 -0
  7. package/dist/bundlers/vite/{generate-bundle/css-output.d.ts → css-output.d.ts} +1 -1
  8. package/dist/bundlers/vite/frameworks/generic/web.d.ts +2 -0
  9. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +2 -32
  10. package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +1 -1
  11. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +2 -2
  12. package/dist/bundlers/vite/generate-bundle/runtime.d.ts +1 -1
  13. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +1 -1
  14. package/dist/bundlers/vite/generate-bundle.d.ts +1 -1
  15. package/dist/bundlers/vite/runtime-class-set.d.ts +1 -5
  16. package/dist/bundlers/vite/shared/create-css-only-plugins-runtime.d.ts +3 -0
  17. package/dist/cache-CBJFB1HN.cjs +223 -0
  18. package/dist/compiler/events.d.ts +32 -0
  19. package/dist/compiler/host.d.ts +13 -0
  20. package/dist/compiler/index.d.ts +3 -0
  21. package/dist/compiler/runtime-state.d.ts +17 -0
  22. package/dist/compiler-B0YSc0DY.js +4877 -0
  23. package/dist/{wxml-o-CUulAM.cjs → compiler-SwMb3lOX.cjs} +3649 -283
  24. package/dist/core.cjs +6 -3
  25. package/dist/core.d.ts +2 -0
  26. package/dist/core.js +4 -4
  27. package/dist/defaults-B5ep0ojb.js +120 -0
  28. package/dist/defaults-BI9j1znS.cjs +156 -0
  29. package/dist/defaults.cjs +5 -121
  30. package/dist/defaults.js +1 -116
  31. package/dist/final-css-cleanup-BMlUDzik.cjs +112 -0
  32. package/dist/final-css-cleanup-CmVYbXPr.js +282 -0
  33. package/dist/{generator-WlhrtNa3.cjs → generator-DsrQ9txU.cjs} +62 -5
  34. package/dist/{generator-BjK5PRR-.js → generator-DyXTBPmE.js} +47 -2
  35. package/dist/generator.cjs +1 -1
  36. package/dist/generator.js +1 -1
  37. package/dist/{gulp-D6LcfRz_.js → gulp-CVUiPXPy.js} +7 -7
  38. package/dist/{gulp-ChecVI6A.cjs → gulp-Dtc01FdI.cjs} +30 -28
  39. package/dist/gulp.cjs +1 -1
  40. package/dist/gulp.js +1 -1
  41. package/dist/{hmr-timing-afnWvy7u.cjs → hmr-timing-3SdRVfZx.cjs} +6 -229
  42. package/dist/{hmr-timing-CqDfjvqE.js → hmr-timing-DNxQm-bN.js} +6 -1258
  43. package/dist/index.cjs +4 -4
  44. package/dist/index.js +4 -4
  45. package/dist/{pipeline-helpers-DxPFMGxz.cjs → pipeline-helpers-DVrgv1HS.cjs} +6 -5
  46. package/dist/postcss.cjs +1 -1
  47. package/dist/postcss.js +1 -1
  48. package/dist/presets.cjs +4 -4
  49. package/dist/presets.js +2 -2
  50. package/dist/rspack.cjs +2 -2
  51. package/dist/rspack.js +2 -2
  52. package/dist/runtime-state-BBQcA0n5.cjs +54 -0
  53. package/dist/{source-candidate-scan-signature-FywFU3Rg.cjs → scoped-generator-B7thnzzm.cjs} +5 -123
  54. package/dist/{source-candidate-scan-signature-BVScymyM.js → scoped-generator-kRj_5Axx.js} +4 -92
  55. package/dist/source-candidate-scan-signature-B7cUxqqX.cjs +129 -0
  56. package/dist/source-candidate-scan-signature-CsP4BQNa.js +92 -0
  57. package/dist/style-injector/internal.d.ts +1 -1
  58. package/dist/style-injector/vite-web.d.ts +3 -0
  59. package/dist/{tailwindcss-9xmoCkaR.js → tailwindcss-BK9S7zuq.js} +1 -2
  60. package/dist/{tailwindcss-D3jltF7M.cjs → tailwindcss-C-jBBQfw.cjs} +8 -9
  61. package/dist/{transform-DQhgAarN.js → transform-C0rWZblB.js} +3 -3
  62. package/dist/{transform-C6k9zTQR.cjs → transform-C7QxW-fV.cjs} +27 -27
  63. package/dist/{v4-generation-core-CPKNwzjz.cjs → v4-generation-core-DuIVZvRz.cjs} +29 -1172
  64. package/dist/vite/web.cjs +27 -0
  65. package/dist/vite/web.d.ts +1 -0
  66. package/dist/vite/web.js +25 -0
  67. package/dist/{vite-D3aCtpmv.js → vite-0PsttwuR.js} +241 -3581
  68. package/dist/{vite-D-gmOkPN.cjs → vite-CJbO-7AQ.cjs} +494 -3794
  69. package/dist/vite-web.d.ts +4 -0
  70. package/dist/vite.cjs +1 -1
  71. package/dist/vite.js +1 -1
  72. package/dist/weapp-tw-css-generation-loader.cjs +1 -1
  73. package/dist/weapp-tw-css-import-rewrite-loader.cjs +5 -5
  74. package/dist/web-BFOkkJ-8.cjs +4357 -0
  75. package/dist/web-D8HSs56R.js +3792 -0
  76. package/dist/{webpack-yAne9ZYu.cjs → webpack-BWknqSDV.cjs} +51 -49
  77. package/dist/{webpack-B-6a8Z8F.js → webpack-DVtKeBq1.js} +13 -12
  78. package/dist/webpack.cjs +1 -1
  79. package/dist/webpack.js +1 -1
  80. package/package.json +12 -3
  81. package/dist/cache-options-DavPxrhC.cjs +0 -16
  82. package/dist/cache-options-DwBtLwQe.js +0 -5
  83. package/dist/compiler-B-m9VGqj.cjs +0 -2316
  84. package/dist/compiler-BgMj2E5l.js +0 -2051
  85. package/dist/local-style-matcher-DRpFEu1s.cjs +0 -34
  86. package/dist/local-style-matcher-DsiI2wIc.js +0 -17
  87. package/dist/object-B-8IHefx.js +0 -47
  88. package/dist/object-DbHtAXRk.cjs +0 -58
  89. package/dist/wxml-CvKyV69S.js +0 -1822
@@ -1,34 +0,0 @@
1
- let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
2
- //#region src/uni-app-x/local-style-matcher.ts
3
- const COMPONENT_RE = /(?:^|\/)components(?:\/.+)?\.(?:uvue|nvue)$/;
4
- const PAGE_RE = /(?:^|\/)pages(?:\/.+)?\.(?:uvue|nvue)$/;
5
- function normalizeUniAppXLocalStyleId(id) {
6
- return (0, _weapp_tailwindcss_shared.ensurePosix)((0, _weapp_tailwindcss_shared.cleanUrl)(id));
7
- }
8
- function shouldEnableComponentLocalStyle(id, matcher) {
9
- const normalizedId = normalizeUniAppXLocalStyleId(id);
10
- return matcher ? matcher(normalizedId) : COMPONENT_RE.test(normalizedId);
11
- }
12
- function shouldEnablePageLocalStyle(id, matcher) {
13
- const normalizedId = normalizeUniAppXLocalStyleId(id);
14
- return matcher ? matcher(normalizedId) : PAGE_RE.test(normalizedId);
15
- }
16
- //#endregion
17
- Object.defineProperty(exports, "normalizeUniAppXLocalStyleId", {
18
- enumerable: true,
19
- get: function() {
20
- return normalizeUniAppXLocalStyleId;
21
- }
22
- });
23
- Object.defineProperty(exports, "shouldEnableComponentLocalStyle", {
24
- enumerable: true,
25
- get: function() {
26
- return shouldEnableComponentLocalStyle;
27
- }
28
- });
29
- Object.defineProperty(exports, "shouldEnablePageLocalStyle", {
30
- enumerable: true,
31
- get: function() {
32
- return shouldEnablePageLocalStyle;
33
- }
34
- });
@@ -1,17 +0,0 @@
1
- import { cleanUrl, ensurePosix } from "@weapp-tailwindcss/shared";
2
- //#region src/uni-app-x/local-style-matcher.ts
3
- const COMPONENT_RE = /(?:^|\/)components(?:\/.+)?\.(?:uvue|nvue)$/;
4
- const PAGE_RE = /(?:^|\/)pages(?:\/.+)?\.(?:uvue|nvue)$/;
5
- function normalizeUniAppXLocalStyleId(id) {
6
- return ensurePosix(cleanUrl(id));
7
- }
8
- function shouldEnableComponentLocalStyle(id, matcher) {
9
- const normalizedId = normalizeUniAppXLocalStyleId(id);
10
- return matcher ? matcher(normalizedId) : COMPONENT_RE.test(normalizedId);
11
- }
12
- function shouldEnablePageLocalStyle(id, matcher) {
13
- const normalizedId = normalizeUniAppXLocalStyleId(id);
14
- return matcher ? matcher(normalizedId) : PAGE_RE.test(normalizedId);
15
- }
16
- //#endregion
17
- export { shouldEnableComponentLocalStyle as n, shouldEnablePageLocalStyle as r, normalizeUniAppXLocalStyleId as t };
@@ -1,47 +0,0 @@
1
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
2
- function _typeof(o) {
3
- "@babel/helpers - typeof";
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
5
- return typeof o;
6
- } : function(o) {
7
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
- }, _typeof(o);
9
- }
10
- //#endregion
11
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
12
- function toPrimitive(t, r) {
13
- if ("object" != _typeof(t) || !t) return t;
14
- var e = t[Symbol.toPrimitive];
15
- if (void 0 !== e) {
16
- var i = e.call(t, r || "default");
17
- if ("object" != _typeof(i)) return i;
18
- throw new TypeError("@@toPrimitive must return a primitive value.");
19
- }
20
- return ("string" === r ? String : Number)(t);
21
- }
22
- //#endregion
23
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
24
- function toPropertyKey(t) {
25
- var i = toPrimitive(t, "string");
26
- return "symbol" == _typeof(i) ? i : i + "";
27
- }
28
- //#endregion
29
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
30
- function _defineProperty(e, r, t) {
31
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
32
- value: t,
33
- enumerable: !0,
34
- configurable: !0,
35
- writable: !0
36
- }) : e[r] = t, e;
37
- }
38
- //#endregion
39
- //#region src/utils/object.ts
40
- function definedEntries(value) {
41
- return Object.entries(value).filter(([, item]) => item !== void 0);
42
- }
43
- function omitUndefined(value) {
44
- return Object.fromEntries(definedEntries(value));
45
- }
46
- //#endregion
47
- export { _defineProperty as n, omitUndefined as t };
@@ -1,58 +0,0 @@
1
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
2
- function _typeof(o) {
3
- "@babel/helpers - typeof";
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
5
- return typeof o;
6
- } : function(o) {
7
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
- }, _typeof(o);
9
- }
10
- //#endregion
11
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
12
- function toPrimitive(t, r) {
13
- if ("object" != _typeof(t) || !t) return t;
14
- var e = t[Symbol.toPrimitive];
15
- if (void 0 !== e) {
16
- var i = e.call(t, r || "default");
17
- if ("object" != _typeof(i)) return i;
18
- throw new TypeError("@@toPrimitive must return a primitive value.");
19
- }
20
- return ("string" === r ? String : Number)(t);
21
- }
22
- //#endregion
23
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
24
- function toPropertyKey(t) {
25
- var i = toPrimitive(t, "string");
26
- return "symbol" == _typeof(i) ? i : i + "";
27
- }
28
- //#endregion
29
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
30
- function _defineProperty(e, r, t) {
31
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
32
- value: t,
33
- enumerable: !0,
34
- configurable: !0,
35
- writable: !0
36
- }) : e[r] = t, e;
37
- }
38
- //#endregion
39
- //#region src/utils/object.ts
40
- function definedEntries(value) {
41
- return Object.entries(value).filter(([, item]) => item !== void 0);
42
- }
43
- function omitUndefined(value) {
44
- return Object.fromEntries(definedEntries(value));
45
- }
46
- //#endregion
47
- Object.defineProperty(exports, "_defineProperty", {
48
- enumerable: true,
49
- get: function() {
50
- return _defineProperty;
51
- }
52
- });
53
- Object.defineProperty(exports, "omitUndefined", {
54
- enumerable: true,
55
- get: function() {
56
- return omitUndefined;
57
- }
58
- });