@caqophony/ui 0.6.0 → 0.6.1

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/marketing.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
 
14
14
  // src/marketing/marketing-header.tsx
15
15
  import * as React from "react";
16
- import { createPortal } from "react-dom";
16
+ import { createPortal, flushSync } from "react-dom";
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
18
18
  var NIGHT_GROUND = "-mb-16 justify-between border-b border-border bg-night-0/80 backdrop-blur-md";
19
19
  var ON_DARK_GROUND = "text-background dark:text-foreground";
@@ -50,7 +50,7 @@ function useFold(refs, actionsHost, hasLinks) {
50
50
  );
51
51
  };
52
52
  measure();
53
- const observer = new ResizeObserver(measure);
53
+ const observer = new ResizeObserver(() => flushSync(measure));
54
54
  for (const el of [
55
55
  bar.current,
56
56
  brandText.current,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caqophony/ui",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Generic, optional React UI reuse library (Gossamer tokens). Centrally maintained by Caqophony.",
5
5
  "license": "MIT",
6
6
  "author": "Caqophony",