css-in-js-engine-pb 0.1.8 → 0.1.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"insertWithBucket.d.ts","sourceRoot":"","sources":["../src/insertWithBucket.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAqB5C,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,WAAW,QAuEtB"}
1
+ {"version":3,"file":"insertWithBucket.d.ts","sourceRoot":"","sources":["../src/insertWithBucket.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAoC5C,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,WAAW,QAuEtB"}
@@ -13,6 +13,19 @@ const ORDER = [
13
13
  StyleBucket.Focus,
14
14
  StyleBucket.User,
15
15
  ];
16
+ // Buckets that should NOT block ordering if unused
17
+ const OPTIONAL_BUCKETS = [
18
+ StyleBucket.Base,
19
+ StyleBucket.Size,
20
+ StyleBucket.Shape,
21
+ StyleBucket.State,
22
+ StyleBucket.Focus,
23
+ StyleBucket.User,
24
+ ];
25
+ // Mark optional buckets as seen by default
26
+ for (const b of OPTIONAL_BUCKETS) {
27
+ seenBuckets.add(b);
28
+ }
16
29
  function bucketName(bucket) {
17
30
  var _a;
18
31
  return (_a = StyleBucket[bucket]) !== null && _a !== void 0 ? _a : `UNKNOWN(${bucket})`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-in-js-engine-pb",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "A lightweight atomic CSS-in-JS engine built on the native CSS cascade",
5
5
  "license": "MIT",
6
6
  "type": "module",