@sophostechne/ui 0.18.2 → 0.18.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to `@sophostechne/ui` are documented here. Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 0.18.3
6
+
7
+ ### Fixed
8
+
9
+ - **Package root is importable again** — `index` exported `NousGirlBadge` from `./ui/components/badges/sophos-girl`, but the file was still named `nous-girl`; the `nous` → `sophos` rename rewrote import paths without renaming the files. Any `import … from '@sophostechne/ui'` threw `ERR_MODULE_NOT_FOUND`. The badge source and its build output are now `sophos-girl.*` (the exported symbol `NousGirlBadge` is unchanged).
10
+ - **Extensionless imports in the build output** — `dist/index.js` imported the directory `./ui/components/overlays`, and `dist/ui/components/overlays/index.js` imported `./lens`. Neither resolves under Node ESM; both now carry explicit `/index.js` and `.js` specifiers.
11
+ - **`three` peer range excluded the version the package is built against** — `three` is 0.x, so `^0.180.0` means `>=0.180.0 <0.181.0`, and installing the `0.184.0` in `devDependencies` failed peer resolution. Widened to `>=0.180.0 <0.185.0`.
12
+
13
+ ### Known issues
14
+
15
+ - `three` and `gsap` are declared optional peers but are imported unconditionally by the root barrel (`utils/index.js` and `hooks/use-smooth-controls.js`). Importing `@sophostechne/ui` requires both installed; subpath imports are unaffected.
16
+
5
17
  ## 0.18.2
6
18
 
7
19
  ### Changed
package/dist/index.js CHANGED
@@ -50,7 +50,7 @@ export {
50
50
  lens5i,
51
51
  toggleLens,
52
52
  $lightMode
53
- } from "./ui/components/overlays";
53
+ } from "./ui/components/overlays/index.js";
54
54
  export {
55
55
  Glitch,
56
56
  Greys,
@@ -20,7 +20,7 @@ export {
20
20
  LENS_5I,
21
21
  LENSES,
22
22
  toggleLens
23
- } from "./lens";
23
+ } from "./lens.js";
24
24
  const LAYER = "pointer-events-none fixed inset-0";
25
25
  export function Overlays({ dark, initial }) {
26
26
  return /* @__PURE__ */ jsxs(Fragment, { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sophostechne/ui",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -102,7 +102,7 @@
102
102
  "motion": "^12.38.0",
103
103
  "react": "^19.0.0",
104
104
  "react-dom": "^19.0.0",
105
- "three": "^0.180.0"
105
+ "three": ">=0.180.0 <0.185.0"
106
106
  },
107
107
  "peerDependenciesMeta": {
108
108
  "three": {