@spaced-out/ui-design-system 0.6.16 → 0.6.17

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,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.6.17](https://github.com/spaced-out/ui-design-system/compare/v0.6.16...v0.6.17) (2026-05-13)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **Voiceorb:** gds-560 use ref to update volume ([#483](https://github.com/spaced-out/ui-design-system/issues/483)) ([2c2ffee](https://github.com/spaced-out/ui-design-system/commit/2c2ffee9243abca31b9ad90df4cb70b28c8ed265))
11
+
12
+ ### [0.6.17](https://github.com/spaced-out/ui-design-system/compare/v0.6.16...v0.6.17) (2026-05-13)
13
+
14
+
15
+ ### Features
16
+
17
+ * **VoiceOrb:** replace `volumeTickEvent` window event API with imperative `VoiceOrbHandle` ref (`setVolume`)
18
+
19
+
20
+ ### BREAKING CHANGES
21
+
22
+ * **VoiceOrb:** `volumeTickEvent` prop removed; callers must pass a `ref` of type `VoiceOrbHandle` and call `ref.current.setVolume(volume)` instead of dispatching a CustomEvent on `window`. The forwarded ref type also changed from `HTMLDivElement` to `VoiceOrbHandle`.
23
+
5
24
  ### [0.6.16](https://github.com/spaced-out/ui-design-system/compare/v0.6.15...v0.6.16) (2026-05-12)
6
25
 
7
26
 
@@ -4,15 +4,16 @@ type ClassNames = Readonly<{
4
4
  orbContainer?: string;
5
5
  orb?: string;
6
6
  }>;
7
+ export interface VoiceOrbHandle {
8
+ setVolume: (volume: number) => void;
9
+ }
7
10
  export interface VoiceOrbProps {
8
11
  classNames?: ClassNames;
9
12
  /** Enable listening to microphone audio input for bar animation */
10
13
  enableMicrophone?: boolean;
11
- /** Custom event name to listen for agent volume updates. Default `'agent_volume_update'`. */
12
- volumeTickEvent?: string;
13
14
  testId?: string;
14
15
  loading?: boolean;
15
16
  }
16
- export declare const VoiceOrb: React.ForwardRefExoticComponent<VoiceOrbProps & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const VoiceOrb: React.ForwardRefExoticComponent<VoiceOrbProps & React.RefAttributes<VoiceOrbHandle>>;
17
18
  export {};
18
19
  //# sourceMappingURL=VoiceOrb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VoiceOrb.d.ts","sourceRoot":"","sources":["../../../../src/components/VoiceOrb/VoiceOrb/VoiceOrb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6FAA6F;IAC7F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,sFA6DpB,CAAC"}
1
+ {"version":3,"file":"VoiceOrb.d.ts","sourceRoot":"","sources":["../../../../src/components/VoiceOrb/VoiceOrb/VoiceOrb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,sFA+CpB,CAAC"}
@@ -17,29 +17,23 @@ const VoiceOrb = exports.VoiceOrb = /*#__PURE__*/React.forwardRef((_ref, ref) =>
17
17
  let {
18
18
  classNames,
19
19
  enableMicrophone = false,
20
- volumeTickEvent = 'agent_volume_update',
21
20
  testId,
22
21
  loading = false
23
22
  } = _ref;
24
23
  const orbRef = React.useRef(null);
25
- React.useEffect(() => {
26
- const handleAgentVolumeUpdate = event => {
24
+ React.useImperativeHandle(ref, () => ({
25
+ setVolume(volume) {
27
26
  const el = orbRef.current;
28
27
  if (!el) {
29
28
  return;
30
29
  }
31
- const vars = (0, _constants.calculateOrbShadowVars)(event.detail.volume);
30
+ const vars = (0, _constants.calculateOrbShadowVars)(volume);
32
31
  for (const [key, value] of Object.entries(vars)) {
33
32
  el.style.setProperty(key, value);
34
33
  }
35
- };
36
- window.addEventListener(volumeTickEvent, handleAgentVolumeUpdate);
37
- return () => {
38
- window.removeEventListener(volumeTickEvent, handleAgentVolumeUpdate);
39
- };
40
- }, [volumeTickEvent]);
34
+ }
35
+ }));
41
36
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
42
- ref: ref,
43
37
  "data-testid": (0, _qa.generateTestId)({
44
38
  base: testId,
45
39
  slot: 'container'
package/mcp/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/genesis-mcp",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "MCP server for Genesis UI Design System - provides AI assistants with access to components, hooks, and design tokens",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "Sense UI components library",
5
5
  "author": {
6
6
  "name": "Spaced Out"