@e-llm-studio/instant-learning 0.1.1-alpha.6 → 0.1.1-alpha.60

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.
Files changed (229) hide show
  1. package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +2 -0
  2. package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js.map +1 -0
  3. package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
  4. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
  5. package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
  6. package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
  7. package/dist/cjs/features/LearningManagement/RBAC/AccessManagementPanel.js +2 -0
  8. package/dist/cjs/features/LearningManagement/RBAC/AccessManagementPanel.js.map +1 -0
  9. package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js +2 -0
  10. package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js.map +1 -0
  11. package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.module.css.js +2 -0
  12. package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.module.css.js.map +1 -0
  13. package/dist/cjs/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +2 -0
  14. package/dist/cjs/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js.map +1 -0
  15. package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js +2 -0
  16. package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js.map +1 -0
  17. package/dist/cjs/features/LearningManagement/RuleContent/ApprovalActionButton.js +2 -0
  18. package/dist/cjs/features/LearningManagement/RuleContent/ApprovalActionButton.js.map +1 -0
  19. package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +2 -0
  20. package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js.map +1 -0
  21. package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
  22. package/dist/cjs/features/LearningManagement/RuleContent/PendingApprovalChip.js +2 -0
  23. package/dist/cjs/features/LearningManagement/RuleContent/PendingApprovalChip.js.map +1 -0
  24. package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordion.js +1 -1
  25. package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
  26. package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionShell.js +1 -1
  27. package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
  28. package/dist/cjs/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
  29. package/dist/cjs/features/LearningManagement/RuleContent/TierCard.js +1 -1
  30. package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
  31. package/dist/cjs/features/LearningManagement/RuleContent/VariantList.js +1 -1
  32. package/dist/cjs/features/LearningManagement/Sidebar.js +1 -1
  33. package/dist/cjs/features/LearningManagement/SidebarWrapper.js +1 -1
  34. package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
  35. package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
  36. package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
  37. package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js +2 -0
  38. package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js.map +1 -0
  39. package/dist/cjs/features/LearningManagement/components/EmptyLearningState.js +1 -1
  40. package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
  41. package/dist/cjs/features/LearningManagement/components/ScopeSkeletonLoader.js +2 -0
  42. package/dist/cjs/features/LearningManagement/components/ScopeSkeletonLoader.js.map +1 -0
  43. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeAddAction.js +1 -1
  44. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  45. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
  46. package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js +1 -1
  47. package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  48. package/dist/cjs/features/LearningManagement/components/ToolTip.js +1 -1
  49. package/dist/cjs/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
  50. package/dist/cjs/features/LearningManagement/queries/useApprovalQueries.js +2 -0
  51. package/dist/cjs/features/LearningManagement/queries/useApprovalQueries.js.map +1 -0
  52. package/dist/cjs/features/LearningManagement/store/useAppSecRolesStore.js +2 -0
  53. package/dist/cjs/features/LearningManagement/store/useAppSecRolesStore.js.map +1 -0
  54. package/dist/cjs/features/LearningManagement/store/useConfigStore.js +1 -1
  55. package/dist/cjs/features/LearningManagement/store/useEnvStore.js +1 -1
  56. package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
  57. package/dist/cjs/features/LearningManagement/store/usePermissionsStore.js +2 -0
  58. package/dist/cjs/features/LearningManagement/store/usePermissionsStore.js.map +1 -0
  59. package/dist/cjs/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
  60. package/dist/cjs/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
  61. package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +2 -0
  62. package/dist/cjs/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +2 -0
  63. package/dist/cjs/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js.map +1 -0
  64. package/dist/cjs/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +2 -0
  65. package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +2 -0
  66. package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js.map +1 -0
  67. package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
  68. package/dist/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
  69. package/dist/features/LearningManagement/LearningManagement.js +1 -1
  70. package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
  71. package/dist/features/LearningManagement/RBAC/AccessManagementPanel.js +2 -0
  72. package/dist/features/LearningManagement/RBAC/AccessManagementPanel.js.map +1 -0
  73. package/dist/features/LearningManagement/RBAC/AccessPanel.js +2 -0
  74. package/dist/features/LearningManagement/RBAC/AccessPanel.js.map +1 -0
  75. package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.js +2 -0
  76. package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.js.map +1 -0
  77. package/dist/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +2 -0
  78. package/dist/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js.map +1 -0
  79. package/dist/features/LearningManagement/RuleContent/AddScopeModal.js +2 -0
  80. package/dist/features/LearningManagement/RuleContent/AddScopeModal.js.map +1 -0
  81. package/dist/features/LearningManagement/RuleContent/ApprovalActionButton.js +2 -0
  82. package/dist/features/LearningManagement/RuleContent/ApprovalActionButton.js.map +1 -0
  83. package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +2 -0
  84. package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js.map +1 -0
  85. package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
  86. package/dist/features/LearningManagement/RuleContent/PendingApprovalChip.js +2 -0
  87. package/dist/features/LearningManagement/RuleContent/PendingApprovalChip.js.map +1 -0
  88. package/dist/features/LearningManagement/RuleContent/RuleAccordion.js +1 -1
  89. package/dist/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
  90. package/dist/features/LearningManagement/RuleContent/RuleAccordionShell.js +1 -1
  91. package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
  92. package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
  93. package/dist/features/LearningManagement/RuleContent/TierCard.js +1 -1
  94. package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
  95. package/dist/features/LearningManagement/RuleContent/VariantList.js +1 -1
  96. package/dist/features/LearningManagement/Sidebar.js +1 -1
  97. package/dist/features/LearningManagement/SidebarWrapper.js +1 -1
  98. package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
  99. package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
  100. package/dist/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
  101. package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js +2 -0
  102. package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js.map +1 -0
  103. package/dist/features/LearningManagement/components/EmptyLearningState.js +1 -1
  104. package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
  105. package/dist/features/LearningManagement/components/ScopeSkeletonLoader.js +2 -0
  106. package/dist/features/LearningManagement/components/ScopeSkeletonLoader.js.map +1 -0
  107. package/dist/features/LearningManagement/components/ScopeTree/TreeAddAction.js +1 -1
  108. package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  109. package/dist/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
  110. package/dist/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js +1 -1
  111. package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  112. package/dist/features/LearningManagement/components/ToolTip.js +1 -1
  113. package/dist/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
  114. package/dist/features/LearningManagement/queries/useApprovalQueries.js +2 -0
  115. package/dist/features/LearningManagement/queries/useApprovalQueries.js.map +1 -0
  116. package/dist/features/LearningManagement/store/useAppSecRolesStore.js +2 -0
  117. package/dist/features/LearningManagement/store/useAppSecRolesStore.js.map +1 -0
  118. package/dist/features/LearningManagement/store/useConfigStore.js +1 -1
  119. package/dist/features/LearningManagement/store/useEnvStore.js +1 -1
  120. package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
  121. package/dist/features/LearningManagement/store/usePermissionsStore.js +2 -0
  122. package/dist/features/LearningManagement/store/usePermissionsStore.js.map +1 -0
  123. package/dist/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
  124. package/dist/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
  125. package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +2 -0
  126. package/dist/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +2 -0
  127. package/dist/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js.map +1 -0
  128. package/dist/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +2 -0
  129. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +57 -0
  130. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts.map +1 -0
  131. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +16 -3
  132. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
  133. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +5 -4
  134. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
  135. package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
  136. package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +4 -0
  137. package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
  138. package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts +8 -0
  139. package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts.map +1 -0
  140. package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts +14 -0
  141. package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -0
  142. package/dist/types/src/features/LearningManagement/RBAC/index.d.ts +4 -0
  143. package/dist/types/src/features/LearningManagement/RBAC/index.d.ts.map +1 -0
  144. package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts +12 -0
  145. package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts.map +1 -0
  146. package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts +15 -0
  147. package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts.map +1 -0
  148. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalActionButton.d.ts +8 -0
  149. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalActionButton.d.ts.map +1 -0
  150. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts +17 -0
  151. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -0
  152. package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -1
  153. package/dist/types/src/features/LearningManagement/RuleContent/PendingApprovalChip.d.ts +7 -0
  154. package/dist/types/src/features/LearningManagement/RuleContent/PendingApprovalChip.d.ts.map +1 -0
  155. package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordion.d.ts +2 -0
  156. package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordion.d.ts.map +1 -1
  157. package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts +2 -0
  158. package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts.map +1 -1
  159. package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts +2 -0
  160. package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts.map +1 -1
  161. package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts +1 -0
  162. package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
  163. package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +2 -0
  164. package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
  165. package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
  166. package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts +4 -0
  167. package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
  168. package/dist/types/src/features/LearningManagement/RuleContent/VariantList.d.ts +2 -0
  169. package/dist/types/src/features/LearningManagement/RuleContent/VariantList.d.ts.map +1 -1
  170. package/dist/types/src/features/LearningManagement/Sidebar.d.ts +3 -0
  171. package/dist/types/src/features/LearningManagement/Sidebar.d.ts.map +1 -1
  172. package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts +3 -0
  173. package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts.map +1 -1
  174. package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +13 -0
  175. package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
  176. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +103 -6
  177. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
  178. package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts +11 -0
  179. package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -0
  180. package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts +10 -0
  181. package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts.map +1 -1
  182. package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +3 -0
  183. package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
  184. package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts +32 -0
  185. package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts.map +1 -0
  186. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts +2 -0
  187. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts.map +1 -1
  188. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts.map +1 -1
  189. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts +3 -0
  190. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
  191. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts +3 -0
  192. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -1
  193. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts +1 -0
  194. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts.map +1 -1
  195. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts +2 -0
  196. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts.map +1 -1
  197. package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts +4 -0
  198. package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts.map +1 -1
  199. package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts +11 -0
  200. package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts.map +1 -0
  201. package/dist/types/src/features/LearningManagement/store/useAppSecRolesStore.d.ts +11 -0
  202. package/dist/types/src/features/LearningManagement/store/useAppSecRolesStore.d.ts.map +1 -0
  203. package/dist/types/src/features/LearningManagement/store/useConfigStore.d.ts.map +1 -1
  204. package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +13 -0
  205. package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
  206. package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +14 -0
  207. package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
  208. package/dist/types/src/features/LearningManagement/store/usePermissionsStore.d.ts +34 -0
  209. package/dist/types/src/features/LearningManagement/store/usePermissionsStore.d.ts.map +1 -0
  210. package/dist/types/src/features/LearningManagement/types.d.ts +6 -3
  211. package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
  212. package/dist/types/src/plugins/{valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts → ValueTypes/Category/CategoryTeachMeRenderer.d.ts} +4 -4
  213. package/dist/types/src/plugins/ValueTypes/Category/CategoryTeachMeRenderer.d.ts.map +1 -0
  214. package/dist/types/src/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
  215. package/dist/types/src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts +28 -0
  216. package/dist/types/src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts.map +1 -0
  217. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +4 -0
  218. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -0
  219. package/package.json +10 -6
  220. package/dist/cjs/plugins/valueTypes/Default/DefaultTeachMeRenderer.js +0 -2
  221. package/dist/cjs/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +0 -2
  222. package/dist/plugins/valueTypes/Default/DefaultTeachMeRenderer.js +0 -2
  223. package/dist/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +0 -2
  224. package/dist/types/src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +0 -1
  225. /package/dist/cjs/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.js.map +0 -0
  226. /package/dist/cjs/plugins/{valueTypes → ValueTypes}/RadioTrafficLearning/RadioTrafficLearningRenderer.js.map +0 -0
  227. /package/dist/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.js.map +0 -0
  228. /package/dist/plugins/{valueTypes → ValueTypes}/RadioTrafficLearning/RadioTrafficLearningRenderer.js.map +0 -0
  229. /package/dist/types/src/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.d.ts +0 -0
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  interface TreeAddActionProps {
3
3
  label: string;
4
4
  onAdd: () => void;
5
+ disabled?: boolean;
6
+ tooltip?: string;
5
7
  }
6
8
  export declare const TreeAddAction: React.FC<TreeAddActionProps>;
7
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"TreeAddAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeAddAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAStD,CAAC"}
1
+ {"version":3,"file":"TreeAddAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeAddAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoBtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TreeMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,WAAW,EAAE,EAAE,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AACvF,OAAO,EAAE,WAAW,EAAgB,MAAM,cAAc,CAAC;AAIzD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA0FtC,CAAC"}
1
+ {"version":3,"file":"TreeMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,WAAW,EAAE,EAAE,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AACvF,OAAO,EAAE,WAAW,EAAgB,MAAM,cAAc,CAAC;AAIzD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA2FtC,CAAC"}
@@ -15,6 +15,9 @@ interface TreeNodeProps {
15
15
  onAddChild?: (parentId: string, childType: 'SCOPE' | 'SUBSCOPE', parentName?: string) => void;
16
16
  onRenameChild?: (nodeId: string, initialName: string) => void;
17
17
  onDeleteChild?: (scopeId: string, scopeName: string, learningsCount: number) => void;
18
+ canDeleteScope?: (scopeId: string) => boolean;
19
+ canEditScope?: (scopeId: string) => boolean;
20
+ canCreateScope?: (scopeId: string) => boolean;
18
21
  searchQuery?: string;
19
22
  sectionsConfig?: TreeSectionConfig[];
20
23
  nodeTypesConfig?: NodeTypeConfig[];
@@ -1 +1 @@
1
- {"version":3,"file":"TreeNode.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK/E,UAAU,aAAa;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,eAAe,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAClE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;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c,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8K5C,CAAC"}
@@ -8,6 +8,9 @@ export interface TreeSidebarProps {
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
  searchQuery?: string;
12
15
  onSearchCountChange?: (count: number) => void;
13
16
  sectionsConfig?: TreeSectionConfig[];
@@ -1 +1 @@
1
- {"version":3,"file":"TreeSidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI/E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAG3B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,I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,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiLlD,CAAC"}
@@ -4,6 +4,7 @@ interface StationAutocompleteProps {
4
4
  onChange: (value: string) => void;
5
5
  onStationSelect: (station: any) => void;
6
6
  className?: string;
7
+ style?: React.CSSProperties;
7
8
  }
8
9
  /**
9
10
  * Autocomplete dropdown field for searching and selecting station options.
@@ -1 +1 @@
1
- {"version":3,"file":"StationAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,wBAAwB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwJ3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"StationAutocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,wBAAwB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyJ3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -4,6 +4,8 @@ interface StationOnboardModalProps {
4
4
  onClose: () => void;
5
5
  /** Callback after onboarding completes. Receives the new scopeId. */
6
6
  onBoardStation: (scopeId?: string) => void;
7
+ app_integration_id: string;
8
+ token: string;
7
9
  }
8
10
  /**
9
11
  * Modal component for onboarding stations with full sequential logic and clean CSS module design.
@@ -1 +1 @@
1
- {"version":3,"file":"StationOnboardModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA4DpE,UAAU,wBAAwB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA4vB3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"StationOnboardModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAgEpE,UAAU,wBAAwB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAmxB3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -10,6 +10,10 @@ export declare const QUERY_PARAM_KEYS: {
10
10
  readonly OPEN_IL: "openil";
11
11
  /** Whether to open the Station Onboarding modal automatically */
12
12
  readonly ONBOARD_STATION: "onboardstation";
13
+ /** Variant ID to auto-open its parent rule accordion */
14
+ readonly VARIANT_ID: "variantid";
15
+ /** Approval action to auto-trigger on the variant: 'approve' | 'reject' */
16
+ readonly APPROVAL_ACTION: "approval";
13
17
  };
14
18
  /**
15
19
  * Valid tab values for the sidebar.
@@ -1 +1 @@
1
- {"version":3,"file":"useLearningTemplateQueryParams.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/hooks/useLearningTemplateQueryParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,mDAAmD;;IAEnD,sCAAsC;;IAEtC,+DAA+D;;IAE/D,iEAAiE;;CAEzD,CAAC;AAEX;;GAEG;AACH,KAAK,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,MAAM,GAAG,IAGpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAa,OAAO,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,KAAG,IAcvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;yBAKC,UAAU,GAAG,IAAI;+BAYX,MAAM,GAAG,IAAI;mBAQvB,UAAU,KAAG,IAAI;wBAQZ,MAAM,GAAG,IAAI,KAAG,IAAI;CAU5D,CAAC"}
1
+ {"version":3,"file":"useLearningTemplateQueryParams.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/hooks/useLearningTemplateQueryParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,mDAAmD;;IAEnD,sCAAsC;;IAEtC,+DAA+D;;IAE/D,iEAAiE;;IAEjE,wDAAwD;;IAExD,2EAA2E;;CAEnE,CAAC;AAEX;;GAEG;AACH,KAAK,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,MAAM,GAAG,IAGpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAa,OAAO,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,KAAG,IAcvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;yBAKC,UAAU,GAAG,IAAI;+BAYX,MAAM,GAAG,IAAI;mBAQvB,UAAU,KAAG,IAAI;wBAQZ,MAAM,GAAG,IAAI,KAAG,IAAI;CAU5D,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare function useApproverSearchQuery(debouncedSearch: string): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
2
+ export declare function useGroupSearchQuery(debouncedGroupSearch: string): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
3
+ export declare function useApproveOrRejectVariantsMutation(): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseMutationResult<any, Error, {
4
+ variantIds: string[];
5
+ status: 'approved' | 'rejected';
6
+ feedback?: string | undefined;
7
+ scopeId: string;
8
+ is_deleted?: boolean | undefined;
9
+ }, unknown>;
10
+ export declare function useGetAppSecRolesQuery(appId: string, enabled?: boolean): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
11
+ //# sourceMappingURL=useApprovalQueries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApprovalQueries.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/queries/useApprovalQueries.ts"],"names":[],"mappings":"AAKA,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,MAAM,uGAU7D;AAED,wBAAgB,mBAAmB,CAAC,oBAAoB,EAAE,MAAM,uGAY/D;AAED,wBAAgB,kCAAkC;gBAShC,MAAM,EAAE;YACZ,UAAU,GAAG,UAAU;;aAEtB,MAAM;;YAUpB;AACD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,UAAO,uGAUnE"}
@@ -0,0 +1,11 @@
1
+ export interface AppSecRole {
2
+ _id: string;
3
+ name: string;
4
+ }
5
+ interface AppSecRolesState {
6
+ roles: AppSecRole[];
7
+ setRoles: (roles: AppSecRole[]) => void;
8
+ }
9
+ export declare const useAppSecRolesStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppSecRolesState>>;
10
+ export {};
11
+ //# sourceMappingURL=useAppSecRolesStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAppSecRolesStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useAppSecRolesStore.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,gBAAgB;IACxB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,mBAAmB,+EAG7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useConfigStore.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,SAAS,EAAE,CACT,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC;IACV,WAAW,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC,KACC,IAAI,CAAC;IAEV,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAGD,eAAO,MAAM,cAAc,0EA0BxB,CAAC"}
1
+ {"version":3,"file":"useConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useConfigStore.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,SAAS,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IACjD,WAAW,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC,KACC,IAAI,CAAC;IACV,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAoBD,eAAO,MAAM,cAAc,0EA4BxB,CAAC"}
@@ -1,8 +1,21 @@
1
+ export interface RbacConfig {
2
+ applicationName: string;
3
+ applicationId: string;
4
+ moduleId: string;
5
+ applicationModuleId?: string;
6
+ appsecRbacUrl: string;
7
+ appsecBaseUrl: string;
8
+ applicationResourceId?: string;
9
+ }
1
10
  interface EnvStore {
2
11
  llmStudioUrl: string | null;
3
12
  audacyBackendUrl: string | null;
13
+ appsecRbacUrl: string | null;
14
+ appsecBaseUrl: string | null;
15
+ rbacConfig: RbacConfig | null;
4
16
  setLlmStudioUrl: (url: string) => void;
5
17
  setAudacyBackendUrl: (url: string) => void;
18
+ setRbacConfig: (config: RbacConfig) => void;
6
19
  }
7
20
  declare const useEnvStore: import("zustand").UseBoundStore<import("zustand").StoreApi<EnvStore>>;
8
21
  export default useEnvStore;
@@ -1 +1 @@
1
- {"version":3,"file":"useEnvStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useEnvStore.ts"],"names":[],"mappings":"AAIA,UAAU,QAAQ;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAGD,QAAA,MAAM,WAAW,uEAMd,CAAC;AAEJ,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useEnvStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useEnvStore.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAGD,UAAU,QAAQ;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAC7C;AAGD,QAAA,MAAM,WAAW,uEAcd,CAAC;AAEJ,eAAe,WAAW,CAAC"}
@@ -22,6 +22,14 @@ interface RuleTemplateState {
22
22
  currentRules: RuleTier[];
23
23
  /** Newly created variant IDs grouped by tier for auto-scroll */
24
24
  createdVariantInfo: CreatedVariantInfo[] | null;
25
+ /** Variant ID from URL param — auto-opens its parent accordion on load */
26
+ urlVariantId: string | null;
27
+ /** Approval action from URL param — auto-opens approval modal when paired with urlVariantId */
28
+ urlApprovalAction: 'approve' | 'reject' | null;
29
+ /** Clears urlVariantId and urlApprovalAction from both store and URL */
30
+ clearUrlApprovalParams: () => void;
31
+ templateMap: Record<string, string>;
32
+ setTemplateData: (appIntegrationId: string, templateName: string) => void;
25
33
  setRuleSets: (rules: AllRuleSetsResponse) => void;
26
34
  setScopeTreeData: (data: ScopesTreeResponse | null) => void;
27
35
  setStationModalOpen: (open: boolean) => void;
@@ -42,6 +50,12 @@ interface RuleTemplateState {
42
50
  setError: (error: string | null) => void;
43
51
  tiers: Tier[];
44
52
  setTiers: (tierIds: Tier[]) => void;
53
+ backwardCompatibility: boolean;
54
+ setBackwardCompatibility: (value: boolean) => void;
55
+ app_integration_id: string | null;
56
+ setAppIntegrationId: (id: string | null) => void;
57
+ token: string;
58
+ setToken: (token: string) => void;
45
59
  }
46
60
  export declare const INITIAL_RULE_SETS: AllRuleSetsResponse;
47
61
  export declare const useLearningTemplateStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RuleTemplateState>>;
@@ -1 +1 @@
1
- {"version":3,"file":"useLearningTemplateStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLearningTemplateStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhG,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,UAAU,CAAA;KAAE,EAAE,CAAC;CACxD;AACD,UAAU,iBAAiB;IAEzB,UAAU,EAAE,WAAW,GAAG,UAAU,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAA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CAAC;IAEpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,iBAAiB,EAAE,mBAI/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gFAuElC,CAAC"}
1
+ {"version":3,"file":"useLearningTemplateStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLearningTemplateStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhG,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,UAAU,CAAA;KAAE,EAAE,CAAC;CACxD;AACD,UAAU,iBAAiB;IAEzB,UAAU,EAAE,WAAW,GAAG,UAAU,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8BAA8B,EAAE,OAAO,CAAC;IACxC,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGzC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,YAAY,EAAE,QAAQ,EAAE,CAAC;IAEzB,gEAAgE;IAChE,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAEhD,0E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aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wBAAwB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,iBAAiB,EAAE,mBAI/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gFAoGlC,CAAC"}
@@ -0,0 +1,34 @@
1
+ interface Permission {
2
+ _id: string;
3
+ name: string;
4
+ }
5
+ interface Role {
6
+ _id: string;
7
+ name: string;
8
+ appId: string;
9
+ permissions: Permission[];
10
+ }
11
+ interface AccessData {
12
+ _id: string;
13
+ resourceId: any;
14
+ resourceType: any;
15
+ application: string;
16
+ user_email: string;
17
+ role: Role;
18
+ grantedBy: string;
19
+ grantedAt: string;
20
+ isInherited: boolean;
21
+ }
22
+ interface PermissionsState {
23
+ accessData: AccessData[];
24
+ isLoading: boolean;
25
+ error: string | null;
26
+ fetchPermissions: (appId: string, resourceId?: string) => Promise<void>;
27
+ hasPermission: (permissionName: string, resourceId?: string) => boolean;
28
+ hasGlobalPermission: (permissionName: string, resourceId: string) => boolean;
29
+ hasApplicationAccess: (resourceId?: string) => boolean;
30
+ reset: () => void;
31
+ }
32
+ export declare const usePermissionsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<PermissionsState>>;
33
+ export {};
34
+ //# sourceMappingURL=usePermissionsStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePermissionsStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/usePermissionsStore.ts"],"names":[],"mappings":"AAMA,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,IAAI;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,GAAG,CAAC;IAChB,YAAY,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAmBD,UAAU,gBAAgB;IACxB,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IACxE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7E,oBAAoB,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IACvD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,+EA0D7B,CAAC"}
@@ -93,6 +93,7 @@ export type RuleVariant = {
93
93
  is_user_accepted_risk?: boolean;
94
94
  is_enabled?: boolean;
95
95
  isOverridden?: boolean | null;
96
+ approvalStatus?: string;
96
97
  };
97
98
  /**
98
99
  * Represents a rule definition which can contain multiple variants.
@@ -130,9 +131,11 @@ export type RuleDefinition = {
130
131
  export type RuleSetDetailsResponse = {
131
132
  ruleSetName: string;
132
133
  ruleSetDesc: string | null;
133
- tier1: RuleDefinition[];
134
- tier2: RuleDefinition[];
135
- tier3: RuleDefinition[];
134
+ created_at: string;
135
+ updated_at: string | null;
136
+ created_by: string;
137
+ updated_by: string | null;
138
+ [key: string]: RuleDefinition[] | string | null;
136
139
  };
137
140
  export type ChangeLogItem = {
138
141
  type: 'null' | 'edited' | 'add' | 'edit' | 'remove';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,C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C;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,uCAAuC;IACvC,mCAAmC,CAAC,EAAE,MAAM,CAAC;IAC7C,4CAA4C;IAC5C,wCAAwC,CAAC,EAAE,MAAM,CAAC;IAClD,yCAAyC;IACzC,sBAAsB,CAAC,EAAE,OAAO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AC9B"}
@@ -21,8 +21,8 @@ export interface ConfigDataType {
21
21
  };
22
22
  is_default_enabled: boolean;
23
23
  }
24
- interface RadioTrafficLearningRendererProps {
24
+ interface CategoryTeachMeRendererProps {
25
25
  }
26
- declare const RadioTrafficLearningRenderer: React.FC<RadioTrafficLearningRendererProps>;
27
- export default RadioTrafficLearningRenderer;
28
- //# sourceMappingURL=RadioTrafficLearningRenderer.d.ts.map
26
+ declare const CategoryTeachMeRenderer: React.FC<CategoryTeachMeRendererProps>;
27
+ export default CategoryTeachMeRenderer;
28
+ //# sourceMappingURL=CategoryTeachMeRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryTeachMeRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/Category/CategoryTeachMeRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,eAAe,EAAE;QAAE,sBAAsB,EAAE,OAAO,CAAA;KAAE,CAAC;IACrD,gBAAgB,EAAE;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,4BAA4B;CAErC;AAED,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA4JnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultTeachMeRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/valueTypes/Default/DefaultTeachMeRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,eAAe,EAAE;QAAE,sBAAsB,EAAE,OAAO,CAAA;KAAE,CAAC;IACrD,gBAAgB,EAAE;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,2BAA2B;CAEpC;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+JjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"DefaultTeachMeRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,eAAe,EAAE;QAAE,sBAAsB,EAAE,OAAO,CAAA;KAAE,CAAC;IACrD,gBAAgB,EAAE;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,2BAA2B;CAEpC;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+JjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ export interface ConditionItem {
3
+ id: number | string;
4
+ text: string;
5
+ reasoning?: string;
6
+ }
7
+ export interface ConfigDataType {
8
+ order_rules: {
9
+ enabled: boolean;
10
+ global_min_separation_seconds: number;
11
+ };
12
+ advertiser_rules: {
13
+ enabled: boolean;
14
+ global_min_separation_seconds: number;
15
+ };
16
+ inventory_rules: {
17
+ respect_inventory_code: boolean;
18
+ };
19
+ break_code_rules: {
20
+ respect_break_code: boolean;
21
+ };
22
+ is_default_enabled: boolean;
23
+ }
24
+ interface GuidelinesTeachMeRendererProps {
25
+ }
26
+ declare const GuidelinesTeachMeRenderer: React.FC<GuidelinesTeachMeRendererProps>;
27
+ export default GuidelinesTeachMeRenderer;
28
+ //# sourceMappingURL=GuidelinesTeachMeRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GuidelinesTeachMeRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,eAAe,EAAE;QAAE,sBAAsB,EAAE,OAAO,CAAA;KAAE,CAAC;IACrD,gBAAgB,EAAE;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,8BAA8B;CAEvC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA4JvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TeachMeWrapperProps } from "../../../features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper";
2
+ declare const RadioTrafficLearningRenderer: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default RadioTrafficLearningRenderer;
4
+ //# sourceMappingURL=RadioTrafficLearningRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioTrafficLearningRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAEhG,QAAA,MAAM,4BAA4B,UAAW,mBAAmB,4CAyD/D,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/instant-learning",
3
- "version": "0.1.1-alpha.6",
3
+ "version": "0.1.1-alpha.60",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -23,7 +23,8 @@
23
23
  ],
24
24
  "scripts": {
25
25
  "start": "craco start",
26
- "build": "rollup -c",
26
+ "build": "rollup -c && node scripts/fix-casing.mjs",
27
+ "postbuild": "node scripts/fix-casing.mjs",
27
28
  "tsupBuild": "tsup src/index.ts",
28
29
  "test": "craco test",
29
30
  "eject": "craco eject",
@@ -138,10 +139,11 @@
138
139
  "typescript": "4.9.5",
139
140
  "uuid": "^11.1.0"
140
141
  },
141
- "peerDependencies": {},
142
- "dependencies": {
142
+ "peerDependencies": {
143
143
  "react": ">=16.8.0 <19.0.0",
144
- "react-dom": ">=16.8.0 <19.0.0",
144
+ "react-dom": ">=16.8.0 <19.0.0"
145
+ },
146
+ "dependencies": {
145
147
  "@craco/craco": "^7.1.0",
146
148
  "@e-llm-studio/citation": "^0.0.165",
147
149
  "@e-llm-studio/watch-me-work": "^0.0.25",
@@ -150,7 +152,9 @@
150
152
  "@react-pdf-viewer/page-navigation": "^3.12.0",
151
153
  "@react-pdf-viewer/search": "^3.12.0",
152
154
  "@react-pdf-viewer/zoom": "^3.12.0",
153
- "@viswa-test/test-citation": "^0.0.55",
155
+ "@tanstack/react-query": "^5.100.14",
156
+ "@viswa-test/test-citation": "^0.0.109",
157
+ "appsec-ui": "^0.1.18",
154
158
  "date-fns": "^4.1.0",
155
159
  "framer-motion": "^12.38.0",
156
160
  "pdf-collaborative-tool": "^0.7.0",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react");require("../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js"),require("../../../features/IL-OTJ/_components/InputDataReasoningCard.js"),require("../../../features/IL-OTJ/_components/TooltipComponent.js");var a=require("../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js");require("../../../features/IL-OTJ/store/CitationsContext.js"),require("@mui/material"),require("uuid"),require("@mui/material/Tooltip"),require("react-markdown"),require("rehype-raw"),require("axios"),require("@e-llm-studio/streaming-response"),require("@e-llm-studio/watch-me-work"),require("../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js"),require("remark-gfm"),require("../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js"),require("../../../features/IL-OTJ/_components/CitationLink.js"),require("@e-llm-studio/citation"),require("@viswa-test/test-citation"),require("../../../features/LearningManagement/store/useLearningTemplateStore.js"),require("primereact/toast"),require("../../../features/LearningManagement/apis/scopeApis.js"),require("../../../features/LearningManagement/components/ToolTip.js"),require("../../../features/LearningManagement/store/useAuthStore.js"),require("date-fns"),require("framer-motion"),require("@mui/icons-material/Close");var o=require("../../../features/IL-OTJ/ILOTJ.js"),i=require("../../../features/IL-OTJ/_components/AccordianSection.js");require("@radix-ui/react-tooltip"),require("../../../features/LearningManagement/components/StationOnboarding/InputField.js"),require("../../../features/LearningManagement/store/useConfigStore.js"),require("../../../features/LearningManagement/config.js"),require("../../../features/LearningManagement/store/useEnvStore.js");var s={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},l=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],u=["Tier 1","Tier 2"];exports.default=function(){var c=n.useState(!0),d=c[0],p=c[1],_=n.useState(""),g=_[0],m=_[1],f=n.useState(""),b=f[0],v=f[1],h=n.useState({station:"",tiers:["Tier 1"]}),y=h[0],T=h[1],q=n.useState([]),k=q[0],w=q[1],L=n.useState([]),C=L[0],j=L[1],x=n.useState(s),S=x[0],I=x[1],A=n.useCallback(function(t,n){T(function(r){var a;return e.__assign(e.__assign({},r),((a={})[t]=n,a))})},[]),M=n.useCallback(function(t,n){I(function(r){var a=e.__assign({},r);switch(t){case"order_rules":case"advertiser_rules":a[t]="boolean"==typeof n?e.__assign(e.__assign({},r[t]),{enabled:n}):{enabled:n.enabled,global_min_separation_seconds:n.global_min_separation_seconds};break;case"inventory_rules":a.inventory_rules={respect_inventory_code:"boolean"==typeof n?n:n.respect_inventory_code};break;case"break_code_rules":a.break_code_rules={respect_break_code:"boolean"==typeof n?n:n.respect_break_code};break;case"is_default_enabled":a.is_default_enabled="boolean"==typeof n?n:!!n}return a})},[]),O=function(t){t(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},N=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},E=function(t,n,r){t(function(t){return t.map(function(t){return String(t.id)===String(n)?e.__assign(e.__assign({},t),{text:r}):t})})},J=[e.__assign({key:"order_rules",label:"Order"},S.order_rules),e.__assign({key:"advertiser_rules",label:"Advertiser"},S.advertiser_rules)],D=[{key:"inventory_rules",label:"Inventory code",enabled:S.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:S.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:S.is_default_enabled}],W={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},B="<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 rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(W[e],'">').concat(e,"</button>")}).join(""),"</p>");return t.jsx(o.default,{open:d,closeFunction:function(){return p(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:t.jsx(r.Lightbulb,{}),customSections:t.jsx(t.Fragment,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:B,template:a.TemplateList.BaseTemplate,templateProps:{state:{title:g,description:b,scopeData:y,whenToApplyConditions:k,whenNotToApplyConditions:C,configData:S,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,n;return m(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onDescriptionChange:function(e){var t,n;return v(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onAddWhenToApply:function(){return O(w)},onRemoveWhenToApply:function(e){return N(w,e)},onEditWhenToApply:function(e,t){return E(w,e,t)},onAddWhenNotToApply:function(){return O(j)},onRemoveWhenNotToApply:function(e){return N(j,e)},onEditWhenNotToApply:function(e,t){return E(j,e,t)},onScopeChange:A,onConfigChange:M},uiState:{showScope:!0,showConfiguration:!1,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:l,tierOptions:u,separationItems:J,toggles:D},customNodes:{afterDescription:t.jsx(i.default,e.__assign({title:{type:"other",label:"Extra Context Panel"}},{children:t.jsx("p",e.__assign({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:t.jsxs("div",e.__assign({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[t.jsx("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};
2
- //# sourceMappingURL=DefaultTeachMeRenderer.js.map
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("lucide-react");require("../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js"),require("../../../features/IL-OTJ/_components/InputDataReasoningCard.js"),require("../../../features/IL-OTJ/_components/TooltipComponent.js");var a=require("../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js");require("../../../features/IL-OTJ/store/CitationsContext.js"),require("@mui/material"),require("uuid"),require("@mui/material/Tooltip"),require("react-markdown"),require("rehype-raw"),require("axios"),require("@e-llm-studio/streaming-response"),require("@e-llm-studio/watch-me-work"),require("../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js"),require("remark-gfm"),require("../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js"),require("../../../features/IL-OTJ/_components/CitationLink.js"),require("@e-llm-studio/citation"),require("@viswa-test/test-citation"),require("../../../features/LearningManagement/store/useLearningTemplateStore.js"),require("primereact/toast"),require("../../../features/LearningManagement/apis/scopeApis.js"),require("../../../features/LearningManagement/components/ToolTip.js"),require("../../../features/LearningManagement/store/useAuthStore.js"),require("date-fns"),require("framer-motion"),require("@mui/icons-material/Close");var o=require("../../../features/IL-OTJ/ILOTJ.js");require("@radix-ui/react-tooltip"),require("../../../features/LearningManagement/components/StationOnboarding/InputField.js"),require("../../../features/LearningManagement/store/useConfigStore.js"),require("../../../features/LearningManagement/config.js"),require("../../../features/LearningManagement/store/useEnvStore.js");var i={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},s=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],u=["Tier 1","Tier 2"];exports.default=function(){var l=r.useState(!0),c=l[0],d=l[1],p=r.useState(""),_=p[0],m=p[1],g=r.useState(""),b=g[0],f=g[1],v=r.useState({station:"",tiers:["Tier 1"]}),y=v[0],h=v[1],T=r.useState([]),q=T[0],k=T[1],L=r.useState([]),w=L[0],C=L[1],S=r.useState(i),I=S[0],j=S[1],A=r.useCallback(function(t,r){h(function(n){var a;return e.__assign(e.__assign({},n),((a={})[t]=r,a))})},[]),x=r.useCallback(function(t,r){j(function(n){var a=e.__assign({},n);switch(t){case"order_rules":case"advertiser_rules":a[t]="boolean"==typeof r?e.__assign(e.__assign({},n[t]),{enabled:r}):{enabled:r.enabled,global_min_separation_seconds:r.global_min_separation_seconds};break;case"inventory_rules":a.inventory_rules={respect_inventory_code:"boolean"==typeof r?r:r.respect_inventory_code};break;case"break_code_rules":a.break_code_rules={respect_break_code:"boolean"==typeof r?r:r.respect_break_code};break;case"is_default_enabled":a.is_default_enabled="boolean"==typeof r?r:!!r}return a})},[]),M=function(t){t(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},O=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},N=function(t,r,n){t(function(t){return t.map(function(t){return String(t.id)===String(r)?e.__assign(e.__assign({},t),{text:n}):t})})},E=[e.__assign({key:"order_rules",label:"Order"},I.order_rules),e.__assign({key:"advertiser_rules",label:"Advertiser"},I.advertiser_rules)],J=[{key:"inventory_rules",label:"Inventory code",enabled:I.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:I.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:I.is_default_enabled}],W={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},D="<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 rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(W[e],'">').concat(e,"</button>")}).join(""),"</p>");return t.jsx(o.default,{open:c,closeFunction:function(){return d(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:t.jsx(n.Lightbulb,{}),customSections:t.jsx(t.Fragment,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:D,template:a.TemplateList.CreateRule,templateProps:{state:{title:_,description:b,scopeData:y,whenToApplyConditions:q,whenNotToApplyConditions:w,configData:I,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,r;return m(null!==(r=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==r?r:e)},onDescriptionChange:function(e){var t,r;return f(null!==(r=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==r?r:e)},onAddWhenToApply:function(){return M(k)},onRemoveWhenToApply:function(e){return O(k,e)},onEditWhenToApply:function(e,t){return N(k,e,t)},onAddWhenNotToApply:function(){return M(C)},onRemoveWhenNotToApply:function(e){return O(C,e)},onEditWhenNotToApply:function(e,t){return N(C,e,t)},onScopeChange:A,onConfigChange:x},uiState:{showScope:!0,showConfiguration:!1,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:s,tierOptions:u,separationItems:E,toggles:J}}})};
2
- //# sourceMappingURL=RadioTrafficLearningRenderer.js.map
@@ -1,2 +0,0 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,Fragment as o,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/ILOTJ.js";import u from"../../../features/IL-OTJ/_components/AccordianSection.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"../../../features/LearningManagement/config.js";import"../../../features/LearningManagement/store/useEnvStore.js";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","Tier 2"],f=function(){var f=a(!0),g=f[0],_=f[1],b=a(""),v=b[0],h=b[1],y=a(""),T=y[0],k=y[1],w=a({station:"",tiers:["Tier 1"]}),L=w[0],C=w[1],I=a([]),j=I[0],x=I[1],A=a([]),S=A[0],M=A[1],O=a(c),N=O[0],E=O[1],J=i(function(t,n){C(function(o){var r;return e(e({},o),((r={})[t]=n,r))})},[]),D=i(function(t,n){E(function(o){var r=e({},o);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof n?e(e({},o[t]),{enabled:n}):{enabled:n.enabled,global_min_separation_seconds:n.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof n?n:n.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof n?n:n.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof n?n:!!n}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,n,o){t(function(t){return t.map(function(t){return String(t.id)===String(n)?e(e({},t),{text:o}):t})})},G=[e({key:"order_rules",label:"Order"},N.order_rules),e({key:"advertiser_rules",label:"Advertiser"},N.advertiser_rules)],U=[{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}],H={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},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 rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(H[e],'">').concat(e,"</button>")}).join(""),"</p>");return n(p,{open:g,closeFunction:function(){return _(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:n(s,{}),customSections:n(o,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:z,template:l.BaseTemplate,templateProps:{state:{title:v,description:T,scopeData:L,whenToApplyConditions:j,whenNotToApplyConditions:S,configData:N,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,n;return h(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onDescriptionChange:function(e){var t,n;return k(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onAddWhenToApply:function(){return W(x)},onRemoveWhenToApply:function(e){return B(x,e)},onEditWhenToApply:function(e,t){return R(x,e,t)},onAddWhenNotToApply:function(){return W(M)},onRemoveWhenNotToApply:function(e){return B(M,e)},onEditWhenNotToApply:function(e,t){return R(M,e,t)},onScopeChange:J,onConfigChange:D},uiState:{showScope:!0,showConfiguration:!1,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:d,tierOptions:m,separationItems:G,toggles:U},customNodes:{afterDescription:n(u,e({title:{type:"other",label:"Extra Context Panel"}},{children:n("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:[n("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};export{f as default};
2
- //# sourceMappingURL=DefaultTeachMeRenderer.js.map
@@ -1,2 +0,0 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as r,useCallback as a}from"react";import{Lightbulb as i}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 s}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 l from"../../../features/IL-OTJ/ILOTJ.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"../../../features/LearningManagement/config.js";import"../../../features/LearningManagement/store/useEnvStore.js";var p={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},u=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],c=["Tier 1","Tier 2"],d=function(){var d=r(!0),m=d[0],f=d[1],_=r(""),g=_[0],b=_[1],v=r(""),y=v[0],h=v[1],T=r({station:"",tiers:["Tier 1"]}),k=T[0],w=T[1],L=r([]),C=L[0],I=L[1],A=r([]),j=A[0],S=A[1],M=r(p),O=M[0],x=M[1],N=a(function(t,n){w(function(o){var r;return e(e({},o),((r={})[t]=n,r))})},[]),E=a(function(t,n){x(function(o){var r=e({},o);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof n?e(e({},o[t]),{enabled:n}):{enabled:n.enabled,global_min_separation_seconds:n.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof n?n:n.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof n?n:n.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof n?n:!!n}return r})},[]),J=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},W=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},D=function(t,n,o){t(function(t){return t.map(function(t){return String(t.id)===String(n)?e(e({},t),{text:o}):t})})},R=[e({key:"order_rules",label:"Order"},O.order_rules),e({key:"advertiser_rules",label:"Advertiser"},O.advertiser_rules)],B=[{key:"inventory_rules",label:"Inventory code",enabled:O.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:O.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:O.is_default_enabled}],G={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},H="<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 rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(G[e],'">').concat(e,"</button>")}).join(""),"</p>");return n(l,{open:m,closeFunction:function(){return f(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:n(i,{}),customSections:n(o,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:H,template:s.CreateRule,templateProps:{state:{title:g,description:y,scopeData:k,whenToApplyConditions:C,whenNotToApplyConditions:j,configData:O,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,n;return b(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onDescriptionChange:function(e){var t,n;return h(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onAddWhenToApply:function(){return J(I)},onRemoveWhenToApply:function(e){return W(I,e)},onEditWhenToApply:function(e,t){return D(I,e,t)},onAddWhenNotToApply:function(){return J(S)},onRemoveWhenNotToApply:function(e){return W(S,e)},onEditWhenNotToApply:function(e,t){return D(S,e,t)},onScopeChange:N,onConfigChange:E},uiState:{showScope:!0,showConfiguration:!1,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:u,tierOptions:c,separationItems:R,toggles:B}}})};export{d as default};
2
- //# sourceMappingURL=RadioTrafficLearningRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioTrafficLearningRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,eAAe,EAAE;QAAE,sBAAsB,EAAE,OAAO,CAAA;KAAE,CAAC;IACrD,gBAAgB,EAAE;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,iCAAiC;CAE1C;AAED,QAAA,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAiJ7E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}