@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.
package/dist/index.js CHANGED
@@ -1307,18 +1307,12 @@ var themePlugin = createPlugin((options = {}) => ({
1307
1307
  order: 10,
1308
1308
  }`;
1309
1309
  if (code.includes("providers: []")) {
1310
- code = code.replace(
1311
- "providers: []",
1312
- `providers: [
1310
+ code = code.replace("providers: []", `providers: [
1313
1311
  ${providerEntry},
1314
- ]`
1315
- );
1312
+ ]`);
1316
1313
  } else if (code.includes("providers: [")) {
1317
- code = code.replace(
1318
- "providers: [",
1319
- `providers: [
1320
- ${providerEntry},`
1321
- );
1314
+ code = code.replace("providers: [", `providers: [
1315
+ ${providerEntry},`);
1322
1316
  }
1323
1317
  if (!code.includes("import React")) {
1324
1318
  code = code.replace(
@@ -1351,9 +1345,7 @@ function generateThemeProvider(opts) {
1351
1345
  sections.push(`// \u6B64\u6587\u4EF6\u7531 @4399ywkf/plugin-theme v3 \u81EA\u52A8\u751F\u6210\uFF0C\u8BF7\u52FF\u624B\u52A8\u4FEE\u6539`);
1352
1346
  sections.push(buildImports({ globalReset, cssVar, scopePopupContainer, locale }));
1353
1347
  sections.push(TYPES_CODE);
1354
- sections.push(
1355
- buildStoreCode({ defaultAppearance, primaryColor, neutralColor, locale })
1356
- );
1348
+ sections.push(buildStoreCode({ defaultAppearance, primaryColor, neutralColor, locale }));
1357
1349
  sections.push(HOOKS_CODE);
1358
1350
  if (globalReset) sections.push(GLOBAL_RESET_CODE);
1359
1351
  if (cssVar) sections.push(buildCssVarSyncCode());
@@ -1550,10 +1542,6 @@ const GlobalReset = createGlobalStyle(({ theme }) => css\`
1550
1542
  code {
1551
1543
  font-family: \${theme.fontFamilyCode} !important;
1552
1544
  }
1553
-
1554
- ::selection {
1555
- -webkit-text-fill-color: unset !important;
1556
- }
1557
1545
  \`);`;
1558
1546
  function buildCssVarSyncCode() {
1559
1547
  return `