@e-llm-studio/instant-learning 1.3.0-alpha.119 → 1.3.0-alpha.120
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/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/types/src/ComponentRegistry.d.ts +0 -1
- package/dist/types/src/ComponentRegistry.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +9 -13
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("../../../features/LearningManagement/components/InstantLearningModal.js"),i=require("../../../features/LearningManagement/store/useLMSConfigStore.js"),a=require("react-markdown"),r=require("react-dom/server"),o=require("../../../features/LearningManagement/store/useLearningTemplateStore.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(a);exports.default=function(a){var l=a.pluginPayload||{},d=l.editingRule,u=l.editingTier,c=l.editingVariants,p=l.focusedVariantIndex,g=l.setFocusedVariantIndex,T=l.triggerAddVariant,m=l.triggerFixGaps,f=l.copiedRule,h=l.copiedSourceTier,L=l.copiedTargetTier,b=l.initialDraftMessage,M=l.app_integration_id,S=l.modeId,v="instruction_prompt",x=i.useTeachMeConfigStore(function(e){return e.teachMeConfig});console.log("teachMeConfig:",x),i.dtt("learningMetadataComponents.properties.instruction_prompt.bpa_ui_component","");var A=o.useLearningTemplateStore(function(e){var t;return null!==(t=e.learningMetadata[v])&&void 0!==t?t:""}),y=o.useLearningTemplateStore(function(e){return e.setLearningMetadataField}),I=i.dttWelcomeMessageParts(),C=I.greeting,_=I.subtitle,j=I.actions,w=r.renderToStaticMarkup(t.jsxs("p",{children:[t.jsx("span",{children:C}),t.jsx(s.default,{children:_}),t.jsx("span",e.__assign({className:"clickable-button-group"},{children:j.map(function(n){var i=n.label,a=n.value;return t.jsx("button",e.__assign({className:"clickable-button","data-value":a},{children:i}),i)})}))]})),N={showScope:!1,showConfiguration:!1,welcomeMessage:i.dtt("welcomeMessage","Hi! 👋 I'm your Instant Learning Concierge."),formTitle:i.dtt("formTitle","Rule setup"),setupLabel:i.dtt("setupLabel","Configure your IL"),ruleTitle:i.dtt("ruleTitle","Main Rule Name"),scopeLabel:i.dtt("scopeLabel","Define Scope"),tierLabel:i.dtt("tierLabel","Select Tiers"),ruleDescriptionTitle:i.dtt("ruleDescriptionTitle","Learning Explanation"),whenToApplyTitle:i.dtt("whenToApplyTitle","Trigger Events (When to Apply)"),addWhenToApplyBtnLabel:i.dtt("addWhenToApplyBtnLabel","Add WTA"),whenNotToApplyTitle:i.dtt("whenNotToApplyTitle","Exclusion Events (When NOT to Apply)"),addWhenNotToApplyBtnLabel:i.dtt("addWhenNotToApplyBtnLabel","Add WNTA"),configTitle:i.dtt("configTitle","Advanced Settings"),saveBtnConfig:{label:i.dtt("saveBtnLabel","Save Rule"),loadingLabel:i.dtt("saveBtnLoadingLabel","Saving Rule...")},chatTitle:i.dtt("chatTitle","Teach Me OTJ - {scope} - Add Learning"),chatTitleEdit:i.dtt("chatTitleEdit","Teach Me OTJ - {scope} - Edit Learning"),chatTextareaPlaceholder:i.dtt("chatTextareaPlaceholder","Tell me more about this learning.."),LearningTerm:i.dt("agents.LearningTerm","Learnings"),instructionPrompt:A,setInstructionPrompt:function(e){return y(v,e)},instructionPromptTitle:i.dtt("learningMetadataComponents.properties.instruction_prompt.title","Instruction Prompt")};return t.jsx(n.default,{isOpen:a.isOpen,onClose:a.onClose,initialScope:a.initialScope,ruleSet:a.ruleSet,editingRule:d,editingTier:u,editingVariants:c,focusedVariantIndex:p,setFocusedVariantIndex:g,triggerAddVariant:T,triggerFixGaps:m,copiedRule:f,copiedSourceTier:h,copiedTargetTier:L,initialDraftMessage:b,initialChatMessage:w,applicationIntegrationId:M,modeId:S,uiStateLabels:N,customSections:null})};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import i from"../../../features/LearningManagement/components/InstantLearningModal.js";import{useTeachMeConfigStore as a,dtt as r,dttWelcomeMessageParts as o,dt as l}from"../../../features/LearningManagement/store/useLMSConfigStore.js";import s from"react-markdown";import{renderToStaticMarkup as p}from"react-dom/server";import{useLearningTemplateStore as c}from"../../../features/LearningManagement/store/useLearningTemplateStore.js";var d=function(d){var u=d.pluginPayload||{},g=u.editingRule,m=u.editingTier,T=u.editingVariants,f=u.focusedVariantIndex,h=u.setFocusedVariantIndex,L=u.triggerAddVariant,b=u.triggerFixGaps,M=u.copiedRule,A=u.copiedSourceTier,v=u.copiedTargetTier,S=u.initialDraftMessage,I=u.app_integration_id,y=u.modeId,x="instruction_prompt",C=a(function(e){return e.teachMeConfig});console.log("teachMeConfig:",C),r("learningMetadataComponents.properties.instruction_prompt.bpa_ui_component","");var w=c(function(e){var t;return null!==(t=e.learningMetadata[x])&&void 0!==t?t:""}),N=c(function(e){return e.setLearningMetadataField}),R=o(),V=R.greeting,W=R.subtitle,B=R.actions,E=p(t("p",{children:[n("span",{children:V}),n(s,{children:W}),n("span",e({className:"clickable-button-group"},{children:B.map(function(t){var i=t.label,a=t.value;return n("button",e({className:"clickable-button","data-value":a},{children:i}),i)})}))]})),P={showScope:!1,showConfiguration:!1,welcomeMessage:r("welcomeMessage","Hi! 👋 I'm your Instant Learning Concierge."),formTitle:r("formTitle","Rule setup"),setupLabel:r("setupLabel","Configure your IL"),ruleTitle:r("ruleTitle","Main Rule Name"),scopeLabel:r("scopeLabel","Define Scope"),tierLabel:r("tierLabel","Select Tiers"),ruleDescriptionTitle:r("ruleDescriptionTitle","Learning Explanation"),whenToApplyTitle:r("whenToApplyTitle","Trigger Events (When to Apply)"),addWhenToApplyBtnLabel:r("addWhenToApplyBtnLabel","Add WTA"),whenNotToApplyTitle:r("whenNotToApplyTitle","Exclusion Events (When NOT to Apply)"),addWhenNotToApplyBtnLabel:r("addWhenNotToApplyBtnLabel","Add WNTA"),configTitle:r("configTitle","Advanced Settings"),saveBtnConfig:{label:r("saveBtnLabel","Save Rule"),loadingLabel:r("saveBtnLoadingLabel","Saving Rule...")},chatTitle:r("chatTitle","Teach Me OTJ - {scope} - Add Learning"),chatTitleEdit:r("chatTitleEdit","Teach Me OTJ - {scope} - Edit Learning"),chatTextareaPlaceholder:r("chatTextareaPlaceholder","Tell me more about this learning.."),LearningTerm:l("agents.LearningTerm","Learnings"),instructionPrompt:w,setInstructionPrompt:function(e){return N(x,e)},instructionPromptTitle:r("learningMetadataComponents.properties.instruction_prompt.title","Instruction Prompt")};return n(i,{isOpen:d.isOpen,onClose:d.onClose,initialScope:d.initialScope,ruleSet:d.ruleSet,editingRule:g,editingTier:m,editingVariants:T,focusedVariantIndex:f,setFocusedVariantIndex:h,triggerAddVariant:L,triggerFixGaps:b,copiedRule:M,copiedSourceTier:A,copiedTargetTier:v,initialDraftMessage:S,initialChatMessage:E,applicationIntegrationId:I,modeId:y,uiStateLabels:P,customSections:null})};export{d as default};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -25,5 +25,4 @@ export declare const getComponentsByCategory: (category: string) => {
|
|
|
25
25
|
tags: string[];
|
|
26
26
|
name: "PromptTextEditor";
|
|
27
27
|
}[];
|
|
28
|
-
export declare const resolveRegistryComponent: (name?: string | null) => React.LazyExoticComponent<React.ComponentType<any>> | null;
|
|
29
28
|
//# sourceMappingURL=ComponentRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentRegistry.d.ts","sourceRoot":"","sources":["../../../src/ComponentRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;IACjE,QAAQ,EAAE,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAChE,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAKvD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAS1E,CAAC;AACF,eAAO,MAAM,uBAAuB,SAC5B,MAAM,+BAC+C,CAAC;AAC9D,eAAO,MAAM,kBAAkB,SAAU,MAAM,EAAE;gBAvBnC,MAAM,QAAQ;QAAE,OAAO,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;cACtD,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;UACzD,MAAM,EAAE;;GAwByB,CAAC;AAE1C,eAAO,MAAM,uBAAuB,aAAc,MAAM;gBA5B1C,MAAM,QAAQ;QAAE,OAAO,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;cACtD,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;UACzD,MAAM,EAAE;;GA6ByB,CAAC
|
|
1
|
+
{"version":3,"file":"ComponentRegistry.d.ts","sourceRoot":"","sources":["../../../src/ComponentRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;IACjE,QAAQ,EAAE,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAChE,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAKvD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAS1E,CAAC;AACF,eAAO,MAAM,uBAAuB,SAC5B,MAAM,+BAC+C,CAAC;AAC9D,eAAO,MAAM,kBAAkB,SAAU,MAAM,EAAE;gBAvBnC,MAAM,QAAQ;QAAE,OAAO,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;cACtD,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;UACzD,MAAM,EAAE;;GAwByB,CAAC;AAE1C,eAAO,MAAM,uBAAuB,aAAc,MAAM;gBA5B1C,MAAM,QAAQ;QAAE,OAAO,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;cACtD,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;UACzD,MAAM,EAAE;;GA6ByB,CAAC"}
|
|
@@ -23,21 +23,17 @@ export interface PromptTextEditorProps {
|
|
|
23
23
|
sx?: BoxProps['sx'];
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* TEMP DUMMY REPLACEMENT for `AIPromptEditor`.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* its internal markup relies on Tailwind utility classes that this app
|
|
35
|
-
* doesn't compile, so the toolbar/buttons render plain by design. This
|
|
36
|
-
* wrapper only dresses up the outer shell; it does not attempt to
|
|
37
|
-
* reproduce the library's internal Tailwind-dependent styling.
|
|
28
|
+
* `AIPromptEditor` import is disabled for now (Monaco `s.clone is not a
|
|
29
|
+
* function` crash from `configureMonaco`'s `setMonarchTokenizer` call — see
|
|
30
|
+
* library bug). This stand-in is a plain, uncontrolled-free `<textarea>`
|
|
31
|
+
* that preserves the same prop contract (value/onChange/placeholder/title/
|
|
32
|
+
* description/min-max sizing) so consumers of `PromptTextEditor` don't need
|
|
33
|
+
* to change anything when the real editor is swapped back in.
|
|
38
34
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
35
|
+
* TODO: restore `AIPromptEditor` once the Monaco tokenizer crash is fixed
|
|
36
|
+
* upstream in `@e-llm-studio/creative-workspace-ui-component`.
|
|
41
37
|
*/
|
|
42
38
|
declare const PromptTextEditor: React.FC<PromptTextEditorProps>;
|
|
43
39
|
export default PromptTextEditor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/PromptTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PromptTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/PromptTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIlD,OAAO,yCAAyC,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uFAAuF;IACvF,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuDrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/instant-learning",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.120",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"@babel/preset-react": "7.26.3",
|
|
102
102
|
"@babel/preset-typescript": "7.26.0",
|
|
103
103
|
"@e-llm-studio/streaming-response": "^1.1.84",
|
|
104
|
+
"@types/node": "^20.19.0",
|
|
104
105
|
"@emotion/react": "^11.14.0",
|
|
105
106
|
"@emotion/styled": "^11.14.1",
|
|
106
107
|
"@monaco-editor/react": "^4.7.0",
|
|
@@ -151,7 +152,6 @@
|
|
|
151
152
|
"@craco/craco": "^7.1.0",
|
|
152
153
|
"@e-llm-studio/audit-log": "^2.0.9",
|
|
153
154
|
"@e-llm-studio/citation": "^0.0.216",
|
|
154
|
-
"@e-llm-studio/creative-workspace-ui-component": "^0.0.15",
|
|
155
155
|
"@e-llm-studio/watch-me-work": "^0.0.25",
|
|
156
156
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
157
157
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
@@ -183,6 +183,7 @@
|
|
|
183
183
|
"vfile-message": "^4.0.2",
|
|
184
184
|
"@types/react": "^18.3.28",
|
|
185
185
|
"@types/react-dom": "^18.3.7",
|
|
186
|
+
"@types/node": "^20.19.0",
|
|
186
187
|
"@e-llm-studio/watch-me-work": {
|
|
187
188
|
"react": "18.3.1",
|
|
188
189
|
"react-dom": "18.3.1"
|