@gengage/assistant-fe 0.4.2 → 0.4.4
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 +9 -1
- package/dist/chat-DI7Vm0gh.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-DUMmqYxM.js → common-BxSi3UWt.js} +2 -2
- package/dist/common.js +4 -4
- package/dist/index.js +6 -6
- package/dist/{native-webview-v2HYw_9X.js → native-webview-DFqnyus6.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 +10 -5
- package/dist/chat/components/ThumbnailsColumn.d.ts +0 -24
- package/dist/chat-Ci4ZA37X.js +0 -7522
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.4",
|
|
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,13 +111,18 @@
|
|
|
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": "vitest run",
|
|
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",
|
|
115
|
+
"test": "npm run test:unit && npm run test:e2e",
|
|
116
|
+
"test:unit": "vitest run",
|
|
115
117
|
"test:demo-shell": "vitest run tests/demo-shell.test.ts",
|
|
116
118
|
"test:ai-top-picks": "vitest run tests/ai-top-picks.test.ts",
|
|
117
119
|
"test:choice-prompter": "vitest run tests/choice-prompter.test.ts",
|
|
118
|
-
"test:e2e": "env -u FORCE_COLOR -u NO_COLOR playwright test
|
|
119
|
-
"test:all": "npm
|
|
120
|
-
"test:e2e:
|
|
120
|
+
"test:e2e": "env -u FORCE_COLOR -u NO_COLOR playwright test",
|
|
121
|
+
"test:all": "npm test",
|
|
122
|
+
"test:e2e:chromium": "env -u FORCE_COLOR -u NO_COLOR playwright test --project=chromium",
|
|
123
|
+
"test:e2e:mobile": "env -u FORCE_COLOR -u NO_COLOR playwright test --project=mobile",
|
|
124
|
+
"test:e2e:catalog": "env -u FORCE_COLOR -u NO_COLOR playwright test --project=catalog",
|
|
125
|
+
"test:e2e:fullstack": "env -u FORCE_COLOR -u NO_COLOR playwright test --project=full-stack",
|
|
121
126
|
"docs:dev": "vitepress dev docs",
|
|
122
127
|
"docs:build": "vitepress build docs",
|
|
123
128
|
"catalog": "npm run build && vite --config catalog/vite.config.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
|
-
}
|