@e-llm-studio/instant-learning 0.0.287 → 0.0.289
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/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ChatFeedback.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/ChatFeedback.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ChatFeedback.d.ts +13 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ChatFeedback.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +3 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export interface FeedbackField {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: 'radio' | 'text' | 'textarea';
|
|
6
|
+
options?: string[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FeedbackConfig {
|
|
10
|
+
title?: string;
|
|
11
|
+
fields: FeedbackField[];
|
|
12
|
+
submitButtonText?: string;
|
|
13
|
+
}
|
|
2
14
|
interface ChatFeedbackProps {
|
|
3
15
|
isLastMessage?: boolean;
|
|
4
16
|
isStreamEnd?: boolean;
|
|
@@ -7,6 +19,7 @@ interface ChatFeedbackProps {
|
|
|
7
19
|
messages: any[];
|
|
8
20
|
index: number;
|
|
9
21
|
onFeedbackSubmit?: (payload: any) => Promise<void>;
|
|
22
|
+
feedbackConfig?: FeedbackConfig;
|
|
10
23
|
}
|
|
11
24
|
declare const ChatFeedback: React.FC<ChatFeedbackProps>;
|
|
12
25
|
export default ChatFeedback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFeedback.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/ChatFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatFeedback.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/ChatFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAqBD,UAAU,iBAAiB;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuO7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FeedbackConfig } from './ChatFeedback';
|
|
1
2
|
interface MessageRenderingProps {
|
|
2
3
|
index: number;
|
|
3
4
|
content: string;
|
|
@@ -18,7 +19,8 @@ interface MessageRenderingProps {
|
|
|
18
19
|
baseURL?: string | undefined;
|
|
19
20
|
onFeedbackSubmit?: (payload: any) => Promise<void>;
|
|
20
21
|
isGlobalEditActive?: boolean;
|
|
22
|
+
feedbackConfig?: FeedbackConfig;
|
|
21
23
|
}
|
|
22
|
-
declare const MessageRendering: ({ index, content, role, messages, handleStream, scrollToBottom, isLastMessage, onSave, citations, setChatSize, chatSize, isStreamEnd, messageIsEnd, onViewComparison, onTypeResponseClick, onComparisonLinkClick, baseURL, onFeedbackSubmit, isGlobalEditActive, }: MessageRenderingProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const MessageRendering: ({ index, content, role, messages, handleStream, scrollToBottom, isLastMessage, onSave, citations, setChatSize, chatSize, isStreamEnd, messageIsEnd, onViewComparison, onTypeResponseClick, onComparisonLinkClick, baseURL, onFeedbackSubmit, isGlobalEditActive, feedbackConfig, }: MessageRenderingProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
25
|
export default MessageRendering;
|
|
24
26
|
//# sourceMappingURL=MessageRendering.d.ts.map
|
package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/MessageRendering.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/MessageRendering.tsx"],"names":[],"mappings":"AASA,OAAqB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG9D,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,OAAO,CAAC,EAAE,MAAM,GAAC,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,QAAA,MAAM,gBAAgB,uRAqBnB,qBAAqB,4CAg6BvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -29,7 +29,8 @@ interface ConditionListProps {
|
|
|
29
29
|
setActiveEditId?: (id: string | null) => void;
|
|
30
30
|
pendingEditId?: string | null;
|
|
31
31
|
setPendingEditId?: (id: string | null) => void;
|
|
32
|
+
errorMessage?: string | null;
|
|
32
33
|
}
|
|
33
|
-
export declare const ConditionList: ({ idPrefix, items, onAdd, onRemove, onEdit, index, tierKey, readOnly, placeholder, addLabel, showAddButton, isHighlighted, highlightedIds, footer, tooltipDescription, citations, setSendMessageInChat, fieldName, isAiStreaming, activeEditId, setActiveEditId, pendingEditId, setPendingEditId }: ConditionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const ConditionList: ({ idPrefix, items, onAdd, onRemove, onEdit, index, tierKey, readOnly, placeholder, addLabel, showAddButton, isHighlighted, highlightedIds, footer, tooltipDescription, citations, setSendMessageInChat, fieldName, isAiStreaming, activeEditId, setActiveEditId, pendingEditId, setPendingEditId, errorMessage, }: ConditionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
export {};
|
|
35
36
|
//# sourceMappingURL=ConditionList.d.ts.map
|
package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/molecules/Condition/ConditionList.tsx"],"names":[],"mappings":";AAQA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;IAC5D,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ConditionList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/molecules/Condition/ConditionList.tsx"],"names":[],"mappings":";AAQA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;IAC5D,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,sTAyBvB,kBAAkB,4CAkWpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionSection.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,8SAC6C,GAAG,
|
|
1
|
+
{"version":3,"file":"ConditionSection.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,8SAC6C,GAAG,4CA4B5E,CAAC"}
|