@gengage/assistant-fe 0.4.3 → 0.4.5
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/README.md +3 -0
- package/dist/chat/catalog.d.ts +29 -0
- package/dist/chat/components/ChatDrawer.d.ts +9 -13
- package/dist/chat/components/PanelRestoreCard.d.ts +4 -0
- package/dist/chat/history-storage.d.ts +85 -0
- package/dist/chat/index.d.ts +31 -3
- package/dist/chat/panel-manager.d.ts +1 -1
- package/dist/chat/session-persistence.d.ts +2 -2
- package/dist/chat/types.d.ts +10 -2
- package/dist/chat-B1lLKIxj.js +7996 -0
- package/dist/chat.iife.js +61 -36
- package/dist/chat.js +1 -1
- package/dist/common/indexed-db.d.ts +5 -1
- package/dist/{common-DDQyFEcK.js → common-C5e2gLuG.js} +2 -2
- package/dist/common.js +4 -4
- package/dist/index.js +6 -6
- package/dist/{native-webview-CwQr4fXv.js → native-webview-niMtkiHX.js} +4 -4
- package/dist/native.iife.js +57 -32
- package/dist/native.js +1 -1
- package/dist/{qna-CQugVOHy.js → qna-C5Ok3wd0.js} +1 -1
- package/dist/qna.iife.js +50 -25
- package/dist/qna.js +1 -1
- package/dist/{schemas-JFGRVTVz.js → schemas-JpRGzRQT.js} +1717 -1361
- package/dist/{simrel-DjzpRZmZ.js → simrel-K2TGFi1r.js} +1 -1
- package/dist/simrel.iife.js +54 -29
- package/dist/simrel.js +1 -1
- package/package.json +2 -1
- package/dist/chat/components/ThumbnailsColumn.d.ts +0 -24
- package/dist/chat-sb3DK_dL.js +0 -7524
package/dist/simrel.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gengage/assistant-fe",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Source-available frontend widgets for Gengage AI Assistant — chat, Q&A, and similar-products. Backend is SaaS (gengage.ai).",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"lint": "eslint src",
|
|
112
112
|
"lint:fix": "eslint src --fix",
|
|
113
113
|
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"catalog/**/*.{ts,tsx,css,js,html}\" \"demos/**/*.{ts,tsx,css,js,html}\" \"tests/**/*.ts\" \"scripts/**/*.ts\" && eslint src --fix && npm run typecheck && npm run typecheck:catalog",
|
|
114
|
+
"test:chat-history": "vitest run tests/history-storage.test.ts tests/save-session-navigate.test.ts tests/chat-drawer-panel.test.ts tests/chat-open.test.ts tests/session-restore.test.ts tests/session-persistence.test.ts tests/chat-panel-state-restore.test.ts",
|
|
114
115
|
"test": "npm run test:unit && npm run test:e2e",
|
|
115
116
|
"test:unit": "vitest run",
|
|
116
117
|
"test:demo-shell": "vitest run tests/demo-shell.test.ts",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vertical strip of product thumbnails along the right edge of the panel (results) pane.
|
|
3
|
-
*
|
|
4
|
-
* Clicking a thumbnail dispatches a rollback to the thread where that product was shown.
|
|
5
|
-
*
|
|
6
|
-
* **Display:** The column is hidden via CSS (`chat.css`); wiring (`setThumbnails`) stays for a future toggle.
|
|
7
|
-
*/
|
|
8
|
-
export interface ThumbnailEntry {
|
|
9
|
-
sku: string;
|
|
10
|
-
imageUrl: string;
|
|
11
|
-
threadId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ThumbnailsColumnOptions {
|
|
14
|
-
onThumbnailClick: (threadId: string) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare class ThumbnailsColumn {
|
|
17
|
-
private readonly _el;
|
|
18
|
-
private readonly _onThumbnailClick;
|
|
19
|
-
constructor(options: ThumbnailsColumnOptions);
|
|
20
|
-
getElement(): HTMLElement;
|
|
21
|
-
setEntries(entries: ThumbnailEntry[]): void;
|
|
22
|
-
show(): void;
|
|
23
|
-
hide(): void;
|
|
24
|
-
}
|