@widgetic/design-system 0.5.9 → 0.5.11
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 +2 -2
- 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 +16 -3
- 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 +13 -2
- 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 +8 -12
- 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
|
@@ -11,32 +11,34 @@
|
|
|
11
11
|
import { WScrollArea } from '../../components';
|
|
12
12
|
|
|
13
13
|
// Import arrow icons for navigation
|
|
14
|
-
import { IconChevronLeft, IconChevronRight } from '
|
|
14
|
+
import { IconChevronLeft, IconChevronRight } from '@tabler/icons-svelte';
|
|
15
15
|
|
|
16
16
|
// Whether to show log messages
|
|
17
17
|
let showLogs = false;
|
|
18
18
|
|
|
19
|
-
// import pdfjs library
|
|
20
|
-
import
|
|
21
|
-
import { type PDFDocumentProxy } from 'pdfjs-dist';
|
|
19
|
+
// import pdfjs library types
|
|
20
|
+
import type { PDFDocumentProxy } from 'pdfjs-dist';
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
let pdfjsLibInstance: typeof import('pdfjs-dist') | null = null;
|
|
23
|
+
|
|
24
|
+
async function getPdfjs() {
|
|
25
|
+
if (pdfjsLibInstance) return pdfjsLibInstance;
|
|
26
|
+
const lib = await import('pdfjs-dist');
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
lib.GlobalWorkerOptions.workerSrc = new URL(
|
|
29
29
|
'pdfjs-dist/build/pdf.worker.min.mjs',
|
|
30
30
|
import.meta.url
|
|
31
31
|
).toString();
|
|
32
32
|
|
|
33
|
-
if(showLogs) console.log('PDF Worker URL set to:',
|
|
33
|
+
// if(showLogs) console.log('PDF Worker URL set to:', lib.GlobalWorkerOptions.workerSrc);
|
|
34
34
|
} catch (error) {
|
|
35
35
|
if(showLogs) console.error('Error setting PDF worker path:', error);
|
|
36
36
|
// Fallback to CDN as a last resort
|
|
37
|
-
|
|
38
|
-
if(showLogs) console.log('PDF Worker URL fallback set to:',
|
|
37
|
+
lib.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${lib.version}/build/pdf.worker.min.js`;
|
|
38
|
+
// if(showLogs) console.log('PDF Worker URL fallback set to:', lib.GlobalWorkerOptions.workerSrc);
|
|
39
39
|
}
|
|
40
|
+
pdfjsLibInstance = lib;
|
|
41
|
+
return lib;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
// Import PDF cache store
|
|
@@ -86,43 +88,43 @@
|
|
|
86
88
|
|
|
87
89
|
// Debug reactive statement to track state changes
|
|
88
90
|
$: if (showLogs) {
|
|
89
|
-
console.log('State update:', {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
});
|
|
91
|
+
// console.log('State update:', {
|
|
92
|
+
// loading,
|
|
93
|
+
// isCanvasReady,
|
|
94
|
+
// error,
|
|
95
|
+
// mounted,
|
|
96
|
+
// url,
|
|
97
|
+
// renderingPhase,
|
|
98
|
+
// pageRendering,
|
|
99
|
+
// hasCanvasContainer: !!canvasContainer,
|
|
100
|
+
// hasPdfDoc: !!pdfDoc,
|
|
101
|
+
// pageCount,
|
|
102
|
+
// showPdfContent,
|
|
103
|
+
// elapsedTime: renderStartTime ? Math.round((Date.now() - renderStartTime) / 100) / 10 + 's' : 'N/A',
|
|
104
|
+
// canvasWidth,
|
|
105
|
+
// canvasHeight,
|
|
106
|
+
// loadedFromCache
|
|
107
|
+
// });
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
// Add afterUpdate to track when the UI updates
|
|
109
111
|
afterUpdate(() => {
|
|
110
112
|
if (showLogs) {
|
|
111
|
-
console.log('UI UPDATED:', {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
});
|
|
113
|
+
// console.log('UI UPDATED:', {
|
|
114
|
+
// loading,
|
|
115
|
+
// isCanvasReady,
|
|
116
|
+
// error,
|
|
117
|
+
// mounted,
|
|
118
|
+
// renderingPhase,
|
|
119
|
+
// hasCanvasContainer: !!canvasContainer,
|
|
120
|
+
// hasPdfDoc: !!pdfDoc,
|
|
121
|
+
// canvasWidth,
|
|
122
|
+
// canvasHeight,
|
|
123
|
+
// containerWidth: containerDiv?.clientWidth,
|
|
124
|
+
// pageCount,
|
|
125
|
+
// showPdfContent,
|
|
126
|
+
// loadedFromCache
|
|
127
|
+
// });
|
|
126
128
|
}
|
|
127
129
|
});
|
|
128
130
|
|
|
@@ -135,7 +137,7 @@
|
|
|
135
137
|
|
|
136
138
|
// Clear the PDF cache
|
|
137
139
|
pdfCache.clear();
|
|
138
|
-
if (showLogs) console.log('PDF cache cleared via keyboard shortcut');
|
|
140
|
+
// if (showLogs) console.log('PDF cache cleared via keyboard shortcut');
|
|
139
141
|
dispatch('cacheCleared');
|
|
140
142
|
}
|
|
141
143
|
}
|
|
@@ -155,10 +157,10 @@
|
|
|
155
157
|
|
|
156
158
|
await tick();
|
|
157
159
|
mounted = true;
|
|
158
|
-
if (showLogs) console.log('Component mounted, container available:', !!containerDiv);
|
|
160
|
+
// if (showLogs) console.log('Component mounted, container available:', !!containerDiv);
|
|
159
161
|
|
|
160
162
|
if (url) {
|
|
161
|
-
if (showLogs) console.log('Starting initial load with URL:', url);
|
|
163
|
+
// if (showLogs) console.log('Starting initial load with URL:', url);
|
|
162
164
|
await loadPDF();
|
|
163
165
|
}
|
|
164
166
|
} catch (err) {
|
|
@@ -172,14 +174,14 @@
|
|
|
172
174
|
|
|
173
175
|
// Watch for URL changes - only trigger load if URL actually changes
|
|
174
176
|
$: if (url && mounted && !loading && url !== currentUrl) {
|
|
175
|
-
if (showLogs) console.log('URL changed, loading PDF');
|
|
177
|
+
// if (showLogs) console.log('URL changed, loading PDF');
|
|
176
178
|
currentUrl = url;
|
|
177
179
|
loadPDF();
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
// Watch for canvasContainer binding to become available
|
|
181
183
|
$: if (canvasContainer && !canvasContainer.querySelector('canvas') && pdfDoc && renderingPhase === 'calculating_dimensions') {
|
|
182
|
-
if (showLogs) console.log('Canvas container now available, continuing with render');
|
|
184
|
+
// if (showLogs) console.log('Canvas container now available, continuing with render');
|
|
183
185
|
renderPDF();
|
|
184
186
|
}
|
|
185
187
|
|
|
@@ -212,7 +214,7 @@
|
|
|
212
214
|
|
|
213
215
|
// Use the cached PDF document
|
|
214
216
|
if (cachedEntry) {
|
|
215
|
-
if (showLogs) console.log('Using cached PDF document:', absoluteUrl);
|
|
217
|
+
// if (showLogs) console.log('Using cached PDF document:', absoluteUrl);
|
|
216
218
|
pdfDoc = cachedEntry.document;
|
|
217
219
|
pageCount = pdfDoc.numPages;
|
|
218
220
|
pageNum = cachedEntry.pageNumber; // Restore the last viewed page
|
|
@@ -220,7 +222,7 @@
|
|
|
220
222
|
renderingPhase = 'calculating_dimensions';
|
|
221
223
|
|
|
222
224
|
// Calculate dimensions but don't apply them yet
|
|
223
|
-
if (showLogs) console.log('Calculating dimensions for cached PDF, container width:', containerDiv.clientWidth);
|
|
225
|
+
// if (showLogs) console.log('Calculating dimensions for cached PDF, container width:', containerDiv.clientWidth);
|
|
224
226
|
|
|
225
227
|
const page = await pdfDoc.getPage(pageNum);
|
|
226
228
|
const containerWidth = containerDiv.clientWidth;
|
|
@@ -232,15 +234,15 @@
|
|
|
232
234
|
canvasHeight = viewport.height * scale;
|
|
233
235
|
|
|
234
236
|
if (showLogs) {
|
|
235
|
-
console.log('Dimensions calculated for cached PDF:', {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
});
|
|
237
|
+
// console.log('Dimensions calculated for cached PDF:', {
|
|
238
|
+
// containerWidth,
|
|
239
|
+
// originalWidth: viewport.width,
|
|
240
|
+
// originalHeight: viewport.height,
|
|
241
|
+
// scale,
|
|
242
|
+
// canvasWidth,
|
|
243
|
+
// canvasHeight,
|
|
244
|
+
// pageNum
|
|
245
|
+
// });
|
|
244
246
|
}
|
|
245
247
|
|
|
246
248
|
// Wait for the UI to update
|
|
@@ -248,7 +250,7 @@
|
|
|
248
250
|
|
|
249
251
|
// If canvasContainer is already bound, proceed with rendering
|
|
250
252
|
if (canvasContainer) {
|
|
251
|
-
if (showLogs) console.log('Canvas container available, rendering cached PDF');
|
|
253
|
+
// if (showLogs) console.log('Canvas container available, rendering cached PDF');
|
|
252
254
|
await renderPDF(canvasWidth, canvasHeight);
|
|
253
255
|
}
|
|
254
256
|
}
|
|
@@ -262,12 +264,13 @@
|
|
|
262
264
|
canvasWidth = initialContainerWidth;
|
|
263
265
|
canvasHeight = initialContainerHeight;
|
|
264
266
|
|
|
265
|
-
if (showLogs) console.log('Loading PDF from URL:', { url: absoluteUrl });
|
|
267
|
+
// if (showLogs) console.log('Loading PDF from URL:', { url: absoluteUrl });
|
|
266
268
|
|
|
267
|
-
// Load PDF directly with URL
|
|
268
|
-
const
|
|
269
|
+
// Load PDF directly with URL via lazily loaded pdfjs
|
|
270
|
+
const pdfjs = await getPdfjs();
|
|
271
|
+
const loadingTask = pdfjs.getDocument(absoluteUrl);
|
|
269
272
|
pdfDoc = await loadingTask.promise;
|
|
270
|
-
if (showLogs) console.log('PDF loaded successfully:', pdfDoc);
|
|
273
|
+
// if (showLogs) console.log('PDF loaded successfully:', pdfDoc);
|
|
271
274
|
|
|
272
275
|
// Update the page count
|
|
273
276
|
pageCount = pdfDoc.numPages;
|
|
@@ -277,15 +280,15 @@
|
|
|
277
280
|
pdfCache.set(absoluteUrl, pdfDoc, pageNum);
|
|
278
281
|
|
|
279
282
|
if (showLogs) {
|
|
280
|
-
console.log('PDF loaded successfully and cached:', {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
});
|
|
283
|
+
// console.log('PDF loaded successfully and cached:', {
|
|
284
|
+
// pageCount,
|
|
285
|
+
// loadTime: Math.round((Date.now() - pdfLoadStartTime) / 100) / 10 + 's'
|
|
286
|
+
// });
|
|
284
287
|
}
|
|
285
288
|
|
|
286
289
|
// Calculate dimensions but don't apply them yet
|
|
287
290
|
renderingPhase = 'calculating_dimensions';
|
|
288
|
-
if (showLogs) console.log('Calculating dimensions, container width:', containerDiv.clientWidth);
|
|
291
|
+
// if (showLogs) console.log('Calculating dimensions, container width:', containerDiv.clientWidth);
|
|
289
292
|
|
|
290
293
|
const page = await pdfDoc.getPage(1);
|
|
291
294
|
const containerWidth = containerDiv.clientWidth;
|
|
@@ -297,14 +300,14 @@
|
|
|
297
300
|
const calculatedHeight = viewport.height * scale;
|
|
298
301
|
|
|
299
302
|
if (showLogs) {
|
|
300
|
-
console.log('Dimensions calculated:', {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
});
|
|
303
|
+
// console.log('Dimensions calculated:', {
|
|
304
|
+
// containerWidth,
|
|
305
|
+
// originalWidth: viewport.width,
|
|
306
|
+
// originalHeight: viewport.height,
|
|
307
|
+
// scale,
|
|
308
|
+
// calculatedWidth,
|
|
309
|
+
// calculatedHeight
|
|
310
|
+
// });
|
|
308
311
|
}
|
|
309
312
|
|
|
310
313
|
// Wait for the UI to update
|
|
@@ -312,10 +315,10 @@
|
|
|
312
315
|
|
|
313
316
|
// If canvasContainer is already bound, proceed with rendering
|
|
314
317
|
if (canvasContainer) {
|
|
315
|
-
if (showLogs) console.log('Canvas container available, rendering PDF');
|
|
318
|
+
// if (showLogs) console.log('Canvas container available, rendering PDF');
|
|
316
319
|
await renderPDF(calculatedWidth, calculatedHeight);
|
|
317
320
|
} else {
|
|
318
|
-
if (showLogs) console.log('Canvas container not available yet, waiting for binding');
|
|
321
|
+
// if (showLogs) console.log('Canvas container not available yet, waiting for binding');
|
|
319
322
|
// Store dimensions for later use when container becomes available
|
|
320
323
|
canvasWidth = calculatedWidth;
|
|
321
324
|
canvasHeight = calculatedHeight;
|
|
@@ -351,7 +354,7 @@
|
|
|
351
354
|
try {
|
|
352
355
|
renderingPhase = 'rendering';
|
|
353
356
|
renderStartTime = Date.now();
|
|
354
|
-
if (showLogs) console.log('Starting PDF render');
|
|
357
|
+
// if (showLogs) console.log('Starting PDF render');
|
|
355
358
|
|
|
356
359
|
// Clear any existing canvas
|
|
357
360
|
canvasContainer.innerHTML = '';
|
|
@@ -363,10 +366,10 @@
|
|
|
363
366
|
}
|
|
364
367
|
|
|
365
368
|
if (showLogs) {
|
|
366
|
-
console.log('Using dimensions for rendering:', {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
});
|
|
369
|
+
// console.log('Using dimensions for rendering:', {
|
|
370
|
+
// canvasWidth,
|
|
371
|
+
// canvasHeight
|
|
372
|
+
// });
|
|
370
373
|
}
|
|
371
374
|
|
|
372
375
|
// Create a new canvas element
|
|
@@ -379,16 +382,16 @@
|
|
|
379
382
|
canvasContainer.appendChild(canvas);
|
|
380
383
|
|
|
381
384
|
if (showLogs) {
|
|
382
|
-
console.log('Canvas created and added to DOM:', {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
});
|
|
385
|
+
// console.log('Canvas created and added to DOM:', {
|
|
386
|
+
// width: canvas.width,
|
|
387
|
+
// height: canvas.height
|
|
388
|
+
// });
|
|
386
389
|
}
|
|
387
390
|
|
|
388
391
|
// Render the current page (pageNum might be restored from cache)
|
|
389
392
|
await renderPage(pageNum, canvas);
|
|
390
393
|
|
|
391
|
-
if (showLogs) console.log('Render complete, setting isCanvasReady to true');
|
|
394
|
+
// if (showLogs) console.log('Render complete, setting isCanvasReady to true');
|
|
392
395
|
renderingPhase = 'complete';
|
|
393
396
|
|
|
394
397
|
// Now that rendering is complete, set isCanvasReady to true
|
|
@@ -430,7 +433,7 @@
|
|
|
430
433
|
pageRendering = true;
|
|
431
434
|
const pageRenderStart = Date.now();
|
|
432
435
|
try {
|
|
433
|
-
if (showLogs) console.log('Starting page render:', num);
|
|
436
|
+
// if (showLogs) console.log('Starting page render:', num);
|
|
434
437
|
const page = await pdfDoc.getPage(num);
|
|
435
438
|
const scaledViewport = page.getViewport({ scale });
|
|
436
439
|
|
|
@@ -438,12 +441,12 @@
|
|
|
438
441
|
if (!ctx) throw new Error('Could not get canvas context');
|
|
439
442
|
|
|
440
443
|
if (showLogs) {
|
|
441
|
-
console.log('Rendering to canvas context:', {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
});
|
|
444
|
+
// console.log('Rendering to canvas context:', {
|
|
445
|
+
// canvasWidth: canvas.width,
|
|
446
|
+
// canvasHeight: canvas.height,
|
|
447
|
+
// viewportWidth: scaledViewport.width,
|
|
448
|
+
// viewportHeight: scaledViewport.height
|
|
449
|
+
// });
|
|
447
450
|
}
|
|
448
451
|
|
|
449
452
|
await page.render({
|
|
@@ -452,10 +455,10 @@
|
|
|
452
455
|
}).promise;
|
|
453
456
|
|
|
454
457
|
if (showLogs) {
|
|
455
|
-
console.log('Page rendered successfully', {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
});
|
|
458
|
+
// console.log('Page rendered successfully', {
|
|
459
|
+
// renderTime: Math.round((Date.now() - pageRenderStart) / 100) / 10 + 's',
|
|
460
|
+
// totalTime: Math.round((Date.now() - renderStartTime) / 100) / 10 + 's'
|
|
461
|
+
// });
|
|
459
462
|
}
|
|
460
463
|
|
|
461
464
|
pageRendering = false;
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
8
11
|
};
|
|
9
|
-
|
|
10
|
-
error: CustomEvent<{
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
pageChange: CustomEvent<{
|
|
14
|
-
page: number;
|
|
15
|
-
totalPages: number;
|
|
16
|
-
}>;
|
|
17
|
-
cacheCleared: CustomEvent<void>;
|
|
18
|
-
} & {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export type PDFViewerProps = typeof __propDef.props;
|
|
24
|
-
export type PDFViewerEvents = typeof __propDef.events;
|
|
25
|
-
export type PDFViewerSlots = typeof __propDef.slots;
|
|
26
|
-
export default class PDFViewer extends SvelteComponentTyped<PDFViewerProps, PDFViewerEvents, PDFViewerSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
27
13
|
}
|
|
28
|
-
|
|
14
|
+
declare const PDFViewer: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
class?: string;
|
|
16
|
+
style?: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
enableCacheClearing?: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
error: CustomEvent<{
|
|
21
|
+
message: string;
|
|
22
|
+
}>;
|
|
23
|
+
pageChange: CustomEvent<{
|
|
24
|
+
page: number;
|
|
25
|
+
totalPages: number;
|
|
26
|
+
}>;
|
|
27
|
+
cacheCleared: CustomEvent<void>;
|
|
28
|
+
} & {
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
}, {}, {}, string>;
|
|
31
|
+
type PDFViewer = InstanceType<typeof PDFViewer>;
|
|
32
|
+
export default PDFViewer;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* - Uses Widgetic design system styling
|
|
11
11
|
-->
|
|
12
12
|
<script lang="ts">
|
|
13
|
-
|
|
14
|
-
import {
|
|
13
|
+
import X from 'lucide-svelte/icons/x';
|
|
14
|
+
import { IconSearch } from '@tabler/icons-svelte';
|
|
15
15
|
/**
|
|
16
16
|
* Placeholder text for the search input
|
|
17
17
|
*/
|
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* Input event handler
|
|
12
|
-
* @param event The input event
|
|
13
|
-
*/ onInput?: (event: Event) => Promise<void> | void;
|
|
14
|
-
/**
|
|
15
|
-
* Keydown event handler
|
|
16
|
-
* @param event The keyboard event
|
|
17
|
-
*/ onKeydown?: (event: KeyboardEvent) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Clear button event handler
|
|
20
|
-
*/ onClear?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* Paste event handler
|
|
23
|
-
* @param event The clipboard event
|
|
24
|
-
*/ onPaste?: (event: ClipboardEvent) => void;
|
|
25
|
-
/**
|
|
26
|
-
* CSS class to apply to the container
|
|
27
|
-
*/ containerClass?: string;
|
|
28
|
-
/**
|
|
29
|
-
* CSS class to apply to the input element
|
|
30
|
-
*/ inputClass?: string;
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
31
11
|
};
|
|
32
|
-
|
|
33
|
-
[evt: string]: CustomEvent<any>;
|
|
34
|
-
};
|
|
35
|
-
slots: {};
|
|
36
|
-
};
|
|
37
|
-
export type SearchInputProps = typeof __propDef.props;
|
|
38
|
-
export type SearchInputEvents = typeof __propDef.events;
|
|
39
|
-
export type SearchInputSlots = typeof __propDef.slots;
|
|
40
|
-
export default class SearchInput extends SvelteComponentTyped<SearchInputProps, SearchInputEvents, SearchInputSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
41
13
|
}
|
|
42
|
-
|
|
14
|
+
declare const SearchInput: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
/**
|
|
16
|
+
* Placeholder text for the search input
|
|
17
|
+
*/ placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Current search value
|
|
20
|
+
*/ value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Input event handler
|
|
23
|
+
* @param event The input event
|
|
24
|
+
*/ onInput?: (event: Event) => Promise<void> | void;
|
|
25
|
+
/**
|
|
26
|
+
* Keydown event handler
|
|
27
|
+
* @param event The keyboard event
|
|
28
|
+
*/ onKeydown?: (event: KeyboardEvent) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Clear button event handler
|
|
31
|
+
*/ onClear?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Paste event handler
|
|
34
|
+
* @param event The clipboard event
|
|
35
|
+
*/ onPaste?: (event: ClipboardEvent) => void;
|
|
36
|
+
/**
|
|
37
|
+
* CSS class to apply to the container
|
|
38
|
+
*/ containerClass?: string;
|
|
39
|
+
/**
|
|
40
|
+
* CSS class to apply to the input element
|
|
41
|
+
*/ inputClass?: string;
|
|
42
|
+
}, {
|
|
43
|
+
[evt: string]: CustomEvent<any>;
|
|
44
|
+
}, {}, {}, string>;
|
|
45
|
+
type SearchInput = InstanceType<typeof SearchInput>;
|
|
46
|
+
export default SearchInput;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type ColorpickerProps = {
|
|
3
2
|
hex: string;
|
|
4
3
|
};
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
};
|
|
12
|
-
type ColorpickerProps_ = ColorpickerProps;
|
|
13
|
-
export type ColorpickerEvents = typeof __propDef.events;
|
|
14
|
-
export type ColorpickerSlots = typeof __propDef.slots;
|
|
15
|
-
export default class Colorpicker extends SvelteComponentTyped<ColorpickerProps_, ColorpickerEvents, ColorpickerSlots> {
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
4
|
+
declare const Colorpicker: import("svelte").Component<ColorpickerProps, {}, "hex">;
|
|
5
|
+
type Colorpicker = ReturnType<typeof Colorpicker>;
|
|
6
|
+
export default Colorpicker;
|
|
@@ -115,7 +115,8 @@ const replaceAll = (replaceTerm, results, { tr, dispatch }) => {
|
|
|
115
115
|
offset = rebaseNextResultResponse[0];
|
|
116
116
|
resultsCopy = rebaseNextResultResponse[1];
|
|
117
117
|
}
|
|
118
|
-
dispatch
|
|
118
|
+
if (dispatch)
|
|
119
|
+
dispatch(tr);
|
|
119
120
|
};
|
|
120
121
|
export const searchAndReplacePluginKey = new PluginKey('searchAndReplacePlugin');
|
|
121
122
|
export const SearchAndReplace = Extension.create({
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type CodeExtendedProps = NodeViewProps;
|
|
3
2
|
import type { NodeViewProps } from '@tiptap/core';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
type CodeExtendedProps_ = CodeExtendedProps;
|
|
12
|
-
export type CodeExtendedEvents = typeof __propDef.events;
|
|
13
|
-
export type CodeExtendedSlots = typeof __propDef.slots;
|
|
14
|
-
export default class CodeExtended extends SvelteComponentTyped<CodeExtendedProps_, CodeExtendedEvents, CodeExtendedSlots> {
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
3
|
+
declare const CodeExtended: import("svelte").Component<NodeViewProps, {}, "">;
|
|
4
|
+
type CodeExtended = ReturnType<typeof CodeExtended>;
|
|
5
|
+
export default CodeExtended;
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
>
|
|
210
210
|
<AlignRight class="size-4" />
|
|
211
211
|
</Button>
|
|
212
|
-
<DropdownMenu.Root bind:open={openedMore} onOpenChange={(value) => (openedMore = value)}>
|
|
212
|
+
<DropdownMenu.Root bind:open={openedMore} onOpenChange={(value: boolean) => (openedMore = value)}>
|
|
213
213
|
<DropdownMenu.Trigger class={buttonVariants({ variant: 'ghost', class: 'size-6 p-0' })}>
|
|
214
214
|
<EllipsisVertical class="size-4" />
|
|
215
215
|
</DropdownMenu.Trigger>
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
export type ImageExtendedComponentProps = NodeViewProps;
|
|
3
2
|
import type { NodeViewProps } from '@tiptap/core';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
type ImageExtendedComponentProps_ = ImageExtendedComponentProps;
|
|
12
|
-
export type ImageExtendedComponentEvents = typeof __propDef.events;
|
|
13
|
-
export type ImageExtendedComponentSlots = typeof __propDef.slots;
|
|
14
|
-
export default class ImageExtendedComponent extends SvelteComponentTyped<ImageExtendedComponentProps_, ImageExtendedComponentEvents, ImageExtendedComponentSlots> {
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
3
|
+
declare const ImageExtendedComponent: import("svelte").Component<NodeViewProps, {}, "">;
|
|
4
|
+
type ImageExtendedComponent = ReturnType<typeof ImageExtendedComponent>;
|
|
5
|
+
export default ImageExtendedComponent;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import type { Editor } from '@tiptap/core';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export interface EditorToolbarProps {
|
|
5
|
+
editor: Editor;
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
4
8
|
</script>
|
|
5
9
|
|
|
6
10
|
<script lang="ts">
|
|
7
|
-
import { type Editor } from '@tiptap/core';
|
|
8
11
|
import Undo from './icons/undo.svelte';
|
|
9
12
|
import Redo from './icons/redo.svelte';
|
|
10
13
|
import { Separator } from '../ui/separator/index.js';
|
|
@@ -29,11 +32,6 @@
|
|
|
29
32
|
import Text from './icons/text.svelte';
|
|
30
33
|
import SearchReplace from './icons/search-replace.svelte';
|
|
31
34
|
|
|
32
|
-
interface Props {
|
|
33
|
-
editor: Editor;
|
|
34
|
-
class?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
35
|
let { class: className = '', editor }: EditorToolbarProps = $props();
|
|
38
36
|
</script>
|
|
39
37
|
|