@epam/ai-dial-chat-hooks 1.2.11 → 1.2.13
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
|
|
37
|
-
*
|
|
38
|
-
* conversation's or message's
|
|
39
|
-
*
|
|
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
|
|
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"}
|
package/catalog/deployment-id.js
CHANGED
|
@@ -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
|
|
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.2.
|
|
4
|
+
"version": "1.2.13",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@epam/ai-dial-chat-api-client": "1.2.
|
|
120
|
-
"dompurify": "3.4.
|
|
119
|
+
"@epam/ai-dial-chat-api-client": "1.2.13",
|
|
120
|
+
"dompurify": "3.4.17",
|
|
121
121
|
"fflate": "^0.8.3",
|
|
122
122
|
"lru-cache": "^10.4.3",
|
|
123
123
|
"mime-types": "^3.0.2",
|
|
@@ -125,22 +125,22 @@
|
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"react": "^19.2.8",
|
|
128
|
-
"@epam/ai-dial-attachment-canvas": "1.2.
|
|
129
|
-
"@epam/ai-dial-attachment-input": "1.2.
|
|
130
|
-
"@epam/ai-dial-catalog": "1.2.
|
|
131
|
-
"@epam/ai-dial-chat-overlay": "1.2.
|
|
132
|
-
"@epam/ai-dial-chat-shared": "1.2.
|
|
133
|
-
"@epam/ai-dial-conversation-input": "1.2.
|
|
134
|
-
"@epam/ai-dial-mcp-apps": "1.2.
|
|
135
|
-
"@epam/ai-dial-publish-panel": "1.2.
|
|
136
|
-
"@epam/ai-dial-quotations": "1.2.
|
|
128
|
+
"@epam/ai-dial-attachment-canvas": "1.2.13",
|
|
129
|
+
"@epam/ai-dial-attachment-input": "1.2.13",
|
|
130
|
+
"@epam/ai-dial-catalog": "1.2.13",
|
|
131
|
+
"@epam/ai-dial-chat-overlay": "1.2.13",
|
|
132
|
+
"@epam/ai-dial-chat-shared": "1.2.13",
|
|
133
|
+
"@epam/ai-dial-conversation-input": "1.2.13",
|
|
134
|
+
"@epam/ai-dial-mcp-apps": "1.2.13",
|
|
135
|
+
"@epam/ai-dial-publish-panel": "1.2.13",
|
|
136
|
+
"@epam/ai-dial-quotations": "1.2.13",
|
|
137
137
|
"@epam/ai-dial-react-file-manager": "^0.3.5",
|
|
138
|
-
"@epam/ai-dial-scheduled-tasks": "1.2.
|
|
139
|
-
"@epam/ai-dial-share": "1.2.
|
|
140
|
-
"@epam/ai-dial-skill-editor": "1.2.
|
|
141
|
-
"@epam/ai-dial-source-panel": "1.2.
|
|
138
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.13",
|
|
139
|
+
"@epam/ai-dial-share": "1.2.13",
|
|
140
|
+
"@epam/ai-dial-skill-editor": "1.2.13",
|
|
141
|
+
"@epam/ai-dial-source-panel": "1.2.13",
|
|
142
142
|
"@epam/ai-dial-ui-kit": "^0.15.4",
|
|
143
|
-
"@epam/ai-dial-usage-dashboard": "1.2.
|
|
143
|
+
"@epam/ai-dial-usage-dashboard": "1.2.13",
|
|
144
144
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
145
145
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|
|
146
146
|
"@mcp-ui/client": "^7.1.1"
|