@webority/chat-react 0.88.1 → 0.90.0
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/dist/chat-react.js +1 -1
- package/dist/guidance.json +214 -0
- package/dist/types/ChatMarkdown.meta.d.ts +31 -0
- package/dist/types/components/ActionCard.meta.d.ts +89 -0
- package/dist/types/components/ChatComposer.d.ts +3 -3
- package/dist/types/components/ChatComposer.meta.d.ts +40 -0
- package/dist/types/components/ChatConversationList.d.ts +1 -1
- package/dist/types/components/ChatConversationList.meta.d.ts +37 -0
- package/dist/types/components/ChatLauncher.d.ts +6 -6
- package/dist/types/components/ChatLauncher.meta.d.ts +50 -0
- package/dist/types/components/ChatMessage.meta.d.ts +153 -0
- package/dist/types/components/ChatPanel.d.ts +9 -10
- package/dist/types/components/ChatPanel.meta.d.ts +208 -0
- package/dist/types/components/ChatThread.d.ts +1 -1
- package/dist/types/components/ChatThread.meta.d.ts +131 -0
- package/dist/types/components/CitationChip.d.ts +2 -2
- package/dist/types/components/CitationChip.meta.d.ts +48 -0
- package/dist/types/components/ConfirmCard.d.ts +2 -2
- package/dist/types/components/ConfirmCard.meta.d.ts +43 -0
- package/dist/types/components/ReplyRating.d.ts +2 -2
- package/dist/types/components/ReplyRating.meta.d.ts +34 -0
- package/package.json +9 -7
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const meta: {
|
|
2
|
+
readonly name: "ReplyRating";
|
|
3
|
+
readonly marker: any;
|
|
4
|
+
readonly platforms: readonly ["web"];
|
|
5
|
+
readonly acceptsChildren: false;
|
|
6
|
+
readonly props: {
|
|
7
|
+
readonly rating: {
|
|
8
|
+
readonly type: "enum";
|
|
9
|
+
readonly values: readonly ["Up", "Down"];
|
|
10
|
+
readonly description: "The rating already saved for the reply. Leave it out when the reply is not rated yet.";
|
|
11
|
+
};
|
|
12
|
+
readonly noteMaxLength: {
|
|
13
|
+
readonly type: "number";
|
|
14
|
+
readonly default: 1000;
|
|
15
|
+
readonly description: "The most characters the optional note after a not helpful rating takes.";
|
|
16
|
+
};
|
|
17
|
+
readonly labels: {
|
|
18
|
+
readonly type: "object";
|
|
19
|
+
readonly description: "Replaces any of the chat texts the rating buttons, the note field and the thank you line show.";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly examples: readonly [{
|
|
23
|
+
readonly id: "ReplyRating";
|
|
24
|
+
readonly title: "Default";
|
|
25
|
+
readonly props: {};
|
|
26
|
+
}];
|
|
27
|
+
readonly usage: {
|
|
28
|
+
readonly when: readonly ["A reply can be rated helpful or not helpful, with an optional note after a not helpful rating."];
|
|
29
|
+
readonly whenNot: readonly [];
|
|
30
|
+
readonly do: readonly [];
|
|
31
|
+
readonly dont: readonly [];
|
|
32
|
+
readonly a11y: readonly ["Both rating buttons are native buttons that expose their state through aria-pressed.", "The thank you line is a status message.", "The note field has a visible label and a hint, and the person can send the note or skip it."];
|
|
33
|
+
};
|
|
34
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/chat-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.0",
|
|
4
4
|
"description": "Webority AI assistant for React portals: a streaming chat client, a store-agnostic chat hook, and the launcher, panel, thread, rating and support action card, built on @webority/ui-react.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"types": "./dist/types/index.d.ts",
|
|
23
23
|
"default": "./dist/chat-react.js"
|
|
24
24
|
},
|
|
25
|
-
"./package.json": "./package.json"
|
|
25
|
+
"./package.json": "./package.json",
|
|
26
|
+
"./guidance.json": "./dist/guidance.json"
|
|
26
27
|
},
|
|
27
28
|
"sideEffects": false,
|
|
28
29
|
"peerDependencies": {
|
|
@@ -30,8 +31,8 @@
|
|
|
30
31
|
"react": "^19.0.0",
|
|
31
32
|
"react-bootstrap": "^2.10.0",
|
|
32
33
|
"react-dom": "^19.0.0",
|
|
33
|
-
"@webority/ui-
|
|
34
|
-
"@webority/ui-
|
|
34
|
+
"@webority/ui-react": "0.90.0",
|
|
35
|
+
"@webority/ui-elements": "0.90.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@testing-library/dom": "10.4.2",
|
|
@@ -49,11 +50,12 @@
|
|
|
49
50
|
"typescript": "^7.0.2",
|
|
50
51
|
"vite": "^8.0.12",
|
|
51
52
|
"vitest": "5.0.1",
|
|
52
|
-
"@webority/
|
|
53
|
-
"@webority/ui-
|
|
53
|
+
"@webority/canvas-kit": "0.90.0",
|
|
54
|
+
"@webority/ui-elements": "0.90.0",
|
|
55
|
+
"@webority/ui-react": "0.90.0"
|
|
54
56
|
},
|
|
55
57
|
"scripts": {
|
|
56
|
-
"build": "vite build && tsc -p tsconfig.json",
|
|
58
|
+
"build": "vite build && tsc -p tsconfig.json && node ../canvas-kit/dist/cli.js guidance --config canvas-kit.json --out dist/guidance.json",
|
|
57
59
|
"test": "vitest run",
|
|
58
60
|
"test:watch": "vitest",
|
|
59
61
|
"test:coverage": "vitest run --coverage"
|