@baishuyun/chat-sdk 0.0.18 → 0.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/.turbo/turbo-build.log +175 -178
- package/CHANGELOG.md +19 -0
- package/dist/chat-sdk.js +11115 -11003
- package/dist/chat-sdk.js.map +1 -1
- package/dist/chat-sdk.umd.cjs +129 -127
- package/dist/chat-sdk.umd.cjs.map +1 -1
- package/dist/chat.d.ts +5 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/components/biz-comp/FakeBotMsg.d.ts +8 -0
- package/dist/components/biz-comp/FakeBotMsg.d.ts.map +1 -0
- package/dist/components/biz-comp/FieldChecker.d.ts +19 -0
- package/dist/components/biz-comp/FieldChecker.d.ts.map +1 -0
- package/dist/components/biz-comp/FieldCheckerListMsg.d.ts +19 -0
- package/dist/components/biz-comp/FieldCheckerListMsg.d.ts.map +1 -0
- package/dist/components/biz-comp/FieldValueChecker.d.ts +16 -0
- package/dist/components/biz-comp/FieldValueChecker.d.ts.map +1 -0
- package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts +22 -0
- package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts.map +1 -0
- package/dist/components/biz-comp/chat-client.d.ts +13 -0
- package/dist/components/biz-comp/chat-client.d.ts.map +1 -0
- package/dist/components/biz-comp/chat-frame.d.ts +6 -0
- package/dist/components/biz-comp/chat-frame.d.ts.map +1 -0
- package/dist/components/biz-comp/conversation.d.ts +10 -0
- package/dist/components/biz-comp/conversation.d.ts.map +1 -0
- package/dist/components/biz-comp/dash-widget-icon.d.ts +7 -0
- package/dist/components/biz-comp/dash-widget-icon.d.ts.map +1 -0
- package/dist/components/biz-comp/dock-btn.d.ts +2 -0
- package/dist/components/biz-comp/dock-btn.d.ts.map +1 -0
- package/dist/components/biz-comp/error-boundary.d.ts +15 -0
- package/dist/components/biz-comp/error-boundary.d.ts.map +1 -0
- package/dist/components/biz-comp/error-msg.d.ts +4 -0
- package/dist/components/biz-comp/error-msg.d.ts.map +1 -0
- package/dist/components/biz-comp/field-icon.d.ts +5 -0
- package/dist/components/biz-comp/field-icon.d.ts.map +1 -0
- package/dist/components/biz-comp/highlight-msg.d.ts +4 -0
- package/dist/components/biz-comp/highlight-msg.d.ts.map +1 -0
- package/dist/components/biz-comp/markdown-part.d.ts +7 -0
- package/dist/components/biz-comp/markdown-part.d.ts.map +1 -0
- package/dist/components/biz-comp/markdown.d.ts +5 -0
- package/dist/components/biz-comp/markdown.d.ts.map +1 -0
- package/dist/components/biz-comp/message-content.d.ts +6 -0
- package/dist/components/biz-comp/message-content.d.ts.map +1 -0
- package/dist/components/biz-comp/messages.d.ts +3 -0
- package/dist/components/biz-comp/messages.d.ts.map +1 -0
- package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts +9 -0
- package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts.map +1 -0
- package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts +8 -0
- package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts.map +1 -0
- package/dist/components/biz-comp/multi-modal-input/index.d.ts +21 -0
- package/dist/components/biz-comp/multi-modal-input/index.d.ts.map +1 -0
- package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts +12 -0
- package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts.map +1 -0
- package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts +36 -0
- package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts.map +1 -0
- package/dist/components/biz-comp/opening-lines.d.ts +3 -0
- package/dist/components/biz-comp/opening-lines.d.ts.map +1 -0
- package/dist/components/biz-comp/preview-message-wrapper.d.ts +12 -0
- package/dist/components/biz-comp/preview-message-wrapper.d.ts.map +1 -0
- package/dist/components/biz-comp/preview-message.d.ts +13 -0
- package/dist/components/biz-comp/preview-message.d.ts.map +1 -0
- package/dist/components/biz-comp/response.d.ts +6 -0
- package/dist/components/biz-comp/response.d.ts.map +1 -0
- package/dist/components/biz-comp/suggestions.d.ts +8 -0
- package/dist/components/biz-comp/suggestions.d.ts.map +1 -0
- package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts +10 -0
- package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts.map +1 -0
- package/dist/components/bs-ui/attachment-part-group.d.ts +16 -0
- package/dist/components/bs-ui/attachment-part-group.d.ts.map +1 -0
- package/dist/components/bs-ui/attachment-part.d.ts +19 -0
- package/dist/components/bs-ui/attachment-part.d.ts.map +1 -0
- package/dist/components/bs-ui/attachments-previewer.d.ts +18 -0
- package/dist/components/bs-ui/attachments-previewer.d.ts.map +1 -0
- package/dist/components/bs-ui/base-button.d.ts +8 -0
- package/dist/components/bs-ui/base-button.d.ts.map +1 -0
- package/dist/components/bs-ui/border-animation.d.ts +23 -0
- package/dist/components/bs-ui/border-animation.d.ts.map +1 -0
- package/dist/components/bs-ui/border-color-animation.d.ts +11 -0
- package/dist/components/bs-ui/border-color-animation.d.ts.map +1 -0
- package/dist/components/bs-ui/bot-avatar-name.d.ts +6 -0
- package/dist/components/bs-ui/bot-avatar-name.d.ts.map +1 -0
- package/dist/components/bs-ui/bot-icon.d.ts +5 -0
- package/dist/components/bs-ui/bot-icon.d.ts.map +1 -0
- package/dist/components/bs-ui/bs-icons.d.ts +65 -0
- package/dist/components/bs-ui/bs-icons.d.ts.map +1 -0
- package/dist/components/bs-ui/card-field.d.ts +11 -0
- package/dist/components/bs-ui/card-field.d.ts.map +1 -0
- package/dist/components/bs-ui/card.d.ts +11 -0
- package/dist/components/bs-ui/card.d.ts.map +1 -0
- package/dist/components/bs-ui/chat-area-header.d.ts +13 -0
- package/dist/components/bs-ui/chat-area-header.d.ts.map +1 -0
- package/dist/components/bs-ui/circle-checker.d.ts +10 -0
- package/dist/components/bs-ui/circle-checker.d.ts.map +1 -0
- package/dist/components/bs-ui/collapsible-txt-msg.d.ts +11 -0
- package/dist/components/bs-ui/collapsible-txt-msg.d.ts.map +1 -0
- package/dist/components/bs-ui/confirm-dialog.d.ts +26 -0
- package/dist/components/bs-ui/confirm-dialog.d.ts.map +1 -0
- package/dist/components/bs-ui/fields-design-info-table.d.ts +7 -0
- package/dist/components/bs-ui/fields-design-info-table.d.ts.map +1 -0
- package/dist/components/bs-ui/fields-generating-indicator.d.ts +6 -0
- package/dist/components/bs-ui/fields-generating-indicator.d.ts.map +1 -0
- package/dist/components/bs-ui/fields-portal.d.ts +8 -0
- package/dist/components/bs-ui/fields-portal.d.ts.map +1 -0
- package/dist/components/bs-ui/fields-previewer.d.ts +18 -0
- package/dist/components/bs-ui/fields-previewer.d.ts.map +1 -0
- package/dist/components/bs-ui/font-icon.d.ts +6 -0
- package/dist/components/bs-ui/font-icon.d.ts.map +1 -0
- package/dist/components/bs-ui/form-info-editor.d.ts +37 -0
- package/dist/components/bs-ui/form-info-editor.d.ts.map +1 -0
- package/dist/components/bs-ui/formula-tag.d.ts +8 -0
- package/dist/components/bs-ui/formula-tag.d.ts.map +1 -0
- package/dist/components/bs-ui/generate-animation.d.ts +5 -0
- package/dist/components/bs-ui/generate-animation.d.ts.map +1 -0
- package/dist/components/bs-ui/icon-btn.d.ts +9 -0
- package/dist/components/bs-ui/icon-btn.d.ts.map +1 -0
- package/dist/components/bs-ui/img-part.d.ts +10 -0
- package/dist/components/bs-ui/img-part.d.ts.map +1 -0
- package/dist/components/bs-ui/line-checker.d.ts +19 -0
- package/dist/components/bs-ui/line-checker.d.ts.map +1 -0
- package/dist/components/bs-ui/linear-gradient-border-btn.d.ts +10 -0
- package/dist/components/bs-ui/linear-gradient-border-btn.d.ts.map +1 -0
- package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts +8 -0
- package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts.map +1 -0
- package/dist/components/bs-ui/number-part.d.ts +9 -0
- package/dist/components/bs-ui/number-part.d.ts.map +1 -0
- package/dist/components/bs-ui/option-item.d.ts +9 -0
- package/dist/components/bs-ui/option-item.d.ts.map +1 -0
- package/dist/components/bs-ui/previewer-header.d.ts +20 -0
- package/dist/components/bs-ui/previewer-header.d.ts.map +1 -0
- package/dist/components/bs-ui/primary-confirm-btn.d.ts +10 -0
- package/dist/components/bs-ui/primary-confirm-btn.d.ts.map +1 -0
- package/dist/components/bs-ui/primary-entry-btn.d.ts +9 -0
- package/dist/components/bs-ui/primary-entry-btn.d.ts.map +1 -0
- package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts +6 -0
- package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts.map +1 -0
- package/dist/components/bs-ui/split-line.d.ts +5 -0
- package/dist/components/bs-ui/split-line.d.ts.map +1 -0
- package/dist/components/bs-ui/square-checker.d.ts +15 -0
- package/dist/components/bs-ui/square-checker.d.ts.map +1 -0
- package/dist/components/bs-ui/tab-radio-group.d.ts +19 -0
- package/dist/components/bs-ui/tab-radio-group.d.ts.map +1 -0
- package/dist/components/bs-ui/tooltip.d.ts +6 -0
- package/dist/components/bs-ui/tooltip.d.ts.map +1 -0
- package/dist/components/bs-ui/user-txt-msg-bubble.d.ts +6 -0
- package/dist/components/bs-ui/user-txt-msg-bubble.d.ts.map +1 -0
- package/dist/components/bs-ui/warning-msg.d.ts +6 -0
- package/dist/components/bs-ui/warning-msg.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +24 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +176 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/input-group.d.ts +17 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/one-time-click-btn.d.ts +4 -0
- package/dist/components/ui/one-time-click-btn.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +13 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/web-comp/fields-previewer-web-component.d.ts +60 -0
- package/dist/components/web-comp/fields-previewer-web-component.d.ts.map +1 -0
- package/dist/const/index.d.ts +5 -0
- package/dist/const/index.d.ts.map +1 -0
- package/dist/const/ui.d.ts +7 -0
- package/dist/const/ui.d.ts.map +1 -0
- package/dist/hooks/use-chat-preference.d.ts +3 -0
- package/dist/hooks/use-chat-preference.d.ts.map +1 -0
- package/dist/hooks/use-draggable.d.ts +24 -0
- package/dist/hooks/use-draggable.d.ts.map +1 -0
- package/dist/hooks/use-evt-bus.d.ts +2 -0
- package/dist/hooks/use-evt-bus.d.ts.map +1 -0
- package/dist/hooks/use-evt.d.ts +3 -0
- package/dist/hooks/use-evt.d.ts.map +1 -0
- package/dist/hooks/use-frame-mode.d.ts +20 -0
- package/dist/hooks/use-frame-mode.d.ts.map +1 -0
- package/dist/hooks/use-merged-chat.d.ts +7 -0
- package/dist/hooks/use-merged-chat.d.ts.map +1 -0
- package/dist/hooks/use-msg-status-broadcast.d.ts +3 -0
- package/dist/hooks/use-msg-status-broadcast.d.ts.map +1 -0
- package/dist/hooks/use-plugin-component.d.ts +5 -0
- package/dist/hooks/use-plugin-component.d.ts.map +1 -0
- package/dist/hooks/use-plugin-ctx.d.ts +3 -0
- package/dist/hooks/use-plugin-ctx.d.ts.map +1 -0
- package/dist/hooks/use-plugin-custom-components.d.ts +5 -0
- package/dist/hooks/use-plugin-custom-components.d.ts.map +1 -0
- package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts +5 -0
- package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts.map +1 -0
- package/dist/hooks/use-plugin-list.d.ts +2 -0
- package/dist/hooks/use-plugin-list.d.ts.map +1 -0
- package/dist/hooks/use-plugin.d.ts +2 -0
- package/dist/hooks/use-plugin.d.ts.map +1 -0
- package/dist/hooks/use-scroll-to-bottom.d.ts +9 -0
- package/dist/hooks/use-scroll-to-bottom.d.ts.map +1 -0
- package/dist/hooks/use-shadow.d.ts +25 -0
- package/dist/hooks/use-shadow.d.ts.map +1 -0
- package/dist/hooks/use-toast.d.ts +3 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/clone.d.ts +32 -0
- package/dist/lib/clone.d.ts.map +1 -0
- package/dist/lib/event-emitter.d.ts +39 -0
- package/dist/lib/event-emitter.d.ts.map +1 -0
- package/dist/lib/parse-design-doc.d.ts +16 -0
- package/dist/lib/parse-design-doc.d.ts.map +1 -0
- package/dist/lib/readonly.d.ts +14 -0
- package/dist/lib/readonly.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +55 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/plugins/form-builder-base-plugin/const.d.ts +3 -0
- package/dist/plugins/form-builder-base-plugin/const.d.ts.map +1 -0
- package/dist/plugins/form-builder-base-plugin/index.d.ts +7 -0
- package/dist/plugins/form-builder-base-plugin/index.d.ts.map +1 -0
- package/dist/plugins/form-builder-base-plugin/types.d.ts +12 -0
- package/dist/plugins/form-builder-base-plugin/types.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/create-form-confirm.d.ts +7 -0
- package/dist/plugins/form-builder-plugin/components/create-form-confirm.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/design-doc-part.d.ts +4 -0
- package/dist/plugins/form-builder-plugin/components/design-doc-part.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/design-info.d.ts +6 -0
- package/dist/plugins/form-builder-plugin/components/design-info.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts +3 -0
- package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/fields-part.d.ts +4 -0
- package/dist/plugins/form-builder-plugin/components/fields-part.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/follow-up.d.ts +3 -0
- package/dist/plugins/form-builder-plugin/components/follow-up.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/msg-part.d.ts +3 -0
- package/dist/plugins/form-builder-plugin/components/msg-part.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/opening-lines.d.ts +3 -0
- package/dist/plugins/form-builder-plugin/components/opening-lines.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/components/suggestion-part.d.ts +5 -0
- package/dist/plugins/form-builder-plugin/components/suggestion-part.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/const/index.d.ts +12 -0
- package/dist/plugins/form-builder-plugin/const/index.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/hooks/index.d.ts +4 -0
- package/dist/plugins/form-builder-plugin/hooks/index.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts +2 -0
- package/dist/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/index.d.ts +30 -0
- package/dist/plugins/form-builder-plugin/index.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/types.d.ts +28 -0
- package/dist/plugins/form-builder-plugin/types.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/utils/get-render-strategy.d.ts +3 -0
- package/dist/plugins/form-builder-plugin/utils/get-render-strategy.d.ts.map +1 -0
- package/dist/plugins/form-builder-plugin/utils/index.d.ts +57 -0
- package/dist/plugins/form-builder-plugin/utils/index.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts +26 -0
- package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts +3 -0
- package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/avatar.d.ts +5 -0
- package/dist/plugins/form-filling-plugin/components/avatar.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/batch-fill-part.d.ts +4 -0
- package/dist/plugins/form-filling-plugin/components/batch-fill-part.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts +14 -0
- package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts +3 -0
- package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/first-batch-generating-animation.d.ts +2 -0
- package/dist/plugins/form-filling-plugin/components/first-batch-generating-animation.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/generated-data-counter.d.ts +5 -0
- package/dist/plugins/form-filling-plugin/components/generated-data-counter.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/mode-select.d.ts +2 -0
- package/dist/plugins/form-filling-plugin/components/mode-select.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/msg-part.d.ts +3 -0
- package/dist/plugins/form-filling-plugin/components/msg-part.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/non-first-batch-generating-animation.d.ts +2 -0
- package/dist/plugins/form-filling-plugin/components/non-first-batch-generating-animation.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/components/single-fill-part.d.ts +4 -0
- package/dist/plugins/form-filling-plugin/components/single-fill-part.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/const.d.ts +615 -0
- package/dist/plugins/form-filling-plugin/const.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.d.ts +3 -0
- package/dist/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/hooks/use-fields-data.d.ts +4 -0
- package/dist/plugins/form-filling-plugin/hooks/use-fields-data.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/index.d.ts +22 -0
- package/dist/plugins/form-filling-plugin/index.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/types.d.ts +22 -0
- package/dist/plugins/form-filling-plugin/types.d.ts.map +1 -0
- package/dist/plugins/form-filling-plugin/utils.d.ts +6 -0
- package/dist/plugins/form-filling-plugin/utils.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/avatar.d.ts +5 -0
- package/dist/plugins/report-query-plugin/components/avatar.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts +3 -0
- package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts +3 -0
- package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts +2 -0
- package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.d.ts +7 -0
- package/dist/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts +5 -0
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts +18 -0
- package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts +4 -0
- package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts +8 -0
- package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/const.d.ts +5 -0
- package/dist/plugins/report-query-plugin/const.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/index.d.ts +19 -0
- package/dist/plugins/report-query-plugin/index.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/types.d.ts +18 -0
- package/dist/plugins/report-query-plugin/types.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts +17 -0
- package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts +30 -0
- package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts +60 -0
- package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts +31 -0
- package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts +208 -0
- package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts +4 -0
- package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts +4 -0
- package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts.map +1 -0
- package/dist/plugins/report-query-plugin/utils/index.d.ts +5 -0
- package/dist/plugins/report-query-plugin/utils/index.d.ts.map +1 -0
- package/dist/sdk.impl.d.ts +42 -0
- package/dist/sdk.impl.d.ts.map +1 -0
- package/dist/store/context.d.ts +12 -0
- package/dist/store/context.d.ts.map +1 -0
- package/dist/store/index.d.ts +14 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/stories/AbsFullscreenGradientBg.stories.d.ts +17 -0
- package/dist/stories/AbsFullscreenGradientBg.stories.d.ts.map +1 -0
- package/dist/stories/AttachmentPart.stories.d.ts +23 -0
- package/dist/stories/AttachmentPart.stories.d.ts.map +1 -0
- package/dist/stories/AttachmentPartGroup.stories.d.ts +21 -0
- package/dist/stories/AttachmentPartGroup.stories.d.ts.map +1 -0
- package/dist/stories/AttachmentsPreviewer.stories.d.ts +20 -0
- package/dist/stories/AttachmentsPreviewer.stories.d.ts.map +1 -0
- package/dist/stories/BaseButton.stories.d.ts +18 -0
- package/dist/stories/BaseButton.stories.d.ts.map +1 -0
- package/dist/stories/BorderAnimation.stories.d.ts +21 -0
- package/dist/stories/BorderAnimation.stories.d.ts.map +1 -0
- package/dist/stories/BorderColorAnimation.stories.d.ts +26 -0
- package/dist/stories/BorderColorAnimation.stories.d.ts.map +1 -0
- package/dist/stories/BotAvatarAndName.stories.d.ts +18 -0
- package/dist/stories/BotAvatarAndName.stories.d.ts.map +1 -0
- package/dist/stories/BotIcon.stories.d.ts +17 -0
- package/dist/stories/BotIcon.stories.d.ts.map +1 -0
- package/dist/stories/BsTooltip.stories.d.ts +7 -0
- package/dist/stories/BsTooltip.stories.d.ts.map +1 -0
- package/dist/stories/Card.stories.d.ts +14 -0
- package/dist/stories/Card.stories.d.ts.map +1 -0
- package/dist/stories/CardField.stories.d.ts +13 -0
- package/dist/stories/CardField.stories.d.ts.map +1 -0
- package/dist/stories/ChatAreaHeader.stories.d.ts +14 -0
- package/dist/stories/ChatAreaHeader.stories.d.ts.map +1 -0
- package/dist/stories/CircleChecker.stories.d.ts +21 -0
- package/dist/stories/CircleChecker.stories.d.ts.map +1 -0
- package/dist/stories/CollapsibleTextMsg.stories.d.ts +16 -0
- package/dist/stories/CollapsibleTextMsg.stories.d.ts.map +1 -0
- package/dist/stories/ConfirmDialog.stories.d.ts +61 -0
- package/dist/stories/ConfirmDialog.stories.d.ts.map +1 -0
- package/dist/stories/DashWidgetIcon.stories.d.ts +13 -0
- package/dist/stories/DashWidgetIcon.stories.d.ts.map +1 -0
- package/dist/stories/FormInfoEditor.stories.d.ts +15 -0
- package/dist/stories/FormInfoEditor.stories.d.ts.map +1 -0
- package/dist/stories/FormulaField.stories.d.ts +24 -0
- package/dist/stories/FormulaField.stories.d.ts.map +1 -0
- package/dist/stories/FormulaTag.stories.d.ts +37 -0
- package/dist/stories/FormulaTag.stories.d.ts.map +1 -0
- package/dist/stories/GenerateAnimation.stories.d.ts +17 -0
- package/dist/stories/GenerateAnimation.stories.d.ts.map +1 -0
- package/dist/stories/IconBtn.stories.d.ts +15 -0
- package/dist/stories/IconBtn.stories.d.ts.map +1 -0
- package/dist/stories/IconLib.d.ts +12 -0
- package/dist/stories/IconLib.d.ts.map +1 -0
- package/dist/stories/Icons.stories.d.ts +24 -0
- package/dist/stories/Icons.stories.d.ts.map +1 -0
- package/dist/stories/ImgMsgPart.stories.d.ts +20 -0
- package/dist/stories/ImgMsgPart.stories.d.ts.map +1 -0
- package/dist/stories/LineChecker.stories.d.ts +23 -0
- package/dist/stories/LineChecker.stories.d.ts.map +1 -0
- package/dist/stories/LinearGradientBorderBtn.stories.d.ts +22 -0
- package/dist/stories/LinearGradientBorderBtn.stories.d.ts.map +1 -0
- package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts +23 -0
- package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts.map +1 -0
- package/dist/stories/NumbersMsgPart.stories.d.ts +19 -0
- package/dist/stories/NumbersMsgPart.stories.d.ts.map +1 -0
- package/dist/stories/OptionItem.stories.d.ts +20 -0
- package/dist/stories/OptionItem.stories.d.ts.map +1 -0
- package/dist/stories/PreviewerHeader.stories.d.ts +12 -0
- package/dist/stories/PreviewerHeader.stories.d.ts.map +1 -0
- package/dist/stories/PrimaryConfirmBtn.stories.d.ts +19 -0
- package/dist/stories/PrimaryConfirmBtn.stories.d.ts.map +1 -0
- package/dist/stories/PrimaryEntryBtn.stories.d.ts +26 -0
- package/dist/stories/PrimaryEntryBtn.stories.d.ts.map +1 -0
- package/dist/stories/ScrollToBottom.stories.d.ts +15 -0
- package/dist/stories/ScrollToBottom.stories.d.ts.map +1 -0
- package/dist/stories/SplitLine.stories.d.ts +9 -0
- package/dist/stories/SplitLine.stories.d.ts.map +1 -0
- package/dist/stories/SquareChecker.stories.d.ts +26 -0
- package/dist/stories/SquareChecker.stories.d.ts.map +1 -0
- package/dist/stories/TabRadioGroup.stories.d.ts +18 -0
- package/dist/stories/TabRadioGroup.stories.d.ts.map +1 -0
- package/dist/stories/UserTextMsgBubble.stories.d.ts +14 -0
- package/dist/stories/UserTextMsgBubble.stories.d.ts.map +1 -0
- package/dist/stories/WarningMessage.stories.d.ts +16 -0
- package/dist/stories/WarningMessage.stories.d.ts.map +1 -0
- package/dist/stories/fields-design-info-table.stories.d.ts +14 -0
- package/dist/stories/fields-design-info-table.stories.d.ts.map +1 -0
- package/dist/stories/fields-generating.stories.d.ts +20 -0
- package/dist/stories/fields-generating.stories.d.ts.map +1 -0
- package/dist/stories/fields-previewer.stories.d.ts +19 -0
- package/dist/stories/fields-previewer.stories.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/chat.tsx +59 -1
- package/src/components/biz-comp/FakeBotMsg.tsx +4 -1
- package/src/components/biz-comp/chat-client.tsx +1 -1
- package/src/components/biz-comp/markdown-part.tsx +17 -4
- package/src/components/biz-comp/multi-modal-input/index.tsx +6 -4
- package/src/components/biz-comp/preview-message-wrapper.tsx +3 -1
- package/src/components/biz-comp/preview-message.tsx +15 -0
- package/src/lib/utils.ts +34 -0
- package/src/plugins/report-query-plugin/index.ts +1 -1
- package/src/sdk.impl.tsx +54 -7
- package/src/store/index.ts +8 -0
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import { FieldType, FormFillingEventKey, FormFillingMode } from '@baishuyun/types';
|
|
2
|
+
export declare const PLUGIN_NAME = "form-filling-plugin";
|
|
3
|
+
export declare const FILLING_EVENTS: Record<string, FormFillingEventKey>;
|
|
4
|
+
export declare const WHITE_LIST_FIELDS_SET: Set<FieldType>;
|
|
5
|
+
export declare const DEFAULT_FILLING_MODE: FormFillingMode;
|
|
6
|
+
export declare const DATA_COUNT_PER_BATCH = 10;
|
|
7
|
+
export declare const MOCK_FORM_STRUCTURE: ({
|
|
8
|
+
description: string;
|
|
9
|
+
label: string;
|
|
10
|
+
lineWidth: number;
|
|
11
|
+
widget: {
|
|
12
|
+
customCls: null;
|
|
13
|
+
enable: boolean;
|
|
14
|
+
importMode: number;
|
|
15
|
+
labelStyle: string;
|
|
16
|
+
rules: ({
|
|
17
|
+
digitsNum: number;
|
|
18
|
+
fixedLength: boolean;
|
|
19
|
+
resetDuration: string;
|
|
20
|
+
startValue: number;
|
|
21
|
+
type: string;
|
|
22
|
+
chars?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
chars: string;
|
|
25
|
+
type: string;
|
|
26
|
+
digitsNum?: undefined;
|
|
27
|
+
fixedLength?: undefined;
|
|
28
|
+
resetDuration?: undefined;
|
|
29
|
+
startValue?: undefined;
|
|
30
|
+
})[];
|
|
31
|
+
triggerEvent: number;
|
|
32
|
+
type: string;
|
|
33
|
+
visible: boolean;
|
|
34
|
+
widgetName: string;
|
|
35
|
+
widgetNameAlias: string;
|
|
36
|
+
width: number;
|
|
37
|
+
alertinfo?: undefined;
|
|
38
|
+
allowBlank?: undefined;
|
|
39
|
+
enterClearText?: undefined;
|
|
40
|
+
eventAlert?: undefined;
|
|
41
|
+
extendSet?: undefined;
|
|
42
|
+
generateQR?: undefined;
|
|
43
|
+
height?: undefined;
|
|
44
|
+
libs?: undefined;
|
|
45
|
+
noRepeat?: undefined;
|
|
46
|
+
regex?: undefined;
|
|
47
|
+
rely?: undefined;
|
|
48
|
+
scan?: undefined;
|
|
49
|
+
text?: undefined;
|
|
50
|
+
textMode?: undefined;
|
|
51
|
+
value?: undefined;
|
|
52
|
+
allowAddLinkData?: undefined;
|
|
53
|
+
colorEnable?: undefined;
|
|
54
|
+
funMode?: undefined;
|
|
55
|
+
items?: undefined;
|
|
56
|
+
mode?: undefined;
|
|
57
|
+
module?: undefined;
|
|
58
|
+
layout?: undefined;
|
|
59
|
+
stopCancel?: undefined;
|
|
60
|
+
allowAddData?: undefined;
|
|
61
|
+
allowImportV2?: undefined;
|
|
62
|
+
allowLoadData?: undefined;
|
|
63
|
+
loaddataconfig?: undefined;
|
|
64
|
+
mobileStyle?: undefined;
|
|
65
|
+
quick_fill?: undefined;
|
|
66
|
+
sortable?: undefined;
|
|
67
|
+
sticky_column?: undefined;
|
|
68
|
+
sticky_column_mobile?: undefined;
|
|
69
|
+
subFieldShowRules?: undefined;
|
|
70
|
+
subform_create?: undefined;
|
|
71
|
+
subform_dataload?: undefined;
|
|
72
|
+
subform_delete?: undefined;
|
|
73
|
+
subform_edit?: undefined;
|
|
74
|
+
subform_fill?: undefined;
|
|
75
|
+
subform_import?: undefined;
|
|
76
|
+
subform_insert?: undefined;
|
|
77
|
+
subformloaddataTitle?: undefined;
|
|
78
|
+
autoHeight?: undefined;
|
|
79
|
+
maxLength?: undefined;
|
|
80
|
+
};
|
|
81
|
+
tab?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
description: string;
|
|
84
|
+
label: string;
|
|
85
|
+
lineWidth: number;
|
|
86
|
+
widget: {
|
|
87
|
+
alertinfo: {
|
|
88
|
+
icon: string;
|
|
89
|
+
tip?: undefined;
|
|
90
|
+
};
|
|
91
|
+
allowBlank: boolean;
|
|
92
|
+
customCls: null;
|
|
93
|
+
enable: boolean;
|
|
94
|
+
enterClearText: boolean;
|
|
95
|
+
eventAlert: boolean;
|
|
96
|
+
extendSet: {
|
|
97
|
+
sort: string[];
|
|
98
|
+
status: boolean;
|
|
99
|
+
triggerField: string;
|
|
100
|
+
triggerFieldMode: string;
|
|
101
|
+
version: number;
|
|
102
|
+
};
|
|
103
|
+
generateQR: boolean;
|
|
104
|
+
height: number;
|
|
105
|
+
labelStyle: string;
|
|
106
|
+
libs: never[];
|
|
107
|
+
noRepeat: boolean;
|
|
108
|
+
regex: string;
|
|
109
|
+
rely: null;
|
|
110
|
+
scan: null;
|
|
111
|
+
text: null;
|
|
112
|
+
textMode: string;
|
|
113
|
+
triggerEvent: boolean;
|
|
114
|
+
type: string;
|
|
115
|
+
value: null;
|
|
116
|
+
visible: boolean;
|
|
117
|
+
widgetName: string;
|
|
118
|
+
widgetNameAlias: string;
|
|
119
|
+
width: number;
|
|
120
|
+
importMode?: undefined;
|
|
121
|
+
rules?: undefined;
|
|
122
|
+
allowAddLinkData?: undefined;
|
|
123
|
+
colorEnable?: undefined;
|
|
124
|
+
funMode?: undefined;
|
|
125
|
+
items?: undefined;
|
|
126
|
+
mode?: undefined;
|
|
127
|
+
module?: undefined;
|
|
128
|
+
layout?: undefined;
|
|
129
|
+
stopCancel?: undefined;
|
|
130
|
+
allowAddData?: undefined;
|
|
131
|
+
allowImportV2?: undefined;
|
|
132
|
+
allowLoadData?: undefined;
|
|
133
|
+
loaddataconfig?: undefined;
|
|
134
|
+
mobileStyle?: undefined;
|
|
135
|
+
quick_fill?: undefined;
|
|
136
|
+
sortable?: undefined;
|
|
137
|
+
sticky_column?: undefined;
|
|
138
|
+
sticky_column_mobile?: undefined;
|
|
139
|
+
subFieldShowRules?: undefined;
|
|
140
|
+
subform_create?: undefined;
|
|
141
|
+
subform_dataload?: undefined;
|
|
142
|
+
subform_delete?: undefined;
|
|
143
|
+
subform_edit?: undefined;
|
|
144
|
+
subform_fill?: undefined;
|
|
145
|
+
subform_import?: undefined;
|
|
146
|
+
subform_insert?: undefined;
|
|
147
|
+
subformloaddataTitle?: undefined;
|
|
148
|
+
autoHeight?: undefined;
|
|
149
|
+
maxLength?: undefined;
|
|
150
|
+
};
|
|
151
|
+
tab?: undefined;
|
|
152
|
+
} | {
|
|
153
|
+
description: string;
|
|
154
|
+
label: string;
|
|
155
|
+
lineWidth: number;
|
|
156
|
+
widget: {
|
|
157
|
+
allowAddLinkData: boolean;
|
|
158
|
+
allowBlank: boolean;
|
|
159
|
+
colorEnable: boolean;
|
|
160
|
+
customCls: null;
|
|
161
|
+
enable: boolean;
|
|
162
|
+
extendSet: {
|
|
163
|
+
sort: string[];
|
|
164
|
+
status: boolean;
|
|
165
|
+
triggerField: string;
|
|
166
|
+
triggerFieldMode: string;
|
|
167
|
+
version: number;
|
|
168
|
+
};
|
|
169
|
+
funMode: string;
|
|
170
|
+
height: number;
|
|
171
|
+
items: ({
|
|
172
|
+
color: string;
|
|
173
|
+
text: string;
|
|
174
|
+
value: string;
|
|
175
|
+
selected?: undefined;
|
|
176
|
+
} | {
|
|
177
|
+
color: string;
|
|
178
|
+
selected: boolean;
|
|
179
|
+
text: string;
|
|
180
|
+
value: string;
|
|
181
|
+
})[];
|
|
182
|
+
labelStyle: string;
|
|
183
|
+
libs: never[];
|
|
184
|
+
mode: number;
|
|
185
|
+
module: null;
|
|
186
|
+
noRepeat: boolean;
|
|
187
|
+
type: string;
|
|
188
|
+
visible: boolean;
|
|
189
|
+
widgetName: string;
|
|
190
|
+
widgetNameAlias: string;
|
|
191
|
+
width: number;
|
|
192
|
+
importMode?: undefined;
|
|
193
|
+
rules?: undefined;
|
|
194
|
+
triggerEvent?: undefined;
|
|
195
|
+
alertinfo?: undefined;
|
|
196
|
+
enterClearText?: undefined;
|
|
197
|
+
eventAlert?: undefined;
|
|
198
|
+
generateQR?: undefined;
|
|
199
|
+
regex?: undefined;
|
|
200
|
+
rely?: undefined;
|
|
201
|
+
scan?: undefined;
|
|
202
|
+
text?: undefined;
|
|
203
|
+
textMode?: undefined;
|
|
204
|
+
value?: undefined;
|
|
205
|
+
layout?: undefined;
|
|
206
|
+
stopCancel?: undefined;
|
|
207
|
+
allowAddData?: undefined;
|
|
208
|
+
allowImportV2?: undefined;
|
|
209
|
+
allowLoadData?: undefined;
|
|
210
|
+
loaddataconfig?: undefined;
|
|
211
|
+
mobileStyle?: undefined;
|
|
212
|
+
quick_fill?: undefined;
|
|
213
|
+
sortable?: undefined;
|
|
214
|
+
sticky_column?: undefined;
|
|
215
|
+
sticky_column_mobile?: undefined;
|
|
216
|
+
subFieldShowRules?: undefined;
|
|
217
|
+
subform_create?: undefined;
|
|
218
|
+
subform_dataload?: undefined;
|
|
219
|
+
subform_delete?: undefined;
|
|
220
|
+
subform_edit?: undefined;
|
|
221
|
+
subform_fill?: undefined;
|
|
222
|
+
subform_import?: undefined;
|
|
223
|
+
subform_insert?: undefined;
|
|
224
|
+
subformloaddataTitle?: undefined;
|
|
225
|
+
autoHeight?: undefined;
|
|
226
|
+
maxLength?: undefined;
|
|
227
|
+
};
|
|
228
|
+
tab?: undefined;
|
|
229
|
+
} | {
|
|
230
|
+
description: string;
|
|
231
|
+
label: string;
|
|
232
|
+
lineWidth: number;
|
|
233
|
+
widget: {
|
|
234
|
+
allowBlank: boolean;
|
|
235
|
+
colorEnable: boolean;
|
|
236
|
+
customCls: null;
|
|
237
|
+
enable: boolean;
|
|
238
|
+
extendSet: {
|
|
239
|
+
sort: string[];
|
|
240
|
+
status: boolean;
|
|
241
|
+
triggerField: string;
|
|
242
|
+
triggerFieldMode: string;
|
|
243
|
+
version: number;
|
|
244
|
+
};
|
|
245
|
+
funMode: string;
|
|
246
|
+
items: ({
|
|
247
|
+
color: string;
|
|
248
|
+
text: string;
|
|
249
|
+
value: string;
|
|
250
|
+
selected?: undefined;
|
|
251
|
+
} | {
|
|
252
|
+
color: string;
|
|
253
|
+
selected: boolean;
|
|
254
|
+
text: string;
|
|
255
|
+
value: string;
|
|
256
|
+
})[];
|
|
257
|
+
labelStyle: string;
|
|
258
|
+
layout: string;
|
|
259
|
+
libs: never[];
|
|
260
|
+
module: null;
|
|
261
|
+
stopCancel: boolean;
|
|
262
|
+
type: string;
|
|
263
|
+
value: null;
|
|
264
|
+
visible: boolean;
|
|
265
|
+
widgetName: string;
|
|
266
|
+
widgetNameAlias: string;
|
|
267
|
+
importMode?: undefined;
|
|
268
|
+
rules?: undefined;
|
|
269
|
+
triggerEvent?: undefined;
|
|
270
|
+
width?: undefined;
|
|
271
|
+
alertinfo?: undefined;
|
|
272
|
+
enterClearText?: undefined;
|
|
273
|
+
eventAlert?: undefined;
|
|
274
|
+
generateQR?: undefined;
|
|
275
|
+
height?: undefined;
|
|
276
|
+
noRepeat?: undefined;
|
|
277
|
+
regex?: undefined;
|
|
278
|
+
rely?: undefined;
|
|
279
|
+
scan?: undefined;
|
|
280
|
+
text?: undefined;
|
|
281
|
+
textMode?: undefined;
|
|
282
|
+
allowAddLinkData?: undefined;
|
|
283
|
+
mode?: undefined;
|
|
284
|
+
allowAddData?: undefined;
|
|
285
|
+
allowImportV2?: undefined;
|
|
286
|
+
allowLoadData?: undefined;
|
|
287
|
+
loaddataconfig?: undefined;
|
|
288
|
+
mobileStyle?: undefined;
|
|
289
|
+
quick_fill?: undefined;
|
|
290
|
+
sortable?: undefined;
|
|
291
|
+
sticky_column?: undefined;
|
|
292
|
+
sticky_column_mobile?: undefined;
|
|
293
|
+
subFieldShowRules?: undefined;
|
|
294
|
+
subform_create?: undefined;
|
|
295
|
+
subform_dataload?: undefined;
|
|
296
|
+
subform_delete?: undefined;
|
|
297
|
+
subform_edit?: undefined;
|
|
298
|
+
subform_fill?: undefined;
|
|
299
|
+
subform_import?: undefined;
|
|
300
|
+
subform_insert?: undefined;
|
|
301
|
+
subformloaddataTitle?: undefined;
|
|
302
|
+
autoHeight?: undefined;
|
|
303
|
+
maxLength?: undefined;
|
|
304
|
+
};
|
|
305
|
+
tab?: undefined;
|
|
306
|
+
} | {
|
|
307
|
+
description: null;
|
|
308
|
+
label: string;
|
|
309
|
+
lineWidth: number;
|
|
310
|
+
tab: null;
|
|
311
|
+
widget: {
|
|
312
|
+
allowAddData: boolean;
|
|
313
|
+
allowBlank: boolean;
|
|
314
|
+
allowImportV2: boolean;
|
|
315
|
+
allowLoadData: boolean;
|
|
316
|
+
customCls: null;
|
|
317
|
+
enable: boolean;
|
|
318
|
+
extendSet: {
|
|
319
|
+
sort: string[];
|
|
320
|
+
status: boolean;
|
|
321
|
+
triggerField: string;
|
|
322
|
+
triggerFieldMode: string;
|
|
323
|
+
version: number;
|
|
324
|
+
};
|
|
325
|
+
items: ({
|
|
326
|
+
label: string;
|
|
327
|
+
labelHidden: boolean;
|
|
328
|
+
widget: {
|
|
329
|
+
alertinfo: {
|
|
330
|
+
icon: string;
|
|
331
|
+
tip?: undefined;
|
|
332
|
+
};
|
|
333
|
+
allowBlank: boolean;
|
|
334
|
+
customCls: null;
|
|
335
|
+
enable: boolean;
|
|
336
|
+
enterClearText: boolean;
|
|
337
|
+
eventAlert: boolean;
|
|
338
|
+
extendSet: {
|
|
339
|
+
sort: string[];
|
|
340
|
+
status: boolean;
|
|
341
|
+
triggerField: string;
|
|
342
|
+
triggerFieldMode: string;
|
|
343
|
+
version: number;
|
|
344
|
+
};
|
|
345
|
+
generateQR: boolean;
|
|
346
|
+
height: number;
|
|
347
|
+
labelStyle: string;
|
|
348
|
+
libs: never[];
|
|
349
|
+
noRepeat: boolean;
|
|
350
|
+
regex: string;
|
|
351
|
+
rely: null;
|
|
352
|
+
scan: null;
|
|
353
|
+
text: null;
|
|
354
|
+
textMode: string;
|
|
355
|
+
type: string;
|
|
356
|
+
value: string;
|
|
357
|
+
visible: boolean;
|
|
358
|
+
widgetName: string;
|
|
359
|
+
widgetNameAlias: string;
|
|
360
|
+
width: number;
|
|
361
|
+
afterSuffix?: undefined;
|
|
362
|
+
allowDecimals?: undefined;
|
|
363
|
+
allowNegative?: undefined;
|
|
364
|
+
displayMode?: undefined;
|
|
365
|
+
format?: undefined;
|
|
366
|
+
funMode?: undefined;
|
|
367
|
+
minNumber?: undefined;
|
|
368
|
+
module?: undefined;
|
|
369
|
+
notround?: undefined;
|
|
370
|
+
precision?: undefined;
|
|
371
|
+
thousandsSeparator?: undefined;
|
|
372
|
+
triggerEvent?: undefined;
|
|
373
|
+
autoHeight?: undefined;
|
|
374
|
+
maxLength?: undefined;
|
|
375
|
+
};
|
|
376
|
+
} | {
|
|
377
|
+
label: string;
|
|
378
|
+
labelHidden: boolean;
|
|
379
|
+
widget: {
|
|
380
|
+
afterSuffix: {
|
|
381
|
+
en_us: string;
|
|
382
|
+
zh_cn: string;
|
|
383
|
+
zh_tw: string;
|
|
384
|
+
};
|
|
385
|
+
alertinfo: {
|
|
386
|
+
icon: string;
|
|
387
|
+
tip: string;
|
|
388
|
+
};
|
|
389
|
+
allowBlank: boolean;
|
|
390
|
+
allowDecimals: boolean;
|
|
391
|
+
allowNegative: boolean;
|
|
392
|
+
customCls: null;
|
|
393
|
+
displayMode: string;
|
|
394
|
+
enable: boolean;
|
|
395
|
+
extendSet: {
|
|
396
|
+
sort: string[];
|
|
397
|
+
status: boolean;
|
|
398
|
+
triggerField: string;
|
|
399
|
+
triggerFieldMode: string;
|
|
400
|
+
version: number;
|
|
401
|
+
};
|
|
402
|
+
format: string;
|
|
403
|
+
funMode: string;
|
|
404
|
+
height: number;
|
|
405
|
+
labelStyle: string;
|
|
406
|
+
libs: never[];
|
|
407
|
+
minNumber: number;
|
|
408
|
+
module: null;
|
|
409
|
+
noRepeat: boolean;
|
|
410
|
+
notround: boolean;
|
|
411
|
+
precision: number;
|
|
412
|
+
thousandsSeparator: boolean;
|
|
413
|
+
triggerEvent: boolean;
|
|
414
|
+
type: string;
|
|
415
|
+
value: null;
|
|
416
|
+
visible: boolean;
|
|
417
|
+
widgetName: string;
|
|
418
|
+
widgetNameAlias: string;
|
|
419
|
+
width: number;
|
|
420
|
+
enterClearText?: undefined;
|
|
421
|
+
eventAlert?: undefined;
|
|
422
|
+
generateQR?: undefined;
|
|
423
|
+
regex?: undefined;
|
|
424
|
+
rely?: undefined;
|
|
425
|
+
scan?: undefined;
|
|
426
|
+
text?: undefined;
|
|
427
|
+
textMode?: undefined;
|
|
428
|
+
autoHeight?: undefined;
|
|
429
|
+
maxLength?: undefined;
|
|
430
|
+
};
|
|
431
|
+
} | {
|
|
432
|
+
label: string;
|
|
433
|
+
labelHidden: boolean;
|
|
434
|
+
widget: {
|
|
435
|
+
alertinfo: {
|
|
436
|
+
icon: string;
|
|
437
|
+
tip: string;
|
|
438
|
+
};
|
|
439
|
+
allowBlank: boolean;
|
|
440
|
+
autoHeight: boolean;
|
|
441
|
+
customCls: null;
|
|
442
|
+
enable: boolean;
|
|
443
|
+
extendSet: {
|
|
444
|
+
sort: string[];
|
|
445
|
+
status: boolean;
|
|
446
|
+
triggerField: string;
|
|
447
|
+
triggerFieldMode: string;
|
|
448
|
+
version: number;
|
|
449
|
+
};
|
|
450
|
+
funMode: string;
|
|
451
|
+
height: number;
|
|
452
|
+
labelStyle: string;
|
|
453
|
+
libs: never[];
|
|
454
|
+
maxLength: number;
|
|
455
|
+
module: null;
|
|
456
|
+
noRepeat: boolean;
|
|
457
|
+
triggerEvent: boolean;
|
|
458
|
+
type: string;
|
|
459
|
+
value: string;
|
|
460
|
+
visible: boolean;
|
|
461
|
+
widgetName: string;
|
|
462
|
+
widgetNameAlias: string;
|
|
463
|
+
width: number;
|
|
464
|
+
enterClearText?: undefined;
|
|
465
|
+
eventAlert?: undefined;
|
|
466
|
+
generateQR?: undefined;
|
|
467
|
+
regex?: undefined;
|
|
468
|
+
rely?: undefined;
|
|
469
|
+
scan?: undefined;
|
|
470
|
+
text?: undefined;
|
|
471
|
+
textMode?: undefined;
|
|
472
|
+
afterSuffix?: undefined;
|
|
473
|
+
allowDecimals?: undefined;
|
|
474
|
+
allowNegative?: undefined;
|
|
475
|
+
displayMode?: undefined;
|
|
476
|
+
format?: undefined;
|
|
477
|
+
minNumber?: undefined;
|
|
478
|
+
notround?: undefined;
|
|
479
|
+
precision?: undefined;
|
|
480
|
+
thousandsSeparator?: undefined;
|
|
481
|
+
};
|
|
482
|
+
})[];
|
|
483
|
+
labelStyle: string;
|
|
484
|
+
loaddataconfig: {
|
|
485
|
+
extendSet: {
|
|
486
|
+
sort: string[];
|
|
487
|
+
status: boolean;
|
|
488
|
+
triggerField: string;
|
|
489
|
+
triggerFieldMode: string;
|
|
490
|
+
};
|
|
491
|
+
mode: string;
|
|
492
|
+
};
|
|
493
|
+
mobileStyle: string;
|
|
494
|
+
quick_fill: boolean;
|
|
495
|
+
sortable: boolean;
|
|
496
|
+
sticky_column: {
|
|
497
|
+
enable: boolean;
|
|
498
|
+
limit: number;
|
|
499
|
+
};
|
|
500
|
+
sticky_column_mobile: {
|
|
501
|
+
enable: boolean;
|
|
502
|
+
limit: number;
|
|
503
|
+
};
|
|
504
|
+
subFieldShowRules: never[];
|
|
505
|
+
subform_create: boolean;
|
|
506
|
+
subform_dataload: boolean;
|
|
507
|
+
subform_delete: boolean;
|
|
508
|
+
subform_edit: boolean;
|
|
509
|
+
subform_fill: boolean;
|
|
510
|
+
subform_import: boolean;
|
|
511
|
+
subform_insert: boolean;
|
|
512
|
+
subformloaddataTitle: string;
|
|
513
|
+
type: string;
|
|
514
|
+
visible: boolean;
|
|
515
|
+
widgetName: string;
|
|
516
|
+
widgetNameAlias: string;
|
|
517
|
+
importMode?: undefined;
|
|
518
|
+
rules?: undefined;
|
|
519
|
+
triggerEvent?: undefined;
|
|
520
|
+
width?: undefined;
|
|
521
|
+
alertinfo?: undefined;
|
|
522
|
+
enterClearText?: undefined;
|
|
523
|
+
eventAlert?: undefined;
|
|
524
|
+
generateQR?: undefined;
|
|
525
|
+
height?: undefined;
|
|
526
|
+
libs?: undefined;
|
|
527
|
+
noRepeat?: undefined;
|
|
528
|
+
regex?: undefined;
|
|
529
|
+
rely?: undefined;
|
|
530
|
+
scan?: undefined;
|
|
531
|
+
text?: undefined;
|
|
532
|
+
textMode?: undefined;
|
|
533
|
+
value?: undefined;
|
|
534
|
+
allowAddLinkData?: undefined;
|
|
535
|
+
colorEnable?: undefined;
|
|
536
|
+
funMode?: undefined;
|
|
537
|
+
mode?: undefined;
|
|
538
|
+
module?: undefined;
|
|
539
|
+
layout?: undefined;
|
|
540
|
+
stopCancel?: undefined;
|
|
541
|
+
autoHeight?: undefined;
|
|
542
|
+
maxLength?: undefined;
|
|
543
|
+
};
|
|
544
|
+
} | {
|
|
545
|
+
description: string;
|
|
546
|
+
label: string;
|
|
547
|
+
lineWidth: number;
|
|
548
|
+
widget: {
|
|
549
|
+
alertinfo: {
|
|
550
|
+
icon: string;
|
|
551
|
+
tip: string;
|
|
552
|
+
};
|
|
553
|
+
allowBlank: boolean;
|
|
554
|
+
autoHeight: boolean;
|
|
555
|
+
customCls: null;
|
|
556
|
+
enable: boolean;
|
|
557
|
+
extendSet: {
|
|
558
|
+
sort: string[];
|
|
559
|
+
status: boolean;
|
|
560
|
+
triggerField: string;
|
|
561
|
+
triggerFieldMode: string;
|
|
562
|
+
version: number;
|
|
563
|
+
};
|
|
564
|
+
funMode: string;
|
|
565
|
+
height: number;
|
|
566
|
+
labelStyle: string;
|
|
567
|
+
libs: never[];
|
|
568
|
+
maxLength: number;
|
|
569
|
+
module: null;
|
|
570
|
+
noRepeat: boolean;
|
|
571
|
+
triggerEvent: boolean;
|
|
572
|
+
type: string;
|
|
573
|
+
value: string;
|
|
574
|
+
visible: boolean;
|
|
575
|
+
widgetName: string;
|
|
576
|
+
widgetNameAlias: string;
|
|
577
|
+
width: number;
|
|
578
|
+
importMode?: undefined;
|
|
579
|
+
rules?: undefined;
|
|
580
|
+
enterClearText?: undefined;
|
|
581
|
+
eventAlert?: undefined;
|
|
582
|
+
generateQR?: undefined;
|
|
583
|
+
regex?: undefined;
|
|
584
|
+
rely?: undefined;
|
|
585
|
+
scan?: undefined;
|
|
586
|
+
text?: undefined;
|
|
587
|
+
textMode?: undefined;
|
|
588
|
+
allowAddLinkData?: undefined;
|
|
589
|
+
colorEnable?: undefined;
|
|
590
|
+
items?: undefined;
|
|
591
|
+
mode?: undefined;
|
|
592
|
+
layout?: undefined;
|
|
593
|
+
stopCancel?: undefined;
|
|
594
|
+
allowAddData?: undefined;
|
|
595
|
+
allowImportV2?: undefined;
|
|
596
|
+
allowLoadData?: undefined;
|
|
597
|
+
loaddataconfig?: undefined;
|
|
598
|
+
mobileStyle?: undefined;
|
|
599
|
+
quick_fill?: undefined;
|
|
600
|
+
sortable?: undefined;
|
|
601
|
+
sticky_column?: undefined;
|
|
602
|
+
sticky_column_mobile?: undefined;
|
|
603
|
+
subFieldShowRules?: undefined;
|
|
604
|
+
subform_create?: undefined;
|
|
605
|
+
subform_dataload?: undefined;
|
|
606
|
+
subform_delete?: undefined;
|
|
607
|
+
subform_edit?: undefined;
|
|
608
|
+
subform_fill?: undefined;
|
|
609
|
+
subform_import?: undefined;
|
|
610
|
+
subform_insert?: undefined;
|
|
611
|
+
subformloaddataTitle?: undefined;
|
|
612
|
+
};
|
|
613
|
+
tab?: undefined;
|
|
614
|
+
})[];
|
|
615
|
+
//# sourceMappingURL=const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-filling-plugin/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnF,eAAO,MAAM,WAAW,wBAAwB,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAkB9D,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAYhC,CAAC;AAEH,eAAO,MAAM,oBAAoB,EAAE,eAA0B,CAAC;AAE9D,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAskB/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-conversation-id-in-ctx.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,sBAAsB,GACjC,KAAK,oBAAoB,GAAG,IAAI,EAChC,iBAAiB,MAAM,SAOxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-fields-data.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/hooks/use-fields-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AA+E7D,eAAO,MAAM,aAAa,GACxB,MAAM,UAAU,EAChB,gBAAgB,oBAAoB,GAAG,IAAI,KAC1C,WA0BF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChatAreaPlugin, IChatSDK, PluginCustomComponent, PluginHooks, PluginRegistryEntry, DeepReadonly } from '@baishuyun/types';
|
|
2
|
+
import { FormFillingPluginCtx } from './types';
|
|
3
|
+
export declare class FormFillingPlugin extends ChatAreaPlugin<FormFillingPluginCtx> {
|
|
4
|
+
pluginName: string;
|
|
5
|
+
customComponents?: Partial<PluginCustomComponent> | undefined;
|
|
6
|
+
private batchFillingDataManager;
|
|
7
|
+
private sdkInst;
|
|
8
|
+
getReadonlyContext: () => DeepReadonly<FormFillingPluginCtx>;
|
|
9
|
+
getValidFilledMessageIds: () => Set<string>;
|
|
10
|
+
hasValidStructure: () => boolean;
|
|
11
|
+
init?: ((sdk: IChatSDK) => void) | undefined;
|
|
12
|
+
private handleFillModeUpdate;
|
|
13
|
+
getCount: (messageId: string) => number;
|
|
14
|
+
setCount: (messageId: string, inc: number) => void;
|
|
15
|
+
dispose?: (() => void) | undefined;
|
|
16
|
+
private handleFormStructureReady;
|
|
17
|
+
private clearHistoryConversation;
|
|
18
|
+
clearBatchFilledData: () => void;
|
|
19
|
+
lifecycleHooks?: PluginHooks | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const FormFillingPluginRegisterEntry: PluginRegistryEntry<FormFillingPluginCtx>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-filling-plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAId,QAAQ,EAER,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EAEnB,YAAY,EAEb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAqB/C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAClE,UAAU,EAAE,MAAM,CAAe;IAEjC,gBAAgB,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAMlE;IAEF,OAAO,CAAC,uBAAuB,CAA2B;IAE1D,OAAO,CAAC,OAAO,CAAY;IAEpB,kBAAkB,EAAE,MAAM,YAAY,CAAC,oBAAoB,CAAC,CAEjE;IAEK,wBAAwB,QAAO,GAAG,CAAC,MAAM,CAAC,CAE/C;IAEK,iBAAiB,QAAO,OAAO,CAEpC;IAEK,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAkBjD;IAEF,OAAO,CAAC,oBAAoB,CAM1B;IAEK,QAAQ,GAAI,WAAW,MAAM,KAAG,MAAM,CAG3C;IAEK,QAAQ,GAAI,WAAW,MAAM,EAAE,KAAK,MAAM,UAK/C;IAEK,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAYvC;IAEF,OAAO,CAAC,wBAAwB,CAqB9B;IAEF,OAAO,CAAC,wBAAwB,CAgB9B;IAEK,oBAAoB,aAIzB;IAEK,cAAc,CAAC,EAAE,WAAW,GAAG,SAAS,CA0E7C;CACH;AAED,eAAO,MAAM,8BAA8B,EAAE,mBAAmB,CAAC,oBAAoB,CAapF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormFillingMode, MsgPartCompProps } from '@baishuyun/types';
|
|
2
|
+
import { Field } from '../form-builder-base-plugin/types';
|
|
3
|
+
import { TextUIPart } from 'ai';
|
|
4
|
+
import { FieldValueCheckerProps } from '../../components/biz-comp/FieldValueChecker';
|
|
5
|
+
export interface FormFillingPluginCtx {
|
|
6
|
+
fieldMap: Map<string, Field>;
|
|
7
|
+
valueMap: Map<string, unknown>;
|
|
8
|
+
subFieldsNameMap: Map<string, string>;
|
|
9
|
+
conversationId: string;
|
|
10
|
+
fillMode: FormFillingMode;
|
|
11
|
+
counterMap: Map<string, number>;
|
|
12
|
+
}
|
|
13
|
+
export type FillPartRenderStrategy = 'batch' | 'single' | 'markdown' | 'unknown';
|
|
14
|
+
export interface IFieldsData {
|
|
15
|
+
fieldsParts: TextUIPart[];
|
|
16
|
+
filledFields: Array<FieldValueCheckerProps>;
|
|
17
|
+
fieldPropsArray: Array<FieldValueCheckerProps | null>;
|
|
18
|
+
}
|
|
19
|
+
export type FillPartRenderStrategyMap = {
|
|
20
|
+
[key in FillPartRenderStrategy]: React.FC<MsgPartCompProps & IFieldsData>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-filling-plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE7B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtC,cAAc,EAAE,MAAM,CAAC;IAEvB,QAAQ,EAAE,eAAe,CAAC;IAE1B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,sBAAsB,GAC9B,OAAO,GACP,QAAQ,GACR,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,YAAY,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC5C,eAAe,EAAE,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;CACvD;AAED,MAAM,MAAM,yBAAyB,GAAG;KACrC,GAAG,IAAI,sBAAsB,GAAG,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,WAAW,CAAC;CAC1E,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldType } from '@baishuyun/types';
|
|
2
|
+
import { Field } from '../form-builder-base-plugin/types';
|
|
3
|
+
export declare const valueNormalizer: (value: string | string[]) => string;
|
|
4
|
+
export declare const toHumanReadable: (value: unknown, type: FieldType) => string | unknown;
|
|
5
|
+
export declare const GetSafeFormStructure: (formStructure: Array<Field>) => any[];
|
|
6
|
+
//# sourceMappingURL=utils.d.ts.map
|