@octanejs/thinking-orbs 0.1.10 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/thinking-orbs",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -31,12 +31,12 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "peerDependencies": {
34
- "octane": "^0.10.0"
34
+ "octane": "^0.11.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tsrx/react": "^0.3.7",
37
+ "@tsrx/react": "^0.4.5",
38
38
  "esbuild": "^0.28.1",
39
- "octane": "0.10.0",
39
+ "octane": "0.11.0",
40
40
  "react": "19.2.7",
41
41
  "react-dom": "19.2.7",
42
42
  "thinking-orbs": "0.2.0",
@@ -35,7 +35,7 @@ export function ThinkingOrb({
35
35
  useEffect(() => {
36
36
  const canvas = ref.current;
37
37
  if (!canvas) return;
38
- const dpr = Math.min(2, typeof devicePixelRatio !== 'undefined' && devicePixelRatio || 1);
38
+ const dpr = Math.min(2, (typeof devicePixelRatio !== 'undefined' && devicePixelRatio) || 1);
39
39
  canvas.width = Math.round(size * dpr);
40
40
  canvas.height = Math.round(size * dpr);
41
41
  const ctx = canvas.getContext('2d');
@@ -99,11 +99,13 @@ export function ThinkingOrb({
99
99
  };
100
100
  }, [state, size, dark, speed, paused, reduced]);
101
101
 
102
- return <canvas
103
- ref={ref}
104
- role="img"
105
- aria-label={ariaLabel ?? LABELS[state]}
106
- style={{ width: size, height: size, display: 'block', ...style }}
107
- {...rest}
108
- />;
102
+ return (
103
+ <canvas
104
+ ref={ref}
105
+ role="img"
106
+ aria-label={ariaLabel ?? LABELS[state]}
107
+ style={{ width: size, height: size, display: 'block', ...style }}
108
+ {...rest}
109
+ />
110
+ );
109
111
  }