@e-llm-studio/instant-learning 1.3.0-beta.2 → 1.3.1

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 (575) hide show
  1. package/README.md +19 -1
  2. package/dist/ContinueWithTemplateModal.js +1 -1
  3. package/dist/ContinueWithTemplateModal.module.css.js +1 -1
  4. package/dist/ILMarketplaceWrapper.js +1 -1
  5. package/dist/ILMarketplaceWrapper.module.css.js +1 -1
  6. package/dist/adapters/creativeWorkspaceAdapter.js +2 -0
  7. package/dist/adapters/creativeWorkspaceAdapter.js.map +1 -0
  8. package/dist/cjs/ContinueWithTemplateModal.js +1 -1
  9. package/dist/cjs/ContinueWithTemplateModal.module.css.js +1 -1
  10. package/dist/cjs/ILMarketplaceWrapper.js +1 -1
  11. package/dist/cjs/ILMarketplaceWrapper.module.css.js +1 -1
  12. package/dist/cjs/adapters/creativeWorkspaceAdapter.js +2 -0
  13. package/dist/cjs/adapters/creativeWorkspaceAdapter.js.map +1 -0
  14. package/dist/cjs/features/DocumentLearning/InstantLearning.module.css.js +1 -1
  15. package/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
  16. package/dist/cjs/features/IL-OTJ/InstantLearning.module.css.js +1 -1
  17. package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +1 -1
  18. package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
  19. package/dist/cjs/features/IL-OTJ/_components/AccordianSection.js +1 -1
  20. package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
  21. package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.module.css.js +1 -1
  22. package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatHeader.module.css.js +1 -1
  23. package/dist/cjs/features/IL-OTJ/_components/ChatComponents/NormalChat.js +1 -1
  24. package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
  25. package/dist/cjs/features/IL-OTJ/_components/CriticalGaps.js +1 -1
  26. package/dist/cjs/features/IL-OTJ/_components/GapExplanationAccordion.js +1 -1
  27. package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
  28. package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
  29. package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
  30. package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
  31. package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
  32. package/dist/cjs/features/IL-OTJ/_components/MarkdownRenderer.module.css.js +1 -1
  33. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ChatFeedback.js +1 -1
  34. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
  35. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
  36. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.js +1 -1
  37. package/dist/cjs/features/IL-OTJ/_components/VariantLoadingOverlay.js +1 -1
  38. package/dist/cjs/features/IL-OTJ/_components/ViewFormUpdateCard.js +1 -1
  39. package/dist/cjs/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.js +1 -1
  40. package/dist/cjs/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js +1 -1
  41. package/dist/cjs/features/IL-OTJ/_components/atoms/SkeletonLoader/SkeletonLoader.module.css.js +1 -1
  42. package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
  43. package/dist/cjs/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +2 -0
  44. package/dist/cjs/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js.map +1 -0
  45. package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
  46. package/dist/cjs/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js +1 -1
  47. package/dist/cjs/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js +1 -1
  48. package/dist/cjs/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
  49. package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
  50. package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
  51. package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
  52. package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
  53. package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +1 -1
  54. package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js +1 -1
  55. package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +1 -1
  56. package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js +1 -1
  57. package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +1 -1
  58. package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +1 -1
  59. package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +1 -1
  60. package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js +1 -1
  61. package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js +1 -1
  62. package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js +1 -1
  63. package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +1 -1
  64. package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.js +1 -1
  65. package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js +1 -1
  66. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
  67. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +1 -1
  68. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js +1 -1
  69. package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +1 -1
  70. package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +1 -1
  71. package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js +1 -1
  72. package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +1 -1
  73. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +1 -1
  74. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +1 -1
  75. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +1 -1
  76. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +1 -1
  77. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +1 -1
  78. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +1 -1
  79. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +1 -1
  80. package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +1 -1
  81. package/dist/cjs/features/IL-marketplace/components/LearningManagementWrapper.js +1 -1
  82. package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +1 -1
  83. package/dist/cjs/features/IL-marketplace/hooks/usePublishingFlowConfig.js +1 -1
  84. package/dist/cjs/features/IL-marketplace/marketplaceTheme.js +2 -0
  85. package/dist/cjs/features/IL-marketplace/marketplaceTheme.js.map +1 -0
  86. package/dist/cjs/features/IL-marketplace/services/IL-marketplace.api.js +1 -1
  87. package/dist/cjs/features/InstantLearning/InstantLearning.js +1 -1
  88. package/dist/cjs/features/InstantLearning/InstantLearning.module.css.js +1 -1
  89. package/dist/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
  90. package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.js +1 -1
  91. package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.module.css.js +2 -0
  92. package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.module.css.js.map +1 -0
  93. package/dist/cjs/features/LearningManagement/AuditLog/ChangeLogDiff.js +1 -1
  94. package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
  95. package/dist/cjs/features/LearningManagement/LearningManagementTest.js +1 -1
  96. package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
  97. package/dist/cjs/features/LearningManagement/RBAC/AccessManagementPanel.js +1 -1
  98. package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js +1 -1
  99. package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
  100. package/dist/cjs/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +1 -1
  101. package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js +1 -1
  102. package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +1 -1
  103. package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
  104. package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js +2 -0
  105. package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js.map +1 -0
  106. package/dist/cjs/features/LearningManagement/RuleContent/RenameScopeModal.js +1 -1
  107. package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
  108. package/dist/cjs/features/LearningManagement/RuleContent/RuleTierList.js +1 -1
  109. package/dist/cjs/features/LearningManagement/RuleContent/TierCard.js +1 -1
  110. package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
  111. package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
  112. package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
  113. package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
  114. package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
  115. package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js +1 -1
  116. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeMenu.js +1 -1
  117. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  118. package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  119. package/dist/cjs/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
  120. package/dist/cjs/features/LearningManagement/styles/CardSkeleton.module.css.js +1 -1
  121. package/dist/cjs/features/LearningManagement/styles/ConfirmationModal.module.css.js +1 -1
  122. package/dist/cjs/features/LearningManagement/styles/CustomTooltip.module.css.js +1 -1
  123. package/dist/cjs/features/LearningManagement/styles/DraftsAccordion.module.css.js +2 -0
  124. package/dist/cjs/features/LearningManagement/styles/DraftsAccordion.module.css.js.map +1 -0
  125. package/dist/cjs/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
  126. package/dist/cjs/features/LearningManagement/styles/ErrorStateDisplay.module.css.js +1 -1
  127. package/dist/cjs/features/LearningManagement/styles/InputField.module.css.js +1 -1
  128. package/dist/cjs/features/LearningManagement/styles/InstantLearningModal.module.css.js +1 -1
  129. package/dist/cjs/features/LearningManagement/styles/LearningContent.module.css.js +1 -1
  130. package/dist/cjs/features/LearningManagement/styles/LearningContentSkeleton.module.css.js +1 -1
  131. package/dist/cjs/features/LearningManagement/styles/LearningTemplateLayout.module.css.js +1 -1
  132. package/dist/cjs/features/LearningManagement/styles/LearningTemplateManagement.module.css.js +1 -1
  133. package/dist/cjs/features/LearningManagement/styles/LearningTemplateManagementSkeleton.module.css.js +1 -1
  134. package/dist/cjs/features/LearningManagement/styles/OnboardingLoader.module.css.js +1 -1
  135. package/dist/cjs/features/LearningManagement/styles/OverrideTimeline.module.css.js +1 -1
  136. package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js +1 -1
  137. package/dist/cjs/features/LearningManagement/styles/RuleAccordion.module.css.js +1 -1
  138. package/dist/cjs/features/LearningManagement/styles/RuleHeader.module.css.js +1 -1
  139. package/dist/cjs/features/LearningManagement/styles/RuleTierList.module.css.js +1 -1
  140. package/dist/cjs/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
  141. package/dist/cjs/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
  142. package/dist/cjs/features/LearningManagement/styles/StationAutocomplete.module.css.js +1 -1
  143. package/dist/cjs/features/LearningManagement/styles/StationOnboardModal.module.css.js +1 -1
  144. package/dist/cjs/features/LearningManagement/styles/StationsContent.module.css.js +1 -1
  145. package/dist/cjs/features/LearningManagement/styles/TemplateCard.module.css.js +1 -1
  146. package/dist/cjs/features/LearningManagement/styles/TierCard.module.css.js +1 -1
  147. package/dist/cjs/features/LearningManagement/styles/ToastContent.module.css.js +1 -1
  148. package/dist/cjs/features/LearningManagement/styles/ToolTip.module.css.js +1 -1
  149. package/dist/cjs/features/LearningManagement/styles/VariantCard.module.css.js +1 -1
  150. package/dist/cjs/features/LearningManagement/styles/VariantList.module.css.js +1 -1
  151. package/dist/cjs/features/LearningManagement/styles/common.module.css.js +1 -1
  152. package/dist/cjs/features/LearningManagement/styles/skeleton.module.css.js +1 -1
  153. package/dist/cjs/features/LearningManagement/utils/learningFlow.js +2 -0
  154. package/dist/cjs/features/LearningManagement/utils/learningFlow.js.map +1 -0
  155. package/dist/cjs/features/LearningManagement/utils/saveDraft.js +2 -0
  156. package/dist/cjs/features/LearningManagement/utils/saveDraft.js.map +1 -0
  157. package/dist/cjs/features/WtaWnta/WtaWnta.module.css.js +1 -1
  158. package/dist/cjs/index.js +1 -1
  159. package/dist/cjs/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  160. package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
  161. package/dist/cjs/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +1 -1
  162. package/dist/cjs/schema-driven/BPARenderer.js +1 -1
  163. package/dist/cjs/schema-driven/components/GlobalSetupAccordionField.js +1 -1
  164. package/dist/cjs/schema-driven/components/GroupEditRow.js +1 -1
  165. package/dist/cjs/schema-driven/components/PromptTextEditorField.js +1 -1
  166. package/dist/cjs/schema-driven/components/VariantListField.js +1 -1
  167. package/dist/cjs/schema-driven/primitives/Accordion.js +1 -1
  168. package/dist/cjs/utils/agentGenieAPI.js +1 -1
  169. package/dist/features/DocumentLearning/InstantLearning.module.css.js +1 -1
  170. package/dist/features/IL-OTJ/ILOTJ.js +1 -1
  171. package/dist/features/IL-OTJ/InstantLearning.module.css.js +1 -1
  172. package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +1 -1
  173. package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
  174. package/dist/features/IL-OTJ/_components/AccordianSection.js +1 -1
  175. package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
  176. package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.module.css.js +1 -1
  177. package/dist/features/IL-OTJ/_components/ChatComponents/ChatHeader.module.css.js +1 -1
  178. package/dist/features/IL-OTJ/_components/ChatComponents/NormalChat.js +1 -1
  179. package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
  180. package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
  181. package/dist/features/IL-OTJ/_components/GapExplanationAccordion.js +1 -1
  182. package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
  183. package/dist/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
  184. package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
  185. package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
  186. package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
  187. package/dist/features/IL-OTJ/_components/MarkdownRenderer.module.css.js +1 -1
  188. package/dist/features/IL-OTJ/_components/MessageRendering/ChatFeedback.js +1 -1
  189. package/dist/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
  190. package/dist/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
  191. package/dist/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.js +1 -1
  192. package/dist/features/IL-OTJ/_components/VariantLoadingOverlay.js +1 -1
  193. package/dist/features/IL-OTJ/_components/ViewFormUpdateCard.js +1 -1
  194. package/dist/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.js +1 -1
  195. package/dist/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js +1 -1
  196. package/dist/features/IL-OTJ/_components/atoms/SkeletonLoader/SkeletonLoader.module.css.js +1 -1
  197. package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
  198. package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +2 -0
  199. package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js.map +1 -0
  200. package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
  201. package/dist/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js +1 -1
  202. package/dist/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js +1 -1
  203. package/dist/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
  204. package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
  205. package/dist/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
  206. package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
  207. package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
  208. package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +1 -1
  209. package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js +1 -1
  210. package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +1 -1
  211. package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js +1 -1
  212. package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +1 -1
  213. package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +1 -1
  214. package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +1 -1
  215. package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js +1 -1
  216. package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js +1 -1
  217. package/dist/features/IL-marketplace/components/GuidelineLandingPage.js +1 -1
  218. package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +1 -1
  219. package/dist/features/IL-marketplace/components/GuidelineLibrary.js +1 -1
  220. package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js +1 -1
  221. package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
  222. package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +1 -1
  223. package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js +1 -1
  224. package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +1 -1
  225. package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +1 -1
  226. package/dist/features/IL-marketplace/components/GuidelineStatusChip.js +1 -1
  227. package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +1 -1
  228. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +1 -1
  229. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +1 -1
  230. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +1 -1
  231. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +1 -1
  232. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +1 -1
  233. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +1 -1
  234. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +1 -1
  235. package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +1 -1
  236. package/dist/features/IL-marketplace/components/LearningManagementWrapper.js +1 -1
  237. package/dist/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +1 -1
  238. package/dist/features/IL-marketplace/hooks/usePublishingFlowConfig.js +1 -1
  239. package/dist/features/IL-marketplace/marketplaceTheme.js +2 -0
  240. package/dist/features/IL-marketplace/marketplaceTheme.js.map +1 -0
  241. package/dist/features/IL-marketplace/services/IL-marketplace.api.js +1 -1
  242. package/dist/features/InstantLearning/InstantLearning.js +1 -1
  243. package/dist/features/InstantLearning/InstantLearning.module.css.js +1 -1
  244. package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
  245. package/dist/features/LearningManagement/AuditLog/AuditLog.js +1 -1
  246. package/dist/features/LearningManagement/AuditLog/AuditLog.module.css.js +2 -0
  247. package/dist/features/LearningManagement/AuditLog/AuditLog.module.css.js.map +1 -0
  248. package/dist/features/LearningManagement/AuditLog/ChangeLogDiff.js +1 -1
  249. package/dist/features/LearningManagement/LearningManagement.js +1 -1
  250. package/dist/features/LearningManagement/LearningManagementTest.js +1 -1
  251. package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
  252. package/dist/features/LearningManagement/RBAC/AccessManagementPanel.js +1 -1
  253. package/dist/features/LearningManagement/RBAC/AccessPanel.js +1 -1
  254. package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
  255. package/dist/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +1 -1
  256. package/dist/features/LearningManagement/RuleContent/AddScopeModal.js +1 -1
  257. package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +1 -1
  258. package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
  259. package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js +2 -0
  260. package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js.map +1 -0
  261. package/dist/features/LearningManagement/RuleContent/RenameScopeModal.js +1 -1
  262. package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
  263. package/dist/features/LearningManagement/RuleContent/RuleTierList.js +1 -1
  264. package/dist/features/LearningManagement/RuleContent/TierCard.js +1 -1
  265. package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
  266. package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
  267. package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
  268. package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
  269. package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
  270. package/dist/features/LearningManagement/components/PromptTextEditor.js +1 -1
  271. package/dist/features/LearningManagement/components/ScopeTree/TreeMenu.js +1 -1
  272. package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  273. package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  274. package/dist/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
  275. package/dist/features/LearningManagement/styles/CardSkeleton.module.css.js +1 -1
  276. package/dist/features/LearningManagement/styles/ConfirmationModal.module.css.js +1 -1
  277. package/dist/features/LearningManagement/styles/CustomTooltip.module.css.js +1 -1
  278. package/dist/features/LearningManagement/styles/DraftsAccordion.module.css.js +2 -0
  279. package/dist/features/LearningManagement/styles/DraftsAccordion.module.css.js.map +1 -0
  280. package/dist/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
  281. package/dist/features/LearningManagement/styles/ErrorStateDisplay.module.css.js +1 -1
  282. package/dist/features/LearningManagement/styles/InputField.module.css.js +1 -1
  283. package/dist/features/LearningManagement/styles/InstantLearningModal.module.css.js +1 -1
  284. package/dist/features/LearningManagement/styles/LearningContent.module.css.js +1 -1
  285. package/dist/features/LearningManagement/styles/LearningContentSkeleton.module.css.js +1 -1
  286. package/dist/features/LearningManagement/styles/LearningTemplateLayout.module.css.js +1 -1
  287. package/dist/features/LearningManagement/styles/LearningTemplateManagement.module.css.js +1 -1
  288. package/dist/features/LearningManagement/styles/LearningTemplateManagementSkeleton.module.css.js +1 -1
  289. package/dist/features/LearningManagement/styles/OnboardingLoader.module.css.js +1 -1
  290. package/dist/features/LearningManagement/styles/OverrideTimeline.module.css.js +1 -1
  291. package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js +1 -1
  292. package/dist/features/LearningManagement/styles/RuleAccordion.module.css.js +1 -1
  293. package/dist/features/LearningManagement/styles/RuleHeader.module.css.js +1 -1
  294. package/dist/features/LearningManagement/styles/RuleTierList.module.css.js +1 -1
  295. package/dist/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
  296. package/dist/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
  297. package/dist/features/LearningManagement/styles/StationAutocomplete.module.css.js +1 -1
  298. package/dist/features/LearningManagement/styles/StationOnboardModal.module.css.js +1 -1
  299. package/dist/features/LearningManagement/styles/StationsContent.module.css.js +1 -1
  300. package/dist/features/LearningManagement/styles/TemplateCard.module.css.js +1 -1
  301. package/dist/features/LearningManagement/styles/TierCard.module.css.js +1 -1
  302. package/dist/features/LearningManagement/styles/ToastContent.module.css.js +1 -1
  303. package/dist/features/LearningManagement/styles/ToolTip.module.css.js +1 -1
  304. package/dist/features/LearningManagement/styles/VariantCard.module.css.js +1 -1
  305. package/dist/features/LearningManagement/styles/VariantList.module.css.js +1 -1
  306. package/dist/features/LearningManagement/styles/common.module.css.js +1 -1
  307. package/dist/features/LearningManagement/styles/skeleton.module.css.js +1 -1
  308. package/dist/features/LearningManagement/utils/learningFlow.js +2 -0
  309. package/dist/features/LearningManagement/utils/learningFlow.js.map +1 -0
  310. package/dist/features/LearningManagement/utils/saveDraft.js +2 -0
  311. package/dist/features/LearningManagement/utils/saveDraft.js.map +1 -0
  312. package/dist/features/WtaWnta/WtaWnta.module.css.js +1 -1
  313. package/dist/index.js +1 -1
  314. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  315. package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
  316. package/dist/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +1 -1
  317. package/dist/schema-driven/BPARenderer.js +1 -1
  318. package/dist/schema-driven/components/GlobalSetupAccordionField.js +1 -1
  319. package/dist/schema-driven/components/GroupEditRow.js +1 -1
  320. package/dist/schema-driven/components/PromptTextEditorField.js +1 -1
  321. package/dist/schema-driven/components/VariantListField.js +1 -1
  322. package/dist/schema-driven/primitives/Accordion.js +1 -1
  323. package/dist/types/src/CommonComponents/HelloWorld.d.ts +1 -0
  324. package/dist/types/src/CommonComponents/HelloWorld.d.ts.map +1 -1
  325. package/dist/types/src/CommonComponents/NoTableData.d.ts +1 -0
  326. package/dist/types/src/CommonComponents/NoTableData.d.ts.map +1 -1
  327. package/dist/types/src/ContinueWithTemplateModal.d.ts.map +1 -1
  328. package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -1
  329. package/dist/types/src/ILMarketplaceWrapper.d.ts +20 -5
  330. package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -1
  331. package/dist/types/src/PublishToMarketplaceTest.d.ts +1 -0
  332. package/dist/types/src/PublishToMarketplaceTest.d.ts.map +1 -1
  333. package/dist/types/src/adapters/creativeWorkspaceAdapter.d.ts +65 -0
  334. package/dist/types/src/adapters/creativeWorkspaceAdapter.d.ts.map +1 -0
  335. package/dist/types/src/api/transport.d.ts +1 -1
  336. package/dist/types/src/api/transport.d.ts.map +1 -1
  337. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +1 -0
  338. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -1
  339. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +1 -0
  340. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -1
  341. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +1 -0
  342. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -1
  343. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +1 -0
  344. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -1
  345. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +1 -0
  346. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +1 -1
  347. package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts +6 -0
  348. package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
  349. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +10 -10
  350. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts.map +1 -1
  351. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +2 -1
  352. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
  353. package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts.map +1 -1
  354. package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
  355. package/dist/types/src/features/IL-OTJ/_components/ChatComponents/NormalChat.d.ts.map +1 -1
  356. package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -1
  357. package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts.map +1 -1
  358. package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
  359. package/dist/types/src/features/IL-OTJ/_components/GapExplanationAccordion.d.ts.map +1 -1
  360. package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts +6 -1
  361. package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts.map +1 -1
  362. package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
  363. package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -1
  364. package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -1
  365. package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map +1 -1
  366. package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -1
  367. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map +1 -1
  368. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.d.ts.map +1 -1
  369. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.d.ts.map +1 -1
  370. package/dist/types/src/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts.map +1 -1
  371. package/dist/types/src/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts.map +1 -1
  372. package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts +1 -1
  373. package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts.map +1 -1
  374. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts +1 -0
  375. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts.map +1 -1
  376. package/dist/types/src/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts +1 -0
  377. package/dist/types/src/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts.map +1 -1
  378. package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts +1 -0
  379. package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -1
  380. package/dist/types/src/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts +98 -0
  381. package/dist/types/src/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts.map +1 -0
  382. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts.map +1 -1
  383. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.d.ts.map +1 -1
  384. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
  385. package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts +1 -1
  386. package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts.map +1 -1
  387. package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts +3 -2
  388. package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts.map +1 -1
  389. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +18 -1
  390. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -1
  391. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts +4 -2
  392. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts.map +1 -1
  393. package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts +3 -2
  394. package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +1 -1
  395. package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts +2 -0
  396. package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts.map +1 -1
  397. package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts +2 -6
  398. package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts.map +1 -1
  399. package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts +6 -1
  400. package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts.map +1 -1
  401. package/dist/types/src/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts +3 -3
  402. package/dist/types/src/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts.map +1 -1
  403. package/dist/types/src/features/IL-marketplace/marketplaceTheme.d.ts +99 -0
  404. package/dist/types/src/features/IL-marketplace/marketplaceTheme.d.ts.map +1 -0
  405. package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts +25 -13
  406. package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts.map +1 -1
  407. package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts +2 -1
  408. package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts.map +1 -1
  409. package/dist/types/src/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts +2 -2
  410. package/dist/types/src/features/IL-marketplace/types/file-item.d.ts +2 -0
  411. package/dist/types/src/features/IL-marketplace/types/file-item.d.ts.map +1 -1
  412. package/dist/types/src/features/IL-marketplace/types.d.ts +14 -3
  413. package/dist/types/src/features/IL-marketplace/types.d.ts.map +1 -1
  414. package/dist/types/src/features/IL-marketplace/utils/addContextHelpers.d.ts +1 -0
  415. package/dist/types/src/features/IL-marketplace/utils/addContextHelpers.d.ts.map +1 -1
  416. package/dist/types/src/features/InstantLearning/InstantLearning.d.ts +2 -1
  417. package/dist/types/src/features/InstantLearning/InstantLearning.d.ts.map +1 -1
  418. package/dist/types/src/features/InstantLearning/_components/ChatComponent.d.ts +1 -0
  419. package/dist/types/src/features/InstantLearning/_components/ChatComponent.d.ts.map +1 -1
  420. package/dist/types/src/features/InstantLearning/_components/ContextualChatComponent.d.ts +1 -0
  421. package/dist/types/src/features/InstantLearning/_components/ContextualChatComponent.d.ts.map +1 -1
  422. package/dist/types/src/features/InstantLearning/_components/ContextualLearningForm.d.ts +1 -0
  423. package/dist/types/src/features/InstantLearning/_components/ContextualLearningForm.d.ts.map +1 -1
  424. package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts.map +1 -1
  425. package/dist/types/src/features/LearningManagement/HumanChanges/HumanChange.d.ts +1 -0
  426. package/dist/types/src/features/LearningManagement/HumanChanges/HumanChange.d.ts.map +1 -0
  427. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +8 -2
  428. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
  429. package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
  430. package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +1 -0
  431. package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
  432. package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts.map +1 -1
  433. package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -1
  434. package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts.map +1 -1
  435. package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts.map +1 -1
  436. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -1
  437. package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -1
  438. package/dist/types/src/features/LearningManagement/RuleContent/DraftsAccordion.d.ts +18 -0
  439. package/dist/types/src/features/LearningManagement/RuleContent/DraftsAccordion.d.ts.map +1 -0
  440. package/dist/types/src/features/LearningManagement/RuleContent/RenameScopeModal.d.ts.map +1 -1
  441. package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
  442. package/dist/types/src/features/LearningManagement/RuleContent/RuleTierList.d.ts +2 -0
  443. package/dist/types/src/features/LearningManagement/RuleContent/RuleTierList.d.ts.map +1 -1
  444. package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
  445. package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
  446. package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +2 -0
  447. package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
  448. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +5 -5
  449. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
  450. package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +13 -0
  451. package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
  452. package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +15 -0
  453. package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +1 -1
  454. package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +3 -1
  455. package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -1
  456. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts.map +1 -1
  457. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
  458. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts.map +1 -1
  459. package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts +3 -3
  460. package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts.map +1 -1
  461. package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +3 -0
  462. package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
  463. package/dist/types/src/features/LearningManagement/types.d.ts +10 -2
  464. package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
  465. package/dist/types/src/features/LearningManagement/utils/learningFlow.d.ts +30 -0
  466. package/dist/types/src/features/LearningManagement/utils/learningFlow.d.ts.map +1 -0
  467. package/dist/types/src/features/LearningManagement/utils/saveDraft.d.ts +11 -0
  468. package/dist/types/src/features/LearningManagement/utils/saveDraft.d.ts.map +1 -0
  469. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +1 -0
  470. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +1 -1
  471. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +1 -0
  472. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +1 -1
  473. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +1 -0
  474. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +1 -1
  475. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +1 -0
  476. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +1 -1
  477. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +1 -0
  478. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -1
  479. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +1 -0
  480. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +1 -1
  481. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +1 -0
  482. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -1
  483. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +1 -0
  484. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +1 -1
  485. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +1 -0
  486. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +1 -1
  487. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +1 -0
  488. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +1 -1
  489. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +1 -0
  490. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +1 -1
  491. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +1 -0
  492. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +1 -1
  493. package/dist/types/src/index.d.ts +7 -1
  494. package/dist/types/src/index.d.ts.map +1 -1
  495. package/dist/types/src/methodsToExpose.d.ts +6 -1
  496. package/dist/types/src/methodsToExpose.d.ts.map +1 -1
  497. package/dist/types/src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
  498. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -1
  499. package/dist/types/src/schema-driven/BPARenderer.d.ts.map +1 -1
  500. package/dist/types/src/schema-driven/components/PromptTextEditorField.d.ts.map +1 -1
  501. package/dist/types/src/schema-driven/types.d.ts +2 -0
  502. package/dist/types/src/schema-driven/types.d.ts.map +1 -1
  503. package/dist/types/src/service/ProjectService.d.ts +2 -2
  504. package/dist/types/src/service/SavedDataSetService.d.ts +8 -3
  505. package/dist/types/src/service/SavedDataSetService.d.ts.map +1 -1
  506. package/dist/types/src/utils/CustomSkeleton.d.ts +1 -0
  507. package/dist/types/src/utils/CustomSkeleton.d.ts.map +1 -1
  508. package/dist/types/src/utils/SkeletonLoader.d.ts +1 -0
  509. package/dist/types/src/utils/SkeletonLoader.d.ts.map +1 -1
  510. package/dist/types/src/utils/agentGenieAPI.d.ts +5 -9
  511. package/dist/types/src/utils/agentGenieAPI.d.ts.map +1 -1
  512. package/dist/utils/agentGenieAPI.js +1 -1
  513. package/package.json +39 -35
  514. package/dist/assets/csbrainicon.svg.js +0 -2
  515. package/dist/assets/csbrainicon.svg.js.map +0 -1
  516. package/dist/cjs/assets/csbrainicon.svg.js +0 -2
  517. package/dist/cjs/assets/csbrainicon.svg.js.map +0 -1
  518. package/dist/cjs/features/CognitiveSearch/CitationComponentMarkdownRender.js +0 -2
  519. package/dist/cjs/features/CognitiveSearch/CitationComponentMarkdownRender.js.map +0 -1
  520. package/dist/cjs/features/CognitiveSearch/CognitiveSearchErrorBoundary.js +0 -2
  521. package/dist/cjs/features/CognitiveSearch/CognitiveSearchErrorBoundary.js.map +0 -1
  522. package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.js +0 -2
  523. package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.js.map +0 -1
  524. package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js +0 -2
  525. package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js.map +0 -1
  526. package/dist/cjs/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js +0 -2
  527. package/dist/cjs/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js.map +0 -1
  528. package/dist/cjs/features/CognitiveSearch/cognitiveWrapper.js +0 -2
  529. package/dist/cjs/features/CognitiveSearch/cognitiveWrapper.js.map +0 -1
  530. package/dist/cjs/features/CognitiveSearch/rulebookcitation.js +0 -2
  531. package/dist/cjs/features/CognitiveSearch/rulebookcitation.js.map +0 -1
  532. package/dist/cjs/hooks/useQueries.js +0 -2
  533. package/dist/cjs/hooks/useQueries.js.map +0 -1
  534. package/dist/cjs/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  535. package/dist/features/CognitiveSearch/CitationComponentMarkdownRender.js +0 -2
  536. package/dist/features/CognitiveSearch/CitationComponentMarkdownRender.js.map +0 -1
  537. package/dist/features/CognitiveSearch/CognitiveSearchErrorBoundary.js +0 -2
  538. package/dist/features/CognitiveSearch/CognitiveSearchErrorBoundary.js.map +0 -1
  539. package/dist/features/CognitiveSearch/CognitiveSearchResultCard.js +0 -2
  540. package/dist/features/CognitiveSearch/CognitiveSearchResultCard.js.map +0 -1
  541. package/dist/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js +0 -2
  542. package/dist/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js.map +0 -1
  543. package/dist/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js +0 -2
  544. package/dist/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js.map +0 -1
  545. package/dist/features/CognitiveSearch/cognitiveWrapper.js +0 -2
  546. package/dist/features/CognitiveSearch/cognitiveWrapper.js.map +0 -1
  547. package/dist/features/CognitiveSearch/rulebookcitation.js +0 -2
  548. package/dist/features/CognitiveSearch/rulebookcitation.js.map +0 -1
  549. package/dist/hooks/useQueries.js +0 -2
  550. package/dist/hooks/useQueries.js.map +0 -1
  551. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  552. package/dist/types/src/features/CognitiveSearch/CitationComponentMarkdownRender.d.ts +0 -27
  553. package/dist/types/src/features/CognitiveSearch/CitationComponentMarkdownRender.d.ts.map +0 -1
  554. package/dist/types/src/features/CognitiveSearch/CognitiveSearchErrorBoundary.d.ts +0 -30
  555. package/dist/types/src/features/CognitiveSearch/CognitiveSearchErrorBoundary.d.ts.map +0 -1
  556. package/dist/types/src/features/CognitiveSearch/CognitiveSearchResultCard.d.ts +0 -33
  557. package/dist/types/src/features/CognitiveSearch/CognitiveSearchResultCard.d.ts.map +0 -1
  558. package/dist/types/src/features/CognitiveSearch/CognitiveSearchTestfile.d.ts +0 -3
  559. package/dist/types/src/features/CognitiveSearch/CognitiveSearchTestfile.d.ts.map +0 -1
  560. package/dist/types/src/features/CognitiveSearch/SearchResultSkeletonCard.d.ts +0 -3
  561. package/dist/types/src/features/CognitiveSearch/SearchResultSkeletonCard.d.ts.map +0 -1
  562. package/dist/types/src/features/CognitiveSearch/cognitiveParser.d.ts +0 -39
  563. package/dist/types/src/features/CognitiveSearch/cognitiveParser.d.ts.map +0 -1
  564. package/dist/types/src/features/CognitiveSearch/cognitiveSearch.types.d.ts +0 -110
  565. package/dist/types/src/features/CognitiveSearch/cognitiveSearch.types.d.ts.map +0 -1
  566. package/dist/types/src/features/CognitiveSearch/cognitiveWrapper.d.ts +0 -56
  567. package/dist/types/src/features/CognitiveSearch/cognitiveWrapper.d.ts.map +0 -1
  568. package/dist/types/src/features/CognitiveSearch/parseSearchResults.d.ts +0 -6
  569. package/dist/types/src/features/CognitiveSearch/parseSearchResults.d.ts.map +0 -1
  570. package/dist/types/src/features/CognitiveSearch/rulebookcitation.d.ts +0 -23
  571. package/dist/types/src/features/CognitiveSearch/rulebookcitation.d.ts.map +0 -1
  572. package/dist/types/src/hooks/useQueries.d.ts +0 -12
  573. package/dist/types/src/hooks/useQueries.d.ts.map +0 -1
  574. /package/dist/cjs/node_modules/{style-inject → .pnpm/style-inject@0.3.0/node_modules/style-inject}/dist/style-inject.es.js +0 -0
  575. /package/dist/node_modules/{style-inject → .pnpm/style-inject@0.3.0/node_modules/style-inject}/dist/style-inject.es.js +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@tanstack/react-query");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(require("axios"));exports.useInstantLearningCitationFetch=function(n){var r=this,i=n.requestId,u=n.enabled,o=n.authToken,s=n.baseUrl,c=t.useQuery({queryKey:["instant-learning-citation",i,o],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){var t,n,r;return e.__generator(this,function(u){switch(u.label){case 0:return[4,a.default.get("".concat(s,"/backend/cw_chat_management/il-citations/learnings/").concat(i),{headers:e.__assign({},o?{Authorization:"Bearer ".concat(o)}:void 0)})];case 1:return t=u.sent(),[2,null!==(r=null===(n=t.data)||void 0===n?void 0:n.learnings_data)&&void 0!==r?r:null]}})})},enabled:u&&!!i,retry:!1}),l=c.data;return{instructionChecklist:null!=l?l:null,isLoading:c.isLoading}};
2
- //# sourceMappingURL=useQueries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useQueries.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style-inject.es.js","sources":["../../../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"oFAAA,SAAqBA,EAAKC,QACN,IAAbA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D"}
@@ -1,2 +0,0 @@
1
- import{__assign as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import{BPACitationRenderer as n}from"@e-llm-studio/citation";import{buildInstructionChecklistMap as t,stringifyInstruction as o,formatInstructionChecklist as r}from"./rulebookcitation.js";import{useInstantLearningCitationFetch as a}from"../../hooks/useQueries.js";var l=function(l){var s,d,u=l.href,c=l.children,g=l.instantLearningRequestId,f=l.paramsData,p=l.baseUrl;console.log("[CS] hrefInside CitationComponentMarkdownRender",u);var m=null==f?void 0:f.get("citation_type"),h="string"==typeof m&&"il_rulebook_citation"===m.trim(),v=a({requestId:g,enabled:h,baseUrl:p}),k=v.instructionChecklist,b=v.isLoading;if(!h)return i("a",e({href:u,target:"_blank",rel:"noopener noreferrer"},{children:c}));var C=new URLSearchParams(null!==(s=null==u?void 0:u.split("?")[1])&&void 0!==s?s:""),I=null==C?void 0:C.get("citation_identifier"),L="string"==typeof I?I.trim():null;if(!k)return i("span",{children:c});var R=t(k),T=L&&null!==(d=R[L])&&void 0!==d?d:"",_=L?null==k?void 0:k[L]:void 0,x=_?[{text:"",dataSource:o(_)}]:[];return i(n,e({href:null!=u?u:"",ruleBookCitationConfig:{url:"",headerTitle:"Guidelines",IgptHeaderTitle:"Instant Learning OTJ",InternalGptReasoningData:x,isDataProvided:!!k,textualContent:r(k),phraseToHighlight:T,isInternalGptReasoningLoading:b,onAccordionToggle:function(e){console.log("[CitationLink] IL rulebook accordion toggled:",e)}}},{children:c}))};export{l as CitationComponentMarkdownRender};
2
- //# sourceMappingURL=CitationComponentMarkdownRender.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationComponentMarkdownRender.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__extends as r}from"tslib";import{Component as t}from"react";var o=function(t){function o(){var r=null!==t&&t.apply(this,arguments)||this;return r.state={hasError:!1},r}return r(o,t),o.getDerivedStateFromError=function(){return{hasError:!0}},o.prototype.componentDidCatch=function(r,t){var o,n;console.error("[CognitiveSearch] ".concat(this.props.context," crashed:"),r,t),null===(n=(o=this.props).onError)||void 0===n||n.call(o,r,t)},o.prototype.render=function(){var r;return this.state.hasError?null!==(r=this.props.fallback)&&void 0!==r?r:null:this.props.children},o}(t);export{o as CognitiveSearchErrorBoundary};
2
- //# sourceMappingURL=CognitiveSearchErrorBoundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchErrorBoundary.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__awaiter as n,__generator as i}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as a,useRef as l,useEffect as r,useMemo as c}from"react";import{Tooltip as s}from"@mui/material";import d from"react-markdown";import u from"rehype-raw";import m from"remark-gfm";import{Heart as p,Sparkles as v,ChevronDown as h,RefreshCw as g,ExternalLink as f,Check as b,X as N}from"lucide-react";import{CitationRenderer as y}from"@e-llm-studio/citation";import{ReactComponent as I}from"../../assets/csbrainicon.svg.js";import k from"./CognitiveSearchResultCard.module.css.js";import{CitationComponentMarkdownRender as T}from"./CitationComponentMarkdownRender.js";import{cx as C}from"../IL-marketplace/utils.js";import{setMarketplaceUserTag as R}from"../IL-marketplace/services/IL-marketplace.api.js";function w(n){var i,l,r,c,s=n.href,d=n.children,u=n.citations,m=n.instantLearningRequestId,p=n.baseUrl,v=a(!1),h=v[0],g=v[1],f=null!==(i=null==s?void 0:s.indexOf("?"))&&void 0!==i?i:-1,b=-1!==f?new URLSearchParams(s.slice(f+1)):void 0,N=null!==(l=null==b?void 0:b.get("citation_type"))&&void 0!==l?l:void 0;if("il_rulebook_citation"===N)return t(T,e({href:s,paramsData:new URLSearchParams({citation_type:N}),instantLearningRequestId:m,baseUrl:p},{children:d}));var I=null!==(c=null!==(r=null==b?void 0:b.get("citationNumber"))&&void 0!==r?r:null==b?void 0:b.get("citation_number"))&&void 0!==c?c:void 0,C=I?null==u?void 0:u.find(function(e){return e.number===I}):void 0;return C?t(y,{inLineCitation:!0,citationTitle:"string"==typeof d?d:C.label,isOpen:h,onToggle:function(){return g(function(e){return!e})},citationComponent:o("span",e({className:k.citationPillContent},{children:["number"==typeof C.decisionStrength&&o("span",e({className:k.citationPillStrength},{children:["Decision Strength: ",C.decisionStrength,"%"]})),t("span",e({className:k.citationPillReason},{children:null==C?void 0:C.reason}))]})),styles:{pillButton:{fontFamily:"inherit",background:"transparent",padding:0,margin:0,fontSize:"inherit",fontWeight:500,color:"#4d21f3",cursor:"pointer",border:"none",display:"inline-flex",alignItems:"center"},citationContent:{backgroundColor:"#f5f3ff",border:"1px solid #d8c8ff",borderRadius:"8px",width:"100%"}}}):t("a",e({href:s,target:"_blank",rel:"noopener noreferrer"},{children:d}))}var L=[u],S=[m];function x(n){var i=n.reasoning,l=n.gap,r=n.mdComponents,c=a(!0),s=c[0],u=c[1];return console.log("MatchReasoningPanel",i),o("div",e({className:k.matchReasoningPanel},{children:[o("div",e({className:k.decisionSection},{children:[t("span",e({className:k.decisionSectionHeading},{children:"Decision Making Factors"})),t(d,e({components:r,rehypePlugins:L,remarkPlugins:S},{children:i}))]})),o("div",e({className:k.decisionSection},{children:[o("button",e({type:"button",className:k.gapTrigger,onClick:function(){return u(function(e){return!e})},"aria-expanded":s},{children:[t("span",e({className:k.decisionSectionHeading},{children:"Gaps in Decision"})),t(h,{className:C(k.chevronIcon,s&&k.chevronIconExpanded),strokeWidth:2})]})),s&&(l?t(d,e({components:r,rehypePlugins:L,remarkPlugins:S},{children:l})):t("p",e({className:k.noGapsText},{children:"No gaps found"})))]}))]}))}function A(e){try{return new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}catch(n){return e}}function B(e){var n=e%100;if(n>=11&&n<=13)return"".concat(e,"th");switch(e%10){case 1:return"".concat(e,"st");case 2:return"".concat(e,"nd");case 3:return"".concat(e,"rd");default:return"".concat(e,"th")}}function G(n){var i=n.label,l=n.tone,c=n.items,s=n.description,d=n.forceExpanded,u=a(!1),m=u[0],p=u[1],v=Boolean(s)||Boolean(null==c?void 0:c.length);return r(function(){d&&v&&p(!0)},[d,v]),o("div",e({className:k.applicabilitySection},{children:[o("button",e({type:"button",className:k.applicabilityTrigger,onClick:function(){return p(function(e){return!e})},"aria-expanded":m,disabled:!v},{children:[t("span","positive"===l?e({className:k.applicabilityIconPositive},{children:t(b,{className:k.applicabilityIconGlyph,strokeWidth:3})}):e({className:k.applicabilityIconNegative},{children:t(N,{className:k.applicabilityIconGlyph,strokeWidth:3})})),t("span",e({className:k.applicabilityLabel},{children:i})),v&&t(h,{className:C(k.chevronIcon,m&&k.chevronIconExpanded),strokeWidth:2})]})),m&&v&&o("div",e({className:k.applicabilityContent},{children:[s&&t("p",e({className:k.applicabilityText},{children:s})),c&&c.length>0&&t("ol",e({className:k.applicabilityList},{children:c.map(function(e){return t("li",{children:e},e)})}))]}))]}))}function P(d){var u,m,b,N,y,T,L,S,P,W,F,D,U,E=this,M=d.result,j=d.rank,_=d.onFavoriteToggle,q=d.onUseTemplate,H=d.onRegenerateMatchReason,V=d.isRegeneratingMatchReason,O=void 0!==V&&V,z=d.useTemplateLabel,J=void 0===z?"Use Template":z,K=d.matchReasonLabel,Q=void 0===K?function(e){return"Why this is the ".concat(e," match")}:K,X=d.classNames,Y=d.styles,Z=d.customIcons,$=d.baseUrl,ee=d.instantLearningRequestId;d.applicationMappingId;var ne=d.authToken,ie=d.onError,te=d.BaseURlFOrIL,oe=d.highlighted,ae=void 0!==oe&&oe,le=a(!1),re=le[0],ce=le[1],se=a(!1),de=se[0],ue=se[1],me=l(null),pe=[(null==M?void 0:M.createdBy)?"Created by ".concat(M.createdBy):"",(null==M?void 0:M.createdAt)?"Created at ".concat(A(M.createdAt)):""].filter(Boolean).join(" • ");console.log("[CS LIB] CognitiveSearchResultCard render",{rank:j,result:M});var ve=Boolean(null===(u=null==M?void 0:M.decisioning)||void 0===u?void 0:u.reasoning);r(function(){if(ae){ve&&ce(!0);var e=window.setTimeout(function(){var e;null===(e=me.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},120);return function(){return window.clearTimeout(e)}}},[ae,ve]);var he=null===(m=null==M?void 0:M.decisioning)||void 0===m?void 0:m.citations,ge=null!=ee?ee:null==M?void 0:M.instantLearningRequestId,fe=c(function(){return{a:function(n){return t(w,e({},n,{citations:null!=he?he:[],instantLearningRequestId:ge,baseUrl:te}))},p:function(n){return t("div",e({},n))}}},[he,ge,te]);return o("article",e({ref:me,className:C(k.card,null==X?void 0:X.card,ae&&k.cardHighlighted),style:null==Y?void 0:Y.card,"data-result-id":null==M?void 0:M.id},{children:[o("div",e({className:C(k.header,null==X?void 0:X.cardHeader),style:null==Y?void 0:Y.cardHeader},{children:[o("div",e({className:k.headerLeft},{children:[o("div",e({className:k.titleRow},{children:[o("h3",e({className:C(k.title,null==X?void 0:X.cardTitle),style:null==Y?void 0:Y.cardTitle,title:null==M?void 0:M.title},{children:[j,". ",null==M?void 0:M.title]})),(null==M?void 0:M.version)&&o("span",e({className:k.versionBadge},{children:["v",M.version]}))]})),pe&&t("p",e({className:C(k.metaLabel,null==X?void 0:X.cardMeta),style:null==Y?void 0:Y.cardMeta},{children:pe}))]})),o("div",e({className:C(k.headerActions,null==X?void 0:X.cardActions),style:null==Y?void 0:Y.cardActions},{children:[_&&t("button",e({type:"button",className:C(k.iconButton,(null==M?void 0:M.isFavorited)&&k.iconButtonActive),onClick:function(){return n(E,void 0,void 0,function(){var e,n,t,o,a;return i(this,function(i){switch(i.label){case 0:if(de)return[2];ue(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,R(null!==(o=null==M?void 0:M.instantLearningId)&&void 0!==o?o:"",!(null==M?void 0:M.isFavorited),ne,$)];case 2:return(null==(e=i.sent())?void 0:e.error)?(console.error('[CognitiveSearch] Failed to update wishlist status for result "'.concat(null==M?void 0:M.id,'":'),(null===(a=e.error)||void 0===a?void 0:a.errorMessage)||e.error),[2]):(null==_||_(M),[3,5]);case 3:return n=i.sent(),t=n instanceof Error?n:new Error(String(n)),console.error('[CognitiveSearch] Favorite toggle threw for result "'.concat(null==M?void 0:M.id,'":'),t),null==ie||ie(t),[3,5];case 4:return ue(!1),[7];case 5:return[2]}})})},disabled:de,"aria-pressed":null==M?void 0:M.isFavorited,"aria-label":(null==M?void 0:M.isFavorited)?"Remove ".concat(null==M?void 0:M.title," from favorites"):"Add ".concat(null==M?void 0:M.title," to favorites")},{children:(null==M?void 0:M.isFavorited)?null!==(b=null==Z?void 0:Z.favoritedIcon)&&void 0!==b?b:t(p,{className:k.icon,fill:"currentColor",strokeWidth:2}):null!==(N=null==Z?void 0:Z.favoriteIcon)&&void 0!==N?N:t(p,{className:k.icon,strokeWidth:2})})),"number"==typeof(null==M?void 0:M.matchPercentage)&&o("span",e({className:k.matchBadge},{children:[null!==(y=null==Z?void 0:Z.matchIcon)&&void 0!==y?y:t(v,{className:k.matchIcon,strokeWidth:2}),M.matchPercentage,"%"]}))]}))]})),((null==M?void 0:M.contentType)||(null==M?void 0:M.domain)||(null==M?void 0:M.subDomain))&&o("div",e({className:k.metaGrid},{children:[(null==M?void 0:M.contentType)&&o("div",e({className:k.metaGridItem},{children:[t("span",e({className:k.metaGridLabel},{children:"Content Type"})),t("span",e({className:k.metaGridValue},{children:M.contentType}))]})),(null==M?void 0:M.domain)&&o("div",e({className:k.metaGridItem},{children:[t("span",e({className:k.metaGridLabel},{children:"Domain"})),t("span",e({className:k.metaGridValue},{children:M.domain}))]})),(null==M?void 0:M.subDomain)&&o("div",e({className:k.metaGridItem},{children:[t("span",e({className:k.metaGridLabel},{children:"Sub-domain"})),t("span",e({className:k.metaGridValue},{children:M.subDomain}))]}))]})),(null==M?void 0:M.description)&&t("p",e({className:C(k.description,null==X?void 0:X.cardDescription),style:null==Y?void 0:Y.cardDescription},{children:M.description})),((null==M?void 0:M.whenToApply)||(null==M?void 0:M.whenNotToApply))&&o("div",e({className:k.applicabilityGroup},{children:[(null==M?void 0:M.whenToApply)&&t(G,{label:"When to Apply",tone:"positive",items:null===(T=M.whenToApply)||void 0===T?void 0:T.items,description:null===(L=M.whenToApply)||void 0===L?void 0:L.description,forceExpanded:ae}),(null==M?void 0:M.whenNotToApply)&&t(G,{label:"When Not to Apply",tone:"negative",items:null===(S=M.whenNotToApply)||void 0===S?void 0:S.items,description:null===(P=M.whenNotToApply)||void 0===P?void 0:P.description,forceExpanded:ae})]})),o("div",e({className:C(k.footer,null==X?void 0:X.cardFooter),style:null==Y?void 0:Y.cardFooter},{children:[o("div",e({className:k.matchReasonRow},{children:[o("button",e({type:"button",className:k.matchReasonTrigger,onClick:function(){return ce(function(e){return!e})},"aria-expanded":re,disabled:!ve},{children:[t("span",e({className:k.matchReasonLabel},{children:Q(B(j))})),t(I,{className:k.matchReasonBrainIcon}),ve&&t(h,{className:C(k.chevronIcon,re&&k.chevronIconExpanded),strokeWidth:2})]})),H&&t("button",e({type:"button",className:k.regenerateButton,onClick:function(e){e.stopPropagation(),null==H||H(M)},"aria-label":"Regenerate match reasoning for ".concat(null==M?void 0:M.title)},{children:null!==(W=null==Z?void 0:Z.regenerateIcon)&&void 0!==W?W:t(g,{className:C(k.regenerateIcon,O&&k.regenerateIconSpinning),strokeWidth:2})}))]})),q&&t(s,e({title:"Coming soon"},{children:t("span",{children:o("button",e({type:"button",className:k.useTemplateButton,onClick:function(){return q(M)},disabled:!0},{children:[t("span",{children:J}),null!==(F=null==Z?void 0:Z.useTemplateIcon)&&void 0!==F?F:t(f,{className:k.useTemplateIcon,strokeWidth:2})]}))})}))]})),re&&ve&&(null==M?void 0:M.decisioning)&&t("div",e({className:k.matchReasonContent},{children:t(x,{reasoning:null===(D=null==M?void 0:M.decisioning)||void 0===D?void 0:D.reasoning,gap:null===(U=null==M?void 0:M.decisioning)||void 0===U?void 0:U.gap,mdComponents:fe})}))]}))}export{P as CognitiveSearchResultCard,B as getOrdinalLabel};
2
- //# sourceMappingURL=CognitiveSearchResultCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchResultCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import e from"../../node_modules/style-inject/dist/style-inject.es.js";var i={card:"CognitiveSearchResultCard-module_card__tyiEF",cardHighlighted:"CognitiveSearchResultCard-module_cardHighlighted__uz2mW",cognitiveSearchHighlightPulse:"CognitiveSearchResultCard-module_cognitiveSearchHighlightPulse__OlbHz",header:"CognitiveSearchResultCard-module_header__7S6U4",headerLeft:"CognitiveSearchResultCard-module_headerLeft__Azsgk",titleRow:"CognitiveSearchResultCard-module_titleRow__-dMCS",title:"CognitiveSearchResultCard-module_title__hNlcg",versionBadge:"CognitiveSearchResultCard-module_versionBadge__pd0Qf",metaLabel:"CognitiveSearchResultCard-module_metaLabel__gKKkc",headerActions:"CognitiveSearchResultCard-module_headerActions__FG6sh",iconButton:"CognitiveSearchResultCard-module_iconButton__9NeWb",iconButtonActive:"CognitiveSearchResultCard-module_iconButtonActive__IVKNA",icon:"CognitiveSearchResultCard-module_icon__3S4Go",matchBadge:"CognitiveSearchResultCard-module_matchBadge__MMwMy",matchIcon:"CognitiveSearchResultCard-module_matchIcon__dSgI3",metaGrid:"CognitiveSearchResultCard-module_metaGrid__R-mwZ",metaGridItem:"CognitiveSearchResultCard-module_metaGridItem__Lj-tx",metaGridLabel:"CognitiveSearchResultCard-module_metaGridLabel__B6-zY",metaGridValue:"CognitiveSearchResultCard-module_metaGridValue__lyfAN",description:"CognitiveSearchResultCard-module_description__gLkaR",applicabilityGroup:"CognitiveSearchResultCard-module_applicabilityGroup__m-yZd",applicabilitySection:"CognitiveSearchResultCard-module_applicabilitySection__3fN0l",applicabilityTrigger:"CognitiveSearchResultCard-module_applicabilityTrigger__MkAIx",applicabilityIconPositive:"CognitiveSearchResultCard-module_applicabilityIconPositive__P29D3",applicabilityIconNegative:"CognitiveSearchResultCard-module_applicabilityIconNegative__2Fguv",applicabilityIconGlyph:"CognitiveSearchResultCard-module_applicabilityIconGlyph__9hJd6",applicabilityLabel:"CognitiveSearchResultCard-module_applicabilityLabel__7nv9I",chevronIcon:"CognitiveSearchResultCard-module_chevronIcon__d5YUV",chevronIconExpanded:"CognitiveSearchResultCard-module_chevronIconExpanded__HDnq1",applicabilityContent:"CognitiveSearchResultCard-module_applicabilityContent__JmW1M",applicabilityText:"CognitiveSearchResultCard-module_applicabilityText__PrfSV",applicabilityList:"CognitiveSearchResultCard-module_applicabilityList__8Krzm",footer:"CognitiveSearchResultCard-module_footer__z4kO0",matchReasonRow:"CognitiveSearchResultCard-module_matchReasonRow__5u9QF",matchReasonTrigger:"CognitiveSearchResultCard-module_matchReasonTrigger__-WEJS",matchReasonLabel:"CognitiveSearchResultCard-module_matchReasonLabel__myHAB",matchReasonBrainIcon:"CognitiveSearchResultCard-module_matchReasonBrainIcon__LH-8Y",regenerateButton:"CognitiveSearchResultCard-module_regenerateButton__SYvS5",regenerateIcon:"CognitiveSearchResultCard-module_regenerateIcon__BUuhb",regenerateIconSpinning:"CognitiveSearchResultCard-module_regenerateIconSpinning__KptbE",cognitiveSearchSpin:"CognitiveSearchResultCard-module_cognitiveSearchSpin__0rVUK",useTemplateButton:"CognitiveSearchResultCard-module_useTemplateButton__D-w0x",useTemplateIcon:"CognitiveSearchResultCard-module_useTemplateIcon__kXzeq",matchReasonContent:"CognitiveSearchResultCard-module_matchReasonContent__sV-9C",matchReasoningPanel:"CognitiveSearchResultCard-module_matchReasoningPanel__xg2Wb",decisionSection:"CognitiveSearchResultCard-module_decisionSection__TZQ8P",decisionSectionHeading:"CognitiveSearchResultCard-module_decisionSectionHeading__BPQAf",noGapsText:"CognitiveSearchResultCard-module_noGapsText__270x-",gapTrigger:"CognitiveSearchResultCard-module_gapTrigger__FyST0",citationPillContent:"CognitiveSearchResultCard-module_citationPillContent__-lTji",citationPillStrength:"CognitiveSearchResultCard-module_citationPillStrength__4zUbI",citationPillReason:"CognitiveSearchResultCard-module_citationPillReason__YE8Vw"};e('.CognitiveSearchResultCard-module_card__tyiEF{background-color:#fff;border:1px solid #eaecf0;border-radius:12px;box-shadow:0 1px 2px #10182808;display:flex;flex-direction:column;gap:1rem;padding:1.25rem;transition:box-shadow .2s ease}.CognitiveSearchResultCard-module_cardHighlighted__uz2mW{animation:CognitiveSearchResultCard-module_cognitiveSearchHighlightPulse__OlbHz 1.6s ease-in-out 2;box-shadow:0 0 0 3px #fefce8,0 4px 12px #facc1559}@keyframes CognitiveSearchResultCard-module_cognitiveSearchHighlightPulse__OlbHz{0%,to{box-shadow:0 0 0 3px #fefce8,0 4px 12px #facc1559}50%{box-shadow:0 0 0 6px #fefce8,0 4px 20px #facc1580}}.CognitiveSearchResultCard-module_header__7S6U4{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;min-width:0}.CognitiveSearchResultCard-module_headerLeft__Azsgk{flex:1;min-width:0}.CognitiveSearchResultCard-module_titleRow__-dMCS{align-items:center;display:flex;gap:.5rem;min-width:0}.CognitiveSearchResultCard-module_title__hNlcg{color:#1f2937;font-size:16px;font-weight:600;line-height:1.5rem;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CognitiveSearchResultCard-module_versionBadge__pd0Qf{background-color:#f2f4f7;border-radius:9999px;color:#475467;flex-shrink:0;font-size:12px;font-weight:500;padding:.125rem .625rem}.CognitiveSearchResultCard-module_metaLabel__gKKkc{color:#667085;font-size:12px;line-height:1rem;margin:.25rem 0 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CognitiveSearchResultCard-module_headerActions__FG6sh{align-items:center;display:flex;flex-shrink:0;gap:.5rem}.CognitiveSearchResultCard-module_iconButton__9NeWb{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:8px;color:#667085;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;padding:.4375rem;transition:color .15s ease,border-color .15s ease}.CognitiveSearchResultCard-module_iconButton__9NeWb:hover{border-color:#d0d5dd;color:#344054}.CognitiveSearchResultCard-module_iconButtonActive__IVKNA{border-color:#fecdca;color:#e12d2d}.CognitiveSearchResultCard-module_icon__3S4Go{height:1rem;width:1rem}.CognitiveSearchResultCard-module_matchBadge__MMwMy{align-items:center;background-color:#ecfdf3;border-radius:9999px;color:#067647;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:600;gap:.25rem;padding:.3125rem .625rem;white-space:nowrap}.CognitiveSearchResultCard-module_matchIcon__dSgI3{height:.875rem;width:.875rem}.CognitiveSearchResultCard-module_metaGrid__R-mwZ{display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}.CognitiveSearchResultCard-module_metaGridItem__Lj-tx{display:flex;flex-direction:column;gap:.25rem;min-width:0}.CognitiveSearchResultCard-module_metaGridLabel__B6-zY{color:#667085;font-size:12px}.CognitiveSearchResultCard-module_metaGridValue__lyfAN{color:#1f2937;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CognitiveSearchResultCard-module_description__gLkaR{background-color:#f9fafb;border-radius:8px;color:#344054;font-size:13px;line-height:1.5;margin:0;padding:.875rem 1rem}.CognitiveSearchResultCard-module_applicabilityGroup__m-yZd{display:flex;flex-direction:column;gap:1.25rem;padding-left:1.5rem}.CognitiveSearchResultCard-module_applicabilitySection__3fN0l{display:flex;flex-direction:column;position:relative}.CognitiveSearchResultCard-module_applicabilitySection__3fN0l:before{border-bottom:2px solid #eaecf0;border-bottom-left-radius:8px;border-left:2px solid #eaecf0;content:"";height:.5625rem;left:-1.5rem;position:absolute;top:0;width:1.5rem}.CognitiveSearchResultCard-module_applicabilitySection__3fN0l:not(:last-child):after{background-color:#eaecf0;bottom:-1.25rem;content:"";left:-1.5rem;position:absolute;top:.5625rem;width:2px}.CognitiveSearchResultCard-module_applicabilityTrigger__MkAIx{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;gap:.5rem;margin-left:2px;padding:0;text-align:left}.CognitiveSearchResultCard-module_applicabilityTrigger__MkAIx:disabled{cursor:default}.CognitiveSearchResultCard-module_applicabilityIconNegative__2Fguv,.CognitiveSearchResultCard-module_applicabilityIconPositive__P29D3{align-items:center;border-radius:9999px;display:inline-flex;flex-shrink:0;height:1.125rem;justify-content:center;width:1.125rem}.CognitiveSearchResultCard-module_applicabilityIconPositive__P29D3{background-color:#17b26a}.CognitiveSearchResultCard-module_applicabilityIconNegative__2Fguv{background-color:#f04438}.CognitiveSearchResultCard-module_applicabilityIconGlyph__9hJd6{color:#fff;height:.625rem;width:.625rem}.CognitiveSearchResultCard-module_applicabilityLabel__7nv9I{color:#1f2937;font-size:13px;font-weight:500}.CognitiveSearchResultCard-module_chevronIcon__d5YUV{color:#667085;flex-shrink:0;height:1rem;transition:transform .15s ease;width:1rem}.CognitiveSearchResultCard-module_chevronIconExpanded__HDnq1{transform:rotate(180deg)}.CognitiveSearchResultCard-module_applicabilityContent__JmW1M{color:#475467;font-size:13px;line-height:1.5;margin-top:.5rem;padding-left:1.625rem}.CognitiveSearchResultCard-module_applicabilityText__PrfSV{margin:0}.CognitiveSearchResultCard-module_applicabilityList__8Krzm{list-style-type:lower-alpha;margin:0;padding-left:1.125rem}.CognitiveSearchResultCard-module_applicabilityList__8Krzm li:not(:last-child){margin-bottom:.25rem}.CognitiveSearchResultCard-module_footer__z4kO0{align-items:center;border:1px solid #eaecf0;border-radius:8px;display:flex;gap:1rem;justify-content:space-between;padding:.625rem .75rem}.CognitiveSearchResultCard-module_matchReasonRow__5u9QF,.CognitiveSearchResultCard-module_matchReasonTrigger__-WEJS{align-items:center;display:flex;flex:1;gap:.375rem;min-width:0}.CognitiveSearchResultCard-module_matchReasonTrigger__-WEJS{background:none;border:none;cursor:pointer;padding:0;text-align:left}.CognitiveSearchResultCard-module_matchReasonTrigger__-WEJS:disabled{cursor:default}.CognitiveSearchResultCard-module_matchReasonLabel__myHAB{color:#344054;font-size:13px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CognitiveSearchResultCard-module_matchReasonBrainIcon__LH-8Y{flex-shrink:0}.CognitiveSearchResultCard-module_regenerateButton__SYvS5{align-items:center;background:none;border:none;color:#667085;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;padding:.125rem}.CognitiveSearchResultCard-module_regenerateButton__SYvS5:hover{color:#344054}.CognitiveSearchResultCard-module_regenerateIcon__BUuhb{height:.875rem;width:.875rem}.CognitiveSearchResultCard-module_regenerateIconSpinning__KptbE{animation:CognitiveSearchResultCard-module_cognitiveSearchSpin__0rVUK .8s linear infinite}@keyframes CognitiveSearchResultCard-module_cognitiveSearchSpin__0rVUK{to{transform:rotate(1turn)}}.CognitiveSearchResultCard-module_useTemplateButton__D-w0x{align-items:center;background:none;border:none;color:#4d21f3;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:.25rem;padding:0}.CognitiveSearchResultCard-module_useTemplateButton__D-w0x:disabled{color:#98a2b3;cursor:not-allowed}.CognitiveSearchResultCard-module_useTemplateIcon__kXzeq{height:.875rem;width:.875rem}.CognitiveSearchResultCard-module_matchReasonContent__sV-9C{color:#475467;font-size:13px;line-height:1.5;margin-top:-.5rem}.CognitiveSearchResultCard-module_matchReasoningPanel__xg2Wb{display:flex;flex-direction:column;gap:.75rem}.CognitiveSearchResultCard-module_matchReasoningPanel__xg2Wb ol{margin:0;padding-left:1.25rem}.CognitiveSearchResultCard-module_matchReasoningPanel__xg2Wb ol li:not(:last-child){margin-bottom:.75rem}.CognitiveSearchResultCard-module_decisionSection__TZQ8P{border:1px solid #eaecf0;border-radius:8px;display:flex;flex-direction:column;gap:.75rem;padding:.75rem}.CognitiveSearchResultCard-module_decisionSectionHeading__BPQAf{color:#667085;font-size:13px;font-weight:600}.CognitiveSearchResultCard-module_noGapsText__270x-{margin:0}.CognitiveSearchResultCard-module_gapTrigger__FyST0{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;justify-content:space-between;padding:0;text-align:left;width:100%}.CognitiveSearchResultCard-module_citationPillContent__-lTji{display:flex;flex-direction:column;font-size:12px;gap:.5rem;padding:.75rem}.CognitiveSearchResultCard-module_citationPillStrength__4zUbI{align-self:flex-start;background-color:#fff;border:1px solid #c4b6fc;border-radius:9999px;color:#4d21f3;font-size:11px;font-weight:600;padding:.125rem .5rem}.CognitiveSearchResultCard-module_citationPillReason__YE8Vw{color:#1e293b;line-height:1.5;margin:0}');export{i as default};
2
- //# sourceMappingURL=CognitiveSearchResultCard.module.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchResultCard.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import e from"../../node_modules/style-inject/dist/style-inject.es.js";var r={wrapper:"CognitiveSearchWrapper-module_wrapper__JH3QN",headerRow:"CognitiveSearchWrapper-module_headerRow__LArZO",headerTitleGroup:"CognitiveSearchWrapper-module_headerTitleGroup__s1wkl",headerTitle:"CognitiveSearchWrapper-module_headerTitle__6UoBE",headerSubtitle:"CognitiveSearchWrapper-module_headerSubtitle__wE2Qo",headerActions:"CognitiveSearchWrapper-module_headerActions__qYTqE",headerIconButton:"CognitiveSearchWrapper-module_headerIconButton__7GJRK",headerIconButtonActive:"CognitiveSearchWrapper-module_headerIconButtonActive__rAxRL",headerIcon:"CognitiveSearchWrapper-module_headerIcon__Thp0h",headerTextButton:"CognitiveSearchWrapper-module_headerTextButton__QCaEV",headerTextButtonDisabled:"CognitiveSearchWrapper-module_headerTextButtonDisabled__oDGTu",sortWrapper:"CognitiveSearchWrapper-module_sortWrapper__duMQn",sortPanel:"CognitiveSearchWrapper-module_sortPanel__TV0Vj",sortPanelItem:"CognitiveSearchWrapper-module_sortPanelItem__ucWmG",sortPanelItemActive:"CognitiveSearchWrapper-module_sortPanelItemActive__xitVZ",sortPanelItemIcon:"CognitiveSearchWrapper-module_sortPanelItemIcon__zUUVv",filterBadge:"CognitiveSearchWrapper-module_filterBadge__p3oFS",filterWrapper:"CognitiveSearchWrapper-module_filterWrapper__1-FdY",filterPanel:"CognitiveSearchWrapper-module_filterPanel__sBshZ",filterPanelHeading:"CognitiveSearchWrapper-module_filterPanelHeading__09M9K",filterField:"CognitiveSearchWrapper-module_filterField__WGfyK",filterFieldLabel:"CognitiveSearchWrapper-module_filterFieldLabel__IiT8r",filterOptionWrapper:"CognitiveSearchWrapper-module_filterOptionWrapper__HpGAF",filterOptionTrigger:"CognitiveSearchWrapper-module_filterOptionTrigger__EIsLC",filterOptionValue:"CognitiveSearchWrapper-module_filterOptionValue__IvGnB",filterOptionPlaceholder:"CognitiveSearchWrapper-module_filterOptionPlaceholder__d15Tx",filterChevronExpanded:"CognitiveSearchWrapper-module_filterChevronExpanded__RG9NR",filterOptionPanel:"CognitiveSearchWrapper-module_filterOptionPanel__9hIV8",filterOptionItem:"CognitiveSearchWrapper-module_filterOptionItem__TLLQp",filterOptionItemActive:"CognitiveSearchWrapper-module_filterOptionItemActive__m3xRQ",filterOptionItemIcon:"CognitiveSearchWrapper-module_filterOptionItemIcon__VBU4P",filterFooter:"CognitiveSearchWrapper-module_filterFooter__A3NJM",filterClearButton:"CognitiveSearchWrapper-module_filterClearButton__-Scuu",filterApplyButton:"CognitiveSearchWrapper-module_filterApplyButton__FrQjU",grid:"CognitiveSearchWrapper-module_grid__MxoGo",emptyState:"CognitiveSearchWrapper-module_emptyState__8X3Cb",emptyTitle:"CognitiveSearchWrapper-module_emptyTitle__YKpfE",emptyDescription:"CognitiveSearchWrapper-module_emptyDescription__6OOs7",skeletonCard:"CognitiveSearchWrapper-module_skeletonCard__jNL2V",skeletonHeader:"CognitiveSearchWrapper-module_skeletonHeader__mmtSI",skeletonHeaderContent:"CognitiveSearchWrapper-module_skeletonHeaderContent__YOSBE",skeletonTitle:"CognitiveSearchWrapper-module_skeletonTitle__snqWk",cognitiveSearchPulse:"CognitiveSearchWrapper-module_cognitiveSearchPulse__6J5nI",skeletonDate:"CognitiveSearchWrapper-module_skeletonDate__oOpoM",skeletonActionButton:"CognitiveSearchWrapper-module_skeletonActionButton__G5lfK",skeletonDescription:"CognitiveSearchWrapper-module_skeletonDescription__d1BNk",skeletonDescriptionLine:"CognitiveSearchWrapper-module_skeletonDescriptionLine__d2-pl"};e(".CognitiveSearchWrapper-module_wrapper__JH3QN{display:flex;flex-direction:column;height:100%;min-height:0}.CognitiveSearchWrapper-module_headerRow__LArZO{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;padding-bottom:1rem}.CognitiveSearchWrapper-module_headerTitleGroup__s1wkl{min-width:0}.CognitiveSearchWrapper-module_headerTitle__6UoBE{color:#101828;font-size:20px;font-weight:700;margin:0}.CognitiveSearchWrapper-module_headerSubtitle__wE2Qo{color:#667085;font-size:13px;margin:.25rem 0 0}.CognitiveSearchWrapper-module_headerActions__qYTqE{align-items:center;display:flex;flex-shrink:0;gap:.5rem}.CognitiveSearchWrapper-module_headerIconButton__7GJRK{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:8px;color:#667085;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;padding:.5rem;position:relative;transition:color .15s ease,border-color .15s ease}.CognitiveSearchWrapper-module_headerIconButton__7GJRK:hover{border-color:#d0d5dd;color:#344054}.CognitiveSearchWrapper-module_headerIconButtonActive__rAxRL{background-color:#f9f5ff;border-color:#d6bbfb;color:#4d21f3}.CognitiveSearchWrapper-module_headerIcon__Thp0h{height:1rem;width:1rem}.CognitiveSearchWrapper-module_headerTextButton__QCaEV{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:8px;color:#344054;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:500;gap:.375rem;padding:.5rem .75rem;transition:color .15s ease,border-color .15s ease;white-space:nowrap}.CognitiveSearchWrapper-module_headerTextButton__QCaEV:hover{border-color:#d0d5dd;color:#101828}.CognitiveSearchWrapper-module_headerTextButtonDisabled__oDGTu{background:#f9fafb;color:#a1a1aa;cursor:not-allowed}.CognitiveSearchWrapper-module_headerTextButtonDisabled__oDGTu:hover{border-color:#eaecf0;color:#a1a1aa}.CognitiveSearchWrapper-module_sortWrapper__duMQn{display:inline-flex;flex-shrink:0;position:relative}.CognitiveSearchWrapper-module_sortPanel__TV0Vj{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 16px #1018281f;margin-top:.25rem;min-width:160px;padding:.25rem;position:absolute;right:0;top:100%;z-index:50}.CognitiveSearchWrapper-module_sortPanelItem__ucWmG{align-items:center;background-color:initial;border:none;border-radius:6px;color:#344054;cursor:pointer;display:flex;font-size:13px;font-weight:500;gap:.75rem;justify-content:space-between;padding:.5rem .625rem;text-align:left;transition:background-color .15s ease;width:100%}.CognitiveSearchWrapper-module_sortPanelItem__ucWmG:hover{background-color:#f9fafb}.CognitiveSearchWrapper-module_sortPanelItemActive__xitVZ{background-color:#f2f4f7;color:#101828}.CognitiveSearchWrapper-module_sortPanelItemIcon__zUUVv{color:#4d21f3;flex-shrink:0;height:.875rem;width:.875rem}.CognitiveSearchWrapper-module_filterBadge__p3oFS{align-items:center;background-color:#4d21f3;border-radius:9999px;color:#fff;display:inline-flex;font-size:10px;font-weight:600;height:1rem;justify-content:center;line-height:1;min-width:1rem;padding:0 .25rem;position:absolute;right:-.375rem;top:-.375rem}.CognitiveSearchWrapper-module_filterWrapper__1-FdY{display:inline-flex;flex-shrink:0;position:relative}.CognitiveSearchWrapper-module_filterPanel__sBshZ{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 16px #1018281f;display:flex;flex-direction:column;gap:.875rem;margin-top:.25rem;padding:.875rem;position:absolute;right:0;top:100%;width:260px;z-index:50}.CognitiveSearchWrapper-module_filterPanelHeading__09M9K{color:#667085;font-size:13px;font-weight:600;margin:0}.CognitiveSearchWrapper-module_filterField__WGfyK{display:flex;flex-direction:column;gap:.375rem}.CognitiveSearchWrapper-module_filterFieldLabel__IiT8r{color:#101828;font-size:13px;font-weight:600}.CognitiveSearchWrapper-module_filterOptionWrapper__HpGAF{position:relative;width:100%}.CognitiveSearchWrapper-module_filterOptionTrigger__EIsLC{align-items:center;background-color:#fff;border:1px solid #d0d5dd;border-radius:8px;color:#101828;cursor:pointer;display:flex;font-family:inherit;font-size:13px;gap:.5rem;justify-content:space-between;padding:.5rem .625rem;text-align:left;width:100%}.CognitiveSearchWrapper-module_filterOptionTrigger__EIsLC:focus-visible{outline:2px solid #4d21f3;outline-offset:1px}.CognitiveSearchWrapper-module_filterOptionValue__IvGnB{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CognitiveSearchWrapper-module_filterOptionPlaceholder__d15Tx{color:#98a2b3}.CognitiveSearchWrapper-module_filterChevronExpanded__RG9NR{transform:rotate(180deg)}.CognitiveSearchWrapper-module_filterOptionPanel__9hIV8{background-color:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 16px #1018281f;left:0;margin-top:.25rem;max-height:200px;overflow-y:auto;padding:.25rem;position:absolute;right:0;top:100%;z-index:60}.CognitiveSearchWrapper-module_filterOptionItem__TLLQp{align-items:center;background-color:initial;border:none;border-radius:6px;color:#344054;cursor:pointer;display:flex;font-size:13px;font-weight:500;gap:.75rem;justify-content:space-between;padding:.5rem .625rem;text-align:left;transition:background-color .15s ease;width:100%}.CognitiveSearchWrapper-module_filterOptionItem__TLLQp:hover{background-color:#f9fafb}.CognitiveSearchWrapper-module_filterOptionItemActive__m3xRQ{background-color:#f2f4f7;color:#101828}.CognitiveSearchWrapper-module_filterOptionItemIcon__VBU4P{color:#4d21f3;flex-shrink:0;height:.875rem;width:.875rem}.CognitiveSearchWrapper-module_filterFooter__A3NJM{align-items:center;display:flex;gap:1rem;justify-content:flex-end;margin-top:.125rem}.CognitiveSearchWrapper-module_filterClearButton__-Scuu{background:none;border:none;color:#344054;cursor:pointer;font-size:13px;font-weight:600;padding:0}.CognitiveSearchWrapper-module_filterClearButton__-Scuu:hover{color:#101828}.CognitiveSearchWrapper-module_filterApplyButton__FrQjU{background-color:#4d21f3;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:.5rem 1.25rem;transition:background-color .15s ease}.CognitiveSearchWrapper-module_filterApplyButton__FrQjU:hover{background-color:#3f18cc}.CognitiveSearchWrapper-module_grid__MxoGo{display:flex;flex-direction:column;gap:1rem;overflow-y:auto}.CognitiveSearchWrapper-module_emptyState__8X3Cb{align-items:center;display:flex;flex:1;flex-direction:column;gap:.375rem;justify-content:center;padding:3rem 1rem;text-align:center}.CognitiveSearchWrapper-module_emptyTitle__YKpfE{color:#1f2937;font-size:14px;font-weight:600;margin:0}.CognitiveSearchWrapper-module_emptyDescription__6OOs7{color:#667085;font-size:13px;margin:0}.CognitiveSearchWrapper-module_skeletonCard__jNL2V{background-color:#fff;border:1px solid #eaecf0;border-radius:12px;display:flex;flex-direction:column;gap:1rem;min-height:140px;padding:1.25rem}.CognitiveSearchWrapper-module_skeletonHeader__mmtSI{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between}.CognitiveSearchWrapper-module_skeletonHeaderContent__YOSBE{flex:1;min-width:0}.CognitiveSearchWrapper-module_skeletonTitle__snqWk{background-color:#eaecf0;height:1rem;width:60%}.CognitiveSearchWrapper-module_skeletonDate__oOpoM,.CognitiveSearchWrapper-module_skeletonTitle__snqWk{animation:CognitiveSearchWrapper-module_cognitiveSearchPulse__6J5nI 1.5s ease-in-out infinite;border-radius:4px}.CognitiveSearchWrapper-module_skeletonDate__oOpoM{background-color:#f2f4f7;height:.75rem;margin-top:.5rem;width:40%}.CognitiveSearchWrapper-module_skeletonActionButton__G5lfK{animation:CognitiveSearchWrapper-module_cognitiveSearchPulse__6J5nI 1.5s ease-in-out infinite;background-color:#f2f4f7;border-radius:8px;flex-shrink:0;height:2rem;width:2rem}.CognitiveSearchWrapper-module_skeletonDescription__d1BNk{display:flex;flex-direction:column;gap:.5rem}.CognitiveSearchWrapper-module_skeletonDescriptionLine__d2-pl{animation:CognitiveSearchWrapper-module_cognitiveSearchPulse__6J5nI 1.5s ease-in-out infinite;background-color:#f2f4f7;border-radius:4px;height:.75rem;width:100%}.CognitiveSearchWrapper-module_skeletonDescriptionLine__d2-pl:last-child{width:70%}@keyframes CognitiveSearchWrapper-module_cognitiveSearchPulse__6J5nI{0%,to{opacity:1}50%{opacity:.5}}");export{r as default};
2
- //# sourceMappingURL=CognitiveSearchWrapper.module.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchWrapper.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__spreadArray as e,__assign as n}from"tslib";import{jsx as t,jsxs as a}from"react/jsx-runtime";import{ShoppingBag as o,ArrowUpDown as r,ChevronDown as i,Check as l,Filter as c}from"lucide-react";import{useMemo as s,useState as d,useRef as u,useEffect as m}from"react";import p from"./CognitiveSearchWrapper.module.css.js";import{CognitiveSearchErrorBoundary as h}from"./CognitiveSearchErrorBoundary.js";import{CognitiveSearchResultCard as v}from"./CognitiveSearchResultCard.js";import{cx as f}from"../IL-marketplace/utils.js";function g(){return a("div",n({className:p.skeletonCard},{children:[a("div",n({className:p.skeletonHeader},{children:[a("div",n({className:p.skeletonHeaderContent},{children:[t("div",{className:p.skeletonTitle}),t("div",{className:p.skeletonDate})]})),t("div",{className:p.skeletonActionButton})]})),a("div",n({className:p.skeletonDescription},{children:[t("div",{className:p.skeletonDescriptionLine}),t("div",{className:p.skeletonDescriptionLine})]}))]}))}function N(e){var o=e.id,r=e.options,c=e.value,s=e.onChange,h=d(!1),v=h[0],g=h[1],N=u(null);m(function(){if(v){var e=function(e){N.current&&!N.current.contains(e.target)&&g(!1)},n=function(e){"Escape"===e.key&&g(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}}},[v]);var b=r.find(function(e){return e.categoryName===c}),y="".concat(o,"-label");return a("div",n({className:p.filterOptionWrapper,ref:N},{children:[a("button",n({type:"button",id:o,className:p.filterOptionTrigger,onClick:function(){return g(function(e){return!e})},"aria-haspopup":"listbox","aria-expanded":v,"aria-labelledby":"".concat(y," ").concat(o)},{children:[t("span",n({className:f(p.filterOptionValue,!b&&p.filterOptionPlaceholder)},{children:b?"".concat(b.categoryName," (").concat(b.count,")"):"Select here"})),t(i,{className:f(p.headerIcon,v&&p.filterChevronExpanded),strokeWidth:2})]})),v&&a("div",n({className:p.filterOptionPanel,role:"listbox","aria-labelledby":y},{children:[a("button",n({type:"button",role:"option","aria-selected":!c,className:f(p.filterOptionItem,!c&&p.filterOptionItemActive),onClick:function(){s(void 0),g(!1)}},{children:[t("span",{children:"Select here"}),!c&&t(l,{className:p.filterOptionItemIcon,strokeWidth:2.5})]})),r.map(function(e){return a("button",n({type:"button",role:"option","aria-selected":c===e.categoryName,className:f(p.filterOptionItem,c===e.categoryName&&p.filterOptionItemActive),onClick:function(){s(e.categoryName),g(!1)}},{children:[a("span",{children:[e.categoryName," (",e.count,")"]}),c===e.categoryName&&t(l,{className:p.filterOptionItemIcon,strokeWidth:2.5})]}),e.categoryName)})]}))]}))}var b={domain:[],subDomain:[],contentType:[]},y={};function k(e,n){return!(!e||!n)&&(e===n||e.endsWith("::".concat(n)))}function C(C){var I,L,w,T=C.results,E=C.facets,R=C.isLoading,x=void 0!==R&&R,S=C.loadingCardCount,D=void 0===S?3:S,W=C.title,O=void 0===W?"Top Suggestions for Cognitive Decisionings":W,B=C.resultsCountLabel,P=void 0===B?function(e){return"Showing ".concat(e," result").concat(1===e?"":"s")}:B,F=C.exploreMarketplaceLabel,A=void 0===F?"Explore Marketplace":F,M=C.sortLabel,j=void 0===M?"Relevance":M,U=C.filterLabel,H=void 0===U?"Filter":U;C.onExploreMarketplace;var q=C.onSortClick,G=C.onSortChange,V=C.onFilterClick,z=C.onFilterChange,J=C.emptyTitle,K=void 0===J?"No matching results":J,Q=C.emptyDescription,X=void 0===Q?"Try adjusting your search to find what you need.":Q,Y=C.onFavoriteToggle,Z=C.onUseTemplate,$=C.onRegenerateMatchReason,_=C.regeneratingResultId,ee=C.highlightedResultId,ne=C.useTemplateLabel,te=C.matchReasonLabel,ae=C.classNames,oe=C.styles,re=C.customIcons,ie=C.baseUrl,le=C.instantLearningRequestId,ce=C.applicationMappingId,se=C.authToken,de=C.onError,ue=C.BaseURlFOrIL,me=s(function(){return null!=T?T:[]},[T]),pe=null!=E?E:b,he=d(y),ve=he[0],fe=he[1],ge=d(y),Ne=ge[0],be=ge[1],ye=d(!1),ke=ye[0],Ce=ye[1],Ie=u(null);m(function(){if(ke){var e=function(e){Ie.current&&!Ie.current.contains(e.target)&&Ce(!1)},n=function(e){"Escape"===e.key&&Ce(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}}},[ke]);var Le=Object.values(ve).filter(Boolean).length,we=s(function(){var e=ve.domain,n=ve.subDomain,t=ve.contentType;return e||n||t?me.filter(function(a){var o,r,i;return(!e||(null===(o=null==a?void 0:a.domain)||void 0===o?void 0:o.toLowerCase())===e.toLowerCase())&&((!n||(null===(r=null==a?void 0:a.subDomain)||void 0===r?void 0:r.toLowerCase())===n.toLowerCase())&&(!t||(null===(i=null==a?void 0:a.contentType)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()))}):me},[me,ve]),Te=d(null),Ee=Te[0],Re=Te[1],xe=d(!1),Se=xe[0],De=xe[1],We=u(null);m(function(){if(Se){var e=function(e){We.current&&!We.current.contains(e.target)&&De(!1)},n=function(e){"Escape"===e.key&&De(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}}},[Se]);var Oe=s(function(){return Ee?e([],we,!0).sort(function(e,n){var t,a,o=null!==(t=null==e?void 0:e.matchPercentage)&&void 0!==t?t:0,r=null!==(a=null==n?void 0:n.matchPercentage)&&void 0!==a?a:0;return"desc"===Ee?r-o:o-r}):we},[we,Ee]),Be=function(e){Re(e),De(!1),null==G||G(e)};return t(h,n({context:"CognitiveSearchWrapper",onError:de,fallback:a("div",n({className:p.emptyState},{children:[t("p",n({className:p.emptyTitle},{children:"Something went wrong"})),t("p",n({className:p.emptyDescription},{children:"Unable to display search results right now."}))]}))},{children:a("div",n({className:f(p.wrapper,null==ae?void 0:ae.wrapper),style:null==oe?void 0:oe.wrapper},{children:[a("div",n({className:p.headerRow},{children:[a("div",n({className:p.headerTitleGroup},{children:[t("h2",n({className:p.headerTitle},{children:O})),t("p",n({className:p.headerSubtitle},{children:P(Oe.length)}))]})),a("div",n({className:p.headerActions},{children:[a("button",n({type:"button",className:f(p.headerTextButton,p.headerTextButtonDisabled),disabled:!0,title:"coming soon"},{children:[null!==(I=null==re?void 0:re.exploreMarketplaceIcon)&&void 0!==I?I:t(o,{className:p.headerIcon,strokeWidth:2}),t("span",{children:A})]})),a("div",n({className:p.sortWrapper,ref:We},{children:[a("button",n({type:"button",className:p.headerTextButton,onClick:function(){De(function(e){return!e}),null==q||q()},"aria-haspopup":"menu","aria-expanded":Se},{children:[null!==(L=null==re?void 0:re.sortIcon)&&void 0!==L?L:t(r,{className:p.headerIcon,strokeWidth:2}),t("span",{children:j}),t(i,{className:p.headerIcon,strokeWidth:2})]})),Se&&a("div",n({className:p.sortPanel,role:"menu","aria-label":j},{children:[a("button",n({type:"button",role:"menuitemradio","aria-checked":"desc"===Ee,className:f(p.sortPanelItem,"desc"===Ee&&p.sortPanelItemActive),onClick:function(){return Be("desc")}},{children:[t("span",{children:"High to Low"}),"desc"===Ee&&t(l,{className:p.sortPanelItemIcon,strokeWidth:2.5})]})),a("button",n({type:"button",role:"menuitemradio","aria-checked":"asc"===Ee,className:f(p.sortPanelItem,"asc"===Ee&&p.sortPanelItemActive),onClick:function(){return Be("asc")}},{children:[t("span",{children:"Low to High"}),"asc"===Ee&&t(l,{className:p.sortPanelItemIcon,strokeWidth:2.5})]}))]}))]})),a("div",n({className:p.filterWrapper,ref:Ie},{children:[a("button",n({type:"button",className:f(p.headerIconButton,Le>0&&p.headerIconButtonActive),onClick:function(){be(ve),Ce(function(e){return!e}),null==V||V()},"aria-haspopup":"dialog","aria-expanded":ke,"aria-label":H},{children:[null!==(w=null==re?void 0:re.filterIcon)&&void 0!==w?w:t(c,{className:p.headerIcon,strokeWidth:2}),Le>0&&t("span",n({className:p.filterBadge},{children:Le}))]})),ke&&a("div",n({className:p.filterPanel,role:"dialog","aria-label":"".concat(H," by")},{children:[t("p",n({className:p.filterPanelHeading},{children:"Filter by"})),[["domain","Domain"],["subDomain","Sub-domain"],["contentType","Content Type"]].map(function(e){var o=e[0],r=e[1],i=pe[o];if(0===i.length)return null;var l="cognitive-search-filter-".concat(o);return a("div",n({className:p.filterField},{children:[t("label",n({className:p.filterFieldLabel,id:"".concat(l,"-label"),htmlFor:l},{children:r})),t(N,{id:l,options:i,value:Ne[o],onChange:function(e){return be(function(t){var a;return n(n({},t),((a={})[o]=e,a))})}})]}),o)}),a("div",n({className:p.filterFooter},{children:[t("button",n({type:"button",className:p.filterClearButton,onClick:function(){be(y),fe(y),null==z||z(y)}},{children:"Clear all"})),t("button",n({type:"button",className:p.filterApplyButton,onClick:function(){fe(Ne),Ce(!1),null==z||z(Ne)}},{children:"Apply"}))]}))]}))]}))]}))]})),x?t("div",n({className:f(p.grid,null==ae?void 0:ae.grid),style:null==oe?void 0:oe.grid},{children:Array.from({length:D}).map(function(e,n){return t(g,{},"cognitive-search-skeleton-".concat(n))})})):0===Oe.length?a("div",n({className:p.emptyState},{children:[t("p",n({className:p.emptyTitle},{children:K})),t("p",n({className:p.emptyDescription},{children:X}))]})):t("div",n({className:f(p.grid,null==ae?void 0:ae.grid),style:null==oe?void 0:oe.grid},{children:Oe.map(function(e,a){var o;return t(h,n({context:"CognitiveSearchResultCard",onError:de,fallback:t("div",n({className:p.skeletonCard},{children:t("p",n({className:p.emptyDescription},{children:"This result couldn't be displayed."}))}))},{children:t(v,{result:e,rank:a+1,onFavoriteToggle:Y,onUseTemplate:Z,onRegenerateMatchReason:$,isRegeneratingMatchReason:_===(null==e?void 0:e.id),highlighted:k(null==e?void 0:e.id,ee),useTemplateLabel:ne,matchReasonLabel:te,classNames:ae,styles:oe,customIcons:re,baseUrl:ie,instantLearningRequestId:le,applicationMappingId:ce,authToken:se,onError:de,BaseURlFOrIL:ue})}),null!==(o=null==e?void 0:e.id)&&void 0!==o?o:a)})}))]}))}))}export{C as CognitiveSearchWrapper};
2
- //# sourceMappingURL=cognitiveWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cognitiveWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- function n(n){return n?Object.entries(n).reduce(function(n,t){var o,i,r=t[0],c=t[1];return n[r]="".concat(null!==(o=null==c?void 0:c.title)&&void 0!==o?o:""," : ").concat(null!==(i=null==c?void 0:c.description)&&void 0!==i?i:""),n},{}):{}}function t(t){var o,i;if(!t||"object"!=typeof t)return"";var r=n(t);return null===(i=null===(o=null==Object?void 0:Object.values(r))||void 0===o?void 0:o.map(function(n,t){return"".concat(t+1,". ").concat(n)}))||void 0===i?void 0:i.join("\n")}var o=["title","description","when_to_apply","when_not_to_apply","instruction_prompt"];function i(n){return n&&"object"==typeof n?null==o?void 0:o.map(function(t){var o=t.split("_").map(function(n){return n.charAt(0).toUpperCase()+n.slice(1)}).join(" ");return"<highlight>".concat(o,": ").concat(String(n[t]),"</highlight>")}).join("\n\n"):""}export{n as buildInstructionChecklistMap,t as formatInstructionChecklist,i as stringifyInstruction};
2
- //# sourceMappingURL=rulebookcitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rulebookcitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__awaiter as n,__generator as t,__assign as a}from"tslib";import{useQuery as e}from"@tanstack/react-query";import i from"axios";function r(r){var o=this,c=r.requestId,l=r.enabled,u=r.authToken,s=r.baseUrl,d=e({queryKey:["instant-learning-citation",c,u],queryFn:function(){return n(o,void 0,void 0,function(){var n,e,r;return t(this,function(t){switch(t.label){case 0:return[4,i.get("".concat(s,"/backend/cw_chat_management/il-citations/learnings/").concat(c),{headers:a({},u?{Authorization:"Bearer ".concat(u)}:void 0)})];case 1:return n=t.sent(),[2,null!==(r=null===(e=n.data)||void 0===e?void 0:e.learnings_data)&&void 0!==r?r:null]}})})},enabled:l&&!!c,retry:!1}),h=d.data;return{instructionChecklist:null!=h?h:null,isLoading:d.isLoading}}export{r as useInstantLearningCitationFetch};
2
- //# sourceMappingURL=useQueries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useQueries.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style-inject.es.js","sources":["../../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"AAAA,SAASA,EAAYC,EAAKC,QACN,IAAbA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D"}
@@ -1,27 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export type INonReasoningSource = {
3
- text: string;
4
- dataSource?: string;
5
- trainingDataTitle?: string;
6
- confidence_score?: number;
7
- paraphrase?: string;
8
- artifactUrl?: string;
9
- citation_id?: number | string;
10
- negativeReasoning?: string;
11
- relevantScore?: number;
12
- exactPhraseToSearch?: string;
13
- artifactId?: string;
14
- };
15
- export interface CitationComponentMarkdownRenderProps {
16
- /** Anchor href from the markdown renderer; carries `citation_identifier` as a query param. */
17
- href?: string;
18
- children?: ReactNode;
19
- /** IL request this citation belongs to, used to fetch its instruction checklist. */
20
- instantLearningRequestId?: string | null;
21
- /** Query params of the surrounding citation link (carries `citation_type`). */
22
- paramsData: URLSearchParams;
23
- /** Base URL for the instruction-checklist fetch; forwarded to `fetchInstantLearningCitation`. */
24
- baseUrl?: string;
25
- }
26
- export declare const CitationComponentMarkdownRender: ({ href, children, instantLearningRequestId, paramsData, baseUrl, }: CitationComponentMarkdownRenderProps) => import("react").JSX.Element;
27
- //# sourceMappingURL=CitationComponentMarkdownRender.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationComponentMarkdownRender.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/CitationComponentMarkdownRender.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,mBAAmB,GAAC;IAC9B,IAAI,EAAC,MAAM,CAAC;IACZ,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAC,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAC,MAAM,CAAC;IACzB,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,WAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAA;AASD,MAAM,WAAW,oCAAoC;IACnD,8FAA8F;IAC9F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oFAAoF;IACpF,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,+EAA+E;IAC/E,UAAU,EAAE,eAAe,CAAC;IAC5B,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,+BAA+B,uEAMzC,oCAAoC,gCAwDtC,CAAC"}
@@ -1,30 +0,0 @@
1
- import { Component } from 'react';
2
- import type { ErrorInfo, ReactNode } from 'react';
3
- export interface CognitiveSearchErrorBoundaryProps {
4
- children: ReactNode;
5
- /** Label used in the console error prefix, e.g. "CognitiveSearchResultCard". */
6
- context: string;
7
- /** Rendered instead of the crashed subtree; defaults to nothing so the rest of the UI stays intact. */
8
- fallback?: ReactNode;
9
- /** Forwarded to the host app's own error tracking (Sentry, Datadog, etc.). */
10
- onError?: (error: Error, errorInfo?: ErrorInfo) => void;
11
- }
12
- interface CognitiveSearchErrorBoundaryState {
13
- hasError: boolean;
14
- }
15
- /**
16
- * Contains render-time crashes to the subtree they happen in instead of taking
17
- * down the rest of the host app's UI. Does not catch errors from event
18
- * handlers or async code (React error boundaries never do) — those should be
19
- * try/caught and logged at the call site.
20
- */
21
- export declare class CognitiveSearchErrorBoundary extends Component<CognitiveSearchErrorBoundaryProps, CognitiveSearchErrorBoundaryState> {
22
- state: CognitiveSearchErrorBoundaryState;
23
- static getDerivedStateFromError(): {
24
- hasError: boolean;
25
- };
26
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
27
- render(): ReactNode;
28
- }
29
- export {};
30
- //# sourceMappingURL=CognitiveSearchErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/CognitiveSearchErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,SAAS,CAAC;IACpB,gFAAgF;IAChF,OAAO,EAAE,MAAM,CAAC;IAChB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;CACzD;AAED,UAAU,iCAAiC;IACzC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,qBAAa,4BAA6B,SAAQ,SAAS,CACzD,iCAAiC,EACjC,iCAAiC,CAClC;IACC,KAAK,EAAE,iCAAiC,CAAuB;IAE/D,MAAM,CAAC,wBAAwB;;;IAI/B,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAKpD,MAAM;CAMP"}
@@ -1,33 +0,0 @@
1
- import type { ErrorInfo } from 'react';
2
- import type { CognitiveSearchClassNames, CognitiveSearchCustomIcons, CognitiveSearchResultItem, CognitiveSearchStyles } from './cognitiveSearch.types';
3
- declare function getOrdinalLabel(rank: number): string;
4
- export interface CognitiveSearchResultCardProps {
5
- result: CognitiveSearchResultItem;
6
- rank: number;
7
- onFavoriteToggle?: (result: CognitiveSearchResultItem) => void;
8
- onUseTemplate?: (result: CognitiveSearchResultItem) => void;
9
- onRegenerateMatchReason?: (result: CognitiveSearchResultItem) => void;
10
- isRegeneratingMatchReason?: boolean;
11
- useTemplateLabel?: string;
12
- matchReasonLabel?: (ordinal: string) => string;
13
- classNames?: CognitiveSearchClassNames;
14
- styles?: CognitiveSearchStyles;
15
- customIcons?: CognitiveSearchCustomIcons;
16
- /** Base URL for the `il_rulebook_citation` instruction-checklist fetch and the favorite-toggle API call. */
17
- baseUrl?: string;
18
- /** Id of the IL request backing `il_rulebook_citation` citations; forwarded to `useInstantLearningCitationFetch`. Falls back to `result.instantLearningRequestId` when omitted. */
19
- instantLearningRequestId?: string | null;
20
- /** Fallback id sent to `setMarketplaceUserTag` on favorite toggle when `result.instantLearningId` (from this card's own `KNOWLEDGEBASE(N)` metadata) isn't present. */
21
- applicationMappingId?: string;
22
- /** Auth token for the favorite-toggle API call. */
23
- authToken?: string;
24
- BaseURlFOrIL?: string;
25
- /** Called when the favorite-toggle API call fails; forward to your own error tracking. */
26
- onError?: (error: Error, errorInfo?: ErrorInfo) => void;
27
- /** When true, scrolls this card into view, expands its applicability and match-reason sections, and applies a glow highlight — driven by a `REDIRECT_DETAILS` host event. */
28
- highlighted?: boolean;
29
- }
30
- export declare function CognitiveSearchResultCard({ result, rank, onFavoriteToggle, onUseTemplate, onRegenerateMatchReason, isRegeneratingMatchReason, useTemplateLabel, matchReasonLabel, classNames, styles, customIcons, baseUrl, instantLearningRequestId: instantLearningRequestIdProp, applicationMappingId, authToken, onError, BaseURlFOrIL, highlighted, }: CognitiveSearchResultCardProps): import("react").JSX.Element;
31
- export type { CognitiveSearchResultItem };
32
- export { getOrdinalLabel };
33
- //# sourceMappingURL=CognitiveSearchResultCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/CognitiveSearchResultCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAyB,MAAM,OAAO,CAAC;AAiB9D,OAAO,KAAK,EAEV,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AA4KjC,iBAAS,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAa7C;AA8DD,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,yBAAyB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACtE,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,4GAA4G;IAC5G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mLAAmL;IACnL,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,uKAAuK;IACvK,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAC,MAAM,CAAA;IACpB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACxD,6KAA6K;IAC7K,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,yBAAiC,EACjC,gBAAiC,EACjC,gBAAkE,EAClE,UAAU,EACV,MAAM,EACN,WAAW,EACX,OAAO,EACP,wBAAwB,EAAE,4BAA4B,EACtD,oBAAoB,EACpB,SAAS,EACT,OAAO,EACP,YAAY,EACZ,WAAmB,GACpB,EAAE,8BAA8B,+BA0PhC;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export default function CognitiveSearchTestfile(): import("react").JSX.Element;
3
- //# sourceMappingURL=CognitiveSearchTestfile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveSearchTestfile.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/CognitiveSearchTestfile.tsx"],"names":[],"mappings":";AA6LA,MAAM,CAAC,OAAO,UAAU,uBAAuB,gCA4B9C"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export default function SearchResultSkeletonCard(): import("react").JSX.Element;
3
- //# sourceMappingURL=SearchResultSkeletonCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResultSkeletonCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/SearchResultSkeletonCard.tsx"],"names":[],"mappings":";AAIA,MAAM,CAAC,OAAO,UAAU,wBAAwB,gCA+B/C"}
@@ -1,39 +0,0 @@
1
- import { CognitiveSearchResultItem, CognitiveSearchSummary } from "./cognitiveSearch.types";
2
- export interface CognitiveSearchCitation {
3
- id: string;
4
- /** 1-based citation number as assigned by the source response. */
5
- number?: string;
6
- /** e.g. "knowledgebase_details", "applicability_details", "content_details". */
7
- type?: string;
8
- /** Id of the knowledgebase this citation supports; shared by every citation on the same result. */
9
- identifier?: string;
10
- /** 0-100 confidence behind this specific citation. */
11
- decisionStrength?: number;
12
- /** Source excerpt this citation is grounded in. */
13
- phraseToHighlight?: string;
14
- /** Why this citation supports (or undercuts) the match. */
15
- reason: string;
16
- /** Visible link text, e.g. "knowledgebase metadata". */
17
- label: string;
18
- }
19
- export declare function extractUpdatedCitationReferenceId(rawResponse: string): string | null;
20
- /**
21
- * Parses the `{"totalCount": N, "totalText": "...", "categories": {"domain":
22
- * [{"categoryName": "...", "count": N}], "subDomain": [...], "contentType":
23
- * [...]}}` search-summary object a response streams *before* any
24
- * `<details searchresult="true">` markup — it's the source for the result
25
- * count and the filter-by-domain/subDomain/contentType facet options. Unlike
26
- * the `KNOWLEDGEBASE(N)` comments, this is valid JSON, so it's located by its
27
- * `"totalCount"` marker and parsed directly rather than field-by-field.
28
- */
29
- export declare function extractCognitiveSearchSummary(rawResponse: string): CognitiveSearchSummary | undefined;
30
- /**
31
- * Parses a raw cognitive search response containing one or more knowledgebase
32
- * results into `CognitiveSearchResultItem[]`. `version`, `createdBy`,
33
- * `createdAt`, `isFavorited`, and `instantLearningId` come from each result's
34
- * `<!-- KNOWLEDGEBASE(N) = ... -->` comment (see
35
- * `extractKnowledgebaseMetaByRank`) when present, and are left undefined
36
- * otherwise.
37
- */
38
- export declare function parseCognitiveSearchResponse(rawResponse: string): CognitiveSearchResultItem[];
39
- //# sourceMappingURL=cognitiveParser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cognitiveParser.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/cognitiveParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAExH,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf;AAuGD,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIpF;AA8QD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CA2BrG;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,MAAM,GAAG,yBAAyB,EAAE,CAW7F"}
@@ -1,110 +0,0 @@
1
- import type { CSSProperties, ReactNode } from 'react';
2
- /** Content shown inside an expandable "When to Apply" / "When Not to Apply" section. */
3
- export interface CognitiveSearchApplicability {
4
- items?: string[];
5
- description?: string;
6
- }
7
- export interface CognitiveSearchCitation {
8
- id: string;
9
- /** 1-based citation number as assigned by the source response. */
10
- number?: string;
11
- /** e.g. "knowledgebase_details", "applicability_details", "content_details". */
12
- type?: string;
13
- /** Id of the knowledgebase this citation supports; shared by every citation on the same result. */
14
- identifier?: string;
15
- /** 0-100 confidence behind this specific citation. */
16
- decisionStrength?: number;
17
- /** Source excerpt this citation is grounded in. */
18
- phraseToHighlight?: string;
19
- /** Why this citation supports (or undercuts) the match. */
20
- reason: string;
21
- /** Visible link text, e.g. "knowledgebase metadata". */
22
- label: string;
23
- }
24
- /** "Why this is the Nth match" content, rendered via `CognitiveDecisioningCard` from `@e-llm-studio/citation`. */
25
- export interface CognitiveSearchDecisioning {
26
- reasoning: string;
27
- /** Markdown "Gaps in Decision" content; omitted when the result has no gap. */
28
- gap?: string;
29
- /** 0-100 relevance score. */
30
- score?: number;
31
- citations?: CognitiveSearchCitation[];
32
- }
33
- /** A single cognitive search result rendered as a card. Every field is host-supplied. */
34
- export interface CognitiveSearchResultItem {
35
- id: string;
36
- title: string;
37
- /** e.g. "V 0.0.1" */
38
- version?: string;
39
- contentType?: string;
40
- domain?: string;
41
- subDomain?: string;
42
- description?: string;
43
- createdBy?: string;
44
- /** Preformatted date label, e.g. "Mar 22, 2026". */
45
- createdAt?: string;
46
- /** 0-100. Rendered as a "✨ {n}%" badge when provided. */
47
- matchPercentage?: number;
48
- isFavorited?: boolean;
49
- whenToApply?: CognitiveSearchApplicability;
50
- whenNotToApply?: CognitiveSearchApplicability;
51
- /** Content for the expandable "Why this is the Nth match" section. */
52
- decisioning?: CognitiveSearchDecisioning;
53
- /** Disables the "Use Template" action for this result when false. */
54
- canUseTemplate?: boolean;
55
- /** Id of the IL request backing this result's `il_rulebook_citation` citations, used to fetch their instruction checklist. */
56
- instantLearningRequestId?: string;
57
- /** Per-result instant learning id from this result's `KNOWLEDGEBASE(N)` metadata comment; sent to `setMarketplaceUserTag` on favorite toggle instead of a shared application mapping id. */
58
- instantLearningId?: string;
59
- }
60
- /** One selectable facet value within a filter category, e.g. `{ categoryName: "SOFTWARE DEVELOPMENT", count: 2 }`. */
61
- export interface CognitiveSearchCategoryFacet {
62
- categoryName: string;
63
- count: number;
64
- }
65
- /** Filter facets the response summary streams ahead of the result cards, grouped by category. */
66
- export interface CognitiveSearchFacets {
67
- domain: CognitiveSearchCategoryFacet[];
68
- subDomain: CognitiveSearchCategoryFacet[];
69
- contentType: CognitiveSearchCategoryFacet[];
70
- }
71
- /** The `{"totalCount": ..., "categories": {...}}` object a response streams before any result markup. */
72
- export interface CognitiveSearchSummary {
73
- totalCount: number;
74
- totalText?: string;
75
- summaryType?: string;
76
- categories: CognitiveSearchFacets;
77
- }
78
- export interface CognitiveSearchClassNames {
79
- wrapper?: string;
80
- grid?: string;
81
- card?: string;
82
- cardHeader?: string;
83
- cardTitle?: string;
84
- cardMeta?: string;
85
- cardActions?: string;
86
- cardDescription?: string;
87
- cardFooter?: string;
88
- }
89
- export interface CognitiveSearchStyles {
90
- wrapper?: CSSProperties;
91
- grid?: CSSProperties;
92
- card?: CSSProperties;
93
- cardHeader?: CSSProperties;
94
- cardTitle?: CSSProperties;
95
- cardMeta?: CSSProperties;
96
- cardActions?: CSSProperties;
97
- cardDescription?: CSSProperties;
98
- cardFooter?: CSSProperties;
99
- }
100
- export interface CognitiveSearchCustomIcons {
101
- favoriteIcon?: ReactNode;
102
- favoritedIcon?: ReactNode;
103
- matchIcon?: ReactNode;
104
- useTemplateIcon?: ReactNode;
105
- regenerateIcon?: ReactNode;
106
- exploreMarketplaceIcon?: ReactNode;
107
- sortIcon?: ReactNode;
108
- filterIcon?: ReactNode;
109
- }
110
- //# sourceMappingURL=cognitiveSearch.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cognitiveSearch.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/cognitiveSearch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,wFAAwF;AACxF,MAAM,WAAW,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,kHAAkH;AAClH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACvC;AAED,yFAAyF;AACzF,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,cAAc,CAAC,EAAE,4BAA4B,CAAC;IAC9C,sEAAsE;IACtE,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,8HAA8H;IAC9H,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,4LAA4L;IAC5L,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,sHAAsH;AACtH,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iGAAiG;AACjG,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,4BAA4B,EAAE,CAAC;IACvC,SAAS,EAAE,4BAA4B,EAAE,CAAC;IAC1C,WAAW,EAAE,4BAA4B,EAAE,CAAC;CAC7C;AAED,yGAAyG;AACzG,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,qBAAqB,CAAC;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,MAAM,WAAW,0BAA0B;IACzC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,sBAAsB,CAAC,EAAE,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB"}
@@ -1,56 +0,0 @@
1
- import type { ErrorInfo } from 'react';
2
- import type { CognitiveSearchClassNames, CognitiveSearchCustomIcons, CognitiveSearchFacets, CognitiveSearchResultItem, CognitiveSearchStyles } from './cognitiveSearch.types';
3
- export type CognitiveSearchSortDirection = 'desc' | 'asc';
4
- export interface CognitiveSearchFilterSelection {
5
- domain?: string;
6
- subDomain?: string;
7
- contentType?: string;
8
- }
9
- export interface CognitiveSearchWrapperProps {
10
- /** Search results to render as cards. Nothing about card content is hardcoded — every field comes from here. */
11
- results: CognitiveSearchResultItem[];
12
- /** Filter-by-domain/subDomain/contentType options, from the response's facet summary. */
13
- facets?: CognitiveSearchFacets;
14
- isLoading?: boolean;
15
- loadingCardCount?: number;
16
- /** Heading shown above the results. */
17
- title?: string;
18
- /** "Showing N results" copy under the heading; called with the currently visible (filtered) result count. */
19
- resultsCountLabel?: (count: number) => string;
20
- exploreMarketplaceLabel?: string;
21
- sortLabel?: string;
22
- filterLabel?: string;
23
- onExploreMarketplace?: () => void;
24
- onSortClick?: () => void;
25
- /** Fires after the user picks a relevance sort direction from the dropdown; the rendered cards are already re-sorted by the time this fires. */
26
- onSortChange?: (direction: CognitiveSearchSortDirection) => void;
27
- onFilterClick?: () => void;
28
- /** Fires after the user applies (or clears) the filter panel; the rendered cards are already filtered by the time this fires. */
29
- onFilterChange?: (filters: CognitiveSearchFilterSelection) => void;
30
- emptyTitle?: string;
31
- emptyDescription?: string;
32
- onFavoriteToggle?: (result: CognitiveSearchResultItem) => void;
33
- onUseTemplate?: (result: CognitiveSearchResultItem) => void;
34
- onRegenerateMatchReason?: (result: CognitiveSearchResultItem) => void;
35
- /** Id of the result currently regenerating its match reason, if any. */
36
- regeneratingResultId?: string | null;
37
- /** Id (from a `REDIRECT_DETAILS` host event) of the result to scroll to, expand, and glow-highlight. */
38
- highlightedResultId?: string | null;
39
- useTemplateLabel?: string;
40
- matchReasonLabel?: (ordinal: string) => string;
41
- classNames?: CognitiveSearchClassNames;
42
- styles?: CognitiveSearchStyles;
43
- customIcons?: CognitiveSearchCustomIcons;
44
- /** Base URL for the `il_rulebook_citation` instruction-checklist fetch and the favorite-toggle API call. */
45
- baseUrl?: string;
46
- /** Id of the IL request backing `il_rulebook_citation` citations across all results; forwarded to `useInstantLearningCitationFetch`. Falls back to each result's own `instantLearningRequestId` when omitted. */
47
- instantLearningRequestId?: string | null;
48
- /** Application mapping id sent to `setMarketplaceUserTag` when a card's favorite (heart) button is clicked. */
49
- applicationMappingId?: string;
50
- /** Auth token for the favorite-toggle API call. */
51
- authToken?: string;
52
- onError?: (error: Error, errorInfo?: ErrorInfo) => void;
53
- BaseURlFOrIL?: string;
54
- }
55
- export declare function CognitiveSearchWrapper({ results, facets, isLoading, loadingCardCount, title, resultsCountLabel, exploreMarketplaceLabel, sortLabel, filterLabel, onExploreMarketplace, onSortClick, onSortChange, onFilterClick, onFilterChange, emptyTitle, emptyDescription, onFavoriteToggle, onUseTemplate, onRegenerateMatchReason, regeneratingResultId, highlightedResultId, useTemplateLabel, matchReasonLabel, classNames, styles, customIcons, baseUrl, instantLearningRequestId, applicationMappingId, authToken, onError, BaseURlFOrIL }: CognitiveSearchWrapperProps): import("react").JSX.Element;
56
- //# sourceMappingURL=cognitiveWrapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cognitiveWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/cognitiveWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAEV,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAqHjC,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,KAAK,CAAC;AAE1D,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD,MAAM,WAAW,2BAA2B;IAC1C,gHAAgH;IAChH,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACrC,yFAAyF;IACzF,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9C,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gJAAgJ;IAChJ,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACjE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,iIAAiI;IACjI,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACtE,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,wGAAwG;IACxG,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,4GAA4G;IAC5G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iNAAiN;IACjN,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,+GAA+G;IAC/G,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACxD,YAAY,CAAC,EAAC,MAAM,CAAA;CACrB;AAED,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,MAAM,EACN,SAAiB,EACjB,gBAAoB,EACpB,KAAoD,EACpD,iBAAiF,EACjF,uBAA+C,EAC/C,SAAuB,EACvB,WAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACd,UAAkC,EAClC,gBAAqE,EACrE,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,MAAM,EACN,WAAW,EACX,OAAO,EACP,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,OAAO,EACP,YAAY,EACb,EAAE,2BAA2B,+BAuR7B"}
@@ -1,6 +0,0 @@
1
- export declare function getCompleteSearchResultCards(content: string): {
2
- hasStarted: boolean;
3
- count: number;
4
- safeContent: string;
5
- };
6
- //# sourceMappingURL=parseSearchResults.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseSearchResults.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/parseSearchResults.ts"],"names":[],"mappings":"AACA,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAuBzH"}
@@ -1,23 +0,0 @@
1
- interface ParsedCitation {
2
- fileId: string;
3
- phraseToHighlight: string;
4
- citationNumber: number;
5
- }
6
- /**
7
- * Parses a citation string to extract the file ID and the phrase to highlight.
8
- * @param rawUrl The raw citation string containing HTML entities and potential escape characters.
9
- */
10
- export declare function parseCitation(rawUrl: string): ParsedCitation;
11
- export declare function isRuleBookCitation(content: string): boolean;
12
- export interface PromptInstruction {
13
- title: string;
14
- description: string;
15
- when_to_apply: string;
16
- when_not_to_apply: string;
17
- instruction_prompt: string;
18
- }
19
- export declare function buildInstructionChecklistMap(checklist: Record<string, PromptInstruction> | undefined | null): Record<string, string>;
20
- export declare function formatInstructionChecklist(checklist: Record<string, PromptInstruction> | undefined | null): string;
21
- export declare function stringifyInstruction(data: PromptInstruction): string;
22
- export {};
23
- //# sourceMappingURL=rulebookcitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rulebookcitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveSearch/rulebookcitation.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CA2B5D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,SAAS,GAAG,IAAI,GAC9D,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,SAAS,GAAG,IAAI,GAC9D,MAAM,CAOR;AASD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAYpE"}