@e-llm-studio/instant-learning 1.3.0-alpha.120 → 1.3.0-alpha.121
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 +1 -0
- package/dist/types/src/ComponentRegistry.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +13 -9
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -1
- package/package.json +2 -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("../../../features/LearningManagement/components/InstantLearningModal.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("../../../features/LearningManagement/components/InstantLearningModal.js"),a=require("../../../features/LearningManagement/store/useLMSConfigStore.js"),r=require("react-markdown"),o=require("react-dom/server"),l=require("../../../ComponentRegistry.js"),s=require("../../../features/LearningManagement/store/useLearningTemplateStore.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(r);exports.default=function(r){var d=r.pluginPayload||{},c=d.editingRule,p=d.editingTier,g=d.editingVariants,T=d.focusedVariantIndex,m=d.setFocusedVariantIndex,f=d.triggerAddVariant,L=d.triggerFixGaps,h=d.copiedRule,b=d.copiedSourceTier,M=d.copiedTargetTier,S=d.initialDraftMessage,v=d.app_integration_id,x=d.modeId,y="instruction_prompt",A=a.useTeachMeConfigStore(function(e){return e.teachMeConfig});console.log("teachMeConfig:",A);var C=a.dtt("learningMetadataComponents.properties.instruction_prompt.bpa_ui_component",""),I=s.useLearningTemplateStore(function(e){var t;return null!==(t=e.learningMetadata[y])&&void 0!==t?t:""}),j=s.useLearningTemplateStore(function(e){return e.setLearningMetadataField}),_=n.useMemo(function(){return l.resolveRegistryComponent(C)},[C]),P=a.dttWelcomeMessageParts(),R=P.greeting,q=P.subtitle,w=P.actions,N=o.renderToStaticMarkup(t.jsxs("p",{children:[t.jsx("span",{children:R}),t.jsx(u.default,{children:q}),t.jsx("span",e.__assign({className:"clickable-button-group"},{children:w.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)})}))]})),W={showScope:!1,showConfiguration:!1,welcomeMessage:a.dtt("welcomeMessage","Hi! 👋 I'm your Instant Learning Concierge."),formTitle:a.dtt("formTitle","Rule setup"),setupLabel:a.dtt("setupLabel","Configure your IL"),ruleTitle:a.dtt("ruleTitle","Main Rule Name"),scopeLabel:a.dtt("scopeLabel","Define Scope"),tierLabel:a.dtt("tierLabel","Select Tiers"),ruleDescriptionTitle:a.dtt("ruleDescriptionTitle","Learning Explanation"),whenToApplyTitle:a.dtt("whenToApplyTitle","Trigger Events (When to Apply)"),addWhenToApplyBtnLabel:a.dtt("addWhenToApplyBtnLabel","Add WTA"),whenNotToApplyTitle:a.dtt("whenNotToApplyTitle","Exclusion Events (When NOT to Apply)"),addWhenNotToApplyBtnLabel:a.dtt("addWhenNotToApplyBtnLabel","Add WNTA"),configTitle:a.dtt("configTitle","Advanced Settings"),saveBtnConfig:{label:a.dtt("saveBtnLabel","Save Rule"),loadingLabel:a.dtt("saveBtnLoadingLabel","Saving Rule...")},chatTitle:a.dtt("chatTitle","Teach Me OTJ - {scope} - Add Learning"),chatTitleEdit:a.dtt("chatTitleEdit","Teach Me OTJ - {scope} - Edit Learning"),chatTextareaPlaceholder:a.dtt("chatTextareaPlaceholder","Tell me more about this learning.."),LearningTerm:a.dt("agents.LearningTerm","Learnings"),LazyPromptEditor:_,instructionPrompt:I,setInstructionPrompt:function(e){return j(y,e)},instructionPromptTitle:a.dtt("learningMetadataComponents.properties.instruction_prompt.title","Instruction Prompt")};return t.jsx(i.default,{isOpen:r.isOpen,onClose:r.onClose,initialScope:r.initialScope,ruleSet:r.ruleSet,editingRule:c,editingTier:p,editingVariants:g,focusedVariantIndex:T,setFocusedVariantIndex:m,triggerAddVariant:f,triggerFixGaps:L,copiedRule:h,copiedSourceTier:b,copiedTargetTier:M,initialDraftMessage:S,initialChatMessage:N,applicationIntegrationId:v,modeId:x,uiStateLabels:W,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 i from"../../../features/LearningManagement/components/InstantLearningModal.js";import{useTeachMeConfigStore as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useMemo as i}from"react";import a from"../../../features/LearningManagement/components/InstantLearningModal.js";import{useTeachMeConfigStore as r,dtt as o,dttWelcomeMessageParts as l,dt as s}from"../../../features/LearningManagement/store/useLMSConfigStore.js";import p from"react-markdown";import{renderToStaticMarkup as c}from"react-dom/server";import{resolveRegistryComponent as d}from"../../../ComponentRegistry.js";import{useLearningTemplateStore as u}from"../../../features/LearningManagement/store/useLearningTemplateStore.js";var g=function(g){var m=g.pluginPayload||{},T=m.editingRule,f=m.editingTier,h=m.editingVariants,L=m.focusedVariantIndex,b=m.setFocusedVariantIndex,M=m.triggerAddVariant,A=m.triggerFixGaps,v=m.copiedRule,S=m.copiedSourceTier,y=m.copiedTargetTier,I=m.initialDraftMessage,C=m.app_integration_id,x=m.modeId,w="instruction_prompt",N=r(function(e){return e.teachMeConfig});console.log("teachMeConfig:",N);var R=o("learningMetadataComponents.properties.instruction_prompt.bpa_ui_component",""),E=u(function(e){var t;return null!==(t=e.learningMetadata[w])&&void 0!==t?t:""}),P=u(function(e){return e.setLearningMetadataField}),V=i(function(){return d(R)},[R]),W=l(),B=W.greeting,_=W.subtitle,j=W.actions,D=c(t("p",{children:[n("span",{children:B}),n(p,{children:_}),n("span",e({className:"clickable-button-group"},{children:j.map(function(t){var i=t.label,a=t.value;return n("button",e({className:"clickable-button","data-value":a},{children:i}),i)})}))]})),F={showScope:!1,showConfiguration:!1,welcomeMessage:o("welcomeMessage","Hi! 👋 I'm your Instant Learning Concierge."),formTitle:o("formTitle","Rule setup"),setupLabel:o("setupLabel","Configure your IL"),ruleTitle:o("ruleTitle","Main Rule Name"),scopeLabel:o("scopeLabel","Define Scope"),tierLabel:o("tierLabel","Select Tiers"),ruleDescriptionTitle:o("ruleDescriptionTitle","Learning Explanation"),whenToApplyTitle:o("whenToApplyTitle","Trigger Events (When to Apply)"),addWhenToApplyBtnLabel:o("addWhenToApplyBtnLabel","Add WTA"),whenNotToApplyTitle:o("whenNotToApplyTitle","Exclusion Events (When NOT to Apply)"),addWhenNotToApplyBtnLabel:o("addWhenNotToApplyBtnLabel","Add WNTA"),configTitle:o("configTitle","Advanced Settings"),saveBtnConfig:{label:o("saveBtnLabel","Save Rule"),loadingLabel:o("saveBtnLoadingLabel","Saving Rule...")},chatTitle:o("chatTitle","Teach Me OTJ - {scope} - Add Learning"),chatTitleEdit:o("chatTitleEdit","Teach Me OTJ - {scope} - Edit Learning"),chatTextareaPlaceholder:o("chatTextareaPlaceholder","Tell me more about this learning.."),LearningTerm:s("agents.LearningTerm","Learnings"),LazyPromptEditor:V,instructionPrompt:E,setInstructionPrompt:function(e){return P(w,e)},instructionPromptTitle:o("learningMetadataComponents.properties.instruction_prompt.title","Instruction Prompt")};return n(a,{isOpen:g.isOpen,onClose:g.onClose,initialScope:g.initialScope,ruleSet:g.ruleSet,editingRule:T,editingTier:f,editingVariants:h,focusedVariantIndex:L,setFocusedVariantIndex:b,triggerAddVariant:M,triggerFixGaps:A,copiedRule:v,copiedSourceTier:S,copiedTargetTier:y,initialDraftMessage:I,initialChatMessage:D,applicationIntegrationId:C,modeId:x,uiStateLabels:F,customSections:null})};export{g as default};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -25,4 +25,5 @@ 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;
|
|
28
29
|
//# 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,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,MAAM,mBAAmB,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,IAWxD,CAAC"}
|
|
@@ -23,17 +23,21 @@ export interface PromptTextEditorProps {
|
|
|
23
23
|
sx?: BoxProps['sx'];
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Local wrapper around the library's `AIPromptEditor`.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
28
|
+
* We resolve this component through `ComponentRegistry` instead of pointing
|
|
29
|
+
* directly at `m.AIPromptEditor` so that:
|
|
30
|
+
* - We can pass a different/extended prop set (className, style, sx) without
|
|
31
|
+
* touching the library.
|
|
32
|
+
* - We can style the *container* the editor sits in (card look: border,
|
|
33
|
+
* radius, shadow, spacing) since the library itself ships unstyled here —
|
|
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.
|
|
34
38
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
39
|
+
* @param props - Component props
|
|
40
|
+
* @returns JSX element wrapping AIPromptEditor with custom container styling
|
|
37
41
|
*/
|
|
38
42
|
declare const PromptTextEditor: React.FC<PromptTextEditorProps>;
|
|
39
43
|
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;AAGlD,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;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+BrD,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.121",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -127,7 +127,6 @@
|
|
|
127
127
|
"patch-package": "^8.0.1",
|
|
128
128
|
"prettier": "^3.7.4",
|
|
129
129
|
"react-markdown": "^8.0.7",
|
|
130
|
-
"react-router-dom": "^7.15.1",
|
|
131
130
|
"react-scripts": ">=5.0.1",
|
|
132
131
|
"react-syntax-highlighter": "^15.6.1",
|
|
133
132
|
"rehype-raw": "^7.0.0",
|
|
@@ -152,6 +151,7 @@
|
|
|
152
151
|
"@craco/craco": "^7.1.0",
|
|
153
152
|
"@e-llm-studio/audit-log": "^2.0.9",
|
|
154
153
|
"@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",
|