@sim-design/training 1.0.0 → 1.1.0

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 (278) hide show
  1. package/README.md +481 -15
  2. package/dist/{ArrowLeftOutlined-CiSQq3bL.js → ArrowLeftOutlined-BxA84GXs.js} +1 -1
  3. package/dist/ArrowLeftOutlined-D785XjyB.js +12 -0
  4. package/dist/{AssessmentPlugin-Bx4VrBdV.js → AssessmentPlugin-D_iesmyg.js} +7 -7
  5. package/dist/AssessmentPlugin-zRr-IsdA.js +607 -0
  6. package/dist/CaseAnalysisPlugin-CXuQpkPd.js +2196 -0
  7. package/dist/CaseAnalysisPlugin-DytlXsRD.js +2196 -0
  8. package/dist/CaseDetailContent-DT5nCtRT.js +28613 -0
  9. package/dist/CaseDetailContent-Y7Q430MG.js +28595 -0
  10. package/dist/{CharacterDialoguePanel-Bvdab3qj.js → CharacterDialoguePanel-CdtUl-Sv.js} +178 -139
  11. package/dist/CharacterDialoguePanel-D_4YNFZv.js +815 -0
  12. package/dist/{CheckCircleFilled-Byo8CDfW.js → CheckCircleFilled-CnslIY7j.js} +1 -1
  13. package/dist/CheckCircleFilled-NvZaC2sk.js +12 -0
  14. package/dist/DecisionMakingPlugin-B_KQUFzW.js +1385 -0
  15. package/dist/DecisionMakingPlugin-ILLGek3S.js +1385 -0
  16. package/dist/{DecisionSelectPlugin-DtQ2KV34.js → DecisionSelectPlugin-BGQiHGBK.js} +20 -11
  17. package/dist/DecisionSelectPlugin-Bqmh6XGh.js +872 -0
  18. package/dist/{DecisionShared-Dh9oeQFT.js → DecisionShared-BHq1lEqt.js} +2 -2
  19. package/dist/DecisionShared-Be-zKZLT.js +65 -0
  20. package/dist/DeleteOutlined-BvMjU7m5.js +12 -0
  21. package/dist/DeleteOutlined-Dqy6M2LH.js +12 -0
  22. package/dist/{CustomLayoutRenderer--rnQrqQ2.js → DialogueFormPlugin-BpCeFadt.js} +22724 -21631
  23. package/dist/DialogueFormPlugin-CXlbxX-z.js +123617 -0
  24. package/dist/DialoguePlugin-CO7Nzv0K.js +596 -0
  25. package/dist/DialoguePlugin-DDNdsylz.js +596 -0
  26. package/dist/DocumentReviewPlugin-2CnKQwVG.js +1967 -0
  27. package/dist/DocumentReviewPlugin-qYYrnjvE.js +1967 -0
  28. package/dist/{EyeOutlined-XvOAKlLs.js → EyeOutlined-BrKCNjui.js} +1 -1
  29. package/dist/EyeOutlined-CW0tYV0f.js +12 -0
  30. package/dist/FormFillingPlugin-C3h8ySOZ.js +969 -0
  31. package/dist/FormFillingPlugin-CPmd76Qr.js +969 -0
  32. package/dist/HolderOutlined-CH0tShWu.js +12 -0
  33. package/dist/HolderOutlined-Dm6TBtqf.js +12 -0
  34. package/dist/ModelEditor-BjEbFloQ.js +11753 -0
  35. package/dist/ModelEditor-CwR67DFQ.js +11753 -0
  36. package/dist/{ProcessOperationPlugin-IijngDlX.js → ProcessOperationPlugin-1Lz431aC.js} +12 -12
  37. package/dist/ProcessOperationPlugin-BkmdG3ch.js +88 -0
  38. package/dist/QAPlugin-0C4kpq3J.js +172 -0
  39. package/dist/QAPlugin-UC8uywcg.js +172 -0
  40. package/dist/{ReloadOutlined-Daor2m11.js → ReloadOutlined-BZ92nlYF.js} +1 -1
  41. package/dist/ReloadOutlined-CYoPOwLl.js +12 -0
  42. package/dist/{SettingOutlined-CLEOgXB-.js → SettingOutlined-F466s0Ti.js} +33 -65
  43. package/dist/SettingOutlined-c2hikCfN.js +60 -0
  44. package/dist/StarFilled-Bilmj6UK.js +28 -0
  45. package/dist/StarFilled-CtH30fL0.js +28 -0
  46. package/dist/StrategyLabPlugin-CvO07sXV.js +12445 -0
  47. package/dist/StrategyLabPlugin-DUqZYctQ.js +12445 -0
  48. package/dist/ThunderboltOutlined-BpmoCKdV.js +28 -0
  49. package/dist/ThunderboltOutlined-DDQFi5Cv.js +28 -0
  50. package/dist/TrainingModelContainer-DqCsdC7C.js +11241 -0
  51. package/dist/TrainingModelContainer-yi8W6KFl.js +11241 -0
  52. package/dist/{UndoOutlined-ChUQYUul.js → UndoOutlined-6JZVzmdX.js} +26 -42
  53. package/dist/UndoOutlined-Dw6_9_OL.js +68 -0
  54. package/dist/{WarningFilled-1Rc4hr0C.js → WarningFilled-Cy1tvuQy.js} +1 -1
  55. package/dist/WarningFilled-lkr453eh.js +12 -0
  56. package/dist/{adapters-D1FFZFoA.js → adapters-BbCnXSYo.js} +2 -2
  57. package/dist/{analysisTools-CXyOvSZT.js → analysisTools-Cp5-3DaU.js} +59 -12
  58. package/dist/creator.js +4 -2
  59. package/dist/designTokens-walF_QkZ.js +23 -0
  60. package/dist/images/healthcare/bg.jpg +0 -0
  61. package/dist/{index-CYjdXPgc.js → index-C71iHgSs.js} +2640 -2722
  62. package/dist/{index-XuBVjlmu.js → index-CBvqcbIU.js} +7214 -7643
  63. package/dist/index-D94YNWTb.js +433 -0
  64. package/dist/index-DSYmOXnQ.js +6486 -0
  65. package/dist/index-fP97rKeQ.js +433 -0
  66. package/dist/index.js +8 -6
  67. package/dist/judgement-xTGXlDcn.js +29 -0
  68. package/dist/runtime.js +1 -1
  69. package/dist/sortable.esm-bm_c5vmI.js +3307 -0
  70. package/dist/types.js +1 -1
  71. package/dist/useDialogueLogic-D1lkUKUZ.js +576 -0
  72. package/dist/useDialogueLogic-vOJ9XRNP.js +576 -0
  73. package/dist-types/client/src/admin/CaseDataEditor.d.ts +20 -0
  74. package/dist-types/client/src/admin/CaseEditor.d.ts +19 -0
  75. package/dist-types/client/src/admin/DialogueFormCheckRulesEditor.d.ts +11 -0
  76. package/dist-types/client/src/admin/DialogueFormInitDataEditor.d.ts +31 -0
  77. package/dist-types/client/src/admin/InitDataEditors.d.ts +7 -0
  78. package/dist-types/client/src/admin/ModelEditor.d.ts +11 -0
  79. package/dist-types/client/src/admin/ModelPreview.d.ts +13 -0
  80. package/dist-types/client/src/admin/OptionSelector.d.ts +32 -0
  81. package/dist-types/client/src/admin/StageStepEditor.d.ts +20 -0
  82. package/dist-types/client/src/admin/StepAnswerKeyEditor.d.ts +19 -0
  83. package/dist-types/client/src/admin/StepByStepCreator.d.ts +27 -0
  84. package/dist-types/client/src/admin/components/AbilityMapEditor.d.ts +12 -0
  85. package/dist-types/client/src/admin/components/CasePreview.d.ts +8 -0
  86. package/dist-types/client/src/admin/components/StepAbilitySelector.d.ts +9 -0
  87. package/dist-types/client/src/admin/constants/creatorConstants.d.ts +39 -0
  88. package/dist-types/client/src/admin/editors/CaseAnalysisEditor.d.ts +11 -0
  89. package/dist-types/client/src/admin/editors/DecisionMakingEditor.d.ts +7 -0
  90. package/dist-types/client/src/admin/editors/DialogueEditor.d.ts +12 -0
  91. package/dist-types/client/src/admin/editors/DocumentReviewEditor.d.ts +7 -0
  92. package/dist-types/client/src/admin/editors/DocumentReviewRuntimeRulesEditor.d.ts +15 -0
  93. package/dist-types/client/src/admin/editors/FormFillingEditor.d.ts +33 -0
  94. package/dist-types/client/src/admin/editors/ModelUIConfigEditor.d.ts +5 -0
  95. package/dist-types/client/src/admin/editors/QAEditor.d.ts +6 -0
  96. package/dist-types/client/src/admin/editors/RouterEditors.d.ts +18 -0
  97. package/dist-types/client/src/admin/editors/StepBriefingEditor.d.ts +14 -0
  98. package/dist-types/client/src/admin/editors/StrategyLabEditor.d.ts +24 -0
  99. package/dist-types/client/src/admin/editors/decisionEditorParts.d.ts +18 -0
  100. package/dist-types/client/src/admin/editors/index.d.ts +8 -0
  101. package/dist-types/client/src/admin/editors/shared.d.ts +17 -0
  102. package/dist-types/client/src/admin/hooks/useStep1Intent.d.ts +16 -0
  103. package/dist-types/client/src/admin/hooks/useStep2Outline.d.ts +41 -0
  104. package/dist-types/client/src/admin/hooks/useStep3Details.d.ts +123 -0
  105. package/dist-types/client/src/admin/hooks/useStep4Cases.d.ts +48 -0
  106. package/dist-types/client/src/admin/hooks/useStep5Validation.d.ts +16 -0
  107. package/dist-types/client/src/admin/landingValidation.d.ts +74 -0
  108. package/dist-types/client/src/admin/schemaFieldUtils.d.ts +55 -0
  109. package/dist-types/client/src/admin/services.d.ts +461 -0
  110. package/dist-types/client/src/admin/shared-editors.d.ts +31 -0
  111. package/dist-types/client/src/admin/types/creatorArtifacts.d.ts +140 -0
  112. package/dist-types/client/src/components/AbilityMapView.d.ts +15 -0
  113. package/dist-types/client/src/components/CaseDetail/CaseDetailContent.d.ts +12 -0
  114. package/dist-types/client/src/components/ConversationalDataCollector/IntentConfirmPanel.d.ts +20 -0
  115. package/dist-types/client/src/components/ConversationalDataCollector/index.d.ts +7 -0
  116. package/dist-types/client/src/components/ConversationalDataCollector/intentState.d.ts +24 -0
  117. package/dist-types/client/src/components/ConversationalDataCollector/types.d.ts +95 -0
  118. package/dist-types/client/src/components/ConversationalDataCollector/utils.d.ts +62 -0
  119. package/dist-types/client/src/components/CustomLayoutRenderer.d.ts +8 -0
  120. package/dist-types/client/src/components/MarkdownRenderer.d.ts +15 -0
  121. package/dist-types/client/src/components/StrategyLabScene/VisualInputComponents.d.ts +85 -0
  122. package/dist-types/client/src/components/StrategyLabScene/components/AdversarialView.d.ts +18 -0
  123. package/dist-types/client/src/components/StrategyLabScene/components/BottomBar.d.ts +22 -0
  124. package/dist-types/client/src/components/StrategyLabScene/components/CharacterCard.d.ts +14 -0
  125. package/dist-types/client/src/components/StrategyLabScene/components/CharacterDialoguePanel.d.ts +32 -0
  126. package/dist-types/client/src/components/StrategyLabScene/components/CollaborativeView.d.ts +20 -0
  127. package/dist-types/client/src/components/StrategyLabScene/components/ComparisonView.d.ts +16 -0
  128. package/dist-types/client/src/components/StrategyLabScene/components/DecisionInput.d.ts +27 -0
  129. package/dist-types/client/src/components/StrategyLabScene/components/DecisionSwitcher.d.ts +14 -0
  130. package/dist-types/client/src/components/StrategyLabScene/components/EvaluationReport.d.ts +13 -0
  131. package/dist-types/client/src/components/StrategyLabScene/components/NodeChainPanels.d.ts +32 -0
  132. package/dist-types/client/src/components/StrategyLabScene/components/ProgressSteps.d.ts +15 -0
  133. package/dist-types/client/src/components/StrategyLabScene/components/SandboxView.d.ts +19 -0
  134. package/dist-types/client/src/components/StrategyLabScene/components/ScenarioPanel.d.ts +17 -0
  135. package/dist-types/client/src/components/StrategyLabScene/components/SimulationAnimation.d.ts +13 -0
  136. package/dist-types/client/src/components/StrategyLabScene/components/SimulationResult.d.ts +15 -0
  137. package/dist-types/client/src/components/StrategyLabScene/components/StressTestView.d.ts +22 -0
  138. package/dist-types/client/src/components/StrategyLabScene/themeMatching.d.ts +21 -0
  139. package/dist-types/client/src/components/StrategyLabScene/themes/education.d.ts +45 -0
  140. package/dist-types/client/src/components/StrategyLabScene/themes/healthcare.d.ts +7 -0
  141. package/dist-types/client/src/components/StrategyLabScene/themes/index.d.ts +22 -0
  142. package/dist-types/client/src/components/StrategyLabScene/themes/professional.d.ts +7 -0
  143. package/dist-types/client/src/components/StrategyLabScene/themes/technology.d.ts +7 -0
  144. package/dist-types/client/src/components/StrategyLabScene/types.d.ts +82 -0
  145. package/dist-types/client/src/components/StrategyLabScene/views/UnifiedStrategyLabView.d.ts +72 -0
  146. package/dist-types/client/src/components/TrainingEngine/BriefingQAChat.d.ts +19 -0
  147. package/dist-types/client/src/components/TrainingEngine/CaseInfoModal.d.ts +12 -0
  148. package/dist-types/client/src/components/TrainingEngine/CaseSelector.d.ts +15 -0
  149. package/dist-types/client/src/components/TrainingEngine/ClassicView.d.ts +7 -0
  150. package/dist-types/client/src/components/TrainingEngine/DashboardHomePage.d.ts +7 -0
  151. package/dist-types/client/src/components/TrainingEngine/EnhancedStudentProfilePanel.d.ts +9 -0
  152. package/dist-types/client/src/components/TrainingEngine/EvaluationPanel.d.ts +8 -0
  153. package/dist-types/client/src/components/TrainingEngine/GlobalQAPanel.d.ts +34 -0
  154. package/dist-types/client/src/components/TrainingEngine/GuidanceHistoryDrawer.d.ts +7 -0
  155. package/dist-types/client/src/components/TrainingEngine/GuidancePanel.d.ts +3 -0
  156. package/dist-types/client/src/components/TrainingEngine/ImmersiveGameView.d.ts +7 -0
  157. package/dist-types/client/src/components/TrainingEngine/PluginRenderer.d.ts +15 -0
  158. package/dist-types/client/src/components/TrainingEngine/ProgressTracker.d.ts +3 -0
  159. package/dist-types/client/src/components/TrainingEngine/StageAssessingOverlay.d.ts +17 -0
  160. package/dist-types/client/src/components/TrainingEngine/StageAssessmentPanel.d.ts +10 -0
  161. package/dist-types/client/src/components/TrainingEngine/StepExecutor.d.ts +20 -0
  162. package/dist-types/client/src/components/TrainingEngine/StepNodeMap.d.ts +15 -0
  163. package/dist-types/client/src/components/TrainingEngine/StudentProfilePanel.d.ts +6 -0
  164. package/dist-types/client/src/components/TrainingEngine/ThemeContext.d.ts +8 -0
  165. package/dist-types/client/src/components/TrainingEngine/TrainingMaterialsSidebar.d.ts +21 -0
  166. package/dist-types/client/src/components/TrainingEngine/TrainingModelContainer.d.ts +42 -0
  167. package/dist-types/client/src/components/TrainingEngine/ViewProps.d.ts +37 -0
  168. package/dist-types/client/src/components/TrainingEngine/profileDataSelectors.d.ts +23 -0
  169. package/dist-types/client/src/components/TrainingEngine/stepInitData.d.ts +42 -0
  170. package/dist-types/client/src/components/TrainingEngine/targetAbilityUtils.d.ts +11 -0
  171. package/dist-types/client/src/components/VisualizationRenderer/ChartRenderer.d.ts +12 -0
  172. package/dist-types/client/src/components/VisualizationRenderer/types.d.ts +41 -0
  173. package/dist-types/client/src/config/appConfig.d.ts +15 -0
  174. package/dist-types/client/src/configs/agentConfig.d.ts +66 -0
  175. package/dist-types/client/src/configs/intentDiscoveryConfig.d.ts +22 -0
  176. package/dist-types/client/src/data/mockTrainingModel.d.ts +10 -0
  177. package/dist-types/client/src/hooks/useAIService.d.ts +17 -0
  178. package/dist-types/client/src/hooks/useDialogueLogic.d.ts +53 -0
  179. package/dist-types/client/src/hooks/useFormFillingLogic.d.ts +26 -0
  180. package/dist-types/client/src/hooks/useFormRealtimeGuidance.d.ts +45 -0
  181. package/dist-types/client/src/hooks/useRealtimeGuidance.d.ts +66 -0
  182. package/dist-types/client/src/hooks/useStageAssessment.d.ts +8 -0
  183. package/dist-types/client/src/hooks/useStepExecution.d.ts +14 -0
  184. package/dist-types/client/src/hooks/useTrainingModel.d.ts +30 -0
  185. package/dist-types/client/src/lib/creator.d.ts +1 -0
  186. package/dist-types/client/src/lib/index.d.ts +1 -0
  187. package/dist-types/client/src/lib/types.d.ts +113 -22
  188. package/dist-types/client/src/plugins/AssessmentPlugin.d.ts +8 -0
  189. package/dist-types/client/src/plugins/CaseAnalysisPlugin.d.ts +9 -0
  190. package/dist-types/client/src/plugins/CaseAnalysisPluginView.d.ts +26 -0
  191. package/dist-types/client/src/plugins/DecisionSelectPlugin.d.ts +8 -0
  192. package/dist-types/client/src/plugins/DialogueFormPlugin.d.ts +9 -0
  193. package/dist-types/client/src/plugins/DialogueFormPluginView.d.ts +37 -0
  194. package/dist-types/client/src/plugins/DialoguePlugin.d.ts +8 -0
  195. package/dist-types/client/src/plugins/DialoguePluginView.d.ts +44 -0
  196. package/dist-types/client/src/plugins/DocumentReview/DocumentCard.d.ts +47 -0
  197. package/dist-types/client/src/plugins/DocumentReview/LayoutComponents.d.ts +47 -0
  198. package/dist-types/client/src/plugins/DocumentReview/MarkListPanel.d.ts +51 -0
  199. package/dist-types/client/src/plugins/DocumentReview/MarkModal.d.ts +37 -0
  200. package/dist-types/client/src/plugins/DocumentReview/ResultPanel.d.ts +32 -0
  201. package/dist-types/client/src/plugins/DocumentReview/Toolbar.d.ts +31 -0
  202. package/dist-types/client/src/plugins/DocumentReview/designTokens.d.ts +76 -0
  203. package/dist-types/client/src/plugins/DocumentReviewPlugin.d.ts +14 -0
  204. package/dist-types/client/src/plugins/ProcessOperationPlugin.d.ts +8 -0
  205. package/dist-types/client/src/plugins/QAPlugin.d.ts +9 -0
  206. package/dist-types/client/src/plugins/StrategyLabPlugin.d.ts +7 -0
  207. package/dist-types/client/src/plugins/decision-making/DecisionMakingPlugin.d.ts +4 -0
  208. package/dist-types/client/src/plugins/decision-making/DecisionWorkspace.d.ts +23 -0
  209. package/dist-types/client/src/plugins/decision-making/MaterialsPanel.d.ts +18 -0
  210. package/dist-types/client/src/plugins/decision-making/logic.d.ts +46 -0
  211. package/dist-types/client/src/plugins/decision-making/scoring.d.ts +79 -0
  212. package/dist-types/client/src/plugins/decision-making/styles.d.ts +743 -0
  213. package/dist-types/client/src/plugins/decision-making/types.d.ts +179 -0
  214. package/dist-types/client/src/plugins/form-filling/DocumentFormLayout.d.ts +22 -0
  215. package/dist-types/client/src/plugins/form-filling/FormAssistPanel.d.ts +20 -0
  216. package/dist-types/client/src/plugins/form-filling/FormFillingPlugin.d.ts +15 -0
  217. package/dist-types/client/src/plugins/form-filling/forms.d.ts +28 -0
  218. package/dist-types/client/src/plugins/form-filling/scoring.d.ts +86 -0
  219. package/dist-types/client/src/plugins/form-filling/useFormFilling.d.ts +42 -0
  220. package/dist-types/client/src/plugins/form-filling/validationRules.d.ts +26 -0
  221. package/dist-types/client/src/plugins/shared/DecisionShared.d.ts +54 -0
  222. package/dist-types/client/src/plugins/shared/FrameworkWidget.d.ts +19 -0
  223. package/dist-types/client/src/plugins/shared/PluginFooter.d.ts +4 -0
  224. package/dist-types/client/src/plugins/shared/PluginHeader.d.ts +4 -0
  225. package/dist-types/client/src/plugins/shared/analysisTools.d.ts +30 -0
  226. package/dist-types/client/src/plugins/shared/disturbanceUtils.d.ts +5 -0
  227. package/dist-types/client/src/plugins/shared/index.d.ts +5 -0
  228. package/dist-types/client/src/plugins/shared/jsonRepair.d.ts +39 -0
  229. package/dist-types/client/src/plugins/shared/judgement.d.ts +46 -0
  230. package/dist-types/client/src/plugins/shared/nodeChain.d.ts +15 -0
  231. package/dist-types/client/src/plugins/shared/renderFieldGrid.d.ts +16 -0
  232. package/dist-types/client/src/plugins/shared/reportBlocks.d.ts +33 -0
  233. package/dist-types/client/src/plugins/shared/reportEvaluation.d.ts +30 -0
  234. package/dist-types/client/src/plugins/shared/reportExport.d.ts +12 -0
  235. package/dist-types/client/src/plugins/shared/reportWorkbench/BlockPropertiesPanel.d.ts +9 -0
  236. package/dist-types/client/src/plugins/shared/reportWorkbench/BlockToolbox.d.ts +11 -0
  237. package/dist-types/client/src/plugins/shared/reportWorkbench/ReportWorkbench.d.ts +20 -0
  238. package/dist-types/client/src/plugins/shared/reportWorkbench/SortableBlock.d.ts +15 -0
  239. package/dist-types/client/src/plugins/shared/reportWorkbench/factory.d.ts +14 -0
  240. package/dist-types/client/src/plugins/shared/reportWorkbench/outlineDraft.d.ts +7 -0
  241. package/dist-types/client/src/plugins/shared/simulationEngine.d.ts +112 -0
  242. package/dist-types/client/src/plugins/shared/simulationModes.d.ts +21 -0
  243. package/dist-types/client/src/plugins/shared/themes.d.ts +5 -0
  244. package/dist-types/client/src/plugins/shared/types.d.ts +1247 -0
  245. package/dist-types/client/src/services/AICommandHandler.d.ts +68 -0
  246. package/dist-types/client/src/services/cozeApiClient.d.ts +44 -0
  247. package/dist-types/client/src/services/mockApi.d.ts +48 -0
  248. package/dist-types/client/src/services/storageService.d.ts +88 -0
  249. package/dist-types/client/src/stores/abilityStore.d.ts +33 -0
  250. package/dist-types/client/src/stores/dialogueStore.d.ts +30 -0
  251. package/dist-types/client/src/stores/formRegistryStore.d.ts +45 -0
  252. package/dist-types/client/src/stores/guidanceStore.d.ts +17 -0
  253. package/dist-types/client/src/stores/stepEvidenceStore.d.ts +14 -0
  254. package/dist-types/client/src/stores/strategyLabStore.d.ts +46 -0
  255. package/dist-types/client/src/stores/trainingStore.d.ts +84 -0
  256. package/dist-types/client/src/types/ai-commands.d.ts +144 -0
  257. package/dist-types/client/src/types.d.ts +17 -0
  258. package/dist-types/client/src/utils/abilityMapGenerator.d.ts +27 -0
  259. package/dist-types/client/src/utils/formUtils.d.ts +66 -0
  260. package/dist-types/client/src/utils/rule-engine.d.ts +36 -0
  261. package/dist-types/shared/types/index.d.ts +592 -0
  262. package/package.json +5 -3
  263. package/dist/CaseAnalysisPlugin-CQvF9_zr.js +0 -416
  264. package/dist/DialogueFormPlugin-C9ssnVMr.js +0 -959
  265. package/dist/DialoguePlugin-DU00QpmQ.js +0 -416
  266. package/dist/DocumentReviewPlugin-HNOZY1T4.js +0 -977
  267. package/dist/FormFillingPlugin-DURWsioi.js +0 -445
  268. package/dist/ModelEditor-BPJsPR0S.js +0 -8264
  269. package/dist/PluginHeader-B-GESJmT.js +0 -87
  270. package/dist/QAPlugin-Bh_UjK1N.js +0 -184
  271. package/dist/RadarChart-C5ZM0kWt.js +0 -24963
  272. package/dist/StrategyLabPlugin-DGeZsr_7.js +0 -14361
  273. package/dist/ThunderboltOutlined-nH_FO_4A.js +0 -44
  274. package/dist/ToolOutlined-DtuNJDB2.js +0 -28
  275. package/dist/TrainingModelContainer-DpW-uB8O.js +0 -11883
  276. package/dist/WarningOutlined-5g1d66hO.js +0 -164
  277. package/dist/judgement-D_9i7x9S.js +0 -20
  278. package/dist/useDialogueLogic-IHELcN3X.js +0 -368
@@ -0,0 +1,433 @@
1
+ import { e as T } from "./index-CBvqcbIU.js";
2
+ import U, { PureComponent as q } from "react";
3
+ import { v as H } from "./CaseDetailContent-DT5nCtRT.js";
4
+ var z = function(i, n) {
5
+ return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
6
+ e.__proto__ = t;
7
+ } || function(e, t) {
8
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
9
+ }, z(i, n);
10
+ };
11
+ function P(i, n) {
12
+ if (typeof n != "function" && n !== null)
13
+ throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
14
+ z(i, n);
15
+ function e() {
16
+ this.constructor = i;
17
+ }
18
+ i.prototype = n === null ? Object.create(n) : (e.prototype = n.prototype, new e());
19
+ }
20
+ var b = function() {
21
+ return b = Object.assign || function(n) {
22
+ for (var e, t = 1, r = arguments.length; t < r; t++) {
23
+ e = arguments[t];
24
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]);
25
+ }
26
+ return n;
27
+ }, b.apply(this, arguments);
28
+ };
29
+ function k(i, n) {
30
+ var e = {};
31
+ for (var t in i) Object.prototype.hasOwnProperty.call(i, t) && n.indexOf(t) < 0 && (e[t] = i[t]);
32
+ if (i != null && typeof Object.getOwnPropertySymbols == "function")
33
+ for (var r = 0, t = Object.getOwnPropertySymbols(i); r < t.length; r++)
34
+ n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(i, t[r]) && (e[t[r]] = i[t[r]]);
35
+ return e;
36
+ }
37
+ function x(i, n, e, t) {
38
+ function r(o) {
39
+ return o instanceof e ? o : new e(function(a) {
40
+ a(o);
41
+ });
42
+ }
43
+ return new (e || (e = Promise))(function(o, a) {
44
+ function c(f) {
45
+ try {
46
+ s(t.next(f));
47
+ } catch (u) {
48
+ a(u);
49
+ }
50
+ }
51
+ function l(f) {
52
+ try {
53
+ s(t.throw(f));
54
+ } catch (u) {
55
+ a(u);
56
+ }
57
+ }
58
+ function s(f) {
59
+ f.done ? o(f.value) : r(f.value).then(c, l);
60
+ }
61
+ s((t = t.apply(i, n || [])).next());
62
+ });
63
+ }
64
+ function A(i, n) {
65
+ var e = { label: 0, sent: function() {
66
+ if (o[0] & 1) throw o[1];
67
+ return o[1];
68
+ }, trys: [], ops: [] }, t, r, o, a = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
69
+ return a.next = c(0), a.throw = c(1), a.return = c(2), typeof Symbol == "function" && (a[Symbol.iterator] = function() {
70
+ return this;
71
+ }), a;
72
+ function c(s) {
73
+ return function(f) {
74
+ return l([s, f]);
75
+ };
76
+ }
77
+ function l(s) {
78
+ if (t) throw new TypeError("Generator is already executing.");
79
+ for (; a && (a = 0, s[0] && (e = 0)), e; ) try {
80
+ if (t = 1, r && (o = s[0] & 2 ? r.return : s[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, s[1])).done) return o;
81
+ switch (r = 0, o && (s = [s[0] & 2, o.value]), s[0]) {
82
+ case 0:
83
+ case 1:
84
+ o = s;
85
+ break;
86
+ case 4:
87
+ return e.label++, { value: s[1], done: !1 };
88
+ case 5:
89
+ e.label++, r = s[1], s = [0];
90
+ continue;
91
+ case 7:
92
+ s = e.ops.pop(), e.trys.pop();
93
+ continue;
94
+ default:
95
+ if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (s[0] === 6 || s[0] === 2)) {
96
+ e = 0;
97
+ continue;
98
+ }
99
+ if (s[0] === 3 && (!o || s[1] > o[0] && s[1] < o[3])) {
100
+ e.label = s[1];
101
+ break;
102
+ }
103
+ if (s[0] === 6 && e.label < o[1]) {
104
+ e.label = o[1], o = s;
105
+ break;
106
+ }
107
+ if (o && e.label < o[2]) {
108
+ e.label = o[2], e.ops.push(s);
109
+ break;
110
+ }
111
+ o[2] && e.ops.pop(), e.trys.pop();
112
+ continue;
113
+ }
114
+ s = n.call(i, e);
115
+ } catch (f) {
116
+ s = [6, f], r = 0;
117
+ } finally {
118
+ t = o = 0;
119
+ }
120
+ if (s[0] & 5) throw s[1];
121
+ return { value: s[0] ? s[1] : void 0, done: !0 };
122
+ }
123
+ }
124
+ var v = {}, p = {}, N = {};
125
+ (function(i) {
126
+ Object.defineProperty(i, "__esModule", {
127
+ value: !0
128
+ }), i.default = void 0;
129
+ var n = 1;
130
+ i.default = function() {
131
+ return "".concat(n++);
132
+ };
133
+ })(N);
134
+ var S = {}, O = {}, R = {};
135
+ (function(i) {
136
+ Object.defineProperty(i, "__esModule", {
137
+ value: !0
138
+ }), i.default = void 0, i.default = function(e) {
139
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 60, r = null;
140
+ return function() {
141
+ for (var o = this, a = arguments.length, c = new Array(a), l = 0; l < a; l++)
142
+ c[l] = arguments[l];
143
+ clearTimeout(r), r = setTimeout(function() {
144
+ e.apply(o, c);
145
+ }, t);
146
+ };
147
+ };
148
+ })(R);
149
+ var d = {};
150
+ Object.defineProperty(d, "__esModule", {
151
+ value: !0
152
+ });
153
+ d.SizeSensorId = d.SensorTabIndex = d.SensorClassName = void 0;
154
+ d.SizeSensorId = "size-sensor-id";
155
+ d.SensorClassName = "size-sensor-object";
156
+ d.SensorTabIndex = "-1";
157
+ Object.defineProperty(O, "__esModule", {
158
+ value: !0
159
+ });
160
+ O.createSensor = void 0;
161
+ var F = V(R), E = d;
162
+ function V(i) {
163
+ return i && i.__esModule ? i : { default: i };
164
+ }
165
+ O.createSensor = function(n, e) {
166
+ var t = void 0, r = [], o = function() {
167
+ getComputedStyle(n).position === "static" && (n.style.position = "relative");
168
+ var u = document.createElement("object");
169
+ return u.onload = function() {
170
+ u.contentDocument.defaultView.addEventListener("resize", a), a();
171
+ }, u.style.display = "block", u.style.position = "absolute", u.style.top = "0", u.style.left = "0", u.style.height = "100%", u.style.width = "100%", u.style.overflow = "hidden", u.style.pointerEvents = "none", u.style.zIndex = "-1", u.style.opacity = "0", u.setAttribute("class", E.SensorClassName), u.setAttribute("tabindex", E.SensorTabIndex), u.type = "text/html", n.appendChild(u), u.data = "about:blank", u;
172
+ }, a = (0, F.default)(function() {
173
+ r.forEach(function(f) {
174
+ f(n);
175
+ });
176
+ }), c = function(u) {
177
+ t || (t = o()), r.indexOf(u) === -1 && r.push(u);
178
+ }, l = function() {
179
+ t && t.parentNode && (t.contentDocument && t.contentDocument.defaultView.removeEventListener("resize", a), t.parentNode.removeChild(t), n.removeAttribute(E.SizeSensorId), t = void 0, r = [], e && e());
180
+ }, s = function(u) {
181
+ var h = r.indexOf(u);
182
+ h !== -1 && r.splice(h, 1), r.length === 0 && t && l();
183
+ };
184
+ return {
185
+ element: n,
186
+ bind: c,
187
+ destroy: l,
188
+ unbind: s
189
+ };
190
+ };
191
+ var m = {};
192
+ Object.defineProperty(m, "__esModule", {
193
+ value: !0
194
+ });
195
+ m.createSensor = void 0;
196
+ var W = d, B = G(R);
197
+ function G(i) {
198
+ return i && i.__esModule ? i : { default: i };
199
+ }
200
+ m.createSensor = function(n, e) {
201
+ var t = void 0, r = [], o = (0, B.default)(function() {
202
+ r.forEach(function(f) {
203
+ f(n);
204
+ });
205
+ }), a = function() {
206
+ var u = new ResizeObserver(o);
207
+ return u.observe(n), o(), u;
208
+ }, c = function(u) {
209
+ t || (t = a()), r.indexOf(u) === -1 && r.push(u);
210
+ }, l = function() {
211
+ t && t.disconnect(), r = [], t = void 0, n.removeAttribute(W.SizeSensorId), e && e();
212
+ }, s = function(u) {
213
+ var h = r.indexOf(u);
214
+ h !== -1 && r.splice(h, 1), r.length === 0 && t && l();
215
+ };
216
+ return {
217
+ element: n,
218
+ bind: c,
219
+ destroy: l,
220
+ unbind: s
221
+ };
222
+ };
223
+ Object.defineProperty(S, "__esModule", {
224
+ value: !0
225
+ });
226
+ S.createSensor = void 0;
227
+ var K = O, $ = m;
228
+ S.createSensor = typeof ResizeObserver < "u" ? $.createSensor : K.createSensor;
229
+ Object.defineProperty(p, "__esModule", {
230
+ value: !0
231
+ });
232
+ p.removeSensor = p.getSensor = p.Sensors = void 0;
233
+ var J = X(N), Q = S, j = d;
234
+ function X(i) {
235
+ return i && i.__esModule ? i : { default: i };
236
+ }
237
+ var g = p.Sensors = {};
238
+ function D(i) {
239
+ i && g[i] && delete g[i];
240
+ }
241
+ p.getSensor = function(n) {
242
+ var e = n.getAttribute(j.SizeSensorId);
243
+ if (e && g[e])
244
+ return g[e];
245
+ var t = (0, J.default)();
246
+ n.setAttribute(j.SizeSensorId, t);
247
+ var r = (0, Q.createSensor)(n, function() {
248
+ return D(t);
249
+ });
250
+ return g[t] = r, r;
251
+ };
252
+ p.removeSensor = function(n) {
253
+ var e = n.element.getAttribute(j.SizeSensorId);
254
+ n.destroy(), D(e);
255
+ };
256
+ var M, C;
257
+ Object.defineProperty(v, "__esModule", {
258
+ value: !0
259
+ });
260
+ v.ver = C = v.clear = M = v.bind = void 0;
261
+ var I = p;
262
+ M = v.bind = function(n, e) {
263
+ var t = (0, I.getSensor)(n);
264
+ return t.bind(e), function() {
265
+ t.unbind(e);
266
+ };
267
+ };
268
+ C = v.clear = function(n) {
269
+ var e = (0, I.getSensor)(n);
270
+ (0, I.removeSensor)(e);
271
+ };
272
+ v.ver = "1.0.3";
273
+ function L(i, n) {
274
+ var e = {};
275
+ return n.forEach(function(t) {
276
+ e[t] = i[t];
277
+ }), e;
278
+ }
279
+ function w(i) {
280
+ return typeof i == "function";
281
+ }
282
+ function Y(i) {
283
+ return typeof i == "string";
284
+ }
285
+ var Z = function i(n, e) {
286
+ if (n === e) return !0;
287
+ if (n && e && typeof n == "object" && typeof e == "object") {
288
+ if (n.constructor !== e.constructor) return !1;
289
+ var t, r, o;
290
+ if (Array.isArray(n)) {
291
+ if (t = n.length, t != e.length) return !1;
292
+ for (r = t; r-- !== 0; )
293
+ if (!i(n[r], e[r])) return !1;
294
+ return !0;
295
+ }
296
+ if (n.constructor === RegExp) return n.source === e.source && n.flags === e.flags;
297
+ if (n.valueOf !== Object.prototype.valueOf) return n.valueOf() === e.valueOf();
298
+ if (n.toString !== Object.prototype.toString) return n.toString() === e.toString();
299
+ if (o = Object.keys(n), t = o.length, t !== Object.keys(e).length) return !1;
300
+ for (r = t; r-- !== 0; )
301
+ if (!Object.prototype.hasOwnProperty.call(e, o[r])) return !1;
302
+ for (r = t; r-- !== 0; ) {
303
+ var a = o[r];
304
+ if (!i(n[a], e[a])) return !1;
305
+ }
306
+ return !0;
307
+ }
308
+ return n !== n && e !== e;
309
+ };
310
+ const y = /* @__PURE__ */ H(Z);
311
+ var ee = (
312
+ /** @class */
313
+ function(i) {
314
+ P(n, i);
315
+ function n(e) {
316
+ var t = i.call(this, e) || this;
317
+ return t.echarts = e.echarts, t.ele = null, t.isInitialResize = !0, t.eventHandlerRefs = {}, t;
318
+ }
319
+ return n.prototype.componentDidMount = function() {
320
+ this.renderNewEcharts();
321
+ }, n.prototype.componentDidUpdate = function(e) {
322
+ var t = this.props.shouldSetOption;
323
+ if (!(w(t) && !t(e, this.props))) {
324
+ if (!y(e.theme, this.props.theme) || !y(e.opts, this.props.opts)) {
325
+ this.dispose(), this.renderNewEcharts();
326
+ return;
327
+ }
328
+ var r = this.getEchartsInstance();
329
+ y(e.onEvents, this.props.onEvents) || (this.unbindEvents(r), this.bindEvents(r, this.props.onEvents));
330
+ var o = ["option", "notMerge", "replaceMerge", "lazyUpdate", "showLoading", "loadingOption"];
331
+ y(L(this.props, o), L(e, o)) || this.updateEChartsOption(), (!y(e.style, this.props.style) || !y(e.className, this.props.className)) && this.resize();
332
+ }
333
+ }, n.prototype.componentWillUnmount = function() {
334
+ this.dispose();
335
+ }, n.prototype.initEchartsInstance = function() {
336
+ return x(this, void 0, void 0, function() {
337
+ var e = this;
338
+ return A(this, function(t) {
339
+ return [2, new Promise(function(r) {
340
+ e.echarts.init(e.ele, e.props.theme, e.props.opts);
341
+ var o = e.getEchartsInstance();
342
+ o.on("finished", function() {
343
+ var a = e.ele.clientWidth, c = e.ele.clientHeight;
344
+ e.echarts.dispose(e.ele);
345
+ var l = b({ width: a, height: c }, e.props.opts);
346
+ r(e.echarts.init(e.ele, e.props.theme, l));
347
+ });
348
+ })];
349
+ });
350
+ });
351
+ }, n.prototype.getEchartsInstance = function() {
352
+ return this.echarts.getInstanceByDom(this.ele);
353
+ }, n.prototype.dispose = function() {
354
+ if (this.ele) {
355
+ try {
356
+ C(this.ele);
357
+ } catch (e) {
358
+ console.warn(e);
359
+ }
360
+ this.echarts.dispose(this.ele);
361
+ }
362
+ }, n.prototype.renderNewEcharts = function() {
363
+ return x(this, void 0, void 0, function() {
364
+ var e, t, r, o, a, c, l = this;
365
+ return A(this, function(s) {
366
+ switch (s.label) {
367
+ case 0:
368
+ return e = this.props, t = e.onEvents, r = e.onChartReady, o = e.autoResize, a = o === void 0 ? !0 : o, [4, this.initEchartsInstance()];
369
+ case 1:
370
+ return s.sent(), c = this.updateEChartsOption(), this.bindEvents(c, t || {}), w(r) && r(c), this.ele && a && M(this.ele, function() {
371
+ l.resize();
372
+ }), [
373
+ 2
374
+ /*return*/
375
+ ];
376
+ }
377
+ });
378
+ });
379
+ }, n.prototype.bindEvents = function(e, t) {
380
+ var r = this, o = function(c, l) {
381
+ if (Y(c) && w(l)) {
382
+ var s = function(f) {
383
+ l(f, e);
384
+ };
385
+ e.on(c, s), r.eventHandlerRefs[c] = s;
386
+ }
387
+ };
388
+ for (var a in t)
389
+ Object.prototype.hasOwnProperty.call(t, a) && o(a, t[a]);
390
+ }, n.prototype.unbindEvents = function(e) {
391
+ for (var t = 0, r = Object.entries(this.eventHandlerRefs); t < r.length; t++) {
392
+ var o = r[t], a = o[0], c = o[1];
393
+ e.off(a, c);
394
+ }
395
+ this.eventHandlerRefs = {};
396
+ }, n.prototype.updateEChartsOption = function() {
397
+ var e = this.props, t = e.option, r = e.notMerge, o = r === void 0 ? !1 : r, a = e.replaceMerge, c = a === void 0 ? null : a, l = e.lazyUpdate, s = l === void 0 ? !1 : l, f = e.showLoading, u = e.loadingOption, h = u === void 0 ? null : u, _ = this.getEchartsInstance();
398
+ return _.setOption(t, { notMerge: o, replaceMerge: c, lazyUpdate: s }), f ? _.showLoading(h) : _.hideLoading(), _;
399
+ }, n.prototype.resize = function() {
400
+ var e = this.getEchartsInstance();
401
+ if (!this.isInitialResize)
402
+ try {
403
+ e.resize({
404
+ width: "auto",
405
+ height: "auto"
406
+ });
407
+ } catch (t) {
408
+ console.warn(t);
409
+ }
410
+ this.isInitialResize = !1;
411
+ }, n.prototype.render = function() {
412
+ var e = this, t = this.props, r = t.style, o = t.className, a = o === void 0 ? "" : o;
413
+ t.echarts, t.option, t.theme, t.notMerge, t.replaceMerge, t.lazyUpdate, t.showLoading, t.loadingOption, t.opts, t.onChartReady, t.onEvents, t.shouldSetOption, t.autoResize;
414
+ var c = k(t, ["style", "className", "echarts", "option", "theme", "notMerge", "replaceMerge", "lazyUpdate", "showLoading", "loadingOption", "opts", "onChartReady", "onEvents", "shouldSetOption", "autoResize"]), l = b({ height: 300 }, r);
415
+ return U.createElement("div", b({ ref: function(s) {
416
+ e.ele = s;
417
+ }, style: l, className: "echarts-for-react ".concat(a) }, c));
418
+ }, n;
419
+ }(q)
420
+ ), oe = (
421
+ /** @class */
422
+ function(i) {
423
+ P(n, i);
424
+ function n(e) {
425
+ var t = i.call(this, e) || this;
426
+ return t.echarts = T, t;
427
+ }
428
+ return n;
429
+ }(ee)
430
+ );
431
+ export {
432
+ oe as E
433
+ };
package/dist/index.js CHANGED
@@ -1,11 +1,13 @@
1
- import { T as o } from "./TrainingModelContainer-DpW-uB8O.js";
2
- import { M as t, S as s } from "./ModelEditor-BPJsPR0S.js";
3
- import { c as n, r as p, a as c } from "./adapters-D1FFZFoA.js";
1
+ import { T as o } from "./TrainingModelContainer-yi8W6KFl.js";
2
+ import { M as t, S as s } from "./ModelEditor-CwR67DFQ.js";
3
+ import { s as n } from "./CaseDetailContent-DT5nCtRT.js";
4
+ import { c as p, r as d, a as f } from "./adapters-BbCnXSYo.js";
4
5
  export {
5
6
  t as ModelEditor,
6
7
  s as StepByStepCreator,
7
8
  o as TrainingRuntime,
8
- n as createLocalStorageCreatorPersistence,
9
- p as resolveCreatorNotify,
10
- c as resolveTokenProvider
9
+ p as createLocalStorageCreatorPersistence,
10
+ d as resolveCreatorNotify,
11
+ f as resolveTokenProvider,
12
+ n as setTokenInvalidHandler
11
13
  };
@@ -0,0 +1,29 @@
1
+ const w = (a, t) => a === "assessment" || a === "select" ? a : t != null && t.options ? "select" : "assessment";
2
+ function N(a, t, l) {
3
+ const s = (l == null ? void 0 : l.baseRatio) ?? 0.6, m = a.reduce((e, n) => e + (n.weight ?? 1), 0) || 1, c = (e) => 100 * (e.weight ?? 1) / m, i = a.length ? 100 / a.length : 0, h = (l == null ? void 0 : l.falseMarkPenalty) === void 0 || l.falseMarkPenalty === "half" ? i / 2 : Number(l.falseMarkPenalty), y = new Map(t.map((e) => [e.fieldName, e])), M = new Set(a.map((e) => e.fieldName));
4
+ let d = 0, u = 0, p = 0;
5
+ const b = a.map((e) => {
6
+ const n = y.get(e.fieldName), r = !!n, f = r && n.typeId === e.typeId;
7
+ return r ? (u++, d += f ? c(e) : c(e) * s) : p++, { fieldName: e.fieldName, hit: r, typeCorrect: f };
8
+ }), o = t.filter((e) => !M.has(e.fieldName)).map((e) => e.fieldName);
9
+ return { score: Math.max(0, Math.min(100, Math.round(d - o.length * h))), found: u, missed: p, wrong: o.length, perAnswer: b, falseMarks: o };
10
+ }
11
+ const k = (a) => ({
12
+ ...a,
13
+ rawRef: a.sourceStepId
14
+ }), I = (a = [], t) => a.find((l) => l.sourceType === t), S = (a = []) => a.map((t, l) => ({
15
+ id: `${t.sourceStepId}-${l}`,
16
+ label: t.title,
17
+ category: "风险性",
18
+ result: t.riskFlags && t.riskFlags.length > 0 ? "warning" : "pass",
19
+ comment: t.summary,
20
+ evidence: t.keyFacts.map((s) => `${s.label}:${s.value}`),
21
+ stepId: t.rawRef || t.sourceStepId
22
+ }));
23
+ export {
24
+ k as a,
25
+ S as b,
26
+ N as c,
27
+ I as f,
28
+ w as n
29
+ };
package/dist/runtime.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r } from "./TrainingModelContainer-DpW-uB8O.js";
1
+ import { T as r } from "./TrainingModelContainer-yi8W6KFl.js";
2
2
  export {
3
3
  r as TrainingRuntime
4
4
  };