@epam/ai-dial-chat-hooks 1.3.0-dev.160 → 1.3.0-dev.163

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.
@@ -33,10 +33,13 @@ export declare const decodeDeploymentId: (id: string) => string;
33
33
  export declare const normalizeDeploymentId: (id: string) => string;
34
34
  /**
35
35
  * Finds a deployment matching `idOrReference` by `id` first, falling back to
36
- * `reference` when no `id` matches. DIAL Core sometimes addresses a
37
- * deployment by `reference` in places that store a deployment id (e.g. a
38
- * conversation's or message's `model.id`), so lookups against the fetched
39
- * deployments list must accept either value.
36
+ * `reference` when no `id` matches, and finally to an `id` match that ignores
37
+ * percent-encoding. DIAL Core sometimes addresses a deployment by `reference`
38
+ * in places that store a deployment id (e.g. a conversation's or message's
39
+ * `model.id`), and a conversation created by a Custom Viewer (a DIAL Loop
40
+ * agent) may store the raw, human-readable application id while the listing
41
+ * returns it encoded ([#9275](https://github.com/epam/ai-dial-chat/issues/9275)), so lookups against the fetched deployments
42
+ * list must accept any of these forms.
40
43
  */
41
44
  export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
42
45
  //# sourceMappingURL=deployment-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-id.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAIlC,CAAC;AAEf;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAUlC,CAAC;AAEf;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG,MACP,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,iBAAiB,EAAE,EAChC,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAMtB,CAAC"}
1
+ {"version":3,"file":"deployment-id.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAIlC,CAAC;AAEf;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAUlC,CAAC;AAEf;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG,MACP,CAAC;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,iBAAiB,EAAE,EAChC,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAUtB,CAAC"}
@@ -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/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.3.0-dev.160",
4
+ "version": "1.3.0-dev.163",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -121,7 +121,7 @@
121
121
  }
122
122
  },
123
123
  "dependencies": {
124
- "@epam/ai-dial-chat-api-client": "1.3.0-dev.160",
124
+ "@epam/ai-dial-chat-api-client": "1.3.0-dev.163",
125
125
  "dompurify": "3.4.16",
126
126
  "fflate": "^0.8.3",
127
127
  "lru-cache": "^10.4.3",
@@ -130,22 +130,22 @@
130
130
  },
131
131
  "peerDependencies": {
132
132
  "react": "^19.2.8",
133
- "@epam/ai-dial-attachment-canvas": "1.3.0-dev.160",
134
- "@epam/ai-dial-attachment-input": "1.3.0-dev.160",
135
- "@epam/ai-dial-catalog": "1.3.0-dev.160",
136
- "@epam/ai-dial-chat-overlay": "1.3.0-dev.160",
137
- "@epam/ai-dial-chat-shared": "1.3.0-dev.160",
138
- "@epam/ai-dial-conversation-input": "1.3.0-dev.160",
139
- "@epam/ai-dial-mcp-apps": "1.3.0-dev.160",
140
- "@epam/ai-dial-publish-panel": "1.3.0-dev.160",
141
- "@epam/ai-dial-quotations": "1.3.0-dev.160",
133
+ "@epam/ai-dial-attachment-canvas": "1.3.0-dev.163",
134
+ "@epam/ai-dial-attachment-input": "1.3.0-dev.163",
135
+ "@epam/ai-dial-catalog": "1.3.0-dev.163",
136
+ "@epam/ai-dial-chat-overlay": "1.3.0-dev.163",
137
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.163",
138
+ "@epam/ai-dial-conversation-input": "1.3.0-dev.163",
139
+ "@epam/ai-dial-mcp-apps": "1.3.0-dev.163",
140
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.163",
141
+ "@epam/ai-dial-quotations": "1.3.0-dev.163",
142
142
  "@epam/ai-dial-react-file-manager": "^0.4.0-dev.11",
143
- "@epam/ai-dial-scheduled-tasks": "1.3.0-dev.160",
144
- "@epam/ai-dial-share": "1.3.0-dev.160",
145
- "@epam/ai-dial-skill-editor": "1.3.0-dev.160",
146
- "@epam/ai-dial-source-panel": "1.3.0-dev.160",
143
+ "@epam/ai-dial-scheduled-tasks": "1.3.0-dev.163",
144
+ "@epam/ai-dial-share": "1.3.0-dev.163",
145
+ "@epam/ai-dial-skill-editor": "1.3.0-dev.163",
146
+ "@epam/ai-dial-source-panel": "1.3.0-dev.163",
147
147
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.33",
148
- "@epam/ai-dial-usage-dashboard": "1.3.0-dev.160",
148
+ "@epam/ai-dial-usage-dashboard": "1.3.0-dev.163",
149
149
  "@modelcontextprotocol/sdk": "^1.32.1",
150
150
  "@epam/pdf-highlighter-kit": "^0.0.19",
151
151
  "@mcp-ui/client": "^7.1.1"