@plumeria/utils 10.0.7 → 10.1.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/parser.js +15 -3
  2. package/package.json +1 -1
package/dist/parser.js CHANGED
@@ -896,13 +896,25 @@ function extractOndemandStyles(obj, extractedSheets, t) {
896
896
  Object.values(n).forEach((val) => {
897
897
  if (typeof val === 'string') {
898
898
  if (val.startsWith('kf-')) {
899
- keyframesHashes.add(val.slice(3));
899
+ const hash = val.slice(3);
900
+ if (!keyframesHashes.has(hash)) {
901
+ keyframesHashes.add(hash);
902
+ walk(t.keyframesObjectTable[hash]);
903
+ }
900
904
  }
901
905
  else if (val.startsWith('vt-')) {
902
- viewTransitionHashes.add(val.slice(3));
906
+ const hash = val.slice(3);
907
+ if (!viewTransitionHashes.has(hash)) {
908
+ viewTransitionHashes.add(hash);
909
+ walk(t.viewTransitionObjectTable[hash]);
910
+ }
903
911
  }
904
912
  else if (val.startsWith('cr-')) {
905
- createHashes.add(val.slice(3));
913
+ const hash = val.slice(3);
914
+ if (!createHashes.has(hash)) {
915
+ createHashes.add(hash);
916
+ walk(t.createObjectTable[hash]);
917
+ }
906
918
  }
907
919
  else if (val.includes('var(--')) {
908
920
  let startIdx = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "10.0.7",
3
+ "version": "10.1.0",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",