@epam/ai-dial-chat-hooks 1.2.0-dev.34 → 1.2.0-dev.41
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/file-manager-canvas.d.ts +28 -0
- package/files/attachment-canvas.js +11 -0
- package/index.d.ts +28 -0
- package/package.json +15 -15
package/file-manager-canvas.d.ts
CHANGED
|
@@ -195,6 +195,16 @@ declare interface OoxmlDocxHighlightLocation {
|
|
|
195
195
|
text: string;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/** A complete table row in the DOCX body, matched by cell text. */
|
|
199
|
+
declare interface OoxmlDocxTableRowLocation {
|
|
200
|
+
/** Location kind. */
|
|
201
|
+
kind: OoxmlHighlightKind.DocxTableRow;
|
|
202
|
+
/** Plain text of each cell, in column order. */
|
|
203
|
+
cells: string[];
|
|
204
|
+
/** 1-based matching row in document order. */
|
|
205
|
+
occurrence: number;
|
|
206
|
+
}
|
|
207
|
+
|
|
198
208
|
/** Supported document formats rendered by the installed `@silurus/ooxml` runtime. */
|
|
199
209
|
declare enum OoxmlFileType {
|
|
200
210
|
Docx = 'docx',
|
|
@@ -217,6 +227,10 @@ declare enum OoxmlHighlightKind {
|
|
|
217
227
|
DocxTextRange = 'docxTextRange',
|
|
218
228
|
/** A character range inside a single PPTX shape on one slide. */
|
|
219
229
|
PptxTextRange = 'pptxTextRange',
|
|
230
|
+
/** A complete DOCX table row identified by its cell text. */
|
|
231
|
+
DocxTableRow = 'docxTableRow',
|
|
232
|
+
/** A complete PPTX table row identified by its cell text on one slide. */
|
|
233
|
+
PptxTableRow = 'pptxTableRow',
|
|
220
234
|
/** One cell, or a contiguous same-row cell range, on a named XLSX sheet. */
|
|
221
235
|
XlsxCellRange = 'xlsxCellRange',
|
|
222
236
|
}
|
|
@@ -225,6 +239,8 @@ declare enum OoxmlHighlightKind {
|
|
|
225
239
|
declare type OoxmlHighlightLocation =
|
|
226
240
|
| OoxmlDocxHighlightLocation
|
|
227
241
|
| OoxmlPptxHighlightLocation
|
|
242
|
+
| OoxmlDocxTableRowLocation
|
|
243
|
+
| OoxmlPptxTableRowLocation
|
|
228
244
|
| OoxmlXlsxHighlightLocation;
|
|
229
245
|
|
|
230
246
|
/** A cited character range inside a single shape on one PPTX slide. */
|
|
@@ -243,6 +259,18 @@ declare interface OoxmlPptxHighlightLocation {
|
|
|
243
259
|
text: string;
|
|
244
260
|
}
|
|
245
261
|
|
|
262
|
+
/** A complete table row on one PPTX slide, matched by cell text. */
|
|
263
|
+
declare interface OoxmlPptxTableRowLocation {
|
|
264
|
+
/** Location kind. */
|
|
265
|
+
kind: OoxmlHighlightKind.PptxTableRow;
|
|
266
|
+
/** Plain text of each cell, in column order. */
|
|
267
|
+
cells: string[];
|
|
268
|
+
/** 1-based matching row on the specified slide. */
|
|
269
|
+
occurrence: number;
|
|
270
|
+
/** 1-based slide number. */
|
|
271
|
+
slide: number;
|
|
272
|
+
}
|
|
273
|
+
|
|
246
274
|
/** A cited cell, or contiguous same-row cell range, on a named XLSX sheet. */
|
|
247
275
|
declare interface OoxmlXlsxHighlightLocation {
|
|
248
276
|
/** Discriminates this location within `OoxmlHighlightLocation`. */
|
|
@@ -150,6 +150,17 @@ var g = (e, t) => URL.createObjectURL(s(e, t)), _ = (e) => {
|
|
|
150
150
|
};
|
|
151
151
|
}, R = (e) => {
|
|
152
152
|
switch (e.type) {
|
|
153
|
+
case "docx_text_anchor": return {
|
|
154
|
+
kind: i.DocxTableRow,
|
|
155
|
+
cells: e.cells,
|
|
156
|
+
occurrence: e.occurrence
|
|
157
|
+
};
|
|
158
|
+
case "pptx_text_anchor": return {
|
|
159
|
+
kind: i.PptxTableRow,
|
|
160
|
+
cells: e.cells,
|
|
161
|
+
occurrence: e.occurrence,
|
|
162
|
+
slide: e.slide
|
|
163
|
+
};
|
|
153
164
|
case "docx_text_range": return {
|
|
154
165
|
kind: i.DocxTextRange,
|
|
155
166
|
story: e.story,
|
package/index.d.ts
CHANGED
|
@@ -2578,6 +2578,16 @@ declare interface OoxmlDocxHighlightLocation {
|
|
|
2578
2578
|
text: string;
|
|
2579
2579
|
}
|
|
2580
2580
|
|
|
2581
|
+
/** A complete table row in the DOCX body, matched by cell text. */
|
|
2582
|
+
declare interface OoxmlDocxTableRowLocation {
|
|
2583
|
+
/** Location kind. */
|
|
2584
|
+
kind: OoxmlHighlightKind.DocxTableRow;
|
|
2585
|
+
/** Plain text of each cell, in column order. */
|
|
2586
|
+
cells: string[];
|
|
2587
|
+
/** 1-based matching row in document order. */
|
|
2588
|
+
occurrence: number;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2581
2591
|
/** Supported document formats rendered by the installed `@silurus/ooxml` runtime. */
|
|
2582
2592
|
declare enum OoxmlFileType {
|
|
2583
2593
|
Docx = 'docx',
|
|
@@ -2600,6 +2610,10 @@ declare enum OoxmlHighlightKind {
|
|
|
2600
2610
|
DocxTextRange = 'docxTextRange',
|
|
2601
2611
|
/** A character range inside a single PPTX shape on one slide. */
|
|
2602
2612
|
PptxTextRange = 'pptxTextRange',
|
|
2613
|
+
/** A complete DOCX table row identified by its cell text. */
|
|
2614
|
+
DocxTableRow = 'docxTableRow',
|
|
2615
|
+
/** A complete PPTX table row identified by its cell text on one slide. */
|
|
2616
|
+
PptxTableRow = 'pptxTableRow',
|
|
2603
2617
|
/** One cell, or a contiguous same-row cell range, on a named XLSX sheet. */
|
|
2604
2618
|
XlsxCellRange = 'xlsxCellRange',
|
|
2605
2619
|
}
|
|
@@ -2608,6 +2622,8 @@ declare enum OoxmlHighlightKind {
|
|
|
2608
2622
|
declare type OoxmlHighlightLocation =
|
|
2609
2623
|
| OoxmlDocxHighlightLocation
|
|
2610
2624
|
| OoxmlPptxHighlightLocation
|
|
2625
|
+
| OoxmlDocxTableRowLocation
|
|
2626
|
+
| OoxmlPptxTableRowLocation
|
|
2611
2627
|
| OoxmlXlsxHighlightLocation;
|
|
2612
2628
|
|
|
2613
2629
|
/** A cited character range inside a single shape on one PPTX slide. */
|
|
@@ -2626,6 +2642,18 @@ declare interface OoxmlPptxHighlightLocation {
|
|
|
2626
2642
|
text: string;
|
|
2627
2643
|
}
|
|
2628
2644
|
|
|
2645
|
+
/** A complete table row on one PPTX slide, matched by cell text. */
|
|
2646
|
+
declare interface OoxmlPptxTableRowLocation {
|
|
2647
|
+
/** Location kind. */
|
|
2648
|
+
kind: OoxmlHighlightKind.PptxTableRow;
|
|
2649
|
+
/** Plain text of each cell, in column order. */
|
|
2650
|
+
cells: string[];
|
|
2651
|
+
/** 1-based matching row on the specified slide. */
|
|
2652
|
+
occurrence: number;
|
|
2653
|
+
/** 1-based slide number. */
|
|
2654
|
+
slide: number;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2629
2657
|
/** A cited cell, or contiguous same-row cell range, on a named XLSX sheet. */
|
|
2630
2658
|
declare interface OoxmlXlsxHighlightLocation {
|
|
2631
2659
|
/** Discriminates this location within `OoxmlHighlightLocation`. */
|
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.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.41",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@epam/ai-dial-chat-api-client": "1.2.0-dev.
|
|
109
|
+
"@epam/ai-dial-chat-api-client": "1.2.0-dev.41",
|
|
110
110
|
"dompurify": "3.4.15",
|
|
111
111
|
"fflate": "^0.8.3",
|
|
112
112
|
"lru-cache": "^10.4.3",
|
|
@@ -115,20 +115,20 @@
|
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"react": "^19.2.8",
|
|
118
|
-
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.
|
|
119
|
-
"@epam/ai-dial-attachment-input": "1.2.0-dev.
|
|
120
|
-
"@epam/ai-dial-builder-form": "1.2.0-dev.
|
|
121
|
-
"@epam/ai-dial-catalog": "1.2.0-dev.
|
|
122
|
-
"@epam/ai-dial-chat-overlay": "1.2.0-dev.
|
|
123
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
124
|
-
"@epam/ai-dial-mcp-apps": "1.2.0-dev.
|
|
125
|
-
"@epam/ai-dial-publish-panel": "1.2.0-dev.
|
|
126
|
-
"@epam/ai-dial-quotations": "1.2.0-dev.
|
|
118
|
+
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.41",
|
|
119
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.41",
|
|
120
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.41",
|
|
121
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.41",
|
|
122
|
+
"@epam/ai-dial-chat-overlay": "1.2.0-dev.41",
|
|
123
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.41",
|
|
124
|
+
"@epam/ai-dial-mcp-apps": "1.2.0-dev.41",
|
|
125
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.41",
|
|
126
|
+
"@epam/ai-dial-quotations": "1.2.0-dev.41",
|
|
127
127
|
"@epam/ai-dial-react-file-manager": "^0.2.0",
|
|
128
|
-
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.
|
|
129
|
-
"@epam/ai-dial-share": "1.2.0-dev.
|
|
130
|
-
"@epam/ai-dial-skill-editor": "1.2.0-dev.
|
|
131
|
-
"@epam/ai-dial-source-panel": "1.2.0-dev.
|
|
128
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.41",
|
|
129
|
+
"@epam/ai-dial-share": "1.2.0-dev.41",
|
|
130
|
+
"@epam/ai-dial-skill-editor": "1.2.0-dev.41",
|
|
131
|
+
"@epam/ai-dial-source-panel": "1.2.0-dev.41",
|
|
132
132
|
"@epam/ai-dial-ui-kit": "^0.14.2",
|
|
133
133
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
134
134
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|