@4399ywkf/core 5.0.29 → 5.0.31

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.
@@ -1297,18 +1297,12 @@ var themePlugin = createPlugin((options = {}) => ({
1297
1297
  order: 10,
1298
1298
  }`;
1299
1299
  if (code.includes("providers: []")) {
1300
- code = code.replace(
1301
- "providers: []",
1302
- `providers: [
1300
+ code = code.replace("providers: []", `providers: [
1303
1301
  ${providerEntry},
1304
- ]`
1305
- );
1302
+ ]`);
1306
1303
  } else if (code.includes("providers: [")) {
1307
- code = code.replace(
1308
- "providers: [",
1309
- `providers: [
1310
- ${providerEntry},`
1311
- );
1304
+ code = code.replace("providers: [", `providers: [
1305
+ ${providerEntry},`);
1312
1306
  }
1313
1307
  if (!code.includes("import React")) {
1314
1308
  code = code.replace(
@@ -1341,9 +1335,7 @@ function generateThemeProvider(opts) {
1341
1335
  sections.push(`// \u6B64\u6587\u4EF6\u7531 @4399ywkf/plugin-theme v3 \u81EA\u52A8\u751F\u6210\uFF0C\u8BF7\u52FF\u624B\u52A8\u4FEE\u6539`);
1342
1336
  sections.push(buildImports({ globalReset, cssVar, scopePopupContainer, locale }));
1343
1337
  sections.push(TYPES_CODE);
1344
- sections.push(
1345
- buildStoreCode({ defaultAppearance, primaryColor, neutralColor, locale })
1346
- );
1338
+ sections.push(buildStoreCode({ defaultAppearance, primaryColor, neutralColor, locale }));
1347
1339
  sections.push(HOOKS_CODE);
1348
1340
  if (globalReset) sections.push(GLOBAL_RESET_CODE);
1349
1341
  if (cssVar) sections.push(buildCssVarSyncCode());
@@ -1540,10 +1532,6 @@ const GlobalReset = createGlobalStyle(({ theme }) => css\`
1540
1532
  code {
1541
1533
  font-family: \${theme.fontFamilyCode} !important;
1542
1534
  }
1543
-
1544
- ::selection {
1545
- -webkit-text-fill-color: unset !important;
1546
- }
1547
1535
  \`);`;
1548
1536
  function buildCssVarSyncCode() {
1549
1537
  return `