@e-llm-studio/instant-learning 1.3.0-alpha.273 → 1.3.0-alpha.276
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/ILMarketplaceWrapper.js +1 -1
- package/dist/cjs/ILMarketplaceWrapper.js +1 -1
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +2 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -1
- package/dist/types/src/ILMarketplaceWrapper.d.ts +1 -0
- package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js +0 -2
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +0 -1
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js +0 -2
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +0 -1
- package/dist/types/src/ThinkingBulbIconComponent.d.ts +0 -4
- package/dist/types/src/ThinkingBulbIconComponent.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../node_modules/style-inject/dist/style-inject.es.js").default("@keyframes CreateLearningSetModal-module_spin__0BrCH{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CreateLearningSetModal-module_overlay__iwLU2{align-items:center;background-color:#0000004d;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:9999}.CreateLearningSetModal-module_modal__TIP0O{background-color:#fff;border-radius:.75rem;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-width:90%;padding:1.5rem;position:relative;width:600px}.CreateLearningSetModal-module_header__alW8D{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.CreateLearningSetModal-module_headerContent__bxA6y{flex:1}.CreateLearningSetModal-module_title__vlj8Q{color:#19213d;font-size:1.125rem;font-weight:500;margin:0}.CreateLearningSetModal-module_description__TGliO{color:#666f8d;font-size:.875rem;font-weight:400;line-height:1.5;margin-top:.25rem}.CreateLearningSetModal-module_closeBtn__33qJN{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#9ca3af;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:color .2s,background-color .2s}.CreateLearningSetModal-module_closeBtn__33qJN:hover{background-color:#f3f4f6;color:#4b5563}.CreateLearningSetModal-module_closeBtn__33qJN:focus{outline:none}.CreateLearningSetModal-module_form__e8iCL{display:flex;flex-direction:column;gap:1.25rem}.CreateLearningSetModal-module_formGroup__RydF4{display:flex;flex-direction:column;gap:.375rem;position:relative}.CreateLearningSetModal-module_label__q-hkm{align-items:center;color:#19213d;display:flex;font-size:.875rem;font-weight:500}.CreateLearningSetModal-module_asterisk__cXpjU{color:#8f2c23;font-size:1rem;font-weight:600;margin-right:.25rem}.CreateLearningSetModal-module_inputField__nnq0-{background-color:#fff;border:1px solid #f0f2f5;border-radius:.375rem;box-sizing:border-box;color:#19213d;font-size:.875rem;outline:none;padding:.625rem .75rem;transition:border-color .2s,box-shadow .2s;width:100%}.CreateLearningSetModal-module_inputField__nnq0-::placeholder{color:#9ca3af}.CreateLearningSetModal-module_inputField__nnq0-:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.CreateLearningSetModal-module_inputError__Q78Vy{border-color:#8f2c23}.CreateLearningSetModal-module_inputError__Q78Vy:focus{border-color:#8f2c23;box-shadow:0 0 0 2px #8f2c2333}.CreateLearningSetModal-module_errorMessage__z0WBC{color:#8f2c23;font-size:.75rem;font-weight:400;margin-top:.25rem}.CreateLearningSetModal-module_footer__qc-SJ{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1rem}.CreateLearningSetModal-module_cancelBtn__YiIV7{background-color:initial;border:1px solid #e2e8f0;border-radius:.375rem;color:#64748b;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;transition:background-color .2s}.CreateLearningSetModal-module_cancelBtn__YiIV7:hover:not(:disabled){background-color:#f9fafb}.CreateLearningSetModal-module_cancelBtn__YiIV7:disabled{cursor:not-allowed;opacity:.5}.CreateLearningSetModal-module_confirmBtn__8oMwL{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;color:#fff;cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:500;justify-content:center;padding:.5rem 1rem;transition:background-color .2s}.CreateLearningSetModal-module_confirmBtn__8oMwL:hover:not(:disabled){background-color:#1d4ed8}.CreateLearningSetModal-module_confirmBtn__8oMwL:disabled{cursor:not-allowed;opacity:.5}.CreateLearningSetModal-module_spinner__SERKD{animation:CreateLearningSetModal-module_spin__0BrCH 1s linear infinite;color:#fff;height:1rem;margin-right:.5rem;width:1rem}"),exports.default={overlay:"CreateLearningSetModal-module_overlay__iwLU2",modal:"CreateLearningSetModal-module_modal__TIP0O",header:"CreateLearningSetModal-module_header__alW8D",headerContent:"CreateLearningSetModal-module_headerContent__bxA6y",title:"CreateLearningSetModal-module_title__vlj8Q",description:"CreateLearningSetModal-module_description__TGliO",closeBtn:"CreateLearningSetModal-module_closeBtn__33qJN",form:"CreateLearningSetModal-module_form__e8iCL",formGroup:"CreateLearningSetModal-module_formGroup__RydF4",label:"CreateLearningSetModal-module_label__q-hkm",asterisk:"CreateLearningSetModal-module_asterisk__cXpjU",inputField:"CreateLearningSetModal-module_inputField__nnq0-",inputError:"CreateLearningSetModal-module_inputError__Q78Vy",errorMessage:"CreateLearningSetModal-module_errorMessage__z0WBC",footer:"CreateLearningSetModal-module_footer__qc-SJ",cancelBtn:"CreateLearningSetModal-module_cancelBtn__YiIV7",confirmBtn:"CreateLearningSetModal-module_confirmBtn__8oMwL",spinner:"CreateLearningSetModal-module_spinner__SERKD",spin:"CreateLearningSetModal-module_spin__0BrCH"};
|
|
2
|
+
//# sourceMappingURL=CreateLearningSetModal.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateLearningSetModal.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
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/components/InstantLearningModalDynamic.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/components/InstantLearningModalDynamic.js"),o=require("../../../features/LearningManagement/store/useLMSConfigStore.js"),r=require("react-markdown"),l=require("react-dom/server"),s=require("../../../ComponentRegistry.js"),d=require("../../../features/LearningManagement/store/useLearningTemplateStore.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=p(r);exports.default=function(r){var p,c,g=r.pluginPayload||{},m=g.flow,f=g.editingRule,T=g.editingTier,h=g.editingVariants,L=g.focusedVariantIndex,b=g.setFocusedVariantIndex,v=g.triggerAddVariant,M=g.triggerFixGaps,y=g.isDraftFlow,I=g.triggerValidateMessage,S=g.copiedRule,w=g.copiedSourceTier,x=g.copiedTargetTier,C=g.initialDraftMessage,_=g.postSaveCallback,A=g.modeId,D=g.mode,P=g.is_publishing,j=r.app_integration_id,V=r.content_mode_mapping_id,q="instruction_prompt",F=o.useTeachMeConfigStore(function(e){return e.teachMeConfig});console.log("teachMeConfig:",F);var R=o.dtt("learningMetadataComponents.properties.instruction_prompt.bpa_ui_component",""),E=d.useLearningTemplateStore(function(e){var t;return null!==(t=e.learningMetadata[q])&&void 0!==t?t:""}),N=d.useLearningTemplateStore(function(e){return e.setLearningMetadataField}),W=n.useMemo(function(){return s.resolveRegistryComponent(R)},[R]),O=o.dttWelcomeMessageParts(),B=O.greeting,k=O.subtitle,G=O.actions,J=l.renderToStaticMarkup(t.jsxs("p",{children:[t.jsx("span",{children:B}),t.jsx("div",{style:{marginTop:"8px"}}),t.jsx(u.default,{children:k}),t.jsx("div",{style:{marginTop:"8px"}}),t.jsx("span",e.__assign({className:"clickable-button-group"},{children:G.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)})}))]})),z=(null===(p=r.pluginPayload)||void 0===p?void 0:p.dynamicOptions)||{},H=(null===(c=r.pluginPayload)||void 0===c?void 0:c.prefilledData)||{},K={showScope:!1,showConfiguration:!1,welcomeMessage:o.dtt("welcomeMessage","Hi! 👋 I'm your Instant Learning Concierge."),formTitle:o.dtt("formTitle","Rule setup"),setupLabel:o.dtt("setupLabel","Configure your IL"),ruleTitle:o.dtt("ruleTitle","Main Rule Name"),ruleTitleInformation:o.dtt("ruleTitleInformation","Give a concise title which isn't too specific"),scopeLabel:o.dtt("scopeLabel","Define Scope"),tierLabel:o.dtt("tierLabel","Select Tiers"),variantPillLabel:o.dtt("variantPillLabel","Variant"),ruleDescriptionTitle:o.dtt("ruleDescriptionTitle","Learning Explanation"),ruleDescriptionInformation:o.dtt("ruleDescriptionInformation","A short summary of the intent of the learning"),promptDescriptionInformation:o.dtt("promptDescriptionInformation","Provides the detailed instructions the AI should follow"),wtaInformation:o.dtt("wtaInformation","Specifies the use case when the learning should be used"),wntaInformation:o.dtt("wntaInformation","Specifies the use case when the learning should not be used"),whenToApplyTitle:o.dtt("whenToApplyTitle","Trigger Events (When to Apply)"),addWhenToApplyBtnLabel:o.dtt("addWhenToApplyBtnLabel","Add WTA"),whenNotToApplyTitle:o.dtt("whenNotToApplyTitle","Exclusion Events (When NOT to Apply)"),addWhenNotToApplyBtnLabel:o.dtt("addWhenNotToApplyBtnLabel","Add WNTA"),configTitle:o.dtt("configTitle","Advanced Settings"),saveBtnConfig:{label:o.dtt("saveBtnLabel","Save Rule"),loadingLabel:o.dtt("saveBtnLoadingLabel","Saving Rule...")},chatTitle:o.dtt("chatTitle","Teach Me OTJ - {scope} - Add Learning"),chatTitleEdit:o.dtt("chatTitleEdit","Teach Me OTJ - {scope} - Edit Learning"),chatTextareaPlaceholder:o.dtt("chatTextareaPlaceholder","Tell me more about this learning.."),LearningTerm:o.dt("agents.LearningTerm","Learnings"),LazyPromptEditor:W,instructionPrompt:E,setInstructionPrompt:function(e){return N(q,e)},instructionPromptTitle:o.dtt("learningMetadataComponents.properties.instruction_prompt.title","Instruction Prompt"),instructionPromptDescription:o.dtt("learningMetadataComponents.properties.instruction_prompt.description",o.dtt("promptDescriptionInformation","Provides the detailed instructions the AI should follow")),instructionPromptViewToggle:o.dttValue("learningMetadataComponents.properties.instruction_prompt.bpa_ui_view_toggle",!1)},Q={dynamicOptions:z,prefilledData:H},U=r.useDynamicForm||!0===(null==F?void 0:F.useDynamicForm)?a.default:i.default,X=o.resolveEnableChatLogs(r.enableChatLogs);return t.jsx(U,{isOpen:r.isOpen,onClose:r.onClose,initialScope:r.initialScope,ruleSet:r.ruleSet,flow:m,editingRule:f,editingTier:T,editingVariants:h,focusedVariantIndex:L,setFocusedVariantIndex:b,triggerAddVariant:v,triggerFixGaps:M,isDraftFlow:y,triggerValidateMessage:I,copiedRule:S,copiedSourceTier:w,copiedTargetTier:x,initialDraftMessage:C,postSaveCallback:_,initialChatMessage:J,applicationIntegrationId:null!=j?j:"",contentModeMappingId:V,modeId:A,mode:D,is_publishing:P,uiStateLabels:K,dynamicFormConfig:Q,enableChatLogs:X,customSections:null})};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__awaiter as a,__generator as l}from"tslib";import{jsx as r,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as s,useEffect as t}from"react";import{X as c,Loader2 as o}from"lucide-react";import d from"../styles/CreateLearningSetModal.module.css.js";var u=function(u){var m=u.isOpen,h=u.onClose,p=u.onSubmit,v=u.title,f=u.description,N=u.inputLabel,b=u.submitLabel,g=u.placeholder,C=void 0===g?"":g,y=u.initialValue,k=void 0===y?"":y,L=u.isLoading,S=void 0!==L&&L,x=s(""),B=x[0],j=x[1],M=s(null),q=M[0],w=M[1];return t(function(){m&&(j(k),w(null))},[m,k]),m?r("div",e({className:d.overlay},{children:i("div",e({className:d.modal},{children:[i("div",e({className:d.header},{children:[i("div",e({className:d.headerContent},{children:[r("h2",e({className:d.title},{children:v})),f&&r("p",e({className:d.description},{children:f}))]})),r("button",e({onClick:h,className:d.closeBtn,disabled:S},{children:r(c,{size:24})}))]})),r("div",e({className:d.form},{children:i("div",e({className:d.formGroup},{children:[i("label",e({className:d.label},{children:[r("span",e({className:d.asterisk},{children:"*"})),N]})),r("input",{type:"text",value:B,onChange:function(e){j(e.target.value),q&&w(null)},className:"".concat(d.inputField," ").concat(q?d.inputError:""),placeholder:C,disabled:S}),q&&r("p",e({className:d.errorMessage},{children:q}))]}))})),i("div",e({className:d.footer},{children:[r("button",e({onClick:h,className:d.cancelBtn,disabled:S},{children:"Cancel"})),r("button",e({onClick:function(){return a(void 0,void 0,void 0,function(){var e;return l(this,function(a){switch(a.label){case 0:if(!(B.trim()?(w(null),1):(w("".concat(N.replace("*","").trim()," is required")),0)))return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,p(B)];case 2:return a.sent(),h(),[3,4];case 3:return e=a.sent(),w((null==e?void 0:e.message)||"An error occurred. Please try again."),[3,4];case 4:return[2]}})})},className:d.confirmBtn,disabled:S},{children:S?i(n,{children:[r(o,{className:d.spinner}),"Save"===b?"Saving...":"Creating..."]}):b}))]}))]}))})):null};export{u as default};
|
|
2
|
+
//# sourceMappingURL=CreateLearningSetModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateLearningSetModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|