weapp-tailwindcss 5.0.11 → 5.0.13

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 (109) hide show
  1. package/dist/{bundle-state-BwtEqxvU.js → bundle-state-CKWeTEhv.js} +2 -40
  2. package/dist/{bundle-state-CXzPknlT.mjs → bundle-state-zQ2MrDdi.mjs} +2 -34
  3. package/dist/bundlers/gulp/vinyl-transform.d.ts +1 -1
  4. package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +7 -2
  5. package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -0
  6. package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +3 -0
  7. package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +7 -0
  8. package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +4 -0
  9. package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +15 -0
  10. package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +12 -0
  11. package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +22 -0
  12. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +5 -22
  13. package/dist/bundlers/shared/generator-css/types.d.ts +2 -0
  14. package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
  15. package/dist/bundlers/shared/hmr-timing.d.ts +1 -0
  16. package/dist/bundlers/vite/css-memory.d.ts +27 -0
  17. package/dist/bundlers/vite/generate-bundle/bundle-file-names.d.ts +2 -0
  18. package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +8 -0
  19. package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +4 -0
  20. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +5 -0
  21. package/dist/bundlers/vite/generate-bundle/css-output.d.ts +9 -7
  22. package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +7 -0
  23. package/dist/bundlers/vite/generate-bundle/finalize.d.ts +58 -0
  24. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +31 -0
  25. package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +77 -0
  26. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +53 -0
  27. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
  28. package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +4 -0
  29. package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +21 -0
  30. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -1
  31. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +29 -0
  32. package/dist/bundlers/vite/generate-bundle/timing.d.ts +1 -0
  33. package/dist/bundlers/vite/generate-bundle/types.d.ts +7 -0
  34. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +20 -0
  35. package/dist/bundlers/vite/generate-bundle/vite-css-cache.d.ts +6 -0
  36. package/dist/bundlers/vite/generate-bundle.d.ts +2 -1
  37. package/dist/bundlers/vite/hot-css-modules.d.ts +5 -0
  38. package/dist/bundlers/vite/map-cache.d.ts +2 -0
  39. package/dist/bundlers/vite/processed-css-assets.d.ts +16 -0
  40. package/dist/bundlers/vite/resolve-app-type.d.ts +1 -2
  41. package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +13 -0
  42. package/dist/bundlers/vite/source-candidates.d.ts +9 -0
  43. package/dist/bundlers/vite/source-scan/css-entries.d.ts +1 -0
  44. package/dist/bundlers/vite/source-scan.d.ts +1 -1
  45. package/dist/bundlers/vite/weapp-vite-config.d.ts +3 -0
  46. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -8
  47. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +2 -0
  48. package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +5 -0
  49. package/dist/cache/index.d.ts +4 -0
  50. package/dist/cli.js +9 -2
  51. package/dist/cli.mjs +8 -1
  52. package/dist/core.d.ts +7 -0
  53. package/dist/core.js +8 -5
  54. package/dist/core.mjs +8 -5
  55. package/dist/css-macro.js +1 -1
  56. package/dist/css-macro.mjs +1 -1
  57. package/dist/{defaults-DH0ZQRhy.mjs → defaults-Bqx18S1f.mjs} +2 -35
  58. package/dist/{defaults-Boc26eel.js → defaults-C_J_kBpw.js} +2 -35
  59. package/dist/defaults.js +1 -1
  60. package/dist/defaults.mjs +1 -1
  61. package/dist/framework/index.d.ts +59 -0
  62. package/dist/framework.d.ts +1 -0
  63. package/dist/framework.js +198 -0
  64. package/dist/framework.mjs +180 -0
  65. package/dist/{generator-ChgOWNOj.js → generator-CzpArpCL.js} +1 -1
  66. package/dist/{generator-h2XRiJ9-.mjs → generator-ITLd7PTl.mjs} +1 -1
  67. package/dist/generator.js +2 -2
  68. package/dist/generator.mjs +2 -2
  69. package/dist/{gulp-Be88jhoY.mjs → gulp-DfOQERcV.mjs} +137 -23
  70. package/dist/{gulp-CHtZF-oT.js → gulp-XT8Jc7lH.js} +137 -23
  71. package/dist/gulp.js +1 -1
  72. package/dist/gulp.mjs +1 -1
  73. package/dist/{hmr-timing-BkivBZvN.js → hmr-timing-BMftW7Us.js} +354 -225
  74. package/dist/{hmr-timing-Ct5w4hdM.mjs → hmr-timing-DQIP_8qP.mjs} +341 -225
  75. package/dist/index.d.ts +1 -0
  76. package/dist/index.js +20 -4
  77. package/dist/index.mjs +6 -5
  78. package/dist/postcss.js +9 -10
  79. package/dist/postcss.mjs +7 -5
  80. package/dist/{precheck-CY9oaH49.js → precheck-B0Z8yW7E.js} +108 -27
  81. package/dist/{precheck-BpHxsWRd.mjs → precheck-CRI90iL1.mjs} +109 -28
  82. package/dist/presets.js +3 -3
  83. package/dist/presets.mjs +3 -3
  84. package/dist/tailwindcss/source-scan.d.ts +1 -0
  85. package/dist/tailwindcss/v3-engine/generator.d.ts +17 -0
  86. package/dist/tailwindcss/v3-engine/index.d.ts +1 -1
  87. package/dist/tailwindcss/v3-engine/types.d.ts +1 -0
  88. package/dist/tailwindcss/v4-engine/generator.d.ts +19 -0
  89. package/dist/tailwindcss/v4-engine/index.d.ts +1 -1
  90. package/dist/{tailwindcss-Bfy2egdX.mjs → tailwindcss-DTq3uYBK.mjs} +2 -2
  91. package/dist/{tailwindcss-DbbAKAZP.js → tailwindcss-DZEwT3C_.js} +3 -3
  92. package/dist/{transform-r5evL6Hn.mjs → transform-DfcEjsZF.mjs} +29 -21
  93. package/dist/{transform-Cd634UZV.js → transform-YmrmxuF3.js} +29 -21
  94. package/dist/types/user-defined-options/general.d.ts +3 -1
  95. package/dist/{utils-Dolmt8EO.js → utils-BCa37Wqj.js} +2 -17
  96. package/dist/{utils-DsaS975I.mjs → utils-DodxWHGz.mjs} +2 -17
  97. package/dist/{v3-engine-D0yA9ZkF.js → v3-engine-2rrgylhn.js} +194 -34
  98. package/dist/{v3-engine-CFkP6dWF.mjs → v3-engine-C6eJ0YzK.mjs} +176 -34
  99. package/dist/{vite-j9cB2Ff1.js → vite-CXHVsHmX.js} +2071 -1160
  100. package/dist/{vite-Bd8qf9dK.mjs → vite-DjI09vVN.mjs} +2071 -1160
  101. package/dist/vite.js +1 -1
  102. package/dist/vite.mjs +1 -1
  103. package/dist/weapp-tw-css-import-rewrite-loader.js +476 -217
  104. package/dist/weapp-tw-runtime-classset-loader.js +25 -0
  105. package/dist/{webpack-DPdrcC2X.mjs → webpack-BcPpnT90.mjs} +251 -40
  106. package/dist/{webpack-CJAOcYEO.js → webpack-CfkUkMXG.js} +254 -43
  107. package/dist/webpack.js +1 -1
  108. package/dist/webpack.mjs +1 -1
  109. package/package.json +10 -5
@@ -1,4 +1,4 @@
1
- import { c as createAttributeMatcher, d as _defineProperty, f as isClassContextLiteralPath, l as analyzeSource, m as babelParse, p as replaceWxml, s as generateCode, u as JsTokenUpdater } from "./precheck-BpHxsWRd.mjs";
1
+ import { c as createAttributeMatcher, d as _defineProperty, f as isClassContextLiteralPath, l as analyzeSource, m as babelParse, p as replaceWxml, s as generateCode, u as JsTokenUpdater } from "./precheck-CRI90iL1.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { splitCandidateTokens } from "tailwindcss-patch";
4
4
  import MagicString from "magic-string";
@@ -6,9 +6,9 @@ import MagicString from "magic-string";
6
6
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
7
7
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
8
8
  //#endregion
9
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.prod.js
9
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.prod.js
10
10
  /**
11
- * @vue/shared v3.5.35
11
+ * @vue/shared v3.5.38
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
14
  **/
@@ -492,9 +492,9 @@ var require_shared_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) => {
492
492
  exports.toTypeString = toTypeString;
493
493
  }));
494
494
  //#endregion
495
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.js
495
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.js
496
496
  /**
497
- * @vue/shared v3.5.35
497
+ * @vue/shared v3.5.38
498
498
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
499
499
  * @license MIT
500
500
  **/
@@ -979,7 +979,7 @@ var require_shared_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
979
979
  exports.toTypeString = toTypeString;
980
980
  }));
981
981
  //#endregion
982
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/index.js
982
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/index.js
983
983
  var require_shared = /* @__PURE__ */ __commonJSMin(((exports, module) => {
984
984
  if (process.env.NODE_ENV === "production") module.exports = require_shared_cjs_prod();
985
985
  else module.exports = require_shared_cjs();
@@ -3916,9 +3916,9 @@ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
3916
3916
  exports.SourceNode = require_source_node().SourceNode;
3917
3917
  }));
3918
3918
  //#endregion
3919
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3919
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3920
3920
  /**
3921
- * @vue/compiler-core v3.5.35
3921
+ * @vue/compiler-core v3.5.38
3922
3922
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
3923
3923
  * @license MIT
3924
3924
  **/
@@ -5963,7 +5963,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5963
5963
  }
5964
5964
  },
5965
5965
  oncdata(start, end) {
5966
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
5966
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
5967
5967
  else emitError(1, start - 9);
5968
5968
  },
5969
5969
  onprocessinginstruction(start) {
@@ -6477,6 +6477,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6477
6477
  imports: [],
6478
6478
  cached: [],
6479
6479
  constantCache: /* @__PURE__ */ new WeakMap(),
6480
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
6480
6481
  temps: 0,
6481
6482
  identifiers: /* @__PURE__ */ Object.create(null),
6482
6483
  scopes: {
@@ -7228,7 +7229,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7228
7229
  if (dir.type === 7 && dir.name !== "for") {
7229
7230
  const exp = dir.exp;
7230
7231
  const arg = dir.arg;
7231
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7232
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7232
7233
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
7233
7234
  }
7234
7235
  }
@@ -7479,7 +7480,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7479
7480
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
7480
7481
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
7481
7482
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
7482
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7483
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
7484
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7485
+ if (memo) context.vForMemoKeyedNodes.add(node);
7486
+ }
7483
7487
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
7484
7488
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
7485
7489
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -8672,9 +8676,9 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
8672
8676
  exports.warnDeprecation = warnDeprecation;
8673
8677
  }));
8674
8678
  //#endregion
8675
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8679
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8676
8680
  /**
8677
- * @vue/compiler-core v3.5.35
8681
+ * @vue/compiler-core v3.5.38
8678
8682
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8679
8683
  * @license MIT
8680
8684
  **/
@@ -10723,7 +10727,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
10723
10727
  }
10724
10728
  },
10725
10729
  oncdata(start, end) {
10726
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
10730
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
10727
10731
  else emitError(1, start - 9);
10728
10732
  },
10729
10733
  onprocessinginstruction(start) {
@@ -11254,6 +11258,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
11254
11258
  imports: [],
11255
11259
  cached: [],
11256
11260
  constantCache: /* @__PURE__ */ new WeakMap(),
11261
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
11257
11262
  temps: 0,
11258
11263
  identifiers: /* @__PURE__ */ Object.create(null),
11259
11264
  scopes: {
@@ -12020,7 +12025,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12020
12025
  if (dir.type === 7 && dir.name !== "for") {
12021
12026
  const exp = dir.exp;
12022
12027
  const arg = dir.arg;
12023
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12028
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12024
12029
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
12025
12030
  }
12026
12031
  }
@@ -12278,7 +12283,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12278
12283
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
12279
12284
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
12280
12285
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
12281
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12286
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
12287
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12288
+ if (memo) context.vForMemoKeyedNodes.add(node);
12289
+ }
12282
12290
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
12283
12291
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
12284
12292
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -13485,15 +13493,15 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
13485
13493
  exports.warnDeprecation = warnDeprecation;
13486
13494
  }));
13487
13495
  //#endregion
13488
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/index.js
13496
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/index.js
13489
13497
  var require_compiler_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13490
13498
  if (process.env.NODE_ENV === "production") module.exports = require_compiler_core_cjs_prod();
13491
13499
  else module.exports = require_compiler_core_cjs();
13492
13500
  }));
13493
13501
  //#endregion
13494
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13502
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13495
13503
  /**
13496
- * @vue/compiler-dom v3.5.35
13504
+ * @vue/compiler-dom v3.5.38
13497
13505
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13498
13506
  * @license MIT
13499
13507
  **/
@@ -13926,9 +13934,9 @@ var require_compiler_dom_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) =>
13926
13934
  });
13927
13935
  }));
13928
13936
  //#endregion
13929
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13937
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13930
13938
  /**
13931
- * @vue/compiler-dom v3.5.35
13939
+ * @vue/compiler-dom v3.5.38
13932
13940
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13933
13941
  * @license MIT
13934
13942
  **/
@@ -1,11 +1,11 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_precheck = require("./precheck-CY9oaH49.js");
2
+ const require_precheck = require("./precheck-B0Z8yW7E.js");
3
3
  let tailwindcss_patch = require("tailwindcss-patch");
4
4
  let magic_string = require("magic-string");
5
5
  magic_string = require_chunk.__toESM(magic_string);
6
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.prod.js
6
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.prod.js
7
7
  /**
8
- * @vue/shared v3.5.35
8
+ * @vue/shared v3.5.38
9
9
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
10
10
  * @license MIT
11
11
  **/
@@ -489,9 +489,9 @@ var require_shared_cjs_prod = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
489
489
  exports.toTypeString = toTypeString;
490
490
  }));
491
491
  //#endregion
492
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.js
492
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.js
493
493
  /**
494
- * @vue/shared v3.5.35
494
+ * @vue/shared v3.5.38
495
495
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
496
496
  * @license MIT
497
497
  **/
@@ -976,7 +976,7 @@ var require_shared_cjs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
976
976
  exports.toTypeString = toTypeString;
977
977
  }));
978
978
  //#endregion
979
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/index.js
979
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/index.js
980
980
  var require_shared = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
981
981
  if (process.env.NODE_ENV === "production") module.exports = require_shared_cjs_prod();
982
982
  else module.exports = require_shared_cjs();
@@ -3913,9 +3913,9 @@ var require_source_map = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
3913
3913
  exports.SourceNode = require_source_node().SourceNode;
3914
3914
  }));
3915
3915
  //#endregion
3916
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3916
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3917
3917
  /**
3918
- * @vue/compiler-core v3.5.35
3918
+ * @vue/compiler-core v3.5.38
3919
3919
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
3920
3920
  * @license MIT
3921
3921
  **/
@@ -5960,7 +5960,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5960
5960
  }
5961
5961
  },
5962
5962
  oncdata(start, end) {
5963
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
5963
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
5964
5964
  else emitError(1, start - 9);
5965
5965
  },
5966
5966
  onprocessinginstruction(start) {
@@ -6474,6 +6474,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6474
6474
  imports: [],
6475
6475
  cached: [],
6476
6476
  constantCache: /* @__PURE__ */ new WeakMap(),
6477
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
6477
6478
  temps: 0,
6478
6479
  identifiers: /* @__PURE__ */ Object.create(null),
6479
6480
  scopes: {
@@ -7225,7 +7226,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7225
7226
  if (dir.type === 7 && dir.name !== "for") {
7226
7227
  const exp = dir.exp;
7227
7228
  const arg = dir.arg;
7228
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7229
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7229
7230
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
7230
7231
  }
7231
7232
  }
@@ -7476,7 +7477,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7476
7477
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
7477
7478
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
7478
7479
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
7479
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7480
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
7481
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7482
+ if (memo) context.vForMemoKeyedNodes.add(node);
7483
+ }
7480
7484
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
7481
7485
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
7482
7486
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -8669,9 +8673,9 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
8669
8673
  exports.warnDeprecation = warnDeprecation;
8670
8674
  }));
8671
8675
  //#endregion
8672
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8676
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8673
8677
  /**
8674
- * @vue/compiler-core v3.5.35
8678
+ * @vue/compiler-core v3.5.38
8675
8679
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8676
8680
  * @license MIT
8677
8681
  **/
@@ -10720,7 +10724,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
10720
10724
  }
10721
10725
  },
10722
10726
  oncdata(start, end) {
10723
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
10727
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
10724
10728
  else emitError(1, start - 9);
10725
10729
  },
10726
10730
  onprocessinginstruction(start) {
@@ -11251,6 +11255,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
11251
11255
  imports: [],
11252
11256
  cached: [],
11253
11257
  constantCache: /* @__PURE__ */ new WeakMap(),
11258
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
11254
11259
  temps: 0,
11255
11260
  identifiers: /* @__PURE__ */ Object.create(null),
11256
11261
  scopes: {
@@ -12017,7 +12022,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12017
12022
  if (dir.type === 7 && dir.name !== "for") {
12018
12023
  const exp = dir.exp;
12019
12024
  const arg = dir.arg;
12020
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12025
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12021
12026
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
12022
12027
  }
12023
12028
  }
@@ -12275,7 +12280,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12275
12280
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
12276
12281
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
12277
12282
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
12278
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12283
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
12284
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12285
+ if (memo) context.vForMemoKeyedNodes.add(node);
12286
+ }
12279
12287
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
12280
12288
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
12281
12289
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -13482,15 +13490,15 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
13482
13490
  exports.warnDeprecation = warnDeprecation;
13483
13491
  }));
13484
13492
  //#endregion
13485
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/index.js
13493
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/index.js
13486
13494
  var require_compiler_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
13487
13495
  if (process.env.NODE_ENV === "production") module.exports = require_compiler_core_cjs_prod();
13488
13496
  else module.exports = require_compiler_core_cjs();
13489
13497
  }));
13490
13498
  //#endregion
13491
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13499
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13492
13500
  /**
13493
- * @vue/compiler-dom v3.5.35
13501
+ * @vue/compiler-dom v3.5.38
13494
13502
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13495
13503
  * @license MIT
13496
13504
  **/
@@ -13923,9 +13931,9 @@ var require_compiler_dom_cjs_prod = /* @__PURE__ */ require_chunk.__commonJSMin(
13923
13931
  });
13924
13932
  }));
13925
13933
  //#endregion
13926
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13934
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13927
13935
  /**
13928
- * @vue/compiler-dom v3.5.35
13936
+ * @vue/compiler-dom v3.5.38
13929
13937
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13930
13938
  * @license MIT
13931
13939
  **/
@@ -1,5 +1,5 @@
1
1
  import type { ParserOptions } from '@babel/parser';
2
- import type { LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { CssOptions, LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
3
3
  import type { ILengthUnitsPatchOptions, TailwindCssPatchOptions } from 'tailwindcss-patch';
4
4
  import type { ICreateCacheReturnType } from '../../cache';
5
5
  import type { WeappTailwindcssGeneratorUserOptions } from '../../generator';
@@ -30,8 +30,10 @@ export interface UserDefinedOptionsGeneralPart {
30
30
  }) | undefined;
31
31
  cssChildCombinatorReplaceValue?: string | string[] | undefined;
32
32
  postcssOptions?: LoadedPostcssOptions | undefined;
33
+ cssOptions?: CssOptions | undefined;
33
34
  cssRemoveHoverPseudoClass?: boolean | undefined;
34
35
  cssRemoveProperty?: boolean | undefined;
36
+ tailwindcssV4GradientFallback?: boolean | undefined;
35
37
  tailwindcssPatcherOptions?: TailwindCssPatchOptions | undefined;
36
38
  logLevel?: 'info' | 'warn' | 'error' | 'silent' | undefined;
37
39
  }
@@ -1,26 +1,11 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
+ const require_framework = require("./framework.js");
2
3
  let node_process = require("node:process");
3
4
  node_process = require_chunk.__toESM(node_process);
4
5
  require("@weapp-tailwindcss/shared");
5
6
  //#region src/utils/uni-platform.ts
6
- function normalizePlatform(value) {
7
- return value?.trim().toLowerCase() || void 0;
8
- }
9
7
  function resolveUniUtsPlatform(value = node_process.default.env["UNI_UTS_PLATFORM"]) {
10
- const normalized = normalizePlatform(value);
11
- const isAppAndroid = normalized === "app-android";
12
- const isAppIos = normalized === "app-ios";
13
- const isAppHarmony = normalized === "app-harmony";
14
- return {
15
- raw: value,
16
- normalized,
17
- isApp: normalized?.startsWith("app-") === true || normalized === "app" || normalized === "app-plus",
18
- isAppAndroid,
19
- isAppHarmony,
20
- isAppIos,
21
- isMp: normalized?.startsWith("mp-") === true,
22
- isWeb: normalized?.startsWith("web") === true || normalized === "h5"
23
- };
8
+ return require_framework.resolveUniUtsPlatform(value);
24
9
  }
25
10
  //#endregion
26
11
  //#region src/utils/index.ts
@@ -1,24 +1,9 @@
1
+ import { resolveUniUtsPlatform as resolveUniUtsPlatform$1 } from "./framework.mjs";
1
2
  import process from "node:process";
2
3
  import { defu, defuOverrideArray as defuOverrideArray$1, isMap, noop } from "@weapp-tailwindcss/shared";
3
4
  //#region src/utils/uni-platform.ts
4
- function normalizePlatform(value) {
5
- return value?.trim().toLowerCase() || void 0;
6
- }
7
5
  function resolveUniUtsPlatform(value = process.env["UNI_UTS_PLATFORM"]) {
8
- const normalized = normalizePlatform(value);
9
- const isAppAndroid = normalized === "app-android";
10
- const isAppIos = normalized === "app-ios";
11
- const isAppHarmony = normalized === "app-harmony";
12
- return {
13
- raw: value,
14
- normalized,
15
- isApp: normalized?.startsWith("app-") === true || normalized === "app" || normalized === "app-plus",
16
- isAppAndroid,
17
- isAppHarmony,
18
- isAppIos,
19
- isMp: normalized?.startsWith("mp-") === true,
20
- isWeb: normalized?.startsWith("web") === true || normalized === "h5"
21
- };
6
+ return resolveUniUtsPlatform$1(value);
22
7
  }
23
8
  //#endregion
24
9
  //#region src/utils/index.ts