@voicenter-team/voicenter-ui-plus 4.2.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION_v3.md +196 -196
- package/README.md +1058 -1059
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
- package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
- package/library/assets/components/VcLoading/VcLoading.css +1 -1
- package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
- package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
- package/library/assets/components/VcSkeletonLoader/VcSkeletonItem.css +1 -0
- package/library/assets/components/VcTag/VcTag.css +1 -1
- package/library/components/VcAutocomplete/VcAutocomplete.vue.mjs +3 -2
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
- package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
- package/library/components/VcCheckboxGroup/VcCheckboxGroup.vue.mjs +3 -1
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +4 -4
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcForm/VcForm.vue.mjs +1 -1
- package/library/components/VcForm/VcFormItem.vue.mjs +1 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
- package/library/components/VcIconPicker/VcIconPicker.vue.mjs +9 -4
- package/library/components/VcImageUploader/VcImageUploader.vue.mjs +1 -5
- package/library/components/VcInput/VcInput.vue.mjs +1 -1
- package/library/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.mjs +3 -0
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
- package/library/components/VcJsonViewer/VcJsonViewer.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
- package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
- package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
- package/library/components/VcNotification/VcNotification.vue.mjs +2 -2
- package/library/components/VcOtpInput/VcOtpInput.vue.mjs +1 -1
- package/library/components/VcPdfViewer/VcPdfViewer.vue.mjs +1 -2
- package/library/components/VcPdfViewer/pdfjslib.mjs +1 -0
- package/library/components/VcPopover/VcConfirmPopover.vue.mjs +6 -3
- package/library/components/VcPopover/VcSelectPopover.vue.mjs +2 -2
- package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
- package/library/components/VcRadioGroup/VcRadioGroup.vue.mjs +2 -6
- package/library/components/VcRadioTabs/VcRadioTabs.vue.mjs +6 -2
- package/library/components/VcSegmented/VcSegmented.vue.mjs +1 -1
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +3 -1
- package/library/components/VcSelect/VcSelect.vue.mjs +33 -33
- package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/VcSkeletonItem.vue.mjs +7 -0
- package/library/components/VcSkeletonLoader/VcSkeletonItem.vue2.mjs +39 -0
- package/library/components/VcSkeletonLoader/VcSkeletonLoader.vue.mjs +19 -6
- package/library/components/VcSlider/VcSlider.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundPlayerWrapper.vue.mjs +1 -2
- package/library/components/VcSoundplayer/player.options.mjs +6 -1
- package/library/components/VcSparkline/helper.mjs +1 -1
- package/library/components/VcTable/VcTable.vue.mjs +13 -17
- package/library/components/VcTabs/VcTabNav.vue.mjs +0 -2
- package/library/components/VcTransfer/VcTransfer.vue.mjs +5 -16
- package/library/components/VcTree/VcTree.vue.mjs +6 -13
- package/library/components/VcVerticalTabs/VcVerticalTabs.vue.mjs +8 -4
- package/library/components/VcVerticalTabs/VerticalTabNav.vue.mjs +9 -4
- package/library/composables/input/useFileUploader.mjs +3 -1
- package/library/composables/useRTL.mjs +8 -3
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +3 -0
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +22 -14
- package/library/index.mjs +2 -0
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs +1 -1
- package/library/localization/index.mjs.br +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/plugin-components.gen.mjs +2 -0
- package/library/plugin.mjs +2 -0
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +18 -16
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.d.ts +39 -9
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.d.ts +17 -8
- package/library/types/components/VcAgentRun/VcAgentRunCard.vue.d.ts +81 -42
- package/library/types/components/VcAgentRun/VcAgentRunGroup.vue.d.ts +43 -27
- package/library/types/components/VcAgentRun/agentRunStatus.d.ts +2 -2
- package/library/types/components/VcAiReasoning/VcAiReasoning.vue.d.ts +67 -18
- package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +79 -40
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.d.ts +36 -10
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.d.ts +35 -9
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.d.ts +45 -14
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.d.ts +35 -9
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.d.ts +35 -9
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserText.vue.d.ts +35 -9
- package/library/types/components/VcAskUserCard/UiComponents/askUserControl.d.ts +1 -1
- package/library/types/components/VcAskUserCard/VcAskUserCard.vue.d.ts +63 -18
- package/library/types/components/VcAskUserCard/askUserAnswers.d.ts +1 -1
- package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +171 -64
- package/library/types/components/VcAvatar/VcAvatar.vue.d.ts +39 -5
- package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +33 -12
- package/library/types/components/VcButton/VcButton.vue.d.ts +50 -19
- package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +63 -16
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +63 -23
- package/library/types/components/VcCard/VcCard.vue.d.ts +42 -14
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +97 -32
- package/library/types/components/VcChatComposer/richText.d.ts +2 -2
- package/library/types/components/VcChatComposer/tiptap.d.ts +38 -38
- package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +95 -46
- package/library/types/components/VcCheckbox/VcCheckboxButton.vue.d.ts +77 -41
- package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +76 -40
- package/library/types/components/VcCheckbox/VcCheckboxGroupEl.vue.d.ts +4 -10
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +82 -44
- package/library/types/components/VcCodeBlock/VcCodeBlock.vue.d.ts +39 -5
- package/library/types/components/VcCodeBlock/highlight.d.ts +2 -1
- package/library/types/components/VcCollapse/VcCollapse.vue.d.ts +38 -17
- package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +63 -26
- package/library/types/components/VcCollapse/VcCollapseTransition.vue.d.ts +6 -12
- package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +43 -7
- package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +103 -63
- package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +132 -69
- package/library/types/components/VcDelimitedList/VcDelimitedList.vue.d.ts +78 -39
- package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +81 -22
- package/library/types/components/VcDropdown/VcDropdownItem.vue.d.ts +12 -9
- package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +45 -20
- package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +36 -4
- package/library/types/components/VcExcelUploader/VcExcelFileUploadBlock.vue.d.ts +39 -16
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +74 -40
- package/library/types/components/VcExcelUploader/VcFileImportErrorsCard.vue.d.ts +29 -7
- package/library/types/components/VcExcelUploader/VcFileImportParseResultBlock.vue.d.ts +44 -20
- package/library/types/components/VcExcelUploader/VcFileImportResultBindData.vue.d.ts +37 -9
- package/library/types/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.d.ts +31 -7
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +44 -8
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +45 -5
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +80 -10
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.d.ts +39 -7
- package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +39 -9
- package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +83 -24
- package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +90 -30
- package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +96 -37
- package/library/types/components/VcFileUploader/VcSimpleUploaderAction.vue.d.ts +35 -18
- package/library/types/components/VcFileUploader/VcSimpleUploaderFileList.vue.d.ts +33 -27
- package/library/types/components/VcFilterBar/VcFilterAddMenu.vue.d.ts +31 -14
- package/library/types/components/VcFilterBar/VcFilterBar.vue.d.ts +103 -61
- package/library/types/components/VcFilterBar/VcFilterChip.vue.d.ts +32 -23
- package/library/types/components/VcFilterBar/VcFilterChipEditor.vue.d.ts +38 -20
- package/library/types/components/VcFilterBar/VcFilterEditorModal.vue.d.ts +29 -16
- package/library/types/components/VcFilterBar/VcFilterEditorPanel.vue.d.ts +93 -29
- package/library/types/components/VcFilterBar/editors/VcFilterBooleanEditor.vue.d.ts +55 -16
- package/library/types/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue.d.ts +60 -17
- package/library/types/components/VcFilterBar/editors/VcFilterRangeEditor.vue.d.ts +53 -16
- package/library/types/components/VcFilterBar/editors/VcFilterSelectEditor.vue.d.ts +53 -16
- package/library/types/components/VcFilterBar/editors/VcFilterTextEditor.vue.d.ts +56 -17
- package/library/types/components/VcFilterBar/editors/VcFilterTextListEditor.vue.d.ts +54 -17
- package/library/types/components/VcFilterBar/filterBarChip.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarDate.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarDraft.d.ts +11 -11
- package/library/types/components/VcFilterBar/filterBarEditors.d.ts +2 -2
- package/library/types/components/VcFilterBar/filterBarErrors.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarModel.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarOptions.d.ts +2 -2
- package/library/types/components/VcFilterBar/filterBarSearch.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarValidate.d.ts +1 -1
- package/library/types/components/VcForm/UiComponents/VcInputError.vue.d.ts +27 -6
- package/library/types/components/VcForm/UiComponents/VcInputLabel.vue.d.ts +36 -14
- package/library/types/components/VcForm/VcForm.vue.d.ts +46 -15
- package/library/types/components/VcForm/VcFormItem.vue.d.ts +42 -23
- package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +42 -8
- package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +34 -20
- package/library/types/components/VcHtmlEditor/codemirror.d.ts +2 -2
- package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +2 -2
- package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +39 -14
- package/library/types/components/VcIcon/VcIcon.vue.d.ts +31 -5
- package/library/types/components/VcIconPicker/VcIconPicker.vue.d.ts +60 -26
- package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +50 -27
- package/library/types/components/VcImageUploader/cropper.d.ts +24 -24
- package/library/types/components/VcInput/VcInput.vue.d.ts +72 -14
- package/library/types/components/VcInputNumber/VcInputNumber.vue.d.ts +57 -7
- package/library/types/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.d.ts +19 -10
- package/library/types/components/VcJsonSchema/Components/JsonCodeMirror.vue.d.ts +18 -9
- package/library/types/components/VcJsonSchema/Components/JsonSchemaEditor.vue.d.ts +68 -25
- package/library/types/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.d.ts +21 -11
- package/library/types/components/VcJsonSchema/Components/codemirror.d.ts +2 -2
- package/library/types/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.d.ts +24 -12
- package/library/types/components/VcJsonSchema/VcJsonSchema.vue.d.ts +47 -30
- package/library/types/components/VcJsonSchema/helpers/jsonSchema.enum.d.ts +1 -1
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.d.ts +37 -9
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.d.ts +15 -5
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.d.ts +29 -7
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.d.ts +28 -6
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.d.ts +19 -7
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.d.ts +30 -7
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.d.ts +34 -8
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.d.ts +38 -17
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.d.ts +15 -5
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.d.ts +15 -5
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.d.ts +33 -8
- package/library/types/components/VcJsonViewer/VcJsonViewer.vue.d.ts +75 -12
- package/library/types/components/VcJsonViewer/jsonViewerText.d.ts +2 -2
- package/library/types/components/VcJsonViewer/jsonViewerUtils.d.ts +1 -1
- package/library/types/components/VcJsonViewer/useJsonViewerContext.d.ts +1 -1
- package/library/types/components/VcLightbox/VcLightbox.vue.d.ts +62 -30
- package/library/types/components/VcLoading/Loaders/Circles.vue.d.ts +26 -4
- package/library/types/components/VcLoading/Loaders/DotSpinner.vue.d.ts +26 -4
- package/library/types/components/VcLoading/Loaders/LdsSpinner.vue.d.ts +26 -4
- package/library/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +29 -5
- package/library/types/components/VcLoading/Loaders/Stretch.vue.d.ts +26 -4
- package/library/types/components/VcLoading/Loaders/index.d.ts +5 -5
- package/library/types/components/VcLoading/Loaders/types.d.ts +1 -1
- package/library/types/components/VcLoading/VcLoading.vue.d.ts +38 -13
- package/library/types/components/VcLoading/enum.d.ts +129 -13
- package/library/types/components/VcMdEditor/ParameterNode.vue.d.ts +4 -5
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +215 -33
- package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +44 -10
- package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +23 -12
- package/library/types/components/VcMdEditor/ltrNumbersPlugin.d.ts +3 -3
- package/library/types/components/VcMdEditor/mdEditor.config.d.ts +10 -10
- package/library/types/components/VcMdEditor/milkdown.d.ts +1 -1
- package/library/types/components/VcMdEditor/readonlyMarkdown.d.ts +1 -1
- package/library/types/components/VcMdEditor/rtlCursorPlugin.d.ts +2 -2
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +83 -27
- package/library/types/components/VcMessage/VcMessageMeta.vue.d.ts +20 -7
- package/library/types/components/VcMessage/content/VcMessageAudioBlock.vue.d.ts +19 -6
- package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +22 -9
- package/library/types/components/VcMessage/content/VcMessageImageBlock.vue.d.ts +22 -9
- package/library/types/components/VcMessage/content/VcMessageMarkdownBlock.vue.d.ts +19 -6
- package/library/types/components/VcMessage/content/VcMessageTextBlock.vue.d.ts +19 -6
- package/library/types/components/VcMessage/content/VcMessageVideoBlock.vue.d.ts +19 -6
- package/library/types/components/VcMessage/content/messageContentComponents.d.ts +2 -2
- package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +52 -28
- package/library/types/components/VcMessage/reactions/VcMessageReactionBar.vue.d.ts +22 -9
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +208 -38
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +86 -41
- package/library/types/components/VcMeterGroup/VcMeterGroup.vue.d.ts +112 -68
- package/library/types/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +38 -15
- package/library/types/components/VcModal/VcConfirmModal.vue.d.ts +33 -7
- package/library/types/components/VcModal/VcModal.vue.d.ts +79 -26
- package/library/types/components/VcNotification/VcNotification.vue.d.ts +65 -5
- package/library/types/components/VcNotification/VcNotificationMessage.vue.d.ts +18 -9
- package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +61 -11
- package/library/types/components/VcPagination/VcPagination.vue.d.ts +49 -16
- package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +45 -10
- package/library/types/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.d.ts +41 -24
- package/library/types/components/VcPdfViewer/VcPdfDocument.vue.d.ts +41 -17
- package/library/types/components/VcPdfViewer/VcPdfDocumentCard.vue.d.ts +37 -18
- package/library/types/components/VcPdfViewer/VcPdfDocumentPage.vue.d.ts +38 -8
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.d.ts +45 -15
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +12 -18
- package/library/types/components/VcPdfViewer/VcPdfViewer.vue.d.ts +72 -37
- package/library/types/components/VcPdfViewer/pdfDocumentActions.d.ts +1 -1
- package/library/types/components/VcPdfViewer/pdfDocumentParams.d.ts +1 -1
- package/library/types/components/VcPdfViewer/pdfjslib.d.ts +1 -1
- package/library/types/components/VcPhoneInput/VcFlagLabel.vue.d.ts +23 -3
- package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +79 -32
- package/library/types/components/VcPluginOverlays/VcPluginOverlays.vue.d.ts +26 -4
- package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +37 -15
- package/library/types/components/VcPopover/VcPopover.vue.d.ts +61 -21
- package/library/types/components/VcPopover/VcSelectPopover.vue.d.ts +97 -33
- package/library/types/components/VcProgress/VcProgress.vue.d.ts +53 -18
- package/library/types/components/VcProgress/VcProgressCircular.vue.d.ts +56 -19
- package/library/types/components/VcProgress/progress.options.d.ts +4 -4
- package/library/types/components/VcRadio/VcRadio.vue.d.ts +55 -26
- package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +73 -30
- package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +76 -31
- package/library/types/components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.d.ts +62 -26
- package/library/types/components/VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue.d.ts +26 -13
- package/library/types/components/VcRadioTabs/VcRadioTabs.vue.d.ts +81 -25
- package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +92 -45
- package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +154 -50
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +254 -65
- package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +175 -57
- package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +45 -25
- package/library/types/components/VcSipFlow/VcSipFlow.vue.d.ts +53 -23
- package/library/types/components/VcSkeletonLoader/Loaders/Card.vue.d.ts +27 -6
- package/library/types/components/VcSkeletonLoader/Loaders/Circle.vue.d.ts +31 -7
- package/library/types/components/VcSkeletonLoader/Loaders/Row.vue.d.ts +31 -7
- package/library/types/components/VcSkeletonLoader/Loaders/Square.vue.d.ts +31 -7
- package/library/types/components/VcSkeletonLoader/Loaders/Text.vue.d.ts +14 -5
- package/library/types/components/VcSkeletonLoader/VcSkeletonItem.vue.d.ts +46 -0
- package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +62 -3
- package/library/types/components/VcSlider/VcSlider.vue.d.ts +1 -2
- package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +68 -16
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRate.vue.d.ts +37 -8
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.d.ts +41 -9
- package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +54 -20
- package/library/types/components/VcSoundplayer/VcSoundCurrentTime.vue.d.ts +1 -2
- package/library/types/components/VcSoundplayer/VcSoundDuration.vue.d.ts +1 -2
- package/library/types/components/VcSoundplayer/VcSoundPlayer.vue.d.ts +69 -35
- package/library/types/components/VcSoundplayer/VcSoundPlayerCompact.vue.d.ts +57 -20
- package/library/types/components/VcSoundplayer/VcSoundPlayerError.vue.d.ts +26 -9
- package/library/types/components/VcSoundplayer/VcSoundPlayerMarker.vue.d.ts +55 -24
- package/library/types/components/VcSoundplayer/VcSoundPlayerMarkers.vue.d.ts +38 -23
- package/library/types/components/VcSoundplayer/VcSoundPlayerProgress.vue.d.ts +17 -14
- package/library/types/components/VcSoundplayer/VcSoundPlayerWrapper.vue.d.ts +146 -26
- package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +50 -11
- package/library/types/components/VcSoundplayer/player.options.d.ts +2 -2
- package/library/types/components/VcSoundplayer/soundPlayerParts.d.ts +12 -12
- package/library/types/components/VcSoundplayer/wavesurfer.d.ts +2 -2
- package/library/types/components/VcSparkline/VcBarLine.vue.d.ts +68 -17
- package/library/types/components/VcSparkline/VcSparkline.vue.d.ts +75 -15
- package/library/types/components/VcSparkline/VcTrendLine.vue.d.ts +68 -17
- package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +75 -30
- package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +138 -77
- package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +36 -19
- package/library/types/components/VcSystemUserPrompt/enum.d.ts +1 -1
- package/library/types/components/VcTable/VcTable.vue.d.ts +360 -138
- package/library/types/components/VcTabs/VcTabNav.vue.d.ts +43 -20
- package/library/types/components/VcTabs/VcTabPane.vue.d.ts +52 -19
- package/library/types/components/VcTabs/VcTabs.vue.d.ts +165 -137
- package/library/types/components/VcTag/VcTag.vue.d.ts +49 -14
- package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +86 -22
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +57 -9
- package/library/types/components/VcToolCall/UiComponents/VcToolCallValue.vue.d.ts +49 -9
- package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +73 -40
- package/library/types/components/VcTour/VcTour.vue.d.ts +54 -35
- package/library/types/components/VcTransfer/VcTransfer.vue.d.ts +52 -25
- package/library/types/components/VcTree/VcTree.vue.d.ts +143 -61
- package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +958 -449
- package/library/types/components/VcTree/treeTypeUtils.d.ts +1 -1
- package/library/types/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +80 -34
- package/library/types/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +73 -31
- package/library/types/components/VcWizard/VcSummaryProgress.vue.d.ts +33 -3
- package/library/types/components/VcWizard/VcSummaryStep.vue.d.ts +36 -6
- package/library/types/components/VcWizard/VcWizard.vue.d.ts +62 -33
- package/library/types/components/VcWizard/VcWizardNavigation.vue.d.ts +53 -20
- package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +34 -6
- package/library/types/components/exports.d.ts +129 -127
- package/library/types/components.gen.d.ts +1 -0
- package/library/types/composables/input/useFileUploader.d.ts +1 -1
- package/library/types/composables/input/useInputBase.d.ts +5 -5
- package/library/types/composables/input/useInputColor.d.ts +4 -4
- package/library/types/composables/option/useOptionMethods.d.ts +14 -14
- package/library/types/composables/useAudioRecorder.d.ts +6 -6
- package/library/types/composables/useCopyButton.d.ts +2 -2
- package/library/types/composables/useElapsed.d.ts +2 -2
- package/library/types/composables/useThrottledText.d.ts +1 -1
- package/library/types/directives/index.d.ts +1 -1
- package/library/types/entity/components/Button/VcEntityAddButton.vue.d.ts +33 -16
- package/library/types/entity/components/Button/VcEntityCancelButton.vue.d.ts +45 -21
- package/library/types/entity/components/Button/VcEntityDeleteIconButton.vue.d.ts +41 -21
- package/library/types/entity/components/Button/VcEntityEditIconButton.vue.d.ts +30 -18
- package/library/types/entity/components/Button/VcEntityRestoreButton.vue.d.ts +45 -21
- package/library/types/entity/components/Button/VcEntityStatusButton.vue.d.ts +40 -21
- package/library/types/entity/components/Form/VcBaseVerticalForm.vue.d.ts +37 -18
- package/library/types/entity/components/Form/VcEntityEditPageForm.vue.d.ts +54 -26
- package/library/types/entity/components/Form/VcEntityVerticalCreateForm.vue.d.ts +34 -16
- package/library/types/entity/components/Form/VcEntityVerticalEditForm.vue.d.ts +76 -31
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +135 -38
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +151 -55
- package/library/types/entity/components/index.d.ts +12 -12
- package/library/types/entity/composable/useEntityProvideInject.d.ts +1 -1
- package/library/types/entity/services/BaseEntityService.d.ts +2 -2
- package/library/types/enum/fileTypes.d.ts +1 -1
- package/library/types/localization/Localization.types.d.ts +2 -2
- package/library/types/localization/index.d.ts +2 -2
- package/library/types/localization/locales/en.json.d.ts +415 -415
- package/library/types/plugin-components.gen.d.ts +1 -1
- package/library/types/plugin.d.ts +1 -1
- package/library/types/services/index.d.ts +7 -1
- package/library/types/theme/themes.json.d.ts +72 -72
- package/library/types/types/Entity.types.d.ts +1 -8
- package/library/types/types/Entry.types.d.ts +1 -1
- package/library/types/types/ExcelParser.types.d.ts +1 -1
- package/library/types/types/OptionAndConfig.types.d.ts +4 -8
- package/library/types/types/Overlay.types.d.ts +1 -1
- package/library/types/types/Tabs.d.ts +1 -1
- package/library/types/types/VcAgentRun.types.d.ts +3 -3
- package/library/types/types/VcAiReasoning.types.d.ts +1 -1
- package/library/types/types/VcApprovalCard.types.d.ts +1 -1
- package/library/types/types/VcChatComposer.types.d.ts +1 -1
- package/library/types/types/VcDatePicker.types.d.ts +1 -1
- package/library/types/types/VcDropdown.types.d.ts +2 -2
- package/library/types/types/VcEditableTabs.types.d.ts +1 -1
- package/library/types/types/VcEmojiPicker.types.d.ts +1 -1
- package/library/types/types/VcFileUploader.types.d.ts +1 -1
- package/library/types/types/VcFilterBar.types.d.ts +3 -3
- package/library/types/types/VcJsonViewer.types.d.ts +2 -2
- package/library/types/types/VcMdEditor.types.d.ts +1 -1
- package/library/types/types/VcMessage.types.d.ts +1 -1
- package/library/types/types/VcMessagesWrapper.types.d.ts +1 -1
- package/library/types/types/VcNotification.types.d.ts +2 -2
- package/library/types/types/VcSkeletonLoader.types.d.ts +1 -0
- package/library/types/types/VcSoundPlayer.types.d.ts +3 -3
- package/library/types/types/VcSoundPlayerInstance.types.d.ts +3 -3
- package/library/types/types/VcSplitButton.types.d.ts +4 -4
- package/library/types/types/VcToolCall.types.d.ts +2 -2
- package/library/types/types/VcTour.types.d.ts +2 -2
- package/library/types/types/VcTree.types.d.ts +2 -2
- package/library/types/types/icons.types.d.ts +1 -1
- package/library/types/utils/aiChat.d.ts +1 -1
- package/library/types/utils/elementPlusIcons.d.ts +2 -2
- package/library/types/utils/excelParser/configs.d.ts +1 -1
- package/library/types/utils/excelParser/helper.d.ts +3 -3
- package/library/types/utils/excelParser/parser.d.ts +1 -1
- package/library/types/utils/excelParser/validations.d.ts +1 -1
- package/library/types/utils/helpers.d.ts +1 -1
- package/library/types/utils/jsonSchema/helpers.d.ts +5 -2
- package/library/types/utils/jsonSchema/index.d.ts +1 -1
- package/library/types/utils/jsonSchema/jsonSchemaHelpers.d.ts +4 -4
- package/library/types/utils/lucideIcon.d.ts +1 -1
- package/library/types/utils/mountPluginOverlays.d.ts +1 -1
- package/library/utils/globalSingleton.mjs +5 -11
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/library/utils/jsonSchema/jsonSchemaHelpers.mjs +1 -0
- package/package.json +310 -310
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +78 -78
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +63 -63
- package/src/theme/themes.json +72 -72
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +178 -178
- package/library/types/components/VcWizard/VcWizardTransition.vue.d.ts +0 -58
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{tooltip.css → date-picker.css} +0 -0
package/MIGRATION_v3.md
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
# Migration to v3.0.0
|
|
2
|
-
|
|
3
|
-
v3 is a build/packaging overhaul that unlocks tree-shaking. Source-level component APIs are unchanged. Three things change for consumers.
|
|
4
|
-
|
|
5
|
-
## 1. Plugin import path
|
|
6
|
-
|
|
7
|
-
The default export is no longer the install plugin. The package root now exports only the named API so bundlers can drop unused components.
|
|
8
|
-
|
|
9
|
-
```diff
|
|
10
|
-
- import VoicenterUI from '@voicenter-team/voicenter-ui-plus'
|
|
11
|
-
+ import VoicenterUI from '@voicenter-team/voicenter-ui-plus/plugin'
|
|
12
|
-
- import '@voicenter-team/voicenter-ui-plus/style.css'
|
|
13
|
-
|
|
14
|
-
app.use(VoicenterUI, config)
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
With a bundler (Vite/webpack) **no stylesheet import is needed in either mode**: the plugin entry imports the global styles itself, and every component pulls its own colocated CSS chunk through the module graph.
|
|
18
|
-
|
|
19
|
-
Tree-shake mode (recommended for new code) needs no `app.use()`:
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
import { VcButton, VcInput } from '@voicenter-team/voicenter-ui-plus'
|
|
23
|
-
// Do NOT also import 'style.css' — see "CSS strategy" below.
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### CSS strategy — pick one
|
|
27
|
-
|
|
28
|
-
Each consumption mode loads CSS differently. Mixing them duplicates styles.
|
|
29
|
-
|
|
30
|
-
| Mode | What you import | Why |
|
|
31
|
-
|---|---|---|
|
|
32
|
-
| **Tree-shake** | Only the named components. **No `style.css`.** | Each component module already imports its own colocated CSS chunk. The aggregated `style.css` would re-ship every component's styles. |
|
|
33
|
-
| **Plugin** | `'@voicenter-team/voicenter-ui-plus/plugin'` only. **No `style.css`.** | The plugin entry imports the global styles itself, and every component it registers pulls its own CSS chunk through the module graph — everything is already covered. |
|
|
34
|
-
| **No bundler** (`<link>`, CDN/UMD, toolchains that can't process CSS imports from JS) | `'@voicenter-team/voicenter-ui-plus/style.css'` as the **only** CSS source | The aggregated single sheet — a full copy of the global styles, Element Plus CSS and every component's CSS in the correct cascade order. |
|
|
35
|
-
|
|
36
|
-
A hybrid (plugin install + a few stand-alone tree-shake imports) is safe with no extra steps — both paths load per-component CSS through the module graph and bundlers dedupe module imports. Never add `style.css` on top of a bundler setup: it is a full textual copy of every stylesheet (~0.5 MB) and duplicates each rule.
|
|
37
|
-
|
|
38
|
-
### Global overlays (confirm modals, popovers, toasts)
|
|
39
|
-
|
|
40
|
-
`useConfirmModal`, `useConfirmPopup`, and toast notifications (`NotifyService` / `$notify`) are driven by **global singleton state**. Calling the composable or service only updates that state — nothing appears until the matching overlay components exist in the DOM:
|
|
41
|
-
|
|
42
|
-
| Composable / service | Required overlay component |
|
|
43
|
-
|---|---|
|
|
44
|
-
| `useConfirmModal` | `VcConfirmModal` |
|
|
45
|
-
| `useConfirmPopup` | `VcConfirmPopover` |
|
|
46
|
-
| `NotifyService` / `$notify` | `VcNotification` (one or more, by `group`) |
|
|
47
|
-
|
|
48
|
-
**Plugin mode** mounts confirm modal/popover automatically. Notifications default to a single top-right host, or you can configure multiple:
|
|
49
|
-
|
|
50
|
-
```ts
|
|
51
|
-
app.use(VoicenterUI, {
|
|
52
|
-
themeConfig: { ... },
|
|
53
|
-
// Multiple notification corners (pass the same group in $notify.add):
|
|
54
|
-
overlayNotifications: [
|
|
55
|
-
{ group: 'top-right', position: 'top-right' },
|
|
56
|
-
{ group: 'bottom-right', position: 'bottom-right' },
|
|
57
|
-
],
|
|
58
|
-
})
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**Own notification layout in App.vue** — skip the auto-mounted notification host but keep confirms:
|
|
62
|
-
|
|
63
|
-
```ts
|
|
64
|
-
app.use(VoicenterUI, {
|
|
65
|
-
themeConfig: { ... },
|
|
66
|
-
overlayNotifications: 'none',
|
|
67
|
-
})
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
```vue
|
|
71
|
-
<template>
|
|
72
|
-
<RouterView />
|
|
73
|
-
<VcNotification group="top-right" position="top-right" />
|
|
74
|
-
<VcNotification group="bottom-right" position="bottom-right" />
|
|
75
|
-
</template>
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Tree-shake mode** — mount everything in `App.vue`:
|
|
79
|
-
|
|
80
|
-
```vue
|
|
81
|
-
<script setup lang="ts">
|
|
82
|
-
import { VcPluginOverlays } from '@voicenter-team/voicenter-ui-plus'
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<template>
|
|
86
|
-
<RouterView />
|
|
87
|
-
<!-- default single notification + confirms -->
|
|
88
|
-
<VcPluginOverlays />
|
|
89
|
-
|
|
90
|
-
<!-- or custom notifications + confirms only -->
|
|
91
|
-
<VcPluginOverlays notifications="none" />
|
|
92
|
-
<VcNotification group="top-right" position="top-right" />
|
|
93
|
-
<VcNotification group="bottom-right" position="bottom-right" />
|
|
94
|
-
</template>
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
When calling `$notify.add`, pass the matching `group`:
|
|
98
|
-
|
|
99
|
-
```ts
|
|
100
|
-
NotifyService.add({ group: 'bottom-right', type: 'success', message: 'Saved' })
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
#### Shadow DOM / custom-element hosts
|
|
104
|
-
|
|
105
|
-
By default the overlays teleport to `document.body`. Inside a custom element
|
|
106
|
-
(web component) `document.body` is outside the shadow root, so the confirm
|
|
107
|
-
modal, confirm popover and toasts render unstyled / in the wrong tree. Point
|
|
108
|
-
them back inside the shadow root with `overlayAppendTo` (teleport target) and
|
|
109
|
-
`overlayContainer` (where the overlay host element is mounted):
|
|
110
|
-
|
|
111
|
-
```ts
|
|
112
|
-
// `shadowRoot` is your custom element's ShadowRoot (or an element inside it)
|
|
113
|
-
app.use(VoicenterUI, {
|
|
114
|
-
themeConfig: { ... },
|
|
115
|
-
overlayAppendTo: shadowRoot,
|
|
116
|
-
overlayContainer: shadowRoot,
|
|
117
|
-
})
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
In tree-shake mode pass the same target via the `appendTo` prop / helper arg:
|
|
121
|
-
|
|
122
|
-
```vue
|
|
123
|
-
<VcPluginOverlays :append-to="shadowRoot" />
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
```ts
|
|
127
|
-
mountPluginOverlays(app, VcPluginOverlays, { appendTo: shadowRoot }, shadowRoot)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## 2. The extended package is gone
|
|
131
|
-
|
|
132
|
-
`@voicenter-team/voicenter-ui-plus-extended` is deprecated. Every component it shipped (`VcHtmlEditor`, `VcPdfDocument`, `VcExcelFileUploader`, `VcImageUploader`, `VcTour`, `VcSipFlow`, the entity system) now lives in the unified core package.
|
|
133
|
-
|
|
134
|
-
```diff
|
|
135
|
-
- import { VcPdfDocument } from '@voicenter-team/voicenter-ui-plus-extended'
|
|
136
|
-
+ import { VcPdfDocument } from '@voicenter-team/voicenter-ui-plus'
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
Plugin users that previously did `app.use(VoicenterExtendedUI, { entityComponentsEnabled: true, baseUIConfig: {...} })` should flatten the config — `entityComponentsEnabled` is also gone, since v3 always registers every component:
|
|
140
|
-
|
|
141
|
-
```diff
|
|
142
|
-
- app.use(VoicenterExtendedUI, {
|
|
143
|
-
- entityComponentsEnabled: true,
|
|
144
|
-
- baseUIConfig: { themeConfig: {...} }
|
|
145
|
-
- })
|
|
146
|
-
+ app.use(VoicenterUI, {
|
|
147
|
-
+ themeConfig: {...}
|
|
148
|
-
+ })
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
The v2 `config.components` whitelist is also gone. If you need partial registration, use named imports + local component registration instead — that's also tree-shake-friendly.
|
|
152
|
-
|
|
153
|
-
## 3. Heavy deps are externalized peer dependencies
|
|
154
|
-
|
|
155
|
-
Components like `VcMdEditor`, `VcPdfDocument`, `VcSoundPlayer`, `VcHtmlEditor`, `VcImageUploader`, `VcExcelFileUploader`, `VcJsonSchema` no longer bundle their dependencies — they're peer-installed and externalized at the library's build step. Tree-shaking guarantees that only the deps backing components you actually import end up in your final bundle.
|
|
156
|
-
|
|
157
|
-
All peers are required (install them all). Disk footprint in `node_modules` is bigger; production bundle is smaller — if you never import `VcMdEditor`, `@milkdown/*` never reaches your `dist/`.
|
|
158
|
-
|
|
159
|
-
| Component | Backing peer dep |
|
|
160
|
-
|---|---|
|
|
161
|
-
| `VcMdEditor` | `@milkdown/crepe`, `@milkdown/kit`, `@milkdown/utils`, `@milkdown/vue`, `@prosemirror-adapter/vue` |
|
|
162
|
-
| `VcSoundPlayer` | `wavesurfer.js` |
|
|
163
|
-
| `VcPdfDocument` | `pdfjs-dist@^2.9.359` |
|
|
164
|
-
| `VcHtmlEditor` | `codemirror`, `@codemirror/lang-html`, `@codemirror/lang-markdown`, `vue-codemirror6` |
|
|
165
|
-
| `VcJsonSchema` | `codemirror`, `@codemirror/lang-json`, `vue-codemirror6` |
|
|
166
|
-
| `VcImageUploader` | `vue-advanced-cropper` |
|
|
167
|
-
| `VcExcelFileUploader` | `xlsx` |
|
|
168
|
-
| `VcEmojiPicker` | `emojibase-data` (loaded lazily on the first open) |
|
|
169
|
-
| `VcChatComposer` | `@tiptap/core`, `@tiptap/pm`, `@tiptap/vue-3`, `@tiptap/extension-document`, `@tiptap/extension-paragraph`, `@tiptap/extension-text`, `@tiptap/extension-bold`, `@tiptap/extension-italic`, `@tiptap/extension-strike`, `@tiptap/extension-code`, `@tiptap/extension-mention`, `@tiptap/extensions`, `@tiptap/suggestion`, `@floating-ui/dom`; plus `emojibase-data` (emoji picker) and `wavesurfer.js` (voice preview) |
|
|
170
|
-
|
|
171
|
-
Required across the board: `vue@^3.5.13`, `element-plus@^2.11.3`, `@vueuse/core@>=10.7.2`, `dayjs`, `lodash-es`, `libphonenumber-js`, `maska@^3`.
|
|
172
|
-
|
|
173
|
-
**Sass compiler (build-time):** the library customizes element-plus theming via SCSS variable injection. If your project doesn't already use Sass, install `sass-embedded` as a dev dependency: `npm i -D sass-embedded`. Build-time only — not in your runtime bundle.
|
|
174
|
-
|
|
175
|
-
`@vueuse/core` is intentionally widened (`>=10.7.2`) — the lib only uses APIs that have been stable since v10. `maska` was bumped to `^3` in v3 of this lib (the v1.x API with `import { maska }` is gone — use `import { vMaska } from 'maska/vue'`).
|
|
176
|
-
|
|
177
|
-
> **Note on previous v3 betas:** earlier v3 releases marked heavy peers `optional` and required consumers to add a `build.rollupOptions.external` array in `vite.config.ts` to skip uninstalled peers. That requirement is gone — install all peers and your bundler config stays untouched. Tree-shaking removes unused peers from the final bundle regardless.
|
|
178
|
-
|
|
179
|
-
## 4. `VcWizard` step keys renamed
|
|
180
|
-
|
|
181
|
-
Two `steps[]` keys were renamed for clarity:
|
|
182
|
-
|
|
183
|
-
| v2 key | v3 key |
|
|
184
|
-
| --- | --- |
|
|
185
|
-
| `beforeStepFn` | `validateStepFn` |
|
|
186
|
-
| `onEnterStepFn` | `initStepFn` |
|
|
187
|
-
|
|
188
|
-
The old keys still work in v3.x — they emit a one-shot `console.warn` and will be removed in v4. TS consumers see them flagged with `@deprecated` (strikethrough in the IDE). JS consumers should grep their codebase for `beforeStepFn` / `onEnterStepFn` and rename ahead of v4.
|
|
189
|
-
|
|
190
|
-
## What changed under the hood
|
|
191
|
-
|
|
192
|
-
- Single bundle (5.24 MB chunk + 1.98 MB CSS) split into per-module output (~80 component `.mjs` files, each pulling its own CSS).
|
|
193
|
-
- `import { VcButton }` from a fresh project now produces a Vite bundle of ~50–150 KB JS + ~10–30 KB CSS, vs ~5 MB + ~2 MB on v2.
|
|
194
|
-
- `lodash` (CJS) → `lodash-es` (ESM) — eliminates per-chunk interop helpers.
|
|
195
|
-
- `pdfjs-dist` worker setup moved from module-top-level to a lazy initializer fired at component setup, so importing core no longer touches `GlobalWorkerOptions`.
|
|
196
|
-
- UMD bundle (`index.umd.js`) is no longer produced as part of the main build. If you load via CDN script tag and need a UMD asset, file an issue.
|
|
1
|
+
# Migration to v3.0.0
|
|
2
|
+
|
|
3
|
+
v3 is a build/packaging overhaul that unlocks tree-shaking. Source-level component APIs are unchanged. Three things change for consumers.
|
|
4
|
+
|
|
5
|
+
## 1. Plugin import path
|
|
6
|
+
|
|
7
|
+
The default export is no longer the install plugin. The package root now exports only the named API so bundlers can drop unused components.
|
|
8
|
+
|
|
9
|
+
```diff
|
|
10
|
+
- import VoicenterUI from '@voicenter-team/voicenter-ui-plus'
|
|
11
|
+
+ import VoicenterUI from '@voicenter-team/voicenter-ui-plus/plugin'
|
|
12
|
+
- import '@voicenter-team/voicenter-ui-plus/style.css'
|
|
13
|
+
|
|
14
|
+
app.use(VoicenterUI, config)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
With a bundler (Vite/webpack) **no stylesheet import is needed in either mode**: the plugin entry imports the global styles itself, and every component pulls its own colocated CSS chunk through the module graph.
|
|
18
|
+
|
|
19
|
+
Tree-shake mode (recommended for new code) needs no `app.use()`:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { VcButton, VcInput } from '@voicenter-team/voicenter-ui-plus'
|
|
23
|
+
// Do NOT also import 'style.css' — see "CSS strategy" below.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### CSS strategy — pick one
|
|
27
|
+
|
|
28
|
+
Each consumption mode loads CSS differently. Mixing them duplicates styles.
|
|
29
|
+
|
|
30
|
+
| Mode | What you import | Why |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| **Tree-shake** | Only the named components. **No `style.css`.** | Each component module already imports its own colocated CSS chunk. The aggregated `style.css` would re-ship every component's styles. |
|
|
33
|
+
| **Plugin** | `'@voicenter-team/voicenter-ui-plus/plugin'` only. **No `style.css`.** | The plugin entry imports the global styles itself, and every component it registers pulls its own CSS chunk through the module graph — everything is already covered. |
|
|
34
|
+
| **No bundler** (`<link>`, CDN/UMD, toolchains that can't process CSS imports from JS) | `'@voicenter-team/voicenter-ui-plus/style.css'` as the **only** CSS source | The aggregated single sheet — a full copy of the global styles, Element Plus CSS and every component's CSS in the correct cascade order. |
|
|
35
|
+
|
|
36
|
+
A hybrid (plugin install + a few stand-alone tree-shake imports) is safe with no extra steps — both paths load per-component CSS through the module graph and bundlers dedupe module imports. Never add `style.css` on top of a bundler setup: it is a full textual copy of every stylesheet (~0.5 MB) and duplicates each rule.
|
|
37
|
+
|
|
38
|
+
### Global overlays (confirm modals, popovers, toasts)
|
|
39
|
+
|
|
40
|
+
`useConfirmModal`, `useConfirmPopup`, and toast notifications (`NotifyService` / `$notify`) are driven by **global singleton state**. Calling the composable or service only updates that state — nothing appears until the matching overlay components exist in the DOM:
|
|
41
|
+
|
|
42
|
+
| Composable / service | Required overlay component |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `useConfirmModal` | `VcConfirmModal` |
|
|
45
|
+
| `useConfirmPopup` | `VcConfirmPopover` |
|
|
46
|
+
| `NotifyService` / `$notify` | `VcNotification` (one or more, by `group`) |
|
|
47
|
+
|
|
48
|
+
**Plugin mode** mounts confirm modal/popover automatically. Notifications default to a single top-right host, or you can configure multiple:
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
app.use(VoicenterUI, {
|
|
52
|
+
themeConfig: { ... },
|
|
53
|
+
// Multiple notification corners (pass the same group in $notify.add):
|
|
54
|
+
overlayNotifications: [
|
|
55
|
+
{ group: 'top-right', position: 'top-right' },
|
|
56
|
+
{ group: 'bottom-right', position: 'bottom-right' },
|
|
57
|
+
],
|
|
58
|
+
})
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Own notification layout in App.vue** — skip the auto-mounted notification host but keep confirms:
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
app.use(VoicenterUI, {
|
|
65
|
+
themeConfig: { ... },
|
|
66
|
+
overlayNotifications: 'none',
|
|
67
|
+
})
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```vue
|
|
71
|
+
<template>
|
|
72
|
+
<RouterView />
|
|
73
|
+
<VcNotification group="top-right" position="top-right" />
|
|
74
|
+
<VcNotification group="bottom-right" position="bottom-right" />
|
|
75
|
+
</template>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Tree-shake mode** — mount everything in `App.vue`:
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<script setup lang="ts">
|
|
82
|
+
import { VcPluginOverlays } from '@voicenter-team/voicenter-ui-plus'
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<template>
|
|
86
|
+
<RouterView />
|
|
87
|
+
<!-- default single notification + confirms -->
|
|
88
|
+
<VcPluginOverlays />
|
|
89
|
+
|
|
90
|
+
<!-- or custom notifications + confirms only -->
|
|
91
|
+
<VcPluginOverlays notifications="none" />
|
|
92
|
+
<VcNotification group="top-right" position="top-right" />
|
|
93
|
+
<VcNotification group="bottom-right" position="bottom-right" />
|
|
94
|
+
</template>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
When calling `$notify.add`, pass the matching `group`:
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
NotifyService.add({ group: 'bottom-right', type: 'success', message: 'Saved' })
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Shadow DOM / custom-element hosts
|
|
104
|
+
|
|
105
|
+
By default the overlays teleport to `document.body`. Inside a custom element
|
|
106
|
+
(web component) `document.body` is outside the shadow root, so the confirm
|
|
107
|
+
modal, confirm popover and toasts render unstyled / in the wrong tree. Point
|
|
108
|
+
them back inside the shadow root with `overlayAppendTo` (teleport target) and
|
|
109
|
+
`overlayContainer` (where the overlay host element is mounted):
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
// `shadowRoot` is your custom element's ShadowRoot (or an element inside it)
|
|
113
|
+
app.use(VoicenterUI, {
|
|
114
|
+
themeConfig: { ... },
|
|
115
|
+
overlayAppendTo: shadowRoot,
|
|
116
|
+
overlayContainer: shadowRoot,
|
|
117
|
+
})
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
In tree-shake mode pass the same target via the `appendTo` prop / helper arg:
|
|
121
|
+
|
|
122
|
+
```vue
|
|
123
|
+
<VcPluginOverlays :append-to="shadowRoot" />
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
mountPluginOverlays(app, VcPluginOverlays, { appendTo: shadowRoot }, shadowRoot)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 2. The extended package is gone
|
|
131
|
+
|
|
132
|
+
`@voicenter-team/voicenter-ui-plus-extended` is deprecated. Every component it shipped (`VcHtmlEditor`, `VcPdfDocument`, `VcExcelFileUploader`, `VcImageUploader`, `VcTour`, `VcSipFlow`, the entity system) now lives in the unified core package.
|
|
133
|
+
|
|
134
|
+
```diff
|
|
135
|
+
- import { VcPdfDocument } from '@voicenter-team/voicenter-ui-plus-extended'
|
|
136
|
+
+ import { VcPdfDocument } from '@voicenter-team/voicenter-ui-plus'
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Plugin users that previously did `app.use(VoicenterExtendedUI, { entityComponentsEnabled: true, baseUIConfig: {...} })` should flatten the config — `entityComponentsEnabled` is also gone, since v3 always registers every component:
|
|
140
|
+
|
|
141
|
+
```diff
|
|
142
|
+
- app.use(VoicenterExtendedUI, {
|
|
143
|
+
- entityComponentsEnabled: true,
|
|
144
|
+
- baseUIConfig: { themeConfig: {...} }
|
|
145
|
+
- })
|
|
146
|
+
+ app.use(VoicenterUI, {
|
|
147
|
+
+ themeConfig: {...}
|
|
148
|
+
+ })
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The v2 `config.components` whitelist is also gone. If you need partial registration, use named imports + local component registration instead — that's also tree-shake-friendly.
|
|
152
|
+
|
|
153
|
+
## 3. Heavy deps are externalized peer dependencies
|
|
154
|
+
|
|
155
|
+
Components like `VcMdEditor`, `VcPdfDocument`, `VcSoundPlayer`, `VcHtmlEditor`, `VcImageUploader`, `VcExcelFileUploader`, `VcJsonSchema` no longer bundle their dependencies — they're peer-installed and externalized at the library's build step. Tree-shaking guarantees that only the deps backing components you actually import end up in your final bundle.
|
|
156
|
+
|
|
157
|
+
All peers are required (install them all). Disk footprint in `node_modules` is bigger; production bundle is smaller — if you never import `VcMdEditor`, `@milkdown/*` never reaches your `dist/`.
|
|
158
|
+
|
|
159
|
+
| Component | Backing peer dep |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `VcMdEditor` | `@milkdown/crepe`, `@milkdown/kit`, `@milkdown/utils`, `@milkdown/vue`, `@prosemirror-adapter/vue` |
|
|
162
|
+
| `VcSoundPlayer` | `wavesurfer.js` |
|
|
163
|
+
| `VcPdfDocument` | `pdfjs-dist@^2.9.359` |
|
|
164
|
+
| `VcHtmlEditor` | `codemirror`, `@codemirror/lang-html`, `@codemirror/lang-markdown`, `vue-codemirror6` |
|
|
165
|
+
| `VcJsonSchema` | `codemirror`, `@codemirror/lang-json`, `vue-codemirror6` |
|
|
166
|
+
| `VcImageUploader` | `vue-advanced-cropper` |
|
|
167
|
+
| `VcExcelFileUploader` | `xlsx` |
|
|
168
|
+
| `VcEmojiPicker` | `emojibase-data` (loaded lazily on the first open) |
|
|
169
|
+
| `VcChatComposer` | `@tiptap/core`, `@tiptap/pm`, `@tiptap/vue-3`, `@tiptap/extension-document`, `@tiptap/extension-paragraph`, `@tiptap/extension-text`, `@tiptap/extension-bold`, `@tiptap/extension-italic`, `@tiptap/extension-strike`, `@tiptap/extension-code`, `@tiptap/extension-mention`, `@tiptap/extensions`, `@tiptap/suggestion`, `@floating-ui/dom`; plus `emojibase-data` (emoji picker) and `wavesurfer.js` (voice preview) |
|
|
170
|
+
|
|
171
|
+
Required across the board: `vue@^3.5.13`, `element-plus@^2.11.3`, `@vueuse/core@>=10.7.2`, `dayjs`, `lodash-es`, `libphonenumber-js`, `maska@^3`.
|
|
172
|
+
|
|
173
|
+
**Sass compiler (build-time):** the library customizes element-plus theming via SCSS variable injection. If your project doesn't already use Sass, install `sass-embedded` as a dev dependency: `npm i -D sass-embedded`. Build-time only — not in your runtime bundle.
|
|
174
|
+
|
|
175
|
+
`@vueuse/core` is intentionally widened (`>=10.7.2`) — the lib only uses APIs that have been stable since v10. `maska` was bumped to `^3` in v3 of this lib (the v1.x API with `import { maska }` is gone — use `import { vMaska } from 'maska/vue'`).
|
|
176
|
+
|
|
177
|
+
> **Note on previous v3 betas:** earlier v3 releases marked heavy peers `optional` and required consumers to add a `build.rollupOptions.external` array in `vite.config.ts` to skip uninstalled peers. That requirement is gone — install all peers and your bundler config stays untouched. Tree-shaking removes unused peers from the final bundle regardless.
|
|
178
|
+
|
|
179
|
+
## 4. `VcWizard` step keys renamed
|
|
180
|
+
|
|
181
|
+
Two `steps[]` keys were renamed for clarity:
|
|
182
|
+
|
|
183
|
+
| v2 key | v3 key |
|
|
184
|
+
| --- | --- |
|
|
185
|
+
| `beforeStepFn` | `validateStepFn` |
|
|
186
|
+
| `onEnterStepFn` | `initStepFn` |
|
|
187
|
+
|
|
188
|
+
The old keys still work in v3.x — they emit a one-shot `console.warn` and will be removed in v4. TS consumers see them flagged with `@deprecated` (strikethrough in the IDE). JS consumers should grep their codebase for `beforeStepFn` / `onEnterStepFn` and rename ahead of v4.
|
|
189
|
+
|
|
190
|
+
## What changed under the hood
|
|
191
|
+
|
|
192
|
+
- Single bundle (5.24 MB chunk + 1.98 MB CSS) split into per-module output (~80 component `.mjs` files, each pulling its own CSS).
|
|
193
|
+
- `import { VcButton }` from a fresh project now produces a Vite bundle of ~50–150 KB JS + ~10–30 KB CSS, vs ~5 MB + ~2 MB on v2.
|
|
194
|
+
- `lodash` (CJS) → `lodash-es` (ESM) — eliminates per-chunk interop helpers.
|
|
195
|
+
- `pdfjs-dist` worker setup moved from module-top-level to a lazy initializer fired at component setup, so importing core no longer touches `GlobalWorkerOptions`.
|
|
196
|
+
- UMD bundle (`index.umd.js`) is no longer produced as part of the main build. If you load via CDN script tag and need a UMD asset, file an issue.
|