@fgv/ts-app-shell 5.1.0-17 → 5.1.0-19

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.
@@ -231,7 +231,7 @@ export function useAiAssist(params) {
231
231
  return fail(descriptorResult.message);
232
232
  }
233
233
  const descriptor = descriptorResult.value;
234
- if (descriptor.imageApiFormat === undefined) {
234
+ if (!AiAssist.supportsImageGeneration(descriptor)) {
235
235
  return fail(`Provider "${provider}" does not support image generation`);
236
236
  }
237
237
  if (!providerConfig.secretName) {
@@ -235,7 +235,7 @@ function useAiAssist(params) {
235
235
  return (0, ts_utils_1.fail)(descriptorResult.message);
236
236
  }
237
237
  const descriptor = descriptorResult.value;
238
- if (descriptor.imageApiFormat === undefined) {
238
+ if (!ts_extras_1.AiAssist.supportsImageGeneration(descriptor)) {
239
239
  return (0, ts_utils_1.fail)(`Provider "${provider}" does not support image generation`);
240
240
  }
241
241
  if (!providerConfig.secretName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-app-shell",
3
- "version": "5.1.0-17",
3
+ "version": "5.1.0-19",
4
4
  "description": "Shared React UI primitives for application shells: column cascade, sidebar, toast/log messages, command palette, keybinding registry",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "dependencies": {
18
18
  "@heroicons/react": "~2.2.0",
19
19
  "tslib": "^2.8.1",
20
- "@fgv/ts-utils": "5.1.0-17",
21
- "@fgv/ts-extras": "5.1.0-17"
20
+ "@fgv/ts-extras": "5.1.0-19",
21
+ "@fgv/ts-utils": "5.1.0-19"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=18.0.0",
@@ -51,8 +51,8 @@
51
51
  "@rushstack/heft-jest-plugin": "1.2.6",
52
52
  "@testing-library/dom": "^10.4.0",
53
53
  "@rushstack/heft-node-rig": "2.11.27",
54
- "@fgv/heft-dual-rig": "5.1.0-17",
55
- "@fgv/ts-utils-jest": "5.1.0-17"
54
+ "@fgv/heft-dual-rig": "5.1.0-19",
55
+ "@fgv/ts-utils-jest": "5.1.0-19"
56
56
  },
57
57
  "exports": {
58
58
  ".": {