@e-llm-studio/instant-learning 1.3.0-alpha.92 → 1.3.0-alpha.93

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),a=require("react"),r=require("lucide-react"),s=require("./styles/Sidebar.module.css.js"),n=require("./components/SidebarSearch.js"),i=require("./components/ScopeTree/TreeSidebar.js"),o=require("./store/useLMSConfigStore.js"),c=require("./constants.js"),d=require("./store/useLearningTemplateStore.js");exports.default=function(l){var u=l.scopeTreeData,S=l.selectedRuleSetId,h=l.onAddChild,p=l.onRenameChild,C=l.onDeleteChild,j=l.canDeleteScope,f=l.canEditScope,g=l.canCreateScope,m=l.onSectionSelect,_=l.activeSectionId,b=l.onOnboardStation,v=l.sectionsConfig,x=l.nodeTypesConfig,q=l.searchPlaceholder,T=void 0===q?o.dt("".concat(c.MIDDLE_DRAWER_DT_PATH,".treeMenu.search"),"Search for Scopes.."):q,D=a.useState(""),y=D[0],R=D[1],I=a.useState(0),N=I[0],A=I[1],E=d.useLearningTemplateStore.getState().backwardCompatibility;return t.jsxs("div",e.__assign({className:s.default.sidebar},{children:[t.jsxs(t.Fragment,{children:[t.jsx(n.default,{value:y,onChange:R,placeholder:T,searchCount:N}),t.jsx("div",{className:s.default.divider}),t.jsx("div",e.__assign({className:s.default.content},{children:u&&t.jsx(i.TreeSidebar,{data:u.data,onAddChild:h,onRenameChild:p,onDeleteChild:C,canDeleteScope:j,canEditScope:f,canCreateScope:g,onSectionSelect:m,selectedRuleSetId:S,activeSectionId:_,searchQuery:y,onSearchCountChange:A,sectionsConfig:v,nodeTypesConfig:x})}))]}),b&&E&&t.jsx("div",e.__assign({className:s.default.createButtonContainer},{children:t.jsxs("button",e.__assign({className:s.default.createButton,onClick:b},{children:[t.jsx(r.Plus,{size:16}),"Onboard a station"]}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),a=require("react"),r=require("./styles/Sidebar.module.css.js"),n=require("./components/SidebarSearch.js"),o=require("./components/ScopeTree/TreeSidebar.js"),s=require("./store/useLMSConfigStore.js"),i=require("./constants.js"),c=require("./store/useLearningTemplateStore.js");exports.default=function(d){var l=d.scopeTreeData,u=d.selectedRuleSetId,S=d.onAddChild,h=d.onRenameChild,p=d.onDeleteChild,C=d.canDeleteScope,j=d.canEditScope,f=d.canCreateScope,g=d.onSectionSelect,m=d.activeSectionId;d.onOnboardStation;var v=d.sectionsConfig,b=d.nodeTypesConfig,T=d.searchPlaceholder,q=void 0===T?s.dt("".concat(i.MIDDLE_DRAWER_DT_PATH,".treeMenu.search"),"Search for Scopes.."):T,x=a.useState(""),D=x[0],_=x[1],y=a.useState(0),R=y[0],I=y[1];return c.useLearningTemplateStore.getState().backwardCompatibility,t.jsx("div",e.__assign({className:r.default.sidebar},{children:t.jsxs(t.Fragment,{children:[t.jsx(n.default,{value:D,onChange:_,placeholder:q,searchCount:R}),t.jsx("div",{className:r.default.divider}),t.jsx("div",e.__assign({className:r.default.content},{children:l&&t.jsx(o.TreeSidebar,{data:l.data,onAddChild:S,onRenameChild:h,onDeleteChild:p,canDeleteScope:C,canEditScope:j,canCreateScope:f,onSectionSelect:g,selectedRuleSetId:u,activeSectionId:m,searchQuery:D,onSearchCountChange:I,sectionsConfig:v,nodeTypesConfig:b})}))]})}))};
2
2
  //# sourceMappingURL=Sidebar.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as o,Fragment as t,jsx as a}from"react/jsx-runtime";import{useState as n}from"react";import{Plus as r}from"lucide-react";import c from"./styles/Sidebar.module.css.js";import i from"./components/SidebarSearch.js";import{TreeSidebar as s}from"./components/ScopeTree/TreeSidebar.js";import{dt as d}from"./store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as l}from"./constants.js";import{useLearningTemplateStore as m}from"./store/useLearningTemplateStore.js";var p=function(p){var S=p.scopeTreeData,h=p.selectedRuleSetId,C=p.onAddChild,f=p.onRenameChild,u=p.onDeleteChild,v=p.canDeleteScope,b=p.canEditScope,g=p.canCreateScope,j=p.onSectionSelect,T=p.activeSectionId,y=p.onOnboardStation,D=p.sectionsConfig,N=p.nodeTypesConfig,I=p.searchPlaceholder,R=void 0===I?d("".concat(l,".treeMenu.search"),"Search for Scopes.."):I,k=n(""),x=k[0],A=k[1],B=n(0),E=B[0],L=B[1],M=m.getState().backwardCompatibility;return o("div",e({className:c.sidebar},{children:[o(t,{children:[a(i,{value:x,onChange:A,placeholder:R,searchCount:E}),a("div",{className:c.divider}),a("div",e({className:c.content},{children:S&&a(s,{data:S.data,onAddChild:C,onRenameChild:f,onDeleteChild:u,canDeleteScope:v,canEditScope:b,canCreateScope:g,onSectionSelect:j,selectedRuleSetId:h,activeSectionId:T,searchQuery:x,onSearchCountChange:L,sectionsConfig:D,nodeTypesConfig:N})}))]}),y&&M&&a("div",e({className:c.createButtonContainer},{children:o("button",e({className:c.createButton,onClick:y},{children:[a(r,{size:16}),"Onboard a station"]}))}))]}))};export{p as default};
1
+ import{__assign as e}from"tslib";import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as a}from"react";import n from"./styles/Sidebar.module.css.js";import c from"./components/SidebarSearch.js";import{TreeSidebar as i}from"./components/ScopeTree/TreeSidebar.js";import{dt as s}from"./store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as d}from"./constants.js";import{useLearningTemplateStore as l}from"./store/useLearningTemplateStore.js";var m=function(m){var S=m.scopeTreeData,p=m.selectedRuleSetId,h=m.onAddChild,C=m.onRenameChild,f=m.onDeleteChild,u=m.canDeleteScope,v=m.canEditScope,g=m.canCreateScope,b=m.onSectionSelect,j=m.activeSectionId;m.onOnboardStation;var T=m.sectionsConfig,y=m.nodeTypesConfig,D=m.searchPlaceholder,I=void 0===D?s("".concat(d,".treeMenu.search"),"Search for Scopes.."):D,R=a(""),N=R[0],x=R[1],A=a(0),E=A[0],L=A[1];return l.getState().backwardCompatibility,o("div",e({className:n.sidebar},{children:t(r,{children:[o(c,{value:N,onChange:x,placeholder:I,searchCount:E}),o("div",{className:n.divider}),o("div",e({className:n.content},{children:S&&o(i,{data:S.data,onAddChild:h,onRenameChild:C,onDeleteChild:f,canDeleteScope:u,canEditScope:v,canCreateScope:g,onSectionSelect:b,selectedRuleSetId:p,activeSectionId:j,searchQuery:N,onSearchCountChange:L,sectionsConfig:T,nodeTypesConfig:y})}))]})}))};export{m as default};
2
2
  //# sourceMappingURL=Sidebar.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/instant-learning",
3
- "version": "1.3.0-alpha.92",
3
+ "version": "1.3.0-alpha.93",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",