@plumeria/core 0.21.5 → 0.22.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.
package/dist/index.js CHANGED
@@ -12,7 +12,9 @@ function create(object) {
12
12
  Object.entries(flat).forEach(([prop, value]) => {
13
13
  const hashes = new Set();
14
14
  const sheets = new Set();
15
- (0, zss_engine.processAtomicProps)({ [prop]: value }, hashes, sheets);
15
+ const seen = new Set();
16
+ const resultQueue = [];
17
+ (0, zss_engine.processAtomicProps)({ [prop]: value }, hashes, sheets, seen, resultQueue);
16
18
  const hashArray = [...hashes];
17
19
  const sheetArray = [...sheets];
18
20
  const baseSheetParts = [];
@@ -144,21 +146,21 @@ function global(object) {
144
146
 
145
147
  const keyframes = (object) => {
146
148
  const hash = (0, zss_engine.genBase36Hash)(object, 1, 8);
147
- const animationName = `kf-${hash}`;
148
- global({ [`@keyframes ${animationName}`]: object });
149
- return animationName;
149
+ const ident = `kf-${hash}`;
150
+ global({ [`@keyframes ${ident}`]: object });
151
+ return ident;
150
152
  };
151
153
 
152
154
  const viewTransition = (object) => {
153
155
  const hash = (0, zss_engine.genBase36Hash)(object, 1, 8);
154
- const transitionId = `vt-${hash}`;
156
+ const ident = `vt-${hash}`;
155
157
  global({
156
- [`::view-transition-group(${transitionId})`]: object.group,
157
- [`::view-transition-image-pair(${transitionId})`]: object.imagePair,
158
- [`::view-transition-old(${transitionId})`]: object.old,
159
- [`::view-transition-new(${transitionId})`]: object.new
158
+ [`::view-transition-group(${ident})`]: object.group,
159
+ [`::view-transition-image-pair(${ident})`]: object.imagePair,
160
+ [`::view-transition-old(${ident})`]: object.old,
161
+ [`::view-transition-new(${ident})`]: object.new
160
162
  });
161
- return transitionId;
163
+ return ident;
162
164
  };
163
165
 
164
166
  const defineTokens = (object) => {
package/dist/index.mjs CHANGED
@@ -12,7 +12,9 @@ function create(object) {
12
12
  Object.entries(flat).forEach(([prop, value]) => {
13
13
  const hashes = new Set();
14
14
  const sheets = new Set();
15
- processAtomicProps({ [prop]: value }, hashes, sheets);
15
+ const seen = new Set();
16
+ const resultQueue = [];
17
+ processAtomicProps({ [prop]: value }, hashes, sheets, seen, resultQueue);
16
18
  const hashArray = [...hashes];
17
19
  const sheetArray = [...sheets];
18
20
  const baseSheetParts = [];
@@ -144,21 +146,21 @@ function global(object) {
144
146
 
145
147
  const keyframes = (object) => {
146
148
  const hash = genBase36Hash(object, 1, 8);
147
- const animationName = `kf-${hash}`;
148
- global({ [`@keyframes ${animationName}`]: object });
149
- return animationName;
149
+ const ident = `kf-${hash}`;
150
+ global({ [`@keyframes ${ident}`]: object });
151
+ return ident;
150
152
  };
151
153
 
152
154
  const viewTransition = (object) => {
153
155
  const hash = genBase36Hash(object, 1, 8);
154
- const transitionId = `vt-${hash}`;
156
+ const ident = `vt-${hash}`;
155
157
  global({
156
- [`::view-transition-group(${transitionId})`]: object.group,
157
- [`::view-transition-image-pair(${transitionId})`]: object.imagePair,
158
- [`::view-transition-old(${transitionId})`]: object.old,
159
- [`::view-transition-new(${transitionId})`]: object.new
158
+ [`::view-transition-group(${ident})`]: object.group,
159
+ [`::view-transition-image-pair(${ident})`]: object.imagePair,
160
+ [`::view-transition-old(${ident})`]: object.old,
161
+ [`::view-transition-new(${ident})`]: object.new
160
162
  });
161
- return transitionId;
163
+ return ident;
162
164
  };
163
165
 
164
166
  const defineTokens = (object) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.21.5",
3
+ "version": "0.22.0",
4
4
  "description": "The atomic on-demand CSS-in-JS.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "stylesheet.css"
46
46
  ],
47
47
  "dependencies": {
48
- "zss-engine": "0.2.90"
48
+ "zss-engine": "0.2.91"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"