@widgetic/design-system 0.5.10 → 0.5.12
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/dist/components/CopyableHeader.svelte +4 -4
- package/dist/components/CopyableHeader.svelte.d.ts +38 -34
- package/dist/components/EmptyState.svelte +3 -4
- package/dist/components/EmptyState.svelte.d.ts +35 -31
- package/dist/components/GenerateLoader.svelte.d.ts +23 -19
- package/dist/components/PasswordInput.svelte.d.ts +23 -19
- package/dist/components/ThumbHashImage.svelte +40 -30
- package/dist/components/ThumbHashImage.svelte.d.ts +24 -20
- package/dist/components/WScrollArea.svelte.d.ts +36 -25
- package/dist/components/debug-grid/DebugGrid.svelte +1 -1
- package/dist/components/debug-grid/DebugGrid.svelte.d.ts +30 -26
- package/dist/components/ic/browser/BrowserInputController.svelte +19 -56
- package/dist/components/ic/browser/BrowserInputController.svelte.d.ts +31 -26
- package/dist/components/modals/ActionModal.svelte +15 -22
- package/dist/components/modals/ActionModal.svelte.d.ts +47 -36
- package/dist/components/modals/BaseModal.svelte +14 -12
- package/dist/components/modals/BaseModal.svelte.d.ts +36 -32
- package/dist/components/modals/NewItemDialog.svelte +1 -1
- package/dist/components/modals/NewItemDialog.svelte.d.ts +37 -33
- package/dist/components/modals/Portal.svelte +6 -6
- package/dist/components/modals/Portal.svelte.d.ts +32 -21
- package/dist/components/modals/RenameDialog.svelte +6 -56
- package/dist/components/modals/RenameDialog.svelte.d.ts +37 -33
- package/dist/components/modals/modalStore.js +3 -6
- package/dist/components/navigation/Breadcrumbs.svelte +20 -14
- package/dist/components/navigation/Breadcrumbs.svelte.d.ts +32 -28
- package/dist/components/pdf/PDFViewer.svelte +104 -101
- package/dist/components/pdf/PDFViewer.svelte.d.ts +30 -26
- package/dist/components/search-input/SearchInput.svelte +2 -2
- package/dist/components/search-input/SearchInput.svelte.d.ts +44 -40
- package/dist/components/shad-editor/colorpicker.svelte.d.ts +3 -14
- package/dist/components/shad-editor/custom/Extentions/SearchAndReplace.js +2 -1
- package/dist/components/shad-editor/custom/code-extended.svelte +1 -1
- package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +3 -14
- package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +3 -14
- package/dist/components/shad-editor/editor-toolbar.svelte +5 -7
- package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +7 -14
- package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/bold.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/code.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/highlighter.svelte +5 -7
- package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +8 -14
- package/dist/components/shad-editor/icons/image.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/italic.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/link.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/redo.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/subscript.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/superscript.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/table.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/task-list.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/text.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/textalign.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/textcolor.svelte +5 -7
- package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +7 -14
- package/dist/components/shad-editor/icons/underline.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/undo.svelte.d.ts +4 -14
- package/dist/components/shad-editor/shad-editor.svelte +10 -11
- package/dist/components/shad-editor/shad-editor.svelte.d.ts +30 -20
- package/dist/components/toast/ToasterModal.svelte.d.ts +16 -11
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -15
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -15
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +5 -15
- package/dist/components/ui/alert/alert-description.svelte.d.ts +25 -14
- package/dist/components/ui/alert/alert-title.svelte.d.ts +27 -16
- package/dist/components/ui/alert/alert.svelte.d.ts +27 -16
- package/dist/components/ui/badge/badge.svelte +1 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +57 -16
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +7 -15
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +3 -14
- package/dist/components/ui/button/button.svelte.d.ts +120 -21
- package/dist/components/ui/calendar/calendar-cell.svelte +2 -3
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-day.svelte +2 -3
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid-body.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid-head.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid-row.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-head-cell.svelte +2 -3
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-header.svelte +2 -3
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-heading.svelte +2 -3
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +3 -14
- package/dist/components/ui/calendar/calendar-next-button.svelte +2 -3
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-prev-button.svelte +2 -3
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar.svelte +2 -3
- package/dist/components/ui/calendar/calendar.svelte.d.ts +5 -15
- package/dist/components/ui/card/card-content.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-description.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-footer.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-header.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-title.svelte.d.ts +5 -15
- package/dist/components/ui/card/card.svelte.d.ts +3 -14
- package/dist/components/ui/checkbox/checkbox.svelte +2 -3
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-dialog.svelte.d.ts +7 -20
- package/dist/components/ui/command/command-empty.svelte +2 -3
- package/dist/components/ui/command/command-empty.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-group.svelte.d.ts +6 -16
- package/dist/components/ui/command/command-input.svelte +2 -3
- package/dist/components/ui/command/command-input.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-item.svelte +2 -3
- package/dist/components/ui/command/command-item.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-link-item.svelte +2 -3
- package/dist/components/ui/command/command-link-item.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-list.svelte +2 -3
- package/dist/components/ui/command/command-list.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-separator.svelte +2 -3
- package/dist/components/ui/command/command-separator.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +3 -14
- package/dist/components/ui/command/command.svelte +2 -3
- package/dist/components/ui/command/command.svelte.d.ts +4 -15
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +6 -17
- package/dist/components/ui/dialog/dialog-description.svelte +2 -3
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -15
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +3 -14
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +3 -14
- package/dist/components/ui/dialog/dialog-overlay.svelte +2 -3
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -15
- package/dist/components/ui/dialog/dialog-title.svelte +2 -3
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +6 -16
- package/dist/components/ui/drawer/drawer-description.svelte +1 -2
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +3 -14
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +3 -14
- package/dist/components/ui/drawer/drawer-nested.svelte +1 -3
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-overlay.svelte +1 -2
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-title.svelte +1 -2
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer.svelte +1 -3
- package/dist/components/ui/drawer/drawer.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +5 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +6 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +6 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +6 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +5 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +2 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +2 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +3 -14
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +2 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +6 -16
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +6 -16
- package/dist/components/ui/input/input.svelte.d.ts +3 -14
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +3 -14
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +3 -14
- package/dist/components/ui/input-otp/input-otp-slot.svelte +2 -3
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +13 -15
- package/dist/components/ui/input-otp/input-otp.svelte +2 -3
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +4 -15
- package/dist/components/ui/label/label.svelte +2 -3
- package/dist/components/ui/label/label.svelte.d.ts +4 -15
- package/dist/components/ui/popover/popover-content.svelte.d.ts +6 -16
- package/dist/components/ui/progress/progress.svelte +2 -3
- package/dist/components/ui/progress/progress.svelte.d.ts +4 -15
- package/dist/components/ui/radio-group/radio-group-item.svelte +2 -3
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -15
- package/dist/components/ui/radio-group/radio-group.svelte +2 -3
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-header.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +3 -14
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +5 -15
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +1 -2
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -15
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +7 -17
- package/dist/components/ui/select/select-content.svelte.d.ts +5 -15
- package/dist/components/ui/select/select-group-heading.svelte +2 -3
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-item.svelte +2 -3
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-scroll-down-button.svelte +2 -3
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-scroll-up-button.svelte +2 -3
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-separator.svelte +2 -3
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-trigger.svelte +2 -3
- package/dist/components/ui/select/select-trigger.svelte.d.ts +4 -15
- package/dist/components/ui/separator/separator.svelte +2 -3
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -15
- package/dist/components/ui/slider/slider.svelte +2 -3
- package/dist/components/ui/slider/slider.svelte.d.ts +4 -15
- package/dist/components/ui/sonner/sonner.svelte +2 -1
- package/dist/components/ui/sonner/sonner.svelte.d.ts +3 -14
- package/dist/components/ui/switch/switch.svelte +2 -3
- package/dist/components/ui/switch/switch.svelte.d.ts +4 -15
- package/dist/components/ui/table/table-body.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-caption.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-cell.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-footer.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-head.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-header.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-row.svelte.d.ts +3 -14
- package/dist/components/ui/table/table.svelte.d.ts +3 -14
- package/dist/components/ui/tabs/tabs-content.svelte +2 -3
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -15
- package/dist/components/ui/tabs/tabs-list.svelte +2 -3
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +4 -15
- package/dist/components/ui/tabs/tabs-trigger.svelte +2 -3
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -15
- package/dist/components/ui/textarea/textarea.svelte.d.ts +3 -14
- package/dist/components/ui/toggle/toggle.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte.d.ts +82 -18
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +2 -3
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +4 -15
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +8 -16
- package/dist/components/ui/tooltip/index.d.ts +2 -1
- package/dist/components/ui/tooltip/index.js +5 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte +1 -2
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -15
- package/dist/components/widget-system/EditableWidget.svelte.d.ts +42 -30
- package/dist/components/widget-system/Moveable.svelte +14 -8
- package/dist/components/widget-system/Moveable.svelte.d.ts +51 -39
- package/dist/fonts/Cousine/Cousine-Bold.woff2 +0 -0
- package/dist/fonts/Cousine/Cousine-Regular.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Black.woff2 +0 -0
- package/dist/fonts/Inter/Inter-BlackItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Bold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-BoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraBold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraLight-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraLightItalic-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Italic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Light-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-LightItalic-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Medium.woff2 +0 -0
- package/dist/fonts/Inter/Inter-MediumItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Regular.woff2 +0 -0
- package/dist/fonts/Inter/Inter-SemiBold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Thin-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ThinItalic-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-italic.var.woff2 +0 -0
- package/dist/fonts/Inter/Inter-upright.var.woff2 +0 -0
- package/dist/fonts/Inter/Inter.var.woff2 +0 -0
- package/dist/fonts/JetBrainsMono/JetBrainsMono-ExtraBold.woff2 +0 -0
- package/dist/icons/Checked.svelte.d.ts +18 -14
- package/dist/icons/CheckerBoardBackground.svelte.d.ts +3 -14
- package/dist/icons/Close.svelte.d.ts +18 -14
- package/dist/icons/Exclamation.svelte.d.ts +22 -19
- package/dist/icons/FileBrowser.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgetic.svelte +1 -1
- package/dist/icons/LogoWidgetic.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgeticGreen.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgeticType.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgeticTypeOld.svelte.d.ts +18 -14
- package/dist/icons/OpacitySliderArrows.svelte.d.ts +3 -14
- package/dist/icons/TestIcon.svelte.d.ts +22 -19
- package/dist/icons/index.js +3 -3
- package/dist/stores/pdfCache.js +58 -38
- package/dist/styles/fonts.css +402 -98
- package/dist/styles/global.css +62 -30
- package/package.json +22 -19
- package/tailwind.config.ts +22 -0
- package/dist/fonts/BLMelody/BLMelody-Bold.woff2 +0 -0
- package/dist/fonts/BLMelody/BLMelody-Medium.woff2 +0 -0
- package/dist/fonts/BLMelody/BLMelody-SemiBold.woff2 +0 -0
- package/dist/fonts/Riegla/Riegla-Bold Italic.otf +0 -0
- package/dist/fonts/Riegla/Riegla-Bold.otf +0 -0
- package/dist/fonts/Riegla/Riegla-Italic.otf +0 -0
- package/dist/fonts/Riegla/Riegla-Regular.otf +0 -0
- package/dist/fonts/Riegla/RieglaMedium-Regular.otf +0 -0
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
events: {
|
|
6
|
-
[evt: string]: CustomEvent<any>;
|
|
7
|
-
};
|
|
8
|
-
slots: {};
|
|
9
|
-
};
|
|
10
|
-
type EditorToolbarProps_ = EditorToolbarProps;
|
|
11
|
-
export type EditorToolbarEvents = typeof __propDef.events;
|
|
12
|
-
export type EditorToolbarSlots = typeof __propDef.slots;
|
|
13
|
-
export default class EditorToolbar extends SvelteComponentTyped<EditorToolbarProps_, EditorToolbarEvents, EditorToolbarSlots> {
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export interface EditorToolbarProps {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
class?: string;
|
|
14
5
|
}
|
|
15
|
-
|
|
6
|
+
declare const EditorToolbar: import("svelte").Component<EditorToolbarProps, {}, "">;
|
|
7
|
+
type EditorToolbar = ReturnType<typeof EditorToolbar>;
|
|
8
|
+
export default EditorToolbar;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type BlockQuoteProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type BlockQuoteProps_ = BlockQuoteProps;
|
|
14
|
-
export type BlockQuoteEvents = typeof __propDef.events;
|
|
15
|
-
export type BlockQuoteSlots = typeof __propDef.slots;
|
|
16
|
-
export default class BlockQuote extends SvelteComponentTyped<BlockQuoteProps_, BlockQuoteEvents, BlockQuoteSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const BlockQuote: import("svelte").Component<BlockQuoteProps, {}, "">;
|
|
6
|
+
type BlockQuote = ReturnType<typeof BlockQuote>;
|
|
7
|
+
export default BlockQuote;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type BoldProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Bold } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type BoldProps_ = BoldProps;
|
|
14
|
-
export type BoldEvents = typeof __propDef.events;
|
|
15
|
-
export type BoldSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Bold extends SvelteComponentTyped<BoldProps_, BoldEvents, BoldSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Bold: import("svelte").Component<BoldProps, {}, "">;
|
|
7
|
+
type Bold = ReturnType<typeof Bold>;
|
|
8
|
+
export default Bold;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type ButtleListProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type ButtleListProps_ = ButtleListProps;
|
|
14
|
-
export type ButtleListEvents = typeof __propDef.events;
|
|
15
|
-
export type ButtleListSlots = typeof __propDef.slots;
|
|
16
|
-
export default class ButtleList extends SvelteComponentTyped<ButtleListProps_, ButtleListEvents, ButtleListSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const ButtleList: import("svelte").Component<ButtleListProps, {}, "">;
|
|
6
|
+
type ButtleList = ReturnType<typeof ButtleList>;
|
|
7
|
+
export default ButtleList;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type CodeProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Code } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type CodeProps_ = CodeProps;
|
|
14
|
-
export type CodeEvents = typeof __propDef.events;
|
|
15
|
-
export type CodeSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Code extends SvelteComponentTyped<CodeProps_, CodeEvents, CodeSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Code: import("svelte").Component<CodeProps, {}, "">;
|
|
7
|
+
type Code = ReturnType<typeof Code>;
|
|
8
|
+
export default Code;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import type { Editor } from '@tiptap/core';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export interface HighlighterProps {
|
|
5
|
+
editor: Editor;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
4
8
|
</script>
|
|
5
9
|
|
|
6
10
|
<script lang="ts">
|
|
7
11
|
import { Highlighter } from 'lucide-svelte';
|
|
8
12
|
import { X } from 'lucide-svelte';
|
|
9
13
|
import { ChevronDown } from 'lucide-svelte';
|
|
10
|
-
import { type Editor } from '@tiptap/core';
|
|
11
14
|
import * as Tooltip from '../../ui/tooltip/index.js';
|
|
12
15
|
import { Button } from '../../ui/button/index.js';
|
|
13
16
|
import { cn } from '../../../utils.js';
|
|
@@ -15,11 +18,6 @@
|
|
|
15
18
|
import { mode } from 'mode-watcher';
|
|
16
19
|
import ColorPicker from 'svelte-awesome-color-picker';
|
|
17
20
|
|
|
18
|
-
interface Props {
|
|
19
|
-
editor: Editor;
|
|
20
|
-
color?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
21
|
let { editor, color = $bindable('') }: HighlighterProps = $props();
|
|
24
22
|
</script>
|
|
25
23
|
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
events: {
|
|
6
|
-
[evt: string]: CustomEvent<any>;
|
|
7
|
-
};
|
|
8
|
-
slots: {};
|
|
9
|
-
};
|
|
10
|
-
type HighlighterProps_ = HighlighterProps;
|
|
11
|
-
export type HighlighterEvents = typeof __propDef.events;
|
|
12
|
-
export type HighlighterSlots = typeof __propDef.slots;
|
|
13
|
-
export default class Highlighter extends SvelteComponentTyped<HighlighterProps_, HighlighterEvents, HighlighterSlots> {
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export interface HighlighterProps {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
color?: string;
|
|
14
5
|
}
|
|
15
|
-
|
|
6
|
+
import { Highlighter } from 'lucide-svelte';
|
|
7
|
+
declare const Highlighter: import("svelte").Component<HighlighterProps, {}, "color">;
|
|
8
|
+
type Highlighter = ReturnType<typeof Highlighter>;
|
|
9
|
+
export default Highlighter;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type ImageProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Image } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type ImageProps_ = ImageProps;
|
|
14
|
-
export type ImageEvents = typeof __propDef.events;
|
|
15
|
-
export type ImageSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Image extends SvelteComponentTyped<ImageProps_, ImageEvents, ImageSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Image: import("svelte").Component<ImageProps, {}, "">;
|
|
7
|
+
type Image = ReturnType<typeof Image>;
|
|
8
|
+
export default Image;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type ItalicProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Italic } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type ItalicProps_ = ItalicProps;
|
|
14
|
-
export type ItalicEvents = typeof __propDef.events;
|
|
15
|
-
export type ItalicSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Italic extends SvelteComponentTyped<ItalicProps_, ItalicEvents, ItalicSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Italic: import("svelte").Component<ItalicProps, {}, "">;
|
|
7
|
+
type Italic = ReturnType<typeof Italic>;
|
|
8
|
+
export default Italic;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type LinkProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Link } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type LinkProps_ = LinkProps;
|
|
14
|
-
export type LinkEvents = typeof __propDef.events;
|
|
15
|
-
export type LinkSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Link extends SvelteComponentTyped<LinkProps_, LinkEvents, LinkSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Link: import("svelte").Component<LinkProps, {}, "">;
|
|
7
|
+
type Link = ReturnType<typeof Link>;
|
|
8
|
+
export default Link;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type OrderedListProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type OrderedListProps_ = OrderedListProps;
|
|
14
|
-
export type OrderedListEvents = typeof __propDef.events;
|
|
15
|
-
export type OrderedListSlots = typeof __propDef.slots;
|
|
16
|
-
export default class OrderedList extends SvelteComponentTyped<OrderedListProps_, OrderedListEvents, OrderedListSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const OrderedList: import("svelte").Component<OrderedListProps, {}, "">;
|
|
6
|
+
type OrderedList = ReturnType<typeof OrderedList>;
|
|
7
|
+
export default OrderedList;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type QuickcolorProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type QuickcolorProps_ = QuickcolorProps;
|
|
14
|
-
export type QuickcolorEvents = typeof __propDef.events;
|
|
15
|
-
export type QuickcolorSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Quickcolor extends SvelteComponentTyped<QuickcolorProps_, QuickcolorEvents, QuickcolorSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const Quickcolor: import("svelte").Component<QuickcolorProps, {}, "">;
|
|
6
|
+
type Quickcolor = ReturnType<typeof Quickcolor>;
|
|
7
|
+
export default Quickcolor;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type RedoProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Redo } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type RedoProps_ = RedoProps;
|
|
14
|
-
export type RedoEvents = typeof __propDef.events;
|
|
15
|
-
export type RedoSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Redo extends SvelteComponentTyped<RedoProps_, RedoEvents, RedoSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Redo: import("svelte").Component<RedoProps, {}, "">;
|
|
7
|
+
type Redo = ReturnType<typeof Redo>;
|
|
8
|
+
export default Redo;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type SearchReplaceProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type SearchReplaceProps_ = SearchReplaceProps;
|
|
14
|
-
export type SearchReplaceEvents = typeof __propDef.events;
|
|
15
|
-
export type SearchReplaceSlots = typeof __propDef.slots;
|
|
16
|
-
export default class SearchReplace extends SvelteComponentTyped<SearchReplaceProps_, SearchReplaceEvents, SearchReplaceSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const SearchReplace: import("svelte").Component<SearchReplaceProps, {}, "">;
|
|
6
|
+
type SearchReplace = ReturnType<typeof SearchReplace>;
|
|
7
|
+
export default SearchReplace;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type StrikethroughProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Strikethrough } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type StrikethroughProps_ = StrikethroughProps;
|
|
14
|
-
export type StrikethroughEvents = typeof __propDef.events;
|
|
15
|
-
export type StrikethroughSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Strikethrough extends SvelteComponentTyped<StrikethroughProps_, StrikethroughEvents, StrikethroughSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Strikethrough: import("svelte").Component<StrikethroughProps, {}, "">;
|
|
7
|
+
type Strikethrough = ReturnType<typeof Strikethrough>;
|
|
8
|
+
export default Strikethrough;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type SubscriptProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Subscript } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type SubscriptProps_ = SubscriptProps;
|
|
14
|
-
export type SubscriptEvents = typeof __propDef.events;
|
|
15
|
-
export type SubscriptSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Subscript extends SvelteComponentTyped<SubscriptProps_, SubscriptEvents, SubscriptSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Subscript: import("svelte").Component<SubscriptProps, {}, "">;
|
|
7
|
+
type Subscript = ReturnType<typeof Subscript>;
|
|
8
|
+
export default Subscript;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type SuperscriptProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Superscript } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type SuperscriptProps_ = SuperscriptProps;
|
|
14
|
-
export type SuperscriptEvents = typeof __propDef.events;
|
|
15
|
-
export type SuperscriptSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Superscript extends SvelteComponentTyped<SuperscriptProps_, SuperscriptEvents, SuperscriptSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Superscript: import("svelte").Component<SuperscriptProps, {}, "">;
|
|
7
|
+
type Superscript = ReturnType<typeof Superscript>;
|
|
8
|
+
export default Superscript;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type TableProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type TableProps_ = TableProps;
|
|
14
|
-
export type TableEvents = typeof __propDef.events;
|
|
15
|
-
export type TableSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Table extends SvelteComponentTyped<TableProps_, TableEvents, TableSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
import { Table } from 'lucide-svelte';
|
|
6
|
+
declare const Table: import("svelte").Component<TableProps, {}, "">;
|
|
7
|
+
type Table = ReturnType<typeof Table>;
|
|
8
|
+
export default Table;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type TaskListProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type TaskListProps_ = TaskListProps;
|
|
14
|
-
export type TaskListEvents = typeof __propDef.events;
|
|
15
|
-
export type TaskListSlots = typeof __propDef.slots;
|
|
16
|
-
export default class TaskList extends SvelteComponentTyped<TaskListProps_, TaskListEvents, TaskListSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const TaskList: import("svelte").Component<TaskListProps, {}, "">;
|
|
6
|
+
type TaskList = ReturnType<typeof TaskList>;
|
|
7
|
+
export default TaskList;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type TextProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type TextProps_ = TextProps;
|
|
14
|
-
export type TextEvents = typeof __propDef.events;
|
|
15
|
-
export type TextSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Text extends SvelteComponentTyped<TextProps_, TextEvents, TextSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const Text: import("svelte").Component<TextProps, {}, "">;
|
|
6
|
+
type Text = ReturnType<typeof Text>;
|
|
7
|
+
export default Text;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type TextalignProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
5
4
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type TextalignProps_ = TextalignProps;
|
|
14
|
-
export type TextalignEvents = typeof __propDef.events;
|
|
15
|
-
export type TextalignSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Textalign extends SvelteComponentTyped<TextalignProps_, TextalignEvents, TextalignSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
5
|
+
declare const Textalign: import("svelte").Component<TextalignProps, {}, "">;
|
|
6
|
+
type Textalign = ReturnType<typeof Textalign>;
|
|
7
|
+
export default Textalign;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import type { Editor } from '@tiptap/core';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export interface TextcolorProps {
|
|
5
|
+
editor: Editor;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
4
8
|
</script>
|
|
5
9
|
|
|
6
10
|
<script lang="ts">
|
|
7
11
|
import { Baseline } from 'lucide-svelte';
|
|
8
12
|
import { X } from 'lucide-svelte';
|
|
9
13
|
import { ChevronDown } from 'lucide-svelte';
|
|
10
|
-
import { type Editor } from '@tiptap/core';
|
|
11
14
|
import * as Tooltip from '../../ui/tooltip/index.js';
|
|
12
15
|
import { Button } from '../../ui/button/index.js';
|
|
13
16
|
import { cn } from '../../../utils.js';
|
|
@@ -15,11 +18,6 @@
|
|
|
15
18
|
import { mode } from 'mode-watcher';
|
|
16
19
|
import ColorPicker from 'svelte-awesome-color-picker';
|
|
17
20
|
|
|
18
|
-
interface Props {
|
|
19
|
-
editor: Editor;
|
|
20
|
-
color?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
21
|
let { editor, color = $bindable('') }: TextcolorProps = $props();
|
|
24
22
|
</script>
|
|
25
23
|
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
events: {
|
|
6
|
-
[evt: string]: CustomEvent<any>;
|
|
7
|
-
};
|
|
8
|
-
slots: {};
|
|
9
|
-
};
|
|
10
|
-
type TextcolorProps_ = TextcolorProps;
|
|
11
|
-
export type TextcolorEvents = typeof __propDef.events;
|
|
12
|
-
export type TextcolorSlots = typeof __propDef.slots;
|
|
13
|
-
export default class Textcolor extends SvelteComponentTyped<TextcolorProps_, TextcolorEvents, TextcolorSlots> {
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export interface TextcolorProps {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
color?: string;
|
|
14
5
|
}
|
|
15
|
-
|
|
6
|
+
declare const Textcolor: import("svelte").Component<TextcolorProps, {}, "color">;
|
|
7
|
+
type Textcolor = ReturnType<typeof Textcolor>;
|
|
8
|
+
export default Textcolor;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type UnderlineProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Underline } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type UnderlineProps_ = UnderlineProps;
|
|
14
|
-
export type UnderlineEvents = typeof __propDef.events;
|
|
15
|
-
export type UnderlineSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Underline extends SvelteComponentTyped<UnderlineProps_, UnderlineEvents, UnderlineSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Underline: import("svelte").Component<UnderlineProps, {}, "">;
|
|
7
|
+
type Underline = ReturnType<typeof Underline>;
|
|
8
|
+
export default Underline;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type UndoProps = {
|
|
3
2
|
editor: Editor;
|
|
4
3
|
};
|
|
4
|
+
import { Undo } from 'lucide-svelte';
|
|
5
5
|
import { type Editor } from '@tiptap/core';
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
type UndoProps_ = UndoProps;
|
|
14
|
-
export type UndoEvents = typeof __propDef.events;
|
|
15
|
-
export type UndoSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Undo extends SvelteComponentTyped<UndoProps_, UndoEvents, UndoSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
6
|
+
declare const Undo: import("svelte").Component<UndoProps, {}, "">;
|
|
7
|
+
type Undo = ReturnType<typeof Undo>;
|
|
8
|
+
export default Undo;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import type { Content } from '@tiptap/core';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export interface ShadEditorProps {
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
content?: Content;
|
|
8
|
+
showToolbar?: boolean;
|
|
9
|
+
}
|
|
4
10
|
</script>
|
|
5
11
|
|
|
6
12
|
<script lang="ts">
|
|
7
13
|
import './editor.css';
|
|
8
14
|
|
|
9
|
-
import { Editor
|
|
15
|
+
import { Editor } from '@tiptap/core';
|
|
10
16
|
import StarterKit from '@tiptap/starter-kit';
|
|
11
17
|
import { onDestroy, onMount } from 'svelte';
|
|
12
18
|
import EditorToolbar from './editor-toolbar.svelte';
|
|
@@ -36,7 +42,7 @@
|
|
|
36
42
|
|
|
37
43
|
// Lowlight
|
|
38
44
|
import { CodeBlockLowlight } from '@tiptap/extension-code-block-lowlight';
|
|
39
|
-
import {
|
|
45
|
+
import { common, createLowlight } from 'lowlight';
|
|
40
46
|
import './onedark.css';
|
|
41
47
|
import SearchAndReplace from './custom/Extentions/SearchAndReplace.js';
|
|
42
48
|
import { createEventDispatcher } from 'svelte';
|
|
@@ -46,16 +52,9 @@
|
|
|
46
52
|
update: { html: string };
|
|
47
53
|
}>();
|
|
48
54
|
|
|
49
|
-
interface Props {
|
|
50
|
-
class?: string;
|
|
51
|
-
style?: string;
|
|
52
|
-
content?: Content;
|
|
53
|
-
showToolbar?: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
55
|
let { class: className = '', style = '', content = $bindable(null), showToolbar = true }: ShadEditorProps = $props();
|
|
57
56
|
|
|
58
|
-
const lowlight = createLowlight(
|
|
57
|
+
const lowlight = createLowlight(common);
|
|
59
58
|
|
|
60
59
|
let editor: Editor | undefined = $state();
|
|
61
60
|
let element: HTMLElement | undefined = $state();
|