@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.
- package/README.md +481 -15
- package/dist/{ArrowLeftOutlined-CiSQq3bL.js → ArrowLeftOutlined-BxA84GXs.js} +1 -1
- package/dist/ArrowLeftOutlined-D785XjyB.js +12 -0
- package/dist/{AssessmentPlugin-Bx4VrBdV.js → AssessmentPlugin-D_iesmyg.js} +7 -7
- package/dist/AssessmentPlugin-zRr-IsdA.js +607 -0
- package/dist/CaseAnalysisPlugin-CXuQpkPd.js +2196 -0
- package/dist/CaseAnalysisPlugin-DytlXsRD.js +2196 -0
- package/dist/CaseDetailContent-DT5nCtRT.js +28613 -0
- package/dist/CaseDetailContent-Y7Q430MG.js +28595 -0
- package/dist/{CharacterDialoguePanel-Bvdab3qj.js → CharacterDialoguePanel-CdtUl-Sv.js} +178 -139
- package/dist/CharacterDialoguePanel-D_4YNFZv.js +815 -0
- package/dist/{CheckCircleFilled-Byo8CDfW.js → CheckCircleFilled-CnslIY7j.js} +1 -1
- package/dist/CheckCircleFilled-NvZaC2sk.js +12 -0
- package/dist/DecisionMakingPlugin-B_KQUFzW.js +1385 -0
- package/dist/DecisionMakingPlugin-ILLGek3S.js +1385 -0
- package/dist/{DecisionSelectPlugin-DtQ2KV34.js → DecisionSelectPlugin-BGQiHGBK.js} +20 -11
- package/dist/DecisionSelectPlugin-Bqmh6XGh.js +872 -0
- package/dist/{DecisionShared-Dh9oeQFT.js → DecisionShared-BHq1lEqt.js} +2 -2
- package/dist/DecisionShared-Be-zKZLT.js +65 -0
- package/dist/DeleteOutlined-BvMjU7m5.js +12 -0
- package/dist/DeleteOutlined-Dqy6M2LH.js +12 -0
- package/dist/{CustomLayoutRenderer--rnQrqQ2.js → DialogueFormPlugin-BpCeFadt.js} +22724 -21631
- package/dist/DialogueFormPlugin-CXlbxX-z.js +123617 -0
- package/dist/DialoguePlugin-CO7Nzv0K.js +596 -0
- package/dist/DialoguePlugin-DDNdsylz.js +596 -0
- package/dist/DocumentReviewPlugin-2CnKQwVG.js +1967 -0
- package/dist/DocumentReviewPlugin-qYYrnjvE.js +1967 -0
- package/dist/{EyeOutlined-XvOAKlLs.js → EyeOutlined-BrKCNjui.js} +1 -1
- package/dist/EyeOutlined-CW0tYV0f.js +12 -0
- package/dist/FormFillingPlugin-C3h8ySOZ.js +969 -0
- package/dist/FormFillingPlugin-CPmd76Qr.js +969 -0
- package/dist/HolderOutlined-CH0tShWu.js +12 -0
- package/dist/HolderOutlined-Dm6TBtqf.js +12 -0
- package/dist/ModelEditor-BjEbFloQ.js +11753 -0
- package/dist/ModelEditor-CwR67DFQ.js +11753 -0
- package/dist/{ProcessOperationPlugin-IijngDlX.js → ProcessOperationPlugin-1Lz431aC.js} +12 -12
- package/dist/ProcessOperationPlugin-BkmdG3ch.js +88 -0
- package/dist/QAPlugin-0C4kpq3J.js +172 -0
- package/dist/QAPlugin-UC8uywcg.js +172 -0
- package/dist/{ReloadOutlined-Daor2m11.js → ReloadOutlined-BZ92nlYF.js} +1 -1
- package/dist/ReloadOutlined-CYoPOwLl.js +12 -0
- package/dist/{SettingOutlined-CLEOgXB-.js → SettingOutlined-F466s0Ti.js} +33 -65
- package/dist/SettingOutlined-c2hikCfN.js +60 -0
- package/dist/StarFilled-Bilmj6UK.js +28 -0
- package/dist/StarFilled-CtH30fL0.js +28 -0
- package/dist/StrategyLabPlugin-CvO07sXV.js +12445 -0
- package/dist/StrategyLabPlugin-DUqZYctQ.js +12445 -0
- package/dist/ThunderboltOutlined-BpmoCKdV.js +28 -0
- package/dist/ThunderboltOutlined-DDQFi5Cv.js +28 -0
- package/dist/TrainingModelContainer-DqCsdC7C.js +11241 -0
- package/dist/TrainingModelContainer-yi8W6KFl.js +11241 -0
- package/dist/{UndoOutlined-ChUQYUul.js → UndoOutlined-6JZVzmdX.js} +26 -42
- package/dist/UndoOutlined-Dw6_9_OL.js +68 -0
- package/dist/{WarningFilled-1Rc4hr0C.js → WarningFilled-Cy1tvuQy.js} +1 -1
- package/dist/WarningFilled-lkr453eh.js +12 -0
- package/dist/{adapters-D1FFZFoA.js → adapters-BbCnXSYo.js} +2 -2
- package/dist/{analysisTools-CXyOvSZT.js → analysisTools-Cp5-3DaU.js} +59 -12
- package/dist/creator.js +4 -2
- package/dist/designTokens-walF_QkZ.js +23 -0
- package/dist/images/healthcare/bg.jpg +0 -0
- package/dist/{index-CYjdXPgc.js → index-C71iHgSs.js} +2640 -2722
- package/dist/{index-XuBVjlmu.js → index-CBvqcbIU.js} +7214 -7643
- package/dist/index-D94YNWTb.js +433 -0
- package/dist/index-DSYmOXnQ.js +6486 -0
- package/dist/index-fP97rKeQ.js +433 -0
- package/dist/index.js +8 -6
- package/dist/judgement-xTGXlDcn.js +29 -0
- package/dist/runtime.js +1 -1
- package/dist/sortable.esm-bm_c5vmI.js +3307 -0
- package/dist/types.js +1 -1
- package/dist/useDialogueLogic-D1lkUKUZ.js +576 -0
- package/dist/useDialogueLogic-vOJ9XRNP.js +576 -0
- package/dist-types/client/src/admin/CaseDataEditor.d.ts +20 -0
- package/dist-types/client/src/admin/CaseEditor.d.ts +19 -0
- package/dist-types/client/src/admin/DialogueFormCheckRulesEditor.d.ts +11 -0
- package/dist-types/client/src/admin/DialogueFormInitDataEditor.d.ts +31 -0
- package/dist-types/client/src/admin/InitDataEditors.d.ts +7 -0
- package/dist-types/client/src/admin/ModelEditor.d.ts +11 -0
- package/dist-types/client/src/admin/ModelPreview.d.ts +13 -0
- package/dist-types/client/src/admin/OptionSelector.d.ts +32 -0
- package/dist-types/client/src/admin/StageStepEditor.d.ts +20 -0
- package/dist-types/client/src/admin/StepAnswerKeyEditor.d.ts +19 -0
- package/dist-types/client/src/admin/StepByStepCreator.d.ts +27 -0
- package/dist-types/client/src/admin/components/AbilityMapEditor.d.ts +12 -0
- package/dist-types/client/src/admin/components/CasePreview.d.ts +8 -0
- package/dist-types/client/src/admin/components/StepAbilitySelector.d.ts +9 -0
- package/dist-types/client/src/admin/constants/creatorConstants.d.ts +39 -0
- package/dist-types/client/src/admin/editors/CaseAnalysisEditor.d.ts +11 -0
- package/dist-types/client/src/admin/editors/DecisionMakingEditor.d.ts +7 -0
- package/dist-types/client/src/admin/editors/DialogueEditor.d.ts +12 -0
- package/dist-types/client/src/admin/editors/DocumentReviewEditor.d.ts +7 -0
- package/dist-types/client/src/admin/editors/DocumentReviewRuntimeRulesEditor.d.ts +15 -0
- package/dist-types/client/src/admin/editors/FormFillingEditor.d.ts +33 -0
- package/dist-types/client/src/admin/editors/ModelUIConfigEditor.d.ts +5 -0
- package/dist-types/client/src/admin/editors/QAEditor.d.ts +6 -0
- package/dist-types/client/src/admin/editors/RouterEditors.d.ts +18 -0
- package/dist-types/client/src/admin/editors/StepBriefingEditor.d.ts +14 -0
- package/dist-types/client/src/admin/editors/StrategyLabEditor.d.ts +24 -0
- package/dist-types/client/src/admin/editors/decisionEditorParts.d.ts +18 -0
- package/dist-types/client/src/admin/editors/index.d.ts +8 -0
- package/dist-types/client/src/admin/editors/shared.d.ts +17 -0
- package/dist-types/client/src/admin/hooks/useStep1Intent.d.ts +16 -0
- package/dist-types/client/src/admin/hooks/useStep2Outline.d.ts +41 -0
- package/dist-types/client/src/admin/hooks/useStep3Details.d.ts +123 -0
- package/dist-types/client/src/admin/hooks/useStep4Cases.d.ts +48 -0
- package/dist-types/client/src/admin/hooks/useStep5Validation.d.ts +16 -0
- package/dist-types/client/src/admin/landingValidation.d.ts +74 -0
- package/dist-types/client/src/admin/schemaFieldUtils.d.ts +55 -0
- package/dist-types/client/src/admin/services.d.ts +461 -0
- package/dist-types/client/src/admin/shared-editors.d.ts +31 -0
- package/dist-types/client/src/admin/types/creatorArtifacts.d.ts +140 -0
- package/dist-types/client/src/components/AbilityMapView.d.ts +15 -0
- package/dist-types/client/src/components/CaseDetail/CaseDetailContent.d.ts +12 -0
- package/dist-types/client/src/components/ConversationalDataCollector/IntentConfirmPanel.d.ts +20 -0
- package/dist-types/client/src/components/ConversationalDataCollector/index.d.ts +7 -0
- package/dist-types/client/src/components/ConversationalDataCollector/intentState.d.ts +24 -0
- package/dist-types/client/src/components/ConversationalDataCollector/types.d.ts +95 -0
- package/dist-types/client/src/components/ConversationalDataCollector/utils.d.ts +62 -0
- package/dist-types/client/src/components/CustomLayoutRenderer.d.ts +8 -0
- package/dist-types/client/src/components/MarkdownRenderer.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/VisualInputComponents.d.ts +85 -0
- package/dist-types/client/src/components/StrategyLabScene/components/AdversarialView.d.ts +18 -0
- package/dist-types/client/src/components/StrategyLabScene/components/BottomBar.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CharacterCard.d.ts +14 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CharacterDialoguePanel.d.ts +32 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CollaborativeView.d.ts +20 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ComparisonView.d.ts +16 -0
- package/dist-types/client/src/components/StrategyLabScene/components/DecisionInput.d.ts +27 -0
- package/dist-types/client/src/components/StrategyLabScene/components/DecisionSwitcher.d.ts +14 -0
- package/dist-types/client/src/components/StrategyLabScene/components/EvaluationReport.d.ts +13 -0
- package/dist-types/client/src/components/StrategyLabScene/components/NodeChainPanels.d.ts +32 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ProgressSteps.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SandboxView.d.ts +19 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ScenarioPanel.d.ts +17 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SimulationAnimation.d.ts +13 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SimulationResult.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/components/StressTestView.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/themeMatching.d.ts +21 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/education.d.ts +45 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/healthcare.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/index.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/professional.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/technology.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/types.d.ts +82 -0
- package/dist-types/client/src/components/StrategyLabScene/views/UnifiedStrategyLabView.d.ts +72 -0
- package/dist-types/client/src/components/TrainingEngine/BriefingQAChat.d.ts +19 -0
- package/dist-types/client/src/components/TrainingEngine/CaseInfoModal.d.ts +12 -0
- package/dist-types/client/src/components/TrainingEngine/CaseSelector.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/ClassicView.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/DashboardHomePage.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/EnhancedStudentProfilePanel.d.ts +9 -0
- package/dist-types/client/src/components/TrainingEngine/EvaluationPanel.d.ts +8 -0
- package/dist-types/client/src/components/TrainingEngine/GlobalQAPanel.d.ts +34 -0
- package/dist-types/client/src/components/TrainingEngine/GuidanceHistoryDrawer.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/GuidancePanel.d.ts +3 -0
- package/dist-types/client/src/components/TrainingEngine/ImmersiveGameView.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/PluginRenderer.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/ProgressTracker.d.ts +3 -0
- package/dist-types/client/src/components/TrainingEngine/StageAssessingOverlay.d.ts +17 -0
- package/dist-types/client/src/components/TrainingEngine/StageAssessmentPanel.d.ts +10 -0
- package/dist-types/client/src/components/TrainingEngine/StepExecutor.d.ts +20 -0
- package/dist-types/client/src/components/TrainingEngine/StepNodeMap.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/StudentProfilePanel.d.ts +6 -0
- package/dist-types/client/src/components/TrainingEngine/ThemeContext.d.ts +8 -0
- package/dist-types/client/src/components/TrainingEngine/TrainingMaterialsSidebar.d.ts +21 -0
- package/dist-types/client/src/components/TrainingEngine/TrainingModelContainer.d.ts +42 -0
- package/dist-types/client/src/components/TrainingEngine/ViewProps.d.ts +37 -0
- package/dist-types/client/src/components/TrainingEngine/profileDataSelectors.d.ts +23 -0
- package/dist-types/client/src/components/TrainingEngine/stepInitData.d.ts +42 -0
- package/dist-types/client/src/components/TrainingEngine/targetAbilityUtils.d.ts +11 -0
- package/dist-types/client/src/components/VisualizationRenderer/ChartRenderer.d.ts +12 -0
- package/dist-types/client/src/components/VisualizationRenderer/types.d.ts +41 -0
- package/dist-types/client/src/config/appConfig.d.ts +15 -0
- package/dist-types/client/src/configs/agentConfig.d.ts +66 -0
- package/dist-types/client/src/configs/intentDiscoveryConfig.d.ts +22 -0
- package/dist-types/client/src/data/mockTrainingModel.d.ts +10 -0
- package/dist-types/client/src/hooks/useAIService.d.ts +17 -0
- package/dist-types/client/src/hooks/useDialogueLogic.d.ts +53 -0
- package/dist-types/client/src/hooks/useFormFillingLogic.d.ts +26 -0
- package/dist-types/client/src/hooks/useFormRealtimeGuidance.d.ts +45 -0
- package/dist-types/client/src/hooks/useRealtimeGuidance.d.ts +66 -0
- package/dist-types/client/src/hooks/useStageAssessment.d.ts +8 -0
- package/dist-types/client/src/hooks/useStepExecution.d.ts +14 -0
- package/dist-types/client/src/hooks/useTrainingModel.d.ts +30 -0
- package/dist-types/client/src/lib/creator.d.ts +1 -0
- package/dist-types/client/src/lib/index.d.ts +1 -0
- package/dist-types/client/src/lib/types.d.ts +113 -22
- package/dist-types/client/src/plugins/AssessmentPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/CaseAnalysisPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/CaseAnalysisPluginView.d.ts +26 -0
- package/dist-types/client/src/plugins/DecisionSelectPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/DialogueFormPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/DialogueFormPluginView.d.ts +37 -0
- package/dist-types/client/src/plugins/DialoguePlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/DialoguePluginView.d.ts +44 -0
- package/dist-types/client/src/plugins/DocumentReview/DocumentCard.d.ts +47 -0
- package/dist-types/client/src/plugins/DocumentReview/LayoutComponents.d.ts +47 -0
- package/dist-types/client/src/plugins/DocumentReview/MarkListPanel.d.ts +51 -0
- package/dist-types/client/src/plugins/DocumentReview/MarkModal.d.ts +37 -0
- package/dist-types/client/src/plugins/DocumentReview/ResultPanel.d.ts +32 -0
- package/dist-types/client/src/plugins/DocumentReview/Toolbar.d.ts +31 -0
- package/dist-types/client/src/plugins/DocumentReview/designTokens.d.ts +76 -0
- package/dist-types/client/src/plugins/DocumentReviewPlugin.d.ts +14 -0
- package/dist-types/client/src/plugins/ProcessOperationPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/QAPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/StrategyLabPlugin.d.ts +7 -0
- package/dist-types/client/src/plugins/decision-making/DecisionMakingPlugin.d.ts +4 -0
- package/dist-types/client/src/plugins/decision-making/DecisionWorkspace.d.ts +23 -0
- package/dist-types/client/src/plugins/decision-making/MaterialsPanel.d.ts +18 -0
- package/dist-types/client/src/plugins/decision-making/logic.d.ts +46 -0
- package/dist-types/client/src/plugins/decision-making/scoring.d.ts +79 -0
- package/dist-types/client/src/plugins/decision-making/styles.d.ts +743 -0
- package/dist-types/client/src/plugins/decision-making/types.d.ts +179 -0
- package/dist-types/client/src/plugins/form-filling/DocumentFormLayout.d.ts +22 -0
- package/dist-types/client/src/plugins/form-filling/FormAssistPanel.d.ts +20 -0
- package/dist-types/client/src/plugins/form-filling/FormFillingPlugin.d.ts +15 -0
- package/dist-types/client/src/plugins/form-filling/forms.d.ts +28 -0
- package/dist-types/client/src/plugins/form-filling/scoring.d.ts +86 -0
- package/dist-types/client/src/plugins/form-filling/useFormFilling.d.ts +42 -0
- package/dist-types/client/src/plugins/form-filling/validationRules.d.ts +26 -0
- package/dist-types/client/src/plugins/shared/DecisionShared.d.ts +54 -0
- package/dist-types/client/src/plugins/shared/FrameworkWidget.d.ts +19 -0
- package/dist-types/client/src/plugins/shared/PluginFooter.d.ts +4 -0
- package/dist-types/client/src/plugins/shared/PluginHeader.d.ts +4 -0
- package/dist-types/client/src/plugins/shared/analysisTools.d.ts +30 -0
- package/dist-types/client/src/plugins/shared/disturbanceUtils.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/index.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/jsonRepair.d.ts +39 -0
- package/dist-types/client/src/plugins/shared/judgement.d.ts +46 -0
- package/dist-types/client/src/plugins/shared/nodeChain.d.ts +15 -0
- package/dist-types/client/src/plugins/shared/renderFieldGrid.d.ts +16 -0
- package/dist-types/client/src/plugins/shared/reportBlocks.d.ts +33 -0
- package/dist-types/client/src/plugins/shared/reportEvaluation.d.ts +30 -0
- package/dist-types/client/src/plugins/shared/reportExport.d.ts +12 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/BlockPropertiesPanel.d.ts +9 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/BlockToolbox.d.ts +11 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/ReportWorkbench.d.ts +20 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/SortableBlock.d.ts +15 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/factory.d.ts +14 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/outlineDraft.d.ts +7 -0
- package/dist-types/client/src/plugins/shared/simulationEngine.d.ts +112 -0
- package/dist-types/client/src/plugins/shared/simulationModes.d.ts +21 -0
- package/dist-types/client/src/plugins/shared/themes.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/types.d.ts +1247 -0
- package/dist-types/client/src/services/AICommandHandler.d.ts +68 -0
- package/dist-types/client/src/services/cozeApiClient.d.ts +44 -0
- package/dist-types/client/src/services/mockApi.d.ts +48 -0
- package/dist-types/client/src/services/storageService.d.ts +88 -0
- package/dist-types/client/src/stores/abilityStore.d.ts +33 -0
- package/dist-types/client/src/stores/dialogueStore.d.ts +30 -0
- package/dist-types/client/src/stores/formRegistryStore.d.ts +45 -0
- package/dist-types/client/src/stores/guidanceStore.d.ts +17 -0
- package/dist-types/client/src/stores/stepEvidenceStore.d.ts +14 -0
- package/dist-types/client/src/stores/strategyLabStore.d.ts +46 -0
- package/dist-types/client/src/stores/trainingStore.d.ts +84 -0
- package/dist-types/client/src/types/ai-commands.d.ts +144 -0
- package/dist-types/client/src/types.d.ts +17 -0
- package/dist-types/client/src/utils/abilityMapGenerator.d.ts +27 -0
- package/dist-types/client/src/utils/formUtils.d.ts +66 -0
- package/dist-types/client/src/utils/rule-engine.d.ts +36 -0
- package/dist-types/shared/types/index.d.ts +592 -0
- package/package.json +5 -3
- package/dist/CaseAnalysisPlugin-CQvF9_zr.js +0 -416
- package/dist/DialogueFormPlugin-C9ssnVMr.js +0 -959
- package/dist/DialoguePlugin-DU00QpmQ.js +0 -416
- package/dist/DocumentReviewPlugin-HNOZY1T4.js +0 -977
- package/dist/FormFillingPlugin-DURWsioi.js +0 -445
- package/dist/ModelEditor-BPJsPR0S.js +0 -8264
- package/dist/PluginHeader-B-GESJmT.js +0 -87
- package/dist/QAPlugin-Bh_UjK1N.js +0 -184
- package/dist/RadarChart-C5ZM0kWt.js +0 -24963
- package/dist/StrategyLabPlugin-DGeZsr_7.js +0 -14361
- package/dist/ThunderboltOutlined-nH_FO_4A.js +0 -44
- package/dist/ToolOutlined-DtuNJDB2.js +0 -28
- package/dist/TrainingModelContainer-DpW-uB8O.js +0 -11883
- package/dist/WarningOutlined-5g1d66hO.js +0 -164
- package/dist/judgement-D_9i7x9S.js +0 -20
- package/dist/useDialogueLogic-IHELcN3X.js +0 -368
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import { c as H, j as o, i as $, e as M, a as N, r as B } from "./RadarChart-C5ZM0kWt.js";
|
|
2
|
-
import { Button as T, Tag as I, Card as z, Input as Y, message as F } from "antd";
|
|
3
|
-
import { u as V } from "./useDialogueLogic-IHELcN3X.js";
|
|
4
|
-
import { a as K } from "./judgement-D_9i7x9S.js";
|
|
5
|
-
import { useRef as O, useEffect as q } from "react";
|
|
6
|
-
import { P as L } from "./PluginHeader-B-GESJmT.js";
|
|
7
|
-
const { TextArea: J } = Y, Q = {
|
|
8
|
-
happy: { emoji: "😊", label: "开心", color: "#52c41a" },
|
|
9
|
-
confused: { emoji: "😕", label: "困惑", color: "#faad14" },
|
|
10
|
-
angry: { emoji: "😠", label: "不满", color: "#ff4d4f" }
|
|
11
|
-
};
|
|
12
|
-
function U(e) {
|
|
13
|
-
const d = new Date(e);
|
|
14
|
-
return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}`;
|
|
15
|
-
}
|
|
16
|
-
const X = ({
|
|
17
|
-
messages: e,
|
|
18
|
-
input: d,
|
|
19
|
-
aiResponding: c,
|
|
20
|
-
aiError: f,
|
|
21
|
-
dialogueLogCount: s,
|
|
22
|
-
scenario: g,
|
|
23
|
-
dialogueGoals: p,
|
|
24
|
-
tellerRoleName: u,
|
|
25
|
-
customerRoleName: x,
|
|
26
|
-
uiConfig: n,
|
|
27
|
-
onInputChange: b,
|
|
28
|
-
onSend: y,
|
|
29
|
-
onComplete: v
|
|
30
|
-
}) => {
|
|
31
|
-
const r = H(n.theme), h = n.showAvatar !== !1, C = n.chatAreaHeight || 420, i = n.tellerBubbleColor || r.primaryColor, R = n.customerBubbleColor || r.surfaceLightColor, E = n.showTimestamp !== !1, W = n.showEmotionTag !== !1, A = n.inputPlaceholder || "输入您的话术... (Shift+Enter换行,Enter发送)", P = n.submitButtonText || "完成对话", S = n.scenarioDisplay || "card", w = n.goalDisplay || "tags", t = r.borderRadius, k = O(null);
|
|
32
|
-
return q(() => {
|
|
33
|
-
var l;
|
|
34
|
-
(l = k.current) == null || l.scrollIntoView({ behavior: "smooth" });
|
|
35
|
-
}, [e, c]), /* @__PURE__ */ o.jsxs("div", { style: { padding: "20px", ...n.styleOverrides }, children: [
|
|
36
|
-
/* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: 12, marginBottom: 16 }, children: [
|
|
37
|
-
g && S !== "none" && /* @__PURE__ */ o.jsx("div", { style: { flex: 1, minWidth: 0 }, children: S === "banner" ? /* @__PURE__ */ o.jsx(L, { title: g, variant: "banner", theme: r, noMargin: !0 }) : /* @__PURE__ */ o.jsx(L, { title: g, variant: "card", theme: r, noMargin: !0 }) }),
|
|
38
|
-
/* @__PURE__ */ o.jsx(
|
|
39
|
-
T,
|
|
40
|
-
{
|
|
41
|
-
type: "default",
|
|
42
|
-
icon: /* @__PURE__ */ o.jsx($, {}),
|
|
43
|
-
onClick: v,
|
|
44
|
-
disabled: s === 0,
|
|
45
|
-
style: {
|
|
46
|
-
flexShrink: 0,
|
|
47
|
-
alignSelf: "flex-start",
|
|
48
|
-
marginLeft: !g || S === "none" ? "auto" : void 0,
|
|
49
|
-
borderRadius: t,
|
|
50
|
-
borderColor: r.primaryColor,
|
|
51
|
-
color: r.primaryColor
|
|
52
|
-
},
|
|
53
|
-
children: P
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] }),
|
|
57
|
-
p && p.length > 0 && w !== "none" && (w === "tags" ? /* @__PURE__ */ o.jsxs("div", { style: { marginBottom: 16 }, children: [
|
|
58
|
-
/* @__PURE__ */ o.jsx("div", { style: { fontSize: 13, fontWeight: 600, color: r.headerColor, marginBottom: 8 }, children: "对话目标:" }),
|
|
59
|
-
/* @__PURE__ */ o.jsx("div", { style: { display: "flex", gap: 8, flexWrap: "wrap" }, children: p.map((l, m) => /* @__PURE__ */ o.jsx(
|
|
60
|
-
I,
|
|
61
|
-
{
|
|
62
|
-
style: {
|
|
63
|
-
borderColor: r.primaryColor,
|
|
64
|
-
color: r.primaryColor,
|
|
65
|
-
borderRadius: 20,
|
|
66
|
-
padding: "2px 12px",
|
|
67
|
-
fontSize: 13,
|
|
68
|
-
background: "transparent"
|
|
69
|
-
},
|
|
70
|
-
children: l
|
|
71
|
-
},
|
|
72
|
-
m
|
|
73
|
-
)) })
|
|
74
|
-
] }) : w === "card" ? /* @__PURE__ */ o.jsx(
|
|
75
|
-
z,
|
|
76
|
-
{
|
|
77
|
-
size: "small",
|
|
78
|
-
style: {
|
|
79
|
-
marginBottom: 16,
|
|
80
|
-
borderRadius: t,
|
|
81
|
-
borderColor: r.borderColor
|
|
82
|
-
},
|
|
83
|
-
title: /* @__PURE__ */ o.jsx("span", { style: { fontSize: 13, fontWeight: 600, color: r.headerColor }, children: "对话目标" }),
|
|
84
|
-
children: /* @__PURE__ */ o.jsx("ul", { style: { margin: 0, paddingLeft: 20 }, children: p.map((l, m) => /* @__PURE__ */ o.jsx("li", { style: { fontSize: 13, color: "#595959", marginBottom: 4 }, children: l }, m)) })
|
|
85
|
-
}
|
|
86
|
-
) : /* @__PURE__ */ o.jsxs(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
style: {
|
|
90
|
-
marginBottom: 16,
|
|
91
|
-
padding: "12px 16px",
|
|
92
|
-
backgroundColor: r.backgroundColor,
|
|
93
|
-
borderRadius: t,
|
|
94
|
-
borderLeft: `4px solid ${r.primaryColor}`
|
|
95
|
-
},
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ o.jsx("div", { style: { fontSize: 13, fontWeight: 600, color: r.headerColor, marginBottom: 8 }, children: "对话目标" }),
|
|
98
|
-
p.map((l, m) => /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: 8, marginBottom: 4 }, children: [
|
|
99
|
-
/* @__PURE__ */ o.jsx($, { style: { color: r.primaryColor, marginTop: 3, fontSize: 13 } }),
|
|
100
|
-
/* @__PURE__ */ o.jsx("span", { style: { fontSize: 13, color: "#595959" }, children: l })
|
|
101
|
-
] }, m))
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
)),
|
|
105
|
-
/* @__PURE__ */ o.jsxs(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
className: "dialogue-chat-area",
|
|
109
|
-
style: {
|
|
110
|
-
borderRadius: t,
|
|
111
|
-
height: C,
|
|
112
|
-
overflowY: "auto",
|
|
113
|
-
marginBottom: 16,
|
|
114
|
-
padding: 16,
|
|
115
|
-
backgroundColor: r.surfaceColor,
|
|
116
|
-
border: `1px solid ${r.borderColor}`
|
|
117
|
-
},
|
|
118
|
-
children: [
|
|
119
|
-
e.map((l, m) => {
|
|
120
|
-
const a = l.role === "teller", j = l.emotion && l.emotion !== "neutral" ? Q[l.emotion] : null;
|
|
121
|
-
return /* @__PURE__ */ o.jsxs(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
style: {
|
|
125
|
-
marginBottom: 16,
|
|
126
|
-
display: "flex",
|
|
127
|
-
flexDirection: a ? "row-reverse" : "row",
|
|
128
|
-
alignItems: "flex-start",
|
|
129
|
-
gap: 10
|
|
130
|
-
},
|
|
131
|
-
children: [
|
|
132
|
-
h && /* @__PURE__ */ o.jsx(
|
|
133
|
-
"div",
|
|
134
|
-
{
|
|
135
|
-
style: {
|
|
136
|
-
width: 36,
|
|
137
|
-
height: 36,
|
|
138
|
-
borderRadius: "50%",
|
|
139
|
-
backgroundColor: a ? i : "#bfbfbf",
|
|
140
|
-
color: "#fff",
|
|
141
|
-
display: "flex",
|
|
142
|
-
alignItems: "center",
|
|
143
|
-
justifyContent: "center",
|
|
144
|
-
fontSize: 14,
|
|
145
|
-
fontWeight: 600,
|
|
146
|
-
flexShrink: 0
|
|
147
|
-
},
|
|
148
|
-
children: a ? u[0] : x[0]
|
|
149
|
-
}
|
|
150
|
-
),
|
|
151
|
-
/* @__PURE__ */ o.jsxs("div", { style: { maxWidth: "70%" }, children: [
|
|
152
|
-
/* @__PURE__ */ o.jsxs(
|
|
153
|
-
"div",
|
|
154
|
-
{
|
|
155
|
-
style: {
|
|
156
|
-
fontSize: 12,
|
|
157
|
-
color: "#8c8c8c",
|
|
158
|
-
marginBottom: 4,
|
|
159
|
-
textAlign: a ? "right" : "left"
|
|
160
|
-
},
|
|
161
|
-
children: [
|
|
162
|
-
a ? u : x,
|
|
163
|
-
W && j && /* @__PURE__ */ o.jsxs(
|
|
164
|
-
I,
|
|
165
|
-
{
|
|
166
|
-
color: j.color,
|
|
167
|
-
style: { marginLeft: 6, fontSize: 11, lineHeight: "18px", padding: "0 6px" },
|
|
168
|
-
children: [
|
|
169
|
-
j.emoji,
|
|
170
|
-
" ",
|
|
171
|
-
j.label
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
),
|
|
178
|
-
/* @__PURE__ */ o.jsx(
|
|
179
|
-
"div",
|
|
180
|
-
{
|
|
181
|
-
style: {
|
|
182
|
-
padding: "10px 14px",
|
|
183
|
-
borderRadius: a ? `${t}px 2px ${t}px ${t}px` : `2px ${t}px ${t}px ${t}px`,
|
|
184
|
-
backgroundColor: a ? i : R,
|
|
185
|
-
color: a ? "#fff" : "#262626",
|
|
186
|
-
boxShadow: "0 1px 4px rgba(0,0,0,0.08)",
|
|
187
|
-
border: a ? void 0 : `1px solid ${r.borderColor}`,
|
|
188
|
-
lineHeight: 1.6,
|
|
189
|
-
fontSize: 14
|
|
190
|
-
},
|
|
191
|
-
children: l.content
|
|
192
|
-
}
|
|
193
|
-
),
|
|
194
|
-
E && /* @__PURE__ */ o.jsx(
|
|
195
|
-
"div",
|
|
196
|
-
{
|
|
197
|
-
style: {
|
|
198
|
-
fontSize: 11,
|
|
199
|
-
color: "#bfbfbf",
|
|
200
|
-
marginTop: 4,
|
|
201
|
-
textAlign: a ? "right" : "left"
|
|
202
|
-
},
|
|
203
|
-
children: U(l.timestamp)
|
|
204
|
-
}
|
|
205
|
-
)
|
|
206
|
-
] })
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
m
|
|
210
|
-
);
|
|
211
|
-
}),
|
|
212
|
-
c && /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: 10, marginBottom: 16 }, children: [
|
|
213
|
-
h && /* @__PURE__ */ o.jsx(
|
|
214
|
-
"div",
|
|
215
|
-
{
|
|
216
|
-
style: {
|
|
217
|
-
width: 36,
|
|
218
|
-
height: 36,
|
|
219
|
-
borderRadius: "50%",
|
|
220
|
-
backgroundColor: "#bfbfbf",
|
|
221
|
-
color: "#fff",
|
|
222
|
-
display: "flex",
|
|
223
|
-
alignItems: "center",
|
|
224
|
-
justifyContent: "center",
|
|
225
|
-
fontSize: 14,
|
|
226
|
-
fontWeight: 600,
|
|
227
|
-
flexShrink: 0
|
|
228
|
-
},
|
|
229
|
-
children: x[0]
|
|
230
|
-
}
|
|
231
|
-
),
|
|
232
|
-
/* @__PURE__ */ o.jsx(
|
|
233
|
-
"div",
|
|
234
|
-
{
|
|
235
|
-
style: {
|
|
236
|
-
padding: "12px 18px",
|
|
237
|
-
borderRadius: `2px ${t}px ${t}px ${t}px`,
|
|
238
|
-
backgroundColor: r.surfaceLightColor,
|
|
239
|
-
border: `1px solid ${r.borderColor}`,
|
|
240
|
-
boxShadow: "0 1px 4px rgba(0,0,0,0.08)"
|
|
241
|
-
},
|
|
242
|
-
children: /* @__PURE__ */ o.jsx("div", { style: { display: "flex", gap: 4, alignItems: "center" }, children: [0, 1, 2].map((l) => /* @__PURE__ */ o.jsx(
|
|
243
|
-
"span",
|
|
244
|
-
{
|
|
245
|
-
style: {
|
|
246
|
-
width: 7,
|
|
247
|
-
height: 7,
|
|
248
|
-
borderRadius: "50%",
|
|
249
|
-
backgroundColor: r.primaryColor,
|
|
250
|
-
opacity: 0.4,
|
|
251
|
-
display: "inline-block",
|
|
252
|
-
animation: `dialogueTyping 1.4s infinite ${l * 0.2}s`
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
l
|
|
256
|
-
)) })
|
|
257
|
-
}
|
|
258
|
-
)
|
|
259
|
-
] }),
|
|
260
|
-
/* @__PURE__ */ o.jsx("div", { ref: k })
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
),
|
|
264
|
-
f && /* @__PURE__ */ o.jsxs(
|
|
265
|
-
z,
|
|
266
|
-
{
|
|
267
|
-
size: "small",
|
|
268
|
-
style: {
|
|
269
|
-
marginBottom: 16,
|
|
270
|
-
backgroundColor: "#fff2e8",
|
|
271
|
-
borderColor: "#ffbb96",
|
|
272
|
-
borderRadius: t
|
|
273
|
-
},
|
|
274
|
-
children: [
|
|
275
|
-
/* @__PURE__ */ o.jsx("span", { style: { fontWeight: 600 }, children: "⚠️ AI服务异常:" }),
|
|
276
|
-
f,
|
|
277
|
-
"(将使用模拟回复)"
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
),
|
|
281
|
-
/* @__PURE__ */ o.jsxs(
|
|
282
|
-
"div",
|
|
283
|
-
{
|
|
284
|
-
style: {
|
|
285
|
-
display: "flex",
|
|
286
|
-
gap: 10,
|
|
287
|
-
padding: 12,
|
|
288
|
-
backgroundColor: r.surfaceLightColor,
|
|
289
|
-
borderRadius: t,
|
|
290
|
-
border: `1px solid ${r.borderColor}`,
|
|
291
|
-
boxShadow: "0 1px 4px rgba(0,0,0,0.06)"
|
|
292
|
-
},
|
|
293
|
-
children: [
|
|
294
|
-
/* @__PURE__ */ o.jsx(
|
|
295
|
-
J,
|
|
296
|
-
{
|
|
297
|
-
value: d,
|
|
298
|
-
onChange: (l) => b(l.target.value),
|
|
299
|
-
onPressEnter: (l) => {
|
|
300
|
-
l.shiftKey || (l.preventDefault(), y());
|
|
301
|
-
},
|
|
302
|
-
placeholder: A,
|
|
303
|
-
autoSize: { minRows: 2, maxRows: 4 },
|
|
304
|
-
style: { flex: 1, border: "none", boxShadow: "none", resize: "none", backgroundColor: r.surfaceLightColor },
|
|
305
|
-
disabled: c
|
|
306
|
-
}
|
|
307
|
-
),
|
|
308
|
-
/* @__PURE__ */ o.jsx(
|
|
309
|
-
T,
|
|
310
|
-
{
|
|
311
|
-
type: "primary",
|
|
312
|
-
icon: /* @__PURE__ */ o.jsx(M, {}),
|
|
313
|
-
onClick: y,
|
|
314
|
-
disabled: !d.trim() || c,
|
|
315
|
-
loading: c,
|
|
316
|
-
style: {
|
|
317
|
-
alignSelf: "center",
|
|
318
|
-
borderRadius: t,
|
|
319
|
-
backgroundColor: i,
|
|
320
|
-
borderColor: i
|
|
321
|
-
},
|
|
322
|
-
children: "发送"
|
|
323
|
-
}
|
|
324
|
-
)
|
|
325
|
-
]
|
|
326
|
-
}
|
|
327
|
-
),
|
|
328
|
-
/* @__PURE__ */ o.jsx("style", { children: `
|
|
329
|
-
@keyframes dialogueTyping {
|
|
330
|
-
0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
|
|
331
|
-
30% { opacity: 1; transform: translateY(-4px); }
|
|
332
|
-
}
|
|
333
|
-
.dialogue-chat-area::-webkit-scrollbar {
|
|
334
|
-
width: 5px;
|
|
335
|
-
}
|
|
336
|
-
.dialogue-chat-area::-webkit-scrollbar-track {
|
|
337
|
-
background: transparent;
|
|
338
|
-
}
|
|
339
|
-
.dialogue-chat-area::-webkit-scrollbar-thumb {
|
|
340
|
-
background: ${r.primaryColor}33;
|
|
341
|
-
border-radius: 4px;
|
|
342
|
-
}
|
|
343
|
-
.dialogue-chat-area::-webkit-scrollbar-thumb:hover {
|
|
344
|
-
background: ${r.primaryColor}66;
|
|
345
|
-
}
|
|
346
|
-
.dialogue-chat-area {
|
|
347
|
-
scrollbar-width: thin;
|
|
348
|
-
scrollbar-color: ${r.primaryColor}33 transparent;
|
|
349
|
-
}
|
|
350
|
-
` })
|
|
351
|
-
] });
|
|
352
|
-
}, re = ({
|
|
353
|
-
initData: e,
|
|
354
|
-
checkRules: d,
|
|
355
|
-
onFinish: c,
|
|
356
|
-
onRealtimeData: f
|
|
357
|
-
}) => {
|
|
358
|
-
var h, C;
|
|
359
|
-
const s = V(e, {
|
|
360
|
-
onRealtimeData: f,
|
|
361
|
-
enableRealtimeGuidance: !0,
|
|
362
|
-
checkRules: d
|
|
363
|
-
}), g = (e == null ? void 0 : e.tellerRoleName) || (e == null ? void 0 : e.targetPosition) || "柜员", p = ((h = e == null ? void 0 : e.roleConfig) == null ? void 0 : h.角色名称) || (e == null ? void 0 : e.customerRoleName) || "客户", u = (e == null ? void 0 : e.uiConfig) || {}, x = e == null ? void 0 : e.caseData, { filledData: n } = N(), b = { ...x || {}, ...e || {} }, y = B((e == null ? void 0 : e.scenario) || "", b, n), v = (C = e == null ? void 0 : e.dialogueGoals) == null ? void 0 : C.map(
|
|
364
|
-
(i) => B(i, b, n)
|
|
365
|
-
), r = () => {
|
|
366
|
-
const i = s.checkCompletion(d);
|
|
367
|
-
if (!i.canComplete) {
|
|
368
|
-
F.warning(i.reason || "请完成所有必要对话");
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
c({
|
|
372
|
-
stepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
373
|
-
operationType: "dialogue",
|
|
374
|
-
operationData: {
|
|
375
|
-
dialogueHistory: s.messages,
|
|
376
|
-
dialogueLog: s.dialogueLog,
|
|
377
|
-
totalMessages: s.messages.length,
|
|
378
|
-
mustConfirmResult: d != null && d.mustConfirm ? s.isConfirmed() : void 0
|
|
379
|
-
},
|
|
380
|
-
operationLog: s.dialogueLog,
|
|
381
|
-
timestamp: Date.now(),
|
|
382
|
-
evidenceSummary: K({
|
|
383
|
-
sourceStepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
384
|
-
sourceStepName: (e == null ? void 0 : e.stepName) || "对话交互",
|
|
385
|
-
sourceType: "dialogue",
|
|
386
|
-
title: `${(e == null ? void 0 : e.stepName) || "对话交互"}摘要`,
|
|
387
|
-
summary: `完成 ${s.messages.length} 条消息的对话交互。`,
|
|
388
|
-
keyFacts: [
|
|
389
|
-
{ label: "消息总数", value: String(s.messages.length) },
|
|
390
|
-
{ label: "对话轮数", value: String(Math.ceil(s.messages.length / 2)) }
|
|
391
|
-
]
|
|
392
|
-
})
|
|
393
|
-
});
|
|
394
|
-
};
|
|
395
|
-
return /* @__PURE__ */ o.jsx(
|
|
396
|
-
X,
|
|
397
|
-
{
|
|
398
|
-
messages: s.messages,
|
|
399
|
-
input: s.input,
|
|
400
|
-
aiResponding: s.aiResponding,
|
|
401
|
-
aiError: s.aiError,
|
|
402
|
-
dialogueLogCount: s.dialogueLog.length,
|
|
403
|
-
scenario: y,
|
|
404
|
-
dialogueGoals: v,
|
|
405
|
-
tellerRoleName: g,
|
|
406
|
-
customerRoleName: p,
|
|
407
|
-
uiConfig: u,
|
|
408
|
-
onInputChange: s.setInput,
|
|
409
|
-
onSend: s.handleSend,
|
|
410
|
-
onComplete: r
|
|
411
|
-
}
|
|
412
|
-
);
|
|
413
|
-
};
|
|
414
|
-
export {
|
|
415
|
-
re as default
|
|
416
|
-
};
|