@plumeria/vite-plugin 6.3.2 → 7.0.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 (2) hide show
  1. package/dist/index.js +5 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -269,7 +269,7 @@ export function plumeria(options = {}) {
269
269
  if (obj) {
270
270
  const hashMap = {};
271
271
  Object.entries(obj).forEach(([key, style]) => {
272
- const records = getStyleRecords(key, style);
272
+ const records = getStyleRecords(style);
273
273
  extractOndemandStyles(style, extractedSheets, scannedTables);
274
274
  records.forEach((r) => {
275
275
  addSheet(r.sheet);
@@ -461,9 +461,9 @@ export function plumeria(options = {}) {
461
461
  const obj = objectExpressionToObject(args[0].expression, mergedStaticTable, mergedKeyframesTable, mergedViewTransitionTable, mergedCreateThemeHashTable, scannedTables.createThemeObjectTable, mergedCreateTable, mergedCreateStaticHashTable, scannedTables.createStaticObjectTable, mergedVariantsTable);
462
462
  const hash = genBase36Hash(obj, 1, 8);
463
463
  scannedTables.createObjectTable[hash] = obj;
464
- Object.entries(obj).forEach(([key, style]) => {
464
+ Object.entries(obj).forEach(([_key, style]) => {
465
465
  if (typeof style === 'object' && style !== null) {
466
- const records = getStyleRecords(key, style);
466
+ const records = getStyleRecords(style);
467
467
  extractOndemandStyles(style, extractedSheets, scannedTables);
468
468
  records.forEach((r) => addSheet(r.sheet));
469
469
  }
@@ -809,8 +809,7 @@ export function plumeria(options = {}) {
809
809
  (args.length > 0 || Object.keys(baseStyle).length > 0)) {
810
810
  if (conditionals.length === 0) {
811
811
  extractOndemandStyles(baseStyle, extractedSheets, scannedTables);
812
- const hash = genBase36Hash(baseStyle, 1, 8);
813
- const records = getStyleRecords(hash, baseStyle);
812
+ const records = getStyleRecords(baseStyle);
814
813
  records.forEach((r) => addSheet(r.sheet));
815
814
  const className = records
816
815
  .map((r) => r.hash)
@@ -862,8 +861,7 @@ export function plumeria(options = {}) {
862
861
  }
863
862
  }
864
863
  extractOndemandStyles(currentStyle, extractedSheets, scannedTables);
865
- const hash = genBase36Hash(currentStyle, 1, 8);
866
- const records = getStyleRecords(hash, currentStyle);
864
+ const records = getStyleRecords(currentStyle);
867
865
  records.forEach((r) => extractedSheets.push(r.sheet));
868
866
  const className = records
869
867
  .map((r) => r.hash)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/vite-plugin",
3
- "version": "6.3.2",
3
+ "version": "7.0.0",
4
4
  "type": "module",
5
5
  "description": "Plumeria Vite plugin",
6
6
  "author": "Refirst 11",
@@ -22,12 +22,12 @@
22
22
  "dist/"
23
23
  ],
24
24
  "dependencies": {
25
- "@plumeria/utils": "^6.3.2"
25
+ "@plumeria/utils": "^7.0.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@swc/core": "1.15.8",
29
29
  "vite": "^7.1.1",
30
- "zss-engine": "2.2.0"
30
+ "zss-engine": "2.2.3"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public",