@epam/ai-dial-chat-hooks 1.1.0-dev.300 → 1.1.0-dev.310
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/catalog/create-publish-api.d.ts +32 -0
- package/catalog/create-publish-api.d.ts.map +1 -0
- package/catalog/map-prompt-to-catalog-item.d.ts +4 -6
- package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -1
- package/catalog/useCatalogItemDetails.d.ts +3 -3
- package/catalog/useCatalogItemDetails.d.ts.map +1 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +71 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
- package/conversation/announcement-message.d.ts +7 -1
- package/conversation/announcement-message.d.ts.map +1 -1
- package/files/dial-file-manager-mapping.util.d.ts +1 -1
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -1
- package/files/dial-file-manager.types.d.ts.map +1 -1
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +1 -1
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +2070 -1962
- package/package.json +14 -14
- package/prompt/prompt-resource.d.ts +8 -9
- package/prompt/prompt-resource.d.ts.map +1 -1
- package/useShareLink/useShareLink.d.ts +2 -2
- package/useShareLink/useShareLink.d.ts.map +1 -1
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.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.310",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^19.2.6",
|
|
26
|
-
"@epam/ai-dial-attachment-canvas": "1.1.0-dev.
|
|
27
|
-
"@epam/ai-dial-attachment-input": "1.1.0-dev.
|
|
28
|
-
"@epam/ai-dial-catalog": "1.1.0-dev.
|
|
29
|
-
"@epam/ai-dial-chat-api-client": "1.1.0-dev.
|
|
30
|
-
"@epam/ai-dial-chat-overlay": "1.1.0-dev.
|
|
31
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
32
|
-
"@epam/ai-dial-deployment-creation-form": "1.1.0-dev.
|
|
33
|
-
"@epam/ai-dial-publish-panel": "1.1.0-dev.
|
|
34
|
-
"@epam/ai-dial-quotations": "1.1.0-dev.
|
|
26
|
+
"@epam/ai-dial-attachment-canvas": "1.1.0-dev.310",
|
|
27
|
+
"@epam/ai-dial-attachment-input": "1.1.0-dev.310",
|
|
28
|
+
"@epam/ai-dial-catalog": "1.1.0-dev.310",
|
|
29
|
+
"@epam/ai-dial-chat-api-client": "1.1.0-dev.310",
|
|
30
|
+
"@epam/ai-dial-chat-overlay": "1.1.0-dev.310",
|
|
31
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.310",
|
|
32
|
+
"@epam/ai-dial-deployment-creation-form": "1.1.0-dev.310",
|
|
33
|
+
"@epam/ai-dial-publish-panel": "1.1.0-dev.310",
|
|
34
|
+
"@epam/ai-dial-quotations": "1.1.0-dev.310",
|
|
35
35
|
"@epam/ai-dial-react-file-manager": "*",
|
|
36
|
-
"@epam/ai-dial-scheduled-tasks": "1.1.0-dev.
|
|
37
|
-
"@epam/ai-dial-share": "1.1.0-dev.
|
|
38
|
-
"@epam/ai-dial-skill-editor": "1.1.0-dev.
|
|
39
|
-
"@epam/ai-dial-source-panel": "1.1.0-dev.
|
|
36
|
+
"@epam/ai-dial-scheduled-tasks": "1.1.0-dev.310",
|
|
37
|
+
"@epam/ai-dial-share": "1.1.0-dev.310",
|
|
38
|
+
"@epam/ai-dial-skill-editor": "1.1.0-dev.310",
|
|
39
|
+
"@epam/ai-dial-source-panel": "1.1.0-dev.310",
|
|
40
40
|
"@epam/ai-dial-ui-kit": "*",
|
|
41
41
|
"fflate": "^0.8.3"
|
|
42
42
|
},
|
|
@@ -14,18 +14,17 @@ export interface ParsedPromptResourceUrl {
|
|
|
14
14
|
/** Path to the prompt within that bucket. */
|
|
15
15
|
path: string;
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Qualifies a bucket-relative prompt path into a `prompts/{bucket}/{path}`
|
|
19
|
-
* resource URL. A path alone is ambiguous once prompts from more than one
|
|
20
|
-
* bucket share a list: the prompts endpoints resolve a bare path against the
|
|
21
|
-
* caller's own bucket, so a prompt shared out of someone else's bucket needs
|
|
22
|
-
* the bucket carried alongside it.
|
|
23
|
-
*/
|
|
24
|
-
export declare const buildPromptResourceUrl: ({ bucket, path, }: ParsedPromptResourceUrl) => string;
|
|
25
17
|
/**
|
|
26
18
|
* Splits a `prompts/{bucket}/{path}` resource URL into its parts, mirroring the
|
|
27
19
|
* backend's parser. Returns `null` for a different prefix, an empty bucket, or
|
|
28
|
-
* an empty path, so callers can treat "a
|
|
20
|
+
* an empty path, so callers can treat "not a prompt resource id" as one case.
|
|
21
|
+
*
|
|
22
|
+
* `CatalogItem.id` for a prompt is always this full resource path — the read,
|
|
23
|
+
* update, delete, and move endpoints all take it unmodified. The one caller
|
|
24
|
+
* that still needs the bucket-relative sub-path on its own is the
|
|
25
|
+
* organisation (public) prompt read, whose endpoint kept its bucket-relative
|
|
26
|
+
* `path` argument because it only ever operates on the fixed `public`
|
|
27
|
+
* namespace.
|
|
29
28
|
*/
|
|
30
29
|
export declare const parsePromptResourceUrl: (url: string) => ParsedPromptResourceUrl | null;
|
|
31
30
|
//# sourceMappingURL=prompt-resource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-resource.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt-resource.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,oBAAY,YAAY;IACtB,+DAA+D;IAC/D,QAAQ,aAAa;IACrB,iFAAiF;IACjF,YAAY,iBAAiB;IAC7B,0DAA0D;IAC1D,MAAM,WAAW;CAClB;AAKD,0EAA0E;AAC1E,MAAM,WAAW,uBAAuB;IACtC,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED
|
|
1
|
+
{"version":3,"file":"prompt-resource.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt-resource.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,oBAAY,YAAY;IACtB,+DAA+D;IAC/D,QAAQ,aAAa;IACrB,iFAAiF;IACjF,YAAY,iBAAiB;IAC7B,0DAA0D;IAC1D,MAAM,WAAW;CAClB;AAKD,0EAA0E;AAC1E,MAAM,WAAW,uBAAuB;IACtC,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,GACjC,KAAK,MAAM,KACV,uBAAuB,GAAG,IAS5B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShareApi } from '@epam/ai-dial-chat-api-client';
|
|
2
2
|
import { ShareLinkAccess, ShareLinkData } from '@epam/ai-dial-share';
|
|
3
3
|
/** Result returned by {@link useShareLink}. */
|
|
4
4
|
export interface UseShareLinkResult {
|
|
@@ -19,5 +19,5 @@ export interface UseShareLinkResult {
|
|
|
19
19
|
* re-fetch on access change), not the client's base URL, auth, or CSRF
|
|
20
20
|
* setup, which stay the caller's responsibility.
|
|
21
21
|
*/
|
|
22
|
-
export declare const useShareLink: (shareApi: Pick<ShareApi, "createShareLink">, itemId: string,
|
|
22
|
+
export declare const useShareLink: (shareApi: Pick<ShareApi, "createShareLink">, itemId: string, origin?: string) => UseShareLinkResult;
|
|
23
23
|
//# sourceMappingURL=useShareLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShareLink.d.ts","sourceRoot":"","sources":["../../src/useShareLink/useShareLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"useShareLink.d.ts","sourceRoot":"","sources":["../../src/useShareLink/useShareLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAYrE,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,6DAA6D;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;CAChD;AAcD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,EAC3C,QAAQ,MAAM,EACd,SAAQ,MAA+B,KACtC,kBAwDF,CAAC"}
|