@epam/ai-dial-chat-hooks 1.1.14 → 1.1.16

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.
@@ -6,7 +6,11 @@ var e = (e) => e.split("/").map((e) => encodeURIComponent(e)).join("/"), t = (e)
6
6
  return e;
7
7
  }
8
8
  }).join("/"), n = (n) => e(t(n)), r = (e, t) => {
9
- if (t) return e.find((e) => e.id === t) ?? e.find((e) => e.reference === t);
9
+ if (!t) return;
10
+ let r = e.find((e) => e.id === t) ?? e.find((e) => e.reference === t);
11
+ if (r) return r;
12
+ let i = n(t);
13
+ return e.find((e) => n(e.id) === i);
10
14
  };
11
15
  //#endregion
12
16
  export { t as decodeDeploymentId, e as encodeDeploymentId, r as findDeploymentByIdOrReference, n as normalizeDeploymentId };
package/catalog.d.ts CHANGED
@@ -390,10 +390,13 @@ export declare const filterHiddenOwnedItems: (items: readonly CatalogItem[], hid
390
390
 
391
391
  /**
392
392
  * Finds a deployment matching `idOrReference` by `id` first, falling back to
393
- * `reference` when no `id` matches. DIAL Core sometimes addresses a
394
- * deployment by `reference` in places that store a deployment id (e.g. a
395
- * conversation's or message's `model.id`), so lookups against the fetched
396
- * deployments list must accept either value.
393
+ * `reference` when no `id` matches, and finally to an `id` match that ignores
394
+ * percent-encoding. DIAL Core sometimes addresses a deployment by `reference`
395
+ * in places that store a deployment id (e.g. a conversation's or message's
396
+ * `model.id`), and a conversation created by a Custom Viewer (a DIAL Loop
397
+ * agent) may store the raw, human-readable application id while the listing
398
+ * returns it encoded ([#9275](https://github.com/epam/ai-dial-chat/issues/9275)), so lookups against the fetched deployments
399
+ * list must accept any of these forms.
397
400
  */
398
401
  export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
399
402
 
package/index.d.ts CHANGED
@@ -1643,10 +1643,13 @@ export declare const filterHiddenOwnedItems: (items: readonly CatalogItem[], hid
1643
1643
 
1644
1644
  /**
1645
1645
  * Finds a deployment matching `idOrReference` by `id` first, falling back to
1646
- * `reference` when no `id` matches. DIAL Core sometimes addresses a
1647
- * deployment by `reference` in places that store a deployment id (e.g. a
1648
- * conversation's or message's `model.id`), so lookups against the fetched
1649
- * deployments list must accept either value.
1646
+ * `reference` when no `id` matches, and finally to an `id` match that ignores
1647
+ * percent-encoding. DIAL Core sometimes addresses a deployment by `reference`
1648
+ * in places that store a deployment id (e.g. a conversation's or message's
1649
+ * `model.id`), and a conversation created by a Custom Viewer (a DIAL Loop
1650
+ * agent) may store the raw, human-readable application id while the listing
1651
+ * returns it encoded ([#9275](https://github.com/epam/ai-dial-chat/issues/9275)), so lookups against the fetched deployments
1652
+ * list must accept any of these forms.
1650
1653
  */
1651
1654
  export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
1652
1655
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-hooks",
3
3
  "description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
4
- "version": "1.1.14",
4
+ "version": "1.1.16",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -111,7 +111,7 @@
111
111
  }
112
112
  },
113
113
  "dependencies": {
114
- "@epam/ai-dial-chat-api-client": "1.1.14",
114
+ "@epam/ai-dial-chat-api-client": "1.1.16",
115
115
  "dompurify": "3.4.16",
116
116
  "fflate": "^0.8.3",
117
117
  "lru-cache": "^10.4.3",
@@ -120,22 +120,22 @@
120
120
  },
121
121
  "peerDependencies": {
122
122
  "react": "^19.2.8",
123
- "@epam/ai-dial-attachment-canvas": "1.1.14",
124
- "@epam/ai-dial-attachment-input": "1.1.14",
125
- "@epam/ai-dial-builder-form": "1.1.14",
126
- "@epam/ai-dial-catalog": "1.1.14",
127
- "@epam/ai-dial-chat-overlay": "1.1.14",
128
- "@epam/ai-dial-chat-shared": "1.1.14",
129
- "@epam/ai-dial-mcp-apps": "1.1.14",
130
- "@epam/ai-dial-publish-panel": "1.1.14",
131
- "@epam/ai-dial-quotations": "1.1.14",
123
+ "@epam/ai-dial-attachment-canvas": "1.1.16",
124
+ "@epam/ai-dial-attachment-input": "1.1.16",
125
+ "@epam/ai-dial-builder-form": "1.1.16",
126
+ "@epam/ai-dial-catalog": "1.1.16",
127
+ "@epam/ai-dial-chat-overlay": "1.1.16",
128
+ "@epam/ai-dial-chat-shared": "1.1.16",
129
+ "@epam/ai-dial-mcp-apps": "1.1.16",
130
+ "@epam/ai-dial-publish-panel": "1.1.16",
131
+ "@epam/ai-dial-quotations": "1.1.16",
132
132
  "@epam/ai-dial-react-file-manager": "^0.2.0",
133
- "@epam/ai-dial-scheduled-tasks": "1.1.14",
134
- "@epam/ai-dial-share": "1.1.14",
135
- "@epam/ai-dial-skill-editor": "1.1.14",
136
- "@epam/ai-dial-source-panel": "1.1.14",
133
+ "@epam/ai-dial-scheduled-tasks": "1.1.16",
134
+ "@epam/ai-dial-share": "1.1.16",
135
+ "@epam/ai-dial-skill-editor": "1.1.16",
136
+ "@epam/ai-dial-source-panel": "1.1.16",
137
137
  "@epam/ai-dial-ui-kit": "^0.14.2",
138
- "@epam/ai-dial-usage-dashboard": "1.1.14",
138
+ "@epam/ai-dial-usage-dashboard": "1.1.16",
139
139
  "@modelcontextprotocol/sdk": "^1.29.0",
140
140
  "@epam/pdf-highlighter-kit": "^0.0.19",
141
141
  "@mcp-ui/client": "^7.1.1"