@e-llm-studio/instant-learning 0.1.1-alpha.46 → 0.1.1-alpha.48
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/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/ApprovalActionButton.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/ApprovalActionButton.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/PendingApprovalChip.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/PendingApprovalChip.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordion.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionShell.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantList.js +1 -1
- package/dist/cjs/features/LearningManagement/Sidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/EmptyLearningState.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeSkeletonLoader.js +2 -0
- package/dist/cjs/features/LearningManagement/components/ScopeSkeletonLoader.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeAddAction.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js +1 -1
- package/dist/cjs/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
- package/dist/cjs/features/LearningManagement/queries/useApprovalQueries.js +2 -0
- package/dist/cjs/features/LearningManagement/queries/useApprovalQueries.js.map +1 -0
- package/dist/cjs/features/LearningManagement/store/useAppSecRolesStore.js +2 -0
- package/dist/cjs/features/LearningManagement/store/useAppSecRolesStore.js.map +1 -0
- package/dist/cjs/features/LearningManagement/store/useEnvStore.js +1 -1
- package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/cjs/features/LearningManagement/store/usePermissionsStore.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +1 -1
- package/dist/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
- package/dist/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +2 -0
- package/dist/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/AddScopeModal.js +2 -0
- package/dist/features/LearningManagement/RuleContent/AddScopeModal.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/ApprovalActionButton.js +2 -0
- package/dist/features/LearningManagement/RuleContent/ApprovalActionButton.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +2 -0
- package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/features/LearningManagement/RuleContent/PendingApprovalChip.js +2 -0
- package/dist/features/LearningManagement/RuleContent/PendingApprovalChip.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/RuleAccordion.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleAccordionShell.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantList.js +1 -1
- package/dist/features/LearningManagement/Sidebar.js +1 -1
- package/dist/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js +1 -1
- package/dist/features/LearningManagement/components/EmptyLearningState.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/ScopeSkeletonLoader.js +2 -0
- package/dist/features/LearningManagement/components/ScopeSkeletonLoader.js.map +1 -0
- package/dist/features/LearningManagement/components/ScopeTree/TreeAddAction.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js +1 -1
- package/dist/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
- package/dist/features/LearningManagement/queries/useApprovalQueries.js +2 -0
- package/dist/features/LearningManagement/queries/useApprovalQueries.js.map +1 -0
- package/dist/features/LearningManagement/store/useAppSecRolesStore.js +2 -0
- package/dist/features/LearningManagement/store/useAppSecRolesStore.js.map +1 -0
- package/dist/features/LearningManagement/store/useEnvStore.js +1 -1
- package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/features/LearningManagement/store/usePermissionsStore.js +1 -1
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +57 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +7 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts +6 -41
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +3 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts +12 -0
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts +15 -0
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalActionButton.d.ts +8 -0
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalActionButton.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts +17 -0
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/PendingApprovalChip.d.ts +7 -0
- package/dist/types/src/features/LearningManagement/RuleContent/PendingApprovalChip.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordion.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordion.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantList.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/VariantList.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +68 -0
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts +32 -0
- package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts +10 -0
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/store/useAppSecRolesStore.d.ts +11 -0
- package/dist/types/src/features/LearningManagement/store/useAppSecRolesStore.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +11 -0
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +6 -0
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/usePermissionsStore.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/store/usePermissionsStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/types.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +0 -12
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as t,Fragment as e,jsx as n}from"react/jsx-runtime";import{Sparkles as r}from"lucide-react";var o=function(t){var e=t.width,r=void 0===e?"100%":e,o=t.height,d=void 0===o?"10px":o,h=t.style;return n("div",{style:i({width:r,height:d,backgroundColor:"#E2E8F0",borderRadius:"4px",backgroundImage:"linear-gradient(90deg, #E2E8F0 0px, #F1F5F9 40px, #E2E8F0 80px)",backgroundSize:"200px 100%",animation:"shimmer 1.5s ease-in-out infinite"},h)})},d=function(){return t("div",i({style:{display:"flex",flexDirection:"column",gap:"12px",padding:"24px",backgroundColor:"#fff",borderRadius:"12px",border:"1px solid #E2E8F0",width:"100%"}},{children:[n(o,{width:"100%",height:"12px"}),n(o,{width:"85%",height:"10px"}),n("div",{style:{height:"8px"}}),n(o,{width:"60%",height:"12px"}),n(o,{width:"90%",height:"10px"}),n(o,{width:"75%",height:"10px"}),n("div",{style:{height:"8px"}}),n(o,{width:"40%",height:"12px"}),n(o,{width:"100%",height:"10px"}),n(o,{width:"80%",height:"10px"}),n("div",{style:{height:"8px"}}),n(o,{width:"55%",height:"12px"}),n(o,{width:"95%",height:"10px"}),n(o,{width:"70%",height:"10px"}),n(o,{width:"45%",height:"12px"}),n(o,{width:"88%",height:"10px"})]}))},h=function(o){return o.isLoading?t(e,{children:[n("style",{children:"\n @keyframes shimmer {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n }\n"}),n("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:99}}),t("div",i({style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"#fff",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",padding:"48px",maxWidth:"1000px",width:"70%",maxHeight:"90vh",display:"flex",flexDirection:"row",gap:"48px",zIndex:100,animation:"fadeIn 0.3s ease-out"}},{children:[t("div",i({style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"}},{children:[n("div",i({style:{marginBottom:"16px"}},{children:n(r,{size:32,color:"#7C3AED"})})),n("h2",i({style:{fontSize:"1.5rem",fontWeight:600,color:"#0F172A",margin:"0 0 8px 0"}},{children:"Setting up your scope…"})),n("p",i({style:{fontSize:"0.875rem",color:"#64748B",margin:"0",lineHeight:"1.5"}},{children:"Inheriting Learnings from Global. This will only take a moment."}))]})),n("div",i({style:{flex:1.5,display:"flex",alignItems:"center",justifyContent:"center",minWidth:"350px"}},{children:n(d,{})}))]})),n("style",{children:"\n @keyframes fadeIn {\n from {\n opacity: 0;\n transform: translate(-50%, -48%);\n }\n to {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n }\n "})]}):null};export{h as default};
|
|
2
|
+
//# sourceMappingURL=ScopeSkeletonLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopeSkeletonLoader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{Plus as i}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";var d=function(d){var a=d.label,c=d.onAdd,l=d.disabled,s=void 0!==l&&l,n=d.tooltip;return t("button",o({className:"".concat(r.addAction," ").concat(s?r.disabled:""),onClick:s?void 0:c,disabled:s,title:n,style:s?{opacity:.5,cursor:"not-allowed"}:{}},{children:[e("span",o({className:r.addIcon},{children:e(i,{size:16,strokeWidth:2.5})})),a]}))};export{d as TreeAddAction};
|
|
2
2
|
//# sourceMappingURL=TreeAddAction.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as
|
|
1
|
+
import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{Plus as d,Pencil as t,Trash2 as l}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as a}from"./TreeNodeHeader.js";import{TreeSectionItem as c}from"./TreeSectionItem.js";import{TreeAddAction as s}from"./TreeAddAction.js";var u=function(p){var h,m,v=p.node,C=p.depth,f=void 0===C?0:C,g=p.nodePath,b=void 0===g?[]:g,S=p.expandedNodeIds,T=p.activeSelection,y=p.onToggleExpand,x=p.onSectionSelect,A=p.onNodeOptionsClick,N=p.onAddChild,k=p.onRenameChild,E=p.onDeleteChild,P=p.canDeleteScope,j=p.canEditScope,D=p.canCreateScope,I=p.searchQuery,L=p.sectionsConfig,O=void 0===L?[]:L,Q=p.nodeTypesConfig,R=void 0===Q?[]:Q,Y=e(e([],b,!0),[v.id],!1),w=S.has(v.id),K=!!T&&T.nodePath[T.nodePath.length-1]===v.id,V=!!T&&(T.nodePath.includes(v.id)&&!K),W=function(e,n){if(!n)return!0;var o=n.toLowerCase();return!!e.name.toLowerCase().includes(o)||!!e.children&&e.children.some(function(e){return W(e,n)})};if(!W(v,I||""))return null;var H=f>=R.length-1?R[R.length-1]:R[f],q=!!(null==H?void 0:H.addChildType),z=!P||P(v.id),B=!j||j(v.id),F=!D||D(v.id),G=v.children&&v.children.length>0,J=!z||G,M=z?G?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",U=F?void 0:"You do not have permission to add a scope here.";return o("div",n({className:r.nodeWrapper,style:{"--tree-depth":f}},{children:[i(a,{name:v.name,isExpanded:w,isSelected:K,isAncestor:V,childrenCount:null===(h=v.children)||void 0===h?void 0:h.length,onToggleExpand:function(e){e.stopPropagation(),y(v.id)},onClick:function(){x(Y,"learnings")},searchQuery:I,menuOptions:e(e([],q?[{label:H.addChildLabel||"Add Child",icon:d,onClick:function(){return null==N?void 0:N(v.id,H.addChildType,v.name)},disabled:!F,tooltip:U}]:[],!0),[{label:"Rename",icon:t,onClick:function(){return null==k?void 0:k(v.id,v.name)},disabled:!B,tooltip:B?void 0:"You do not have permission to rename this scope."},{label:"Delete ".concat((null==H?void 0:H.label)||"Node"),icon:l,onClick:function(){var e;return null==E?void 0:E(v.id,v.name,(null===(e=v.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:J,tooltip:M,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1)}),w&&o("div",n({className:r.childrenWrapper},{children:[O.filter(function(e){return!e.isVisible||e.isVisible(v,f)}).map(function(e){var n;return i(c,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(n=v.metrics)||void 0===n?void 0:n[e.badgeKey]:void 0,isActive:K&&(null==T?void 0:T.sectionId)===e.id,onClick:function(){return x(Y,e.id)}},"".concat(v.id,"-").concat(e.id))}),null===(m=v.children)||void 0===m?void 0:m.map(function(e){return i(u,{node:e,depth:f+1,nodePath:Y,expandedNodeIds:S,activeSelection:T,onToggleExpand:y,onSectionSelect:x,onNodeOptionsClick:A,onAddChild:N,onRenameChild:k,onDeleteChild:E,canDeleteScope:P,canEditScope:j,canCreateScope:D,searchQuery:I,sectionsConfig:O,nodeTypesConfig:R},e.id)}),q&&i(s,{label:H.addChildLabel||"Add Child",onAdd:function(){return null==N?void 0:N(v.id,H.addChildType,v.name)},disabled:!F,tooltip:U})]}))]}))};export{u as TreeNode};
|
|
2
2
|
//# sourceMappingURL=TreeNode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import r from"../../styles/ScopeTree.module.css.js";import{findNodePathById as
|
|
1
|
+
import{__spreadArray as e,__assign as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import r from"../../styles/ScopeTree.module.css.js";import{findNodePathById as c}from"../../utils/treeUtils.js";import{TreeNode as d}from"./TreeNode.js";var a=function(a){var l=a.data,u=a.defaultExpandedIds,f=void 0===u?[]:u,s=a.onSectionSelect,h=a.onNodeOptionsClick,S=a.onAddChild,p=a.onRenameChild,C=a.onDeleteChild,m=a.canDeleteScope,v=a.canEditScope,g=a.canCreateScope,w=a.searchQuery,E=void 0===w?"":w,I=a.onSearchCountChange,x=a.sectionsConfig,y=a.nodeTypesConfig,N=a.selectedRuleSetId,T=a.activeSectionId,j=t(new Set(l?e([l.id],f,!0):f)),D=j[0],L=j[1],R=t(null),k=R[0],A=R[1];i(function(){l&&L(function(e){if(!e.has(l.id)){var n=new Set(e);return n.add(l.id),n}return e})},[null==l?void 0:l.id]),i(function(){if(l&&N&&T){var e=c(l,N);e&&(A({nodePath:e,sectionId:T}),L(function(n){var o=new Set(n);return e.forEach(function(e){return o.add(e)}),o}))}},[l,N,T]),i(function(){if(E&&l){var e=new Set,n=function(o){var t=E.toLowerCase(),i=o.name.toLowerCase().includes(t),r=!1;o.children&&o.children.forEach(function(e){n(e)&&(r=!0)});var c=i||r;return c&&r&&e.add(o.id),c};n(l),L(e)}},[E,l]);var O=function(e,n){if(!n)return 0;var o=0,t=n.toLowerCase();return e.name.toLowerCase().includes(t)&&o++,e.children&&e.children.forEach(function(e){o+=O(e,n)}),o};i(function(){I&&l&&I(O(l,E))},[E,l,I]);return l?o("div",n({className:r.treeContainer},{children:o(d,{node:l,expandedNodeIds:D,activeSelection:k,onToggleExpand:function(e){L(function(n){var o=new Set(n);return o.has(e)?o.delete(e):o.add(e),o})},onSectionSelect:function(e,n){console.log("handleSectionSelect",e,n),A({nodePath:e,sectionId:n}),s&&s(e[e.length-1],n)},onNodeOptionsClick:function(e){h&&h(e)},onAddChild:function(e,n,o){S&&S(e,n,o)},onRenameChild:function(e,n){p&&p(e,n)},onDeleteChild:function(e,n,o){C&&C(e,n,o)},canDeleteScope:m,canEditScope:v,searchQuery:E,sectionsConfig:x,nodeTypesConfig:y,canCreateScope:g})})):null};export{a as TreeSidebar};
|
|
2
2
|
//# sourceMappingURL=TreeSidebar.js.map
|
package/dist/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as
|
|
1
|
+
import{__awaiter as e,__generator as t,__assign as n}from"tslib";import{jsxs as r,jsx as a}from"react/jsx-runtime";import{useState as c,useRef as i,useEffect as o}from"react";import{Loader2 as s,Check as u}from"lucide-react";import{fetchStationsByKeyword as l}from"../../apis/scopeApis.js";import d from"../../styles/StationAutocomplete.module.css.js";var m=function(m){var p=m.value,f=m.onChange,h=m.onStationSelect,v=m.className,N=m.style,g=c([]),b=g[0],k=g[1],w=c(!1),y=w[0],C=w[1],S=c(!1),W=S[0],_=S[1],j=i(null),x=i(null),E=i(!1);return o(function(){var e=function(e){x.current&&!x.current.contains(e.target)&&W&&(_(!1),E.current||(f(""),h(null)))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[W,f,h]),o(function(){return p.trim()?(j.current&&clearTimeout(j.current),C(!0),j.current=setTimeout(function(){return e(void 0,void 0,void 0,function(){var e,n;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),[4,l(p,!0)];case 1:return(e=t.sent())&&e.data?k(e.data):k([]),[3,4];case 2:return n=t.sent(),console.error("Error fetching stations:",n),k([]),[3,4];case 3:return C(!1),[7];case 4:return[2]}})})},500)):(k([]),C(!1)),function(){j.current&&clearTimeout(j.current)}},[p]),r("div",n({className:"".concat(d.wrapper," ").concat(v||""),style:N,ref:x},{children:[r("div",n({className:d.inputWrapper},{children:[a("input",{type:"text",value:p,onChange:function(e){f(e.target.value),_(!0),h(null),E.current=!1},onFocus:function(){(b.length>0||p.length>0)&&_(!0)},placeholder:"Search for a station...",className:d.input}),y&&a("div",n({className:d.spinnerWrapper},{children:a(s,{className:d.spinner})}))]})),W&&p&&a("div",n({className:d.dropdown},{children:b.length>0?b.map(function(e){var t=!!e.ruleset_id;return r("div",n({className:"".concat(d.item," ").concat(t?d.itemOnboarded:d.itemClickable),onClick:function(){t||(f(e.station_name),h(e),_(!1),E.current=!0)}},{children:[r("div",n({className:d.itemLeft},{children:[t&&a("div",n({className:d.checkWrapper},{children:a(u,{size:12,strokeWidth:3})})),r("div",{children:[a("div",n({className:"".concat(d.stationName," ").concat(t?d.stationNameOnboarded:d.stationNameUnonboarded)},{children:e.station_name})),a("div",n({className:d.market},{children:e.market}))]})]})),t&&a("span",n({className:d.badge},{children:"Onboarded"}))]}),e.station_guid)}):!y&&a("div",n({className:d.noResults},{children:"No stations found"}))}))]}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=StationAutocomplete.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"react";var
|
|
1
|
+
import"react";var a={TAB:"tab",RULESET_ID:"rulesetid",OPEN_IL:"openil",ONBOARD_STATION:"onboardstation",VARIANT_ID:"variantid",APPROVAL_ACTION:"approval"},t=function(a){return new URLSearchParams(window.location.search).get(a)},n=function(a){var t=new URLSearchParams(window.location.search);Object.entries(a).forEach(function(a){var n=a[0],o=a[1];null==o||""===o?t.delete(n):t.set(n,o)});var n=t.toString(),o="".concat(window.location.pathname).concat(n?"?".concat(n):"");window.history.replaceState({},"",o)};export{a as QUERY_PARAM_KEYS,t as getQueryParam,n as setQueryParams};
|
|
2
2
|
//# sourceMappingURL=useLearningTemplateQueryParams.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as t}from"tslib";import{useQuery as r,useMutation as n}from"@tanstack/react-query";import{GetAppsecRoles as i,appsecGetUsersByQueryLite as a,appsecGetUserGroups as u,ApproveOrRejectVariants as o}from"../apis/scopeApis.js";import s from"../store/useEnvStore.js";function c(n){var i=this;return r({queryKey:["approver-search",n],queryFn:function(){return e(i,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return[4,a(n)];case 1:return[2,(null==(e=t.sent())?void 0:e.data)||[]]}})})},enabled:!!n.trim(),staleTime:3e4})}function d(n){var i=this,a=s(function(e){var t;return null===(t=e.rbacConfig)||void 0===t?void 0:t.applicationId});return r({queryKey:["group-search",a,n],queryFn:function(){return e(i,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,u({appId:a,name:n})];case 1:return[2,e.sent().data]}})})},enabled:!!a,staleTime:3e4})}function f(){return n({mutationFn:function(e){var t=e.variantIds,r=e.status,n=e.feedback,i=e.scopeId;return o({variant_ids:t,status:r,feedback:n,scopeId:i})}})}function v(n,a){var u=this;return void 0===a&&(a=!0),r({queryKey:["appsec-roles",n],queryFn:function(){return e(u,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,i(n)];case 1:return[2,e.sent().data]}})})},enabled:a&&!!n,staleTime:1e5})}export{f as useApproveOrRejectVariantsMutation,c as useApproverSearchQuery,v as useGetAppSecRolesQuery,d as useGroupSearchQuery};
|
|
2
|
+
//# sourceMappingURL=useApprovalQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useApprovalQueries.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppSecRolesStore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{create as
|
|
1
|
+
import{create as a}from"zustand";var l=a(function(a){return{llmStudioUrl:"https://devllmstudio.creativeworkspace.ai",audacyBackendUrl:null,appsecRbacUrl:null,appsecBaseUrl:null,rbacConfig:null,setLlmStudioUrl:function(l){return a({llmStudioUrl:l})},setAudacyBackendUrl:function(l){return a({audacyBackendUrl:l})},setRbacConfig:function(l){return a({rbacConfig:l,appsecRbacUrl:l.appsecRbacUrl,appsecBaseUrl:l.appsecBaseUrl})}}});export{l as default};
|
|
2
2
|
//# sourceMappingURL=useEnvStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t,__spreadArray as e}from"tslib";import{create as n}from"zustand";import{getQueryParam as r,setQueryParams as u,QUERY_PARAM_KEYS as i}from"../hooks/useLearningTemplateQueryParams.js";var
|
|
1
|
+
import{__assign as t,__spreadArray as e}from"tslib";import{create as n}from"zustand";import{getQueryParam as r,setQueryParams as u,QUERY_PARAM_KEYS as i}from"../hooks/useLearningTemplateQueryParams.js";var a={globalRuleSet:[],genreRuleSet:[],customRuleSet:[]},o=n(function(n){return{sidebarTab:"rule-sets",selectedRuleSetId:null,ruleSets:a,isStationModalOpen:!1,isILModalTriggered:"true"===r(i.OPEN_IL),isStationOnboardModalTriggered:"true"===r(i.ONBOARD_STATION),scopeTreeData:null,urlVariantId:r(i.VARIANT_ID),urlApprovalAction:(o=r(i.APPROVAL_ACTION),"approve"===o||"reject"===o?o:null),stations:[],selectedStationId:null,currentRules:[],createdVariantInfo:null,templateMap:{},setTemplateData:function(e,r){return n(function(n){var u;return{templateMap:t(t({},n.templateMap),(u={},u[e]=r,u))}})},setRuleSets:function(t){return n({ruleSets:t})},setScopeTreeData:function(t){return n({scopeTreeData:t})},setStationModalOpen:function(t){return n({isStationModalOpen:t})},setIsILModalTriggered:function(t){var e;u(((e={})[i.OPEN_IL]=t?"true":null,e)),n({isILModalTriggered:t})},setIsStationOnboardModalTriggered:function(t){var e;u(((e={})[i.ONBOARD_STATION]=t?"true":null,e)),n({isStationOnboardModalTriggered:t})},setInitialRules:function(t){return n({currentRules:t})},setCreatedVariantInfo:function(t){return n({createdVariantInfo:t})},resetCreatedVariantInfo:function(){return n({createdVariantInfo:null})},clearUrlApprovalParams:function(){var t;u(((t={})[i.VARIANT_ID]=null,t[i.APPROVAL_ACTION]=null,t)),n({urlVariantId:null,urlApprovalAction:null})},setSelectedRuleSetId:function(t){var e;u(((e={})[i.RULESET_ID]=t,e)),n({selectedRuleSetId:t})},toggleRuleTier:function(e){return n(function(n){return{currentRules:n.currentRules.map(function(n){return n.id===e?t(t({},n),{isOpen:!n.isOpen}):n})}})},deleteRule:function(e,r){return n(function(n){return{currentRules:n.currentRules.map(function(n){return n.id===e?t(t({},n),{rules:n.rules.filter(function(t){return t.id!==r}),ruleCount:n.ruleCount-1}):n})}})},setStations:function(t){return n({stations:t})},addStation:function(t){return n(function(n){return{stations:e(e([],n.stations,!0),[t],!1)}})},deleteStation:function(t){return n(function(e){return{stations:e.stations.filter(function(e){return e.stationId!==t}),selectedStationId:e.selectedStationId===t?null:e.selectedStationId}})},error:null,setError:function(t){return n({error:t})},tiers:[],setTiers:function(t){return n({tiers:t})},backwardCompatibility:!1,setBackwardCompatibility:function(t){return n({backwardCompatibility:t})},app_integration_id:null,setAppIntegrationId:function(t){return n({app_integration_id:t})},token:"",setToken:function(t){return n({token:t})}};var o});export{a as INITIAL_RULE_SETS,o as useLearningTemplateStore};
|
|
2
2
|
//# sourceMappingURL=useLearningTemplateStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as r,__generator as e}from"tslib";import{create as n}from"zustand";import{appsecApi as i}from"../apis/scopeApis.js";var s=n(function(n,s){return{accessData:[],isLoading:!1,error:null,fetchPermissions:function(s,o){return r(void 0,void 0,void 0,function(){var r,t,a;return e(this,function(e){switch(e.label){case 0:if(!s)return[2];n({isLoading:!0,error:null}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.get("/users/me",{params:{appId:s,resourceId:o}})];case 2:return r=e.sent(),n({accessData:(null===(a=r.data)||void 0===a?void 0:a.data)||[],isLoading:!1}),[3,4];case 3:return t=e.sent(),console.error("Failed to fetch permissions:",t),n({error:t.message||"Failed to fetch permissions",isLoading:!1}),[3,4];case 4:return[2]}})})},hasPermission:function(r,e){var n,i,o,t=s().accessData.find(function(r){return function(r,e){return!!e&&function(r){return r?"string"==typeof r?[r]:[r._id,r.id,r.resourceId,r.resource_id].filter(function(r){return"string"==typeof r&&r.length>0}):[]}(r).includes(e)}(r.resourceId,e)});return
|
|
1
|
+
import{__awaiter as r,__generator as e}from"tslib";import{create as n}from"zustand";import{appsecApi as i}from"../apis/scopeApis.js";var s=n(function(n,s){return{accessData:[],isLoading:!1,error:null,fetchPermissions:function(s,o){return r(void 0,void 0,void 0,function(){var r,t,a;return e(this,function(e){switch(e.label){case 0:if(!s)return[2];n({isLoading:!0,error:null}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.get("/users/me",{params:{appId:s,resourceId:o}})];case 2:return r=e.sent(),n({accessData:(null===(a=r.data)||void 0===a?void 0:a.data)||[],isLoading:!1}),[3,4];case 3:return t=e.sent(),console.error("Failed to fetch permissions:",t),n({error:t.message||"Failed to fetch permissions",isLoading:!1}),[3,4];case 4:return[2]}})})},hasPermission:function(r,e){var n,i,o,t=s().accessData.find(function(r){return function(r,e){return!!e&&function(r){return r?"string"==typeof r?[r]:[r._id,r.id,r.resourceId,r.resource_id].filter(function(r){return"string"==typeof r&&r.length>0}):[]}(r).includes(e)}(r.resourceId,e)});return!!t&&(null!==(o=null===(i=null===(n=t.role)||void 0===n?void 0:n.permissions)||void 0===i?void 0:i.some(function(e){return e.name===r}))&&void 0!==o&&o)},hasGlobalPermission:function(r){return!0},reset:function(){return n({accessData:[],isLoading:!1,error:null})}}});export{s as usePermissionsStore};
|
|
2
2
|
//# sourceMappingURL=usePermissionsStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import"@mui/icons-material/Close";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import u from"../../../features/IL-OTJ/ILOTJ.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"../../../features/LearningManagement/config.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useEnvStore.js";import"react-router-dom";var c={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},m=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],d=["Tier 1"],f=function(){var f=a(!0),_=f[0],g=f[1],b=a(""),v=b[0],h=b[1],T=a(""),y=T[0],L=T[1],k=a({station:"",tiers:["Tier 1"]}),C=k[0],w=k[1],A=a([]),j=A[0],I=A[1],S=a([]),x=S[0],O=S[1],M=a(c),N=M[0],J=M[1],D=i(function(t,o){w(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),E=i(function(t,o){J(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),W=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},R=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},U=[e({key:"order_rules",label:"Order"},N.order_rules),e({key:"advertiser_rules",label:"Advertiser"},N.advertiser_rules)],H=[{key:"inventory_rules",label:"Inventory code",enabled:N.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:N.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:N.is_default_enabled}];return o(u,{open:_,closeFunction:function(){return g(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(s,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:"Hey! How can I assist you?",template:l.BaseTemplate,templateProps:{state:{title:v,description:y,scopeData:C,whenToApplyConditions:j,whenNotToApplyConditions:x,configData:N,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return h(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return L(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return W(I)},onRemoveWhenToApply:function(e){return B(I,e)},onEditWhenToApply:function(e,t){return R(I,e,t)},onAddWhenNotToApply:function(){return W(O)},onRemoveWhenNotToApply:function(e){return B(O,e)},onEditWhenNotToApply:function(e,t){return R(O,e,t)},onScopeChange:D,onConfigChange:E},uiState:{showScope:!1,showConfiguration:!0,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:m,tierOptions:d,separationItems:U,toggles:H},customNodes:{afterDescription:o(p,e({title:{type:"other",label:"Extra Context Panel"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"Because you decoupled the template, I can inject anything I want here without touching BaseTemplate logic!"}))})),afterTitle:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import"@mui/icons-material/Close";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import u from"../../../features/IL-OTJ/ILOTJ.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"../../../features/LearningManagement/config.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useEnvStore.js";import"react-router-dom";var c={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},d=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],m=["Tier 1"],f=function(){var f=a(!0),_=f[0],b=f[1],g=a(""),h=g[0],y=g[1],T=a(""),v=T[0],k=T[1],L=a({station:"",tiers:["Tier 1"]}),w=L[0],C=L[1],A=a([]),I=A[0],S=A[1],j=a([]),O=j[0],G=j[1],x=a(c),M=x[0],J=x[1],N=i(function(t,o){C(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),W=i(function(t,o){J(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),D=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},E=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},H=[e({key:"order_rules",label:"Order"},M.order_rules),e({key:"advertiser_rules",label:"Advertiser"},M.advertiser_rules)],R=[{key:"inventory_rules",label:"Inventory code",enabled:M.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:M.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:M.is_default_enabled}],q={"Add Guideline":"I would want to add a separation rule","Search Guideline":"I would want to set a max priority rule","Type your query":"I would want to add a break code matching rule"},z="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the Guideline you’d like to create.</span>\n ".concat(["Add Guideline","Search Guideline","Type your query"].map(function(e){return'<button class="clickable-button" data-value="'.concat(q[e],'">').concat(e,"</button>")}).join(""),"</p>");return o(u,{open:_,closeFunction:function(){return b(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(s,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Guideline",formTitle:"Guideline Details",initialChatMessage:z,template:l.BaseTemplate,templateProps:{state:{title:h,description:v,scopeData:w,whenToApplyConditions:I,whenNotToApplyConditions:O,configData:M,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return y(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return k(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return D(S)},onRemoveWhenToApply:function(e){return B(S,e)},onEditWhenToApply:function(e,t){return E(S,e,t)},onAddWhenNotToApply:function(){return D(G)},onRemoveWhenNotToApply:function(e){return B(G,e)},onEditWhenNotToApply:function(e,t){return E(G,e,t)},onScopeChange:N,onConfigChange:W},uiState:{showScope:!1,showConfiguration:!1,titleLabel:"Guideline Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Guideline Description",whenToApplyLabel:"When to apply this Guideline (When to Apply)",whenNotToApplyLabel:"When not to apply this Guideline (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:d,tierOptions:m,separationItems:H,toggles:R},customNodes:{afterTitle:o(p,e({title:{type:"other",label:"Guideline"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"HealthCare"}))})),top:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Guideline Template:"})," This is an ILOTJ TeachMe customized for Guideline Value Type"]}))}}})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=GuidelinesTeachMeRenderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILOTJ.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJ.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAGjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAOvD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACzE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE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EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC7E,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2e/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAA2E,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAWrJ,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAKD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAA2E,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAWrJ,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAKD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA41EnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TeachMePlugin — Public Contribution Entry Point
|
|
3
|
+
*
|
|
4
|
+
* This is the file teammates contribute to.
|
|
5
|
+
* To register your template:
|
|
6
|
+
* 1. Build your renderer component implementing `TeachMePluginProps`
|
|
7
|
+
* 2. Import it here
|
|
8
|
+
* 3. Add it to `TemplateRegistry` with the exact value_type_name string as the key
|
|
9
|
+
*
|
|
10
|
+
* That's it. The wrapper handles routing, loading, and error states automatically.
|
|
11
|
+
*/
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { TeachMeWrapperProps } from "./TeachMeWrapper";
|
|
14
|
+
export type TeachMeMode = "ADD" | "EDIT";
|
|
15
|
+
export interface TeachMePluginProps {
|
|
16
|
+
/** App integration ID used to resolve the correct template. Optional only in backward-compat mode. */
|
|
17
|
+
app_integration_id?: string;
|
|
18
|
+
/** Controls dialog visibility */
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
/** Called when the dialog requests to close */
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
/** Arbitrary team-specific data passed straight through to your renderer */
|
|
23
|
+
pluginPayload?: Record<string, any>;
|
|
24
|
+
/** Bearer token for API calls */
|
|
25
|
+
token: string;
|
|
26
|
+
/** Whether the plugin is opened for creating a new entry or editing an existing one */
|
|
27
|
+
mode: TeachMeMode;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Map a value_type_name (returned by the /getValueType API) to its renderer.
|
|
31
|
+
*
|
|
32
|
+
* Contributing a new template:
|
|
33
|
+
* "Your Value Type Name": YourCustomRenderer,
|
|
34
|
+
*
|
|
35
|
+
* Keys must exactly match the `value_type_name` field in the database.
|
|
36
|
+
*/
|
|
37
|
+
export declare const TemplateRegistry: Record<string, React.FC<TeachMeWrapperProps>>;
|
|
38
|
+
/**
|
|
39
|
+
* `TeachMePlugin` is the public surface for this module.
|
|
40
|
+
*
|
|
41
|
+
* Teammates consume this component — not `TeachMeWrapper` directly.
|
|
42
|
+
* It bridges the slimmed-down public API to the internal wrapper,
|
|
43
|
+
* supplying the shared `TemplateRegistry` and a safe default for `initialScope`.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* <TeachMePlugin
|
|
47
|
+
* app_integration_id="abc-123"
|
|
48
|
+
* isOpen={open}
|
|
49
|
+
* onClose={() => setOpen(false)}
|
|
50
|
+
* token={authToken}
|
|
51
|
+
* mode="ADD"
|
|
52
|
+
* pluginPayload={{ someTeamSpecificKey: "value" }}
|
|
53
|
+
* />
|
|
54
|
+
*/
|
|
55
|
+
declare const TeachMePlugin: React.FC<TeachMePluginProps>;
|
|
56
|
+
export default TeachMePlugin;
|
|
57
|
+
//# sourceMappingURL=TeachMePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeachMePlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAuB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAKvE,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IACjC,sGAAsG;IACtG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,IAAI,EAAE,WAAW,CAAC;CACnB;AAGD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAM1E,CAAC;AAIF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqB/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface TeachMeWrapperProps {
|
|
2
3
|
app_integration_id?: string;
|
|
3
4
|
isOpen: boolean;
|
|
@@ -6,6 +7,12 @@ export interface TeachMeWrapperProps {
|
|
|
6
7
|
ruleSet?: any;
|
|
7
8
|
pluginPayload?: Record<string, any>;
|
|
8
9
|
token: string;
|
|
10
|
+
/**
|
|
11
|
+
* Registry of template name → renderer component.
|
|
12
|
+
* Injected by `TeachMePlugin` so the wrapper stays decoupled
|
|
13
|
+
* from the actual renderer imports.
|
|
14
|
+
*/
|
|
15
|
+
templateRegistry?: Record<string, React.FC<TeachMeWrapperProps>>;
|
|
9
16
|
}
|
|
10
17
|
declare const TeachMeWrapper: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
18
|
export default TeachMeWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":";AA2MA,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;CAClE;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB,4CAkFjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts
CHANGED
|
@@ -1,56 +1,21 @@
|
|
|
1
|
-
interface ComparisonFieldAnalysis {
|
|
2
|
-
relation: string;
|
|
3
|
-
score: number;
|
|
4
|
-
highlights?: {
|
|
5
|
-
ruleA_spans?: string[];
|
|
6
|
-
ruleB_spans?: string[];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
interface ComparisonAnalysis {
|
|
10
|
-
rule_difference_comparison: {
|
|
11
|
-
summary: {
|
|
12
|
-
overall_score: number;
|
|
13
|
-
overall_summary: string;
|
|
14
|
-
};
|
|
15
|
-
fields: {
|
|
16
|
-
title: ComparisonFieldAnalysis;
|
|
17
|
-
scope: ComparisonFieldAnalysis;
|
|
18
|
-
description: ComparisonFieldAnalysis;
|
|
19
|
-
when_to_apply: {
|
|
20
|
-
score: number;
|
|
21
|
-
mappings: any[];
|
|
22
|
-
};
|
|
23
|
-
when_not_to_apply: {
|
|
24
|
-
score: number;
|
|
25
|
-
mappings: any[];
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
1
|
interface RuleData {
|
|
31
2
|
id: string;
|
|
32
3
|
title: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
wta: string;
|
|
36
|
-
wnta: string;
|
|
37
|
-
similarity?: number;
|
|
38
|
-
summaryText?: string;
|
|
39
|
-
variantType?: string;
|
|
40
|
-
tierName?: string;
|
|
41
|
-
analysis?: ComparisonAnalysis;
|
|
4
|
+
similarityScoreText?: string;
|
|
5
|
+
scope?: string;
|
|
42
6
|
isLoading?: boolean;
|
|
7
|
+
intentTreeData?: any;
|
|
8
|
+
behaviorTreeData?: any;
|
|
43
9
|
}
|
|
44
10
|
export interface RuleComparisonProps {
|
|
45
|
-
proposedRule
|
|
11
|
+
proposedRule?: any;
|
|
46
12
|
variants?: RuleData[];
|
|
47
13
|
onSelectVariant: (variant: RuleData) => void;
|
|
48
14
|
onAddAsVariant?: () => void;
|
|
49
15
|
onSkip?: () => void;
|
|
50
16
|
onBack?: () => void;
|
|
51
17
|
targetVariantId?: string | null;
|
|
52
|
-
highlightedField?: string | null;
|
|
53
18
|
}
|
|
54
|
-
declare const RuleComparison: ({
|
|
19
|
+
declare const RuleComparison: ({ variants, onSelectVariant, onSkip, onBack, targetVariantId, }: RuleComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
20
|
export default RuleComparison;
|
|
56
21
|
//# sourceMappingURL=RuleComparison.d.ts.map
|
package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleComparison.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuleComparison.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.tsx"],"names":[],"mappings":"AAKA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AA6FD,QAAA,MAAM,cAAc,oEAMjB,mBAAmB,4CA+KrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { User } from './store/types';
|
|
2
|
+
import { RbacConfig } from './store/useEnvStore';
|
|
2
3
|
export interface ModalConfig {
|
|
3
4
|
isOpen: boolean;
|
|
4
5
|
type: 'GLOBAL' | 'SCOPE' | 'SUBSCOPE' | 'RENAME' | 'DELETE';
|
|
@@ -13,6 +14,7 @@ interface LearningManagementProps {
|
|
|
13
14
|
llmStudioUrl: string;
|
|
14
15
|
audacyBackendUrl: string;
|
|
15
16
|
config: any;
|
|
17
|
+
rbacConfig: RbacConfig;
|
|
16
18
|
ilLabels: {
|
|
17
19
|
setupLabel: string;
|
|
18
20
|
ruleTitle: string;
|
|
@@ -25,6 +27,6 @@ interface LearningManagementProps {
|
|
|
25
27
|
* Main entry point for the Learning Template Management feature.
|
|
26
28
|
* Responsible for initializing data (mock data for now) and rendering the main layout.
|
|
27
29
|
*/
|
|
28
|
-
declare function LearningManagement({ userDetails, llmStudioUrl, audacyBackendUrl, ilLabels, config, app_integration_id, backwardCompatibility }: LearningManagementProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function LearningManagement({ userDetails, llmStudioUrl, audacyBackendUrl, ilLabels, config, rbacConfig, app_integration_id, backwardCompatibility }: LearningManagementProps): import("react/jsx-runtime").JSX.Element;
|
|
29
31
|
export default LearningManagement;
|
|
30
32
|
//# sourceMappingURL=LearningManagement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningManagement.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagement.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"LearningManagement.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagement.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAWrC,OAAoB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AA4E9D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;GAGG;AACH,iBAAS,kBAAkB,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,qBAA2B,EAAE,EAAE,uBAAuB,2CAggBlL;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningManagementTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagementTest.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,
|
|
1
|
+
{"version":3,"file":"LearningManagementTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagementTest.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,4CAsG9B;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -8,6 +8,9 @@ interface LearningTemplateLayoutProps {
|
|
|
8
8
|
onAddChild?: (parentId: string, childType: 'SCOPE' | 'SUBSCOPE', parentName?: string) => void;
|
|
9
9
|
onRenameChild?: (scopeId: string, initialName: string) => void;
|
|
10
10
|
onDeleteChild?: (scopeId: string, scopeName: string, learningsCount: number) => void;
|
|
11
|
+
canDeleteScope?: (scopeId: string) => boolean;
|
|
12
|
+
canEditScope?: (scopeId: string) => boolean;
|
|
13
|
+
canCreateScope?: (scopeId: string) => boolean;
|
|
11
14
|
onSectionSelect?: (scopeId: string, sectionId: string) => void;
|
|
12
15
|
onViewStation?: (station: StationData) => void;
|
|
13
16
|
activeSectionId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningTemplateLayout.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningTemplateLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Learning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c,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA2EjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RBAC/AccessPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AccessPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RBAC/AccessPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEnD,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Approver } from './AddScopeModal';
|
|
3
|
+
import { AppsecGroup } from '../apis/scopeApis';
|
|
4
|
+
interface AddScopeApprovalSearchComponentProps {
|
|
5
|
+
selectedApprovers: Approver[];
|
|
6
|
+
selectedGroupOfApprovers: AppsecGroup[];
|
|
7
|
+
onApproversChange: (approvers: Approver[]) => void;
|
|
8
|
+
onGroupsChange: (groups: AppsecGroup[]) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const AddScopeApprovalSearchComponent: React.FC<AddScopeApprovalSearchComponentProps>;
|
|
11
|
+
export default AddScopeApprovalSearchComponent;
|
|
12
|
+
//# sourceMappingURL=AddScopeApprovalSearchComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddScopeApprovalSearchComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,UAAU,oCAAoC;IAC5C,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IAC9B,wBAAwB,EAAE,WAAW,EAAE,CAAC;IACxC,iBAAiB,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACnD,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACjD;AAiID,QAAA,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CAuRnF,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Approver {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
}
|
|
7
|
+
interface AddScopeModalProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onCreate: (scopeId?: string) => void;
|
|
11
|
+
hasGlobalRuleSet: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const AddScopeModalComponent: React.FC<AddScopeModalProps>;
|
|
14
|
+
export default AddScopeModalComponent;
|
|
15
|
+
//# sourceMappingURL=AddScopeModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddScopeModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/AddScopeModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAiB3D,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,UAAU,kBAAkB;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAC,CAAC,OAAO,CAAC,EAAC,MAAM,KAAG,IAAI,CAAC;IACjC,gBAAgB,EAAC,OAAO,CAAC;CAC1B;AAQD,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2PxD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ApprovalActionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
text: string;
|
|
4
|
+
variant: 'approve' | 'reject';
|
|
5
|
+
}
|
|
6
|
+
declare const ApprovalActionButton: React.FC<ApprovalActionButtonProps>;
|
|
7
|
+
export default ApprovalActionButton;
|
|
8
|
+
//# sourceMappingURL=ApprovalActionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalActionButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/ApprovalActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,yBAA0B,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC/B;AAOD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA+D7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RuleVariant } from '../types';
|
|
2
|
+
interface ApprovalLearningDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
mode: 'approve' | 'reject';
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSubmit: (data: {
|
|
7
|
+
feedback?: string;
|
|
8
|
+
deleteLearning?: boolean;
|
|
9
|
+
}) => void;
|
|
10
|
+
variantInformation: string;
|
|
11
|
+
ruleTitle?: string;
|
|
12
|
+
pendingVariants?: RuleVariant[];
|
|
13
|
+
isPending?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const ApprovalLearningDialog: ({ open, mode, onClose, onSubmit, variantInformation, ruleTitle, pendingVariants, isPending, }: ApprovalLearningDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default ApprovalLearningDialog;
|
|
17
|
+
//# sourceMappingURL=ApprovalLearningDialog.d.ts.map
|
package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalLearningDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/ApprovalLearningDialog.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,UAAU,2BAA2B;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1E,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAsJD,QAAA,MAAM,sBAAsB,kGASzB,2BAA2B,4CAgP7B,CAAA;AACD,eAAe,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLogic.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/ContentLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentLogic.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/ContentLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAA2B,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGhF;;GAEG;AACH,UAAU,iBAAiB;IACvB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,6CAA6C;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2DAA2D;IAC3D,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,qDAAqD;IACrD,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,KAAK,IAAI,CAAC;IACpH,uDAAuD;IACvD,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wCAAwC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kDAAkD;IAClD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,4CAA4C;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEtI,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAErE,4BAA4B,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,iBAAiB,KAAK,IAAI,CAAC;IAClF,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5H;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+P7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PendingApprovalChip.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/PendingApprovalChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,wBAAwB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAcD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAe3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -13,6 +13,8 @@ interface RuleAccordionProps {
|
|
|
13
13
|
rule: RuleDefinition;
|
|
14
14
|
/** Index of the rule in the list */
|
|
15
15
|
idx: number;
|
|
16
|
+
/** Selected rule set ID used for scoped RBAC checks */
|
|
17
|
+
ruleSetId?: string;
|
|
16
18
|
/** All tiers data for linked variant lookup */
|
|
17
19
|
allTiers?: RuleTier[];
|
|
18
20
|
/** Current tier ID */
|