@memori.ai/memori-react 9.2.0 → 9.2.1
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/CHANGELOG.md +33 -0
- package/dist/components/Chat/Chat.d.ts +2 -0
- package/dist/components/Chat/Chat.js +74 -11
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.d.ts +5 -0
- package/dist/components/ChatBubble/ChatBubble.js +2 -2
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/InstructionProposalCard/InstructionProposalCard.css +115 -0
- package/dist/components/InstructionProposalCard/InstructionProposalCard.d.ts +31 -0
- package/dist/components/InstructionProposalCard/InstructionProposalCard.js +288 -0
- package/dist/components/InstructionProposalCard/InstructionProposalCard.js.map +1 -0
- package/dist/components/MediaWidget/MediaItemWidget.css +6 -0
- package/dist/components/MediaWidget/MediaItemWidget.js +16 -4
- package/dist/components/MediaWidget/MediaItemWidget.js.map +1 -1
- package/dist/components/MediaWidget/MediaItemWidget.types.d.ts +5 -0
- package/dist/components/MediaWidget/MediaWidget.d.ts +4 -0
- package/dist/components/MediaWidget/MediaWidget.js +2 -2
- package/dist/components/MediaWidget/MediaWidget.js.map +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +32 -3
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/layouts/flows/FlowWidget.js +2 -2
- package/dist/components/layouts/flows/FlowWidget.js.map +1 -1
- package/dist/helpers/constants.d.ts +1 -0
- package/dist/helpers/constants.js +2 -1
- package/dist/helpers/constants.js.map +1 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +75 -0
- package/dist/locales/en.json +75 -0
- package/dist/locales/es.json +75 -0
- package/dist/locales/fr.json +75 -0
- package/dist/locales/it.json +75 -0
- package/dist/styles.css +1 -1
- package/dist/types/instructionProposal.d.ts +64 -0
- package/dist/types/instructionProposal.js +3 -0
- package/dist/types/instructionProposal.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/Chat/Chat.d.ts +2 -0
- package/esm/components/Chat/Chat.js +75 -12
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.d.ts +5 -0
- package/esm/components/ChatBubble/ChatBubble.js +2 -2
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/IconButton/IconButton.d.ts +1 -1
- package/esm/components/InstructionProposalCard/InstructionProposalCard.css +115 -0
- package/esm/components/InstructionProposalCard/InstructionProposalCard.d.ts +31 -0
- package/esm/components/InstructionProposalCard/InstructionProposalCard.js +278 -0
- package/esm/components/InstructionProposalCard/InstructionProposalCard.js.map +1 -0
- package/esm/components/MediaWidget/MediaItemWidget.css +6 -0
- package/esm/components/MediaWidget/MediaItemWidget.js +17 -5
- package/esm/components/MediaWidget/MediaItemWidget.js.map +1 -1
- package/esm/components/MediaWidget/MediaItemWidget.types.d.ts +5 -0
- package/esm/components/MediaWidget/MediaWidget.d.ts +4 -0
- package/esm/components/MediaWidget/MediaWidget.js +2 -2
- package/esm/components/MediaWidget/MediaWidget.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +32 -3
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/layouts/flows/FlowWidget.js +2 -2
- package/esm/components/layouts/flows/FlowWidget.js.map +1 -1
- package/esm/helpers/constants.d.ts +1 -0
- package/esm/helpers/constants.js +1 -0
- package/esm/helpers/constants.js.map +1 -1
- package/esm/index.js +1 -6
- package/esm/index.js.map +1 -1
- package/esm/locales/de.json +75 -0
- package/esm/locales/en.json +75 -0
- package/esm/locales/es.json +75 -0
- package/esm/locales/fr.json +75 -0
- package/esm/locales/it.json +75 -0
- package/esm/styles.css +1 -1
- package/esm/types/instructionProposal.d.ts +64 -0
- package/esm/types/instructionProposal.js +2 -0
- package/esm/types/instructionProposal.js.map +1 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type InstructionProposalType = 'NewContent' | 'ContentVariants' | 'PromptChange' | 'PromptRevert' | 'AttachmentPlacement' | 'ContentAnswerChange' | 'Snippet' | 'LandingPage' | 'Connector' | 'WelcomeMessage' | 'AisuruFunction' | 'ScheduledTask';
|
|
2
|
+
export interface InstructionSnippetField {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface InstructionConnectorField {
|
|
8
|
+
name: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
example?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
secret?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface InstructionProposal {
|
|
16
|
+
id: string;
|
|
17
|
+
type: InstructionProposalType;
|
|
18
|
+
reason?: string;
|
|
19
|
+
question?: string;
|
|
20
|
+
answer?: string;
|
|
21
|
+
baseAnswer?: string;
|
|
22
|
+
variants?: string[];
|
|
23
|
+
prompt?: string;
|
|
24
|
+
attachmentName?: string;
|
|
25
|
+
documentTitle?: string;
|
|
26
|
+
snippetTemplate?: string;
|
|
27
|
+
snippetParameters?: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
snippetFields?: InstructionSnippetField[];
|
|
31
|
+
landingPageLayout?: string;
|
|
32
|
+
previousLandingPageLayout?: string;
|
|
33
|
+
initialQuestion?: string;
|
|
34
|
+
previousInitialQuestion?: string;
|
|
35
|
+
landingPageSettings?: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
previousLandingPageSettings?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
connectorSchemaID?: string;
|
|
42
|
+
connectorName?: string;
|
|
43
|
+
connectorDescription?: string;
|
|
44
|
+
connectorFields?: InstructionConnectorField[];
|
|
45
|
+
connectorParameters?: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
welcomeMessage?: string;
|
|
49
|
+
baseWelcomeMessage?: string;
|
|
50
|
+
aisuruFunctionName?: string;
|
|
51
|
+
aisuruFunctionDescription?: string;
|
|
52
|
+
aisuruFunctionEnable?: boolean;
|
|
53
|
+
scheduledTaskLabel?: string;
|
|
54
|
+
scheduledTaskPrompt?: string;
|
|
55
|
+
scheduledTaskCron?: string;
|
|
56
|
+
scheduledTaskRunAt?: string;
|
|
57
|
+
scheduledTaskTimezone?: string;
|
|
58
|
+
}
|
|
59
|
+
export type InstructionProposalStatuses = {
|
|
60
|
+
[proposalID: string]: 'applied' | 'ignored' | 'notPending';
|
|
61
|
+
};
|
|
62
|
+
export type InstructionProposalConfirm = (proposalID: string, apply: boolean, parameters?: {
|
|
63
|
+
[key: string]: string;
|
|
64
|
+
}) => Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructionProposal.js","sourceRoot":"","sources":["../../src/types/instructionProposal.ts"],"names":[],"mappings":""}
|
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "9.2.
|
|
1
|
+
export declare const version = "9.2.1";
|
package/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '9.2.
|
|
1
|
+
export const version = '9.2.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "9.2.
|
|
2
|
+
"version": "9.2.1",
|
|
3
3
|
"name": "@memori.ai/memori-react",
|
|
4
4
|
"author": "Memori Srl",
|
|
5
5
|
"main": "dist/index.js",
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"typescript": ">=4.8"
|
|
262
262
|
},
|
|
263
263
|
"dependencies": {
|
|
264
|
-
"@memori.ai/memori-api-client": "6.
|
|
264
|
+
"@memori.ai/memori-api-client": "6.28.0",
|
|
265
265
|
"@memori.ai/ui": "2.0.7",
|
|
266
266
|
"@nats-io/jetstream": "^3.4.0",
|
|
267
267
|
"@nats-io/nats-core": "^3.4.0",
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"classnames": "2.5.1",
|
|
272
272
|
"dompurify": "^3.4.17",
|
|
273
273
|
"ellipsed": "1.6.0",
|
|
274
|
-
"i18next": "
|
|
274
|
+
"i18next": "26.7.2",
|
|
275
275
|
"katex": "0.18.10",
|
|
276
276
|
"leaflet": "^1.9.4",
|
|
277
277
|
"lil-gui": "^0.19.2",
|