@jini-ai/ui 0.7.3-next.3 → 0.7.4

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
@@ -1,3 +1,10 @@
1
+ ## 0.7.4
2
+
3
+ ### Changes
4
+
5
+ - Add host-injected desktop hooks, provider-specific media ports, and command-palette focus restoration.
6
+ - Preserve omitted media providers and use consistent prefixed tab-bar and row-menu classes.
7
+
1
8
  ## 0.7.2
2
9
 
3
10
  ### Patch Changes
@@ -11,10 +11,14 @@ export const CHART_SPEC_COMPONENT_ID = 'chart.spec';
11
11
  /** Provider id the catalog reports when no admitted provider draws a kind. */
12
12
  export const CHART_TABLE_PROVIDER = 'core.table';
13
13
  const LEGACY_KINDS = ['bar', 'line', 'pie'];
14
+ /** Catalog entries carry no provider code; only the browser's provider registry can load it. */
15
+ function rejectCatalogLoad() {
16
+ return Promise.reject(new Error('Chart catalogs list providers; they never load them.'));
17
+ }
14
18
  /** Catalog selection only needs ids and kinds; provider code always loads in the browser. */
15
19
  function catalogProviderRegistry({ providers }, _options = {}) {
16
20
  return createChartProviderRegistry({ providers: providers.map(({ id, kinds }) => ({
17
- id, kinds, enabled: true, load: () => Promise.reject(new Error('Chart catalogs list providers; they never load them.')),
21
+ id, kinds, enabled: true, load: rejectCatalogLoad,
18
22
  })) });
19
23
  }
20
24
  /** Legacy kinds keep their wire schema (shared by reference); other kinds take `{ spec }` of that kind. */
@@ -14,7 +14,6 @@
14
14
  * return type — a compile error at the switch itself. A `default` that threw would instead move
15
15
  * that failure to runtime, and add a branch no test could reach.
16
16
  */
17
- import { unhandledCase } from '../../../utils/unhandled-case.js';
18
17
  import { renderCheckbox } from './checkbox.js';
19
18
  import { renderChoiceGroup } from './choice-group.js';
20
19
  import { renderSelect } from './select.js';
@@ -68,7 +67,7 @@ export function renderFieldControl({ field }, { text, options = {} } = {}) {
68
67
  case 'multi-enum':
69
68
  return renderChoiceGroup({ ...base(field, options), selection: 'multiple', options: field.options, ...present(field, ['value']) });
70
69
  }
71
- return unhandledCase({ _value: field });
70
+ return field;
72
71
  }
73
72
  /** Projects fields to runtime validation data; conditional requirements also carry their guidance. */
74
73
  export function toFieldReadSpecs({ fields }, _optional = {}) {
@@ -32,7 +32,7 @@ export function Icon({ name, size = 14, strokeWidth = 1.6, ...rest }) {
32
32
  focusable: 'false',
33
33
  ...rest,
34
34
  };
35
- const render = ICON_RENDERERS[name];
35
+ const render = Object.hasOwn(ICON_RENDERERS, name) ? ICON_RENDERERS[name] : undefined;
36
36
  return render ? render(common) : null;
37
37
  }
38
38
  //# sourceMappingURL=Icon.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/ui",
3
- "version": "0.7.3-next.3",
3
+ "version": "0.7.4",
4
4
  "description": "Generic, product-neutral React UI primitives and feature domains. Framework-free types, decision rules, catalogs, and host port contracts live behind ./core (no React, no DOM). The Excalidraw editor lives behind ./sketch-editor; the GrapesJS-backed inline HTML editor lives behind ./html-editor.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -354,17 +354,17 @@
354
354
  "tailwind-merge": "^2.6.0",
355
355
  "tailwindcss": "^4.1.16",
356
356
  "zod": "^4.6.6",
357
- "@jini-ai/agent-runtime": "^0.7.3-next.3",
358
- "@jini-ai/agentic": "^0.7.3-next.3",
359
- "@jini-ai/integrations": "^0.7.3-next.3",
360
- "@jini-ai/core": "^0.7.3-next.3",
361
- "@jini-ai/ui-kit": "^0.7.3-next.3"
357
+ "@jini-ai/core": "^0.7.4",
358
+ "@jini-ai/agentic": "^0.7.4",
359
+ "@jini-ai/integrations": "^0.7.4",
360
+ "@jini-ai/agent-runtime": "^0.7.4",
361
+ "@jini-ai/ui-kit": "^0.7.4"
362
362
  },
363
363
  "dependencies": {
364
364
  "micromark": "^4.0.0",
365
365
  "micromark-extension-gfm": "^3.0.0",
366
- "@jini-ai/core": "^0.7.3-next.3",
367
- "@jini-ai/protocol": "^0.7.3-next.3"
366
+ "@jini-ai/core": "^0.7.4",
367
+ "@jini-ai/protocol": "^0.7.4"
368
368
  },
369
369
  "peerDependencies": {
370
370
  "@tanstack/react-query": "^5.0.0",