@widgetic/design-system 0.3.84 → 0.3.86
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/shad-editor/colorpicker.svelte +6 -1
- package/dist/components/shad-editor/colorpicker.svelte.d.ts +5 -2
- package/dist/components/shad-editor/custom/code-extended.svelte +6 -2
- package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +4 -2
- package/dist/components/shad-editor/custom/image-extended-component.svelte +6 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +4 -2
- package/dist/components/shad-editor/editor-toolbar.svelte +6 -1
- package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +3 -2
- package/dist/components/shad-editor/icons/block-quote.svelte +6 -1
- package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/bold.svelte +6 -1
- package/dist/components/shad-editor/icons/bold.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/buttle-list.svelte +6 -1
- package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/code.svelte +6 -1
- package/dist/components/shad-editor/icons/code.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/highlighter.svelte +6 -1
- package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +3 -2
- package/dist/components/shad-editor/icons/image.svelte +6 -1
- package/dist/components/shad-editor/icons/image.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/italic.svelte +6 -1
- package/dist/components/shad-editor/icons/italic.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/link.svelte +6 -1
- package/dist/components/shad-editor/icons/link.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/ordered-list.svelte +6 -1
- package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/quickcolor.svelte +6 -1
- package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/redo.svelte +6 -1
- package/dist/components/shad-editor/icons/redo.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/search-replace.svelte +6 -1
- package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/strikethrough.svelte +6 -1
- package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/subscript.svelte +6 -1
- package/dist/components/shad-editor/icons/subscript.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/superscript.svelte +6 -1
- package/dist/components/shad-editor/icons/superscript.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/table.svelte +6 -1
- package/dist/components/shad-editor/icons/table.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/task-list.svelte +6 -1
- package/dist/components/shad-editor/icons/task-list.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/text.svelte +6 -1
- package/dist/components/shad-editor/icons/text.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/textalign.svelte +6 -1
- package/dist/components/shad-editor/icons/textalign.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/textcolor.svelte +6 -1
- package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +3 -2
- package/dist/components/shad-editor/icons/underline.svelte +6 -1
- package/dist/components/shad-editor/icons/underline.svelte.d.ts +6 -2
- package/dist/components/shad-editor/icons/undo.svelte +6 -1
- package/dist/components/shad-editor/icons/undo.svelte.d.ts +6 -2
- package/dist/components/shad-editor/shad-editor.svelte +6 -1
- package/dist/components/shad-editor/shad-editor.svelte.d.ts +3 -2
- package/dist/components/toast/ToasterModal.svelte +1 -1
- package/dist/components/ui/accordion/index.d.ts +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +6 -1
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +5 -2
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte +6 -1
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +5 -2
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +6 -1
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +5 -2
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte +6 -1
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +5 -2
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte +6 -1
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +5 -2
- package/dist/components/ui/breadcrumb/breadcrumb.svelte +6 -1
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +5 -2
- package/dist/components/ui/calendar/calendar-cell.svelte +6 -1
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-day.svelte +6 -1
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-grid-body.svelte +6 -1
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-grid-head.svelte +6 -1
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-grid-row.svelte +6 -1
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-grid.svelte +6 -1
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-head-cell.svelte +6 -1
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-header.svelte +6 -1
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-heading.svelte +6 -1
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-months.svelte +6 -1
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +5 -2
- package/dist/components/ui/calendar/calendar-next-button.svelte +6 -1
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar-prev-button.svelte +6 -1
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +4 -2
- package/dist/components/ui/calendar/calendar.svelte +6 -1
- package/dist/components/ui/calendar/calendar.svelte.d.ts +4 -2
- package/dist/components/ui/card/card-content.svelte +6 -1
- package/dist/components/ui/card/card-content.svelte.d.ts +5 -2
- package/dist/components/ui/card/card-description.svelte +6 -1
- package/dist/components/ui/card/card-description.svelte.d.ts +5 -2
- package/dist/components/ui/card/card-footer.svelte +6 -1
- package/dist/components/ui/card/card-footer.svelte.d.ts +5 -2
- package/dist/components/ui/card/card-header.svelte +6 -1
- package/dist/components/ui/card/card-header.svelte.d.ts +5 -2
- package/dist/components/ui/card/card.svelte +6 -1
- package/dist/components/ui/card/card.svelte.d.ts +5 -2
- package/dist/components/ui/checkbox/checkbox.svelte +6 -1
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-empty.svelte +6 -1
- package/dist/components/ui/command/command-empty.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-input.svelte +6 -1
- package/dist/components/ui/command/command-input.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-item.svelte +6 -1
- package/dist/components/ui/command/command-item.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-link-item.svelte +6 -1
- package/dist/components/ui/command/command-link-item.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-list.svelte +6 -1
- package/dist/components/ui/command/command-list.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-separator.svelte +6 -1
- package/dist/components/ui/command/command-separator.svelte.d.ts +4 -2
- package/dist/components/ui/command/command-shortcut.svelte +6 -1
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +5 -2
- package/dist/components/ui/command/command.svelte +6 -1
- package/dist/components/ui/command/command.svelte.d.ts +4 -2
- package/dist/components/ui/dialog/dialog-description.svelte +6 -1
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -2
- package/dist/components/ui/dialog/dialog-footer.svelte +6 -1
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +5 -2
- package/dist/components/ui/dialog/dialog-header.svelte +6 -1
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +5 -2
- package/dist/components/ui/dialog/dialog-overlay.svelte +6 -1
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -2
- package/dist/components/ui/dialog/dialog-title.svelte +6 -1
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -2
- package/dist/components/ui/drawer/drawer-description.svelte +6 -1
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +4 -2
- package/dist/components/ui/drawer/drawer-footer.svelte +6 -1
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +5 -2
- package/dist/components/ui/drawer/drawer-header.svelte +6 -1
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +5 -2
- package/dist/components/ui/drawer/drawer-nested.svelte +6 -1
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +4 -2
- package/dist/components/ui/drawer/drawer-overlay.svelte +6 -1
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +4 -2
- package/dist/components/ui/drawer/drawer-title.svelte +6 -1
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +4 -2
- package/dist/components/ui/drawer/drawer.svelte +6 -1
- package/dist/components/ui/drawer/drawer.svelte.d.ts +4 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +6 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +6 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +6 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +6 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -2
- package/dist/components/ui/input/input.svelte +6 -1
- package/dist/components/ui/input/input.svelte.d.ts +5 -2
- package/dist/components/ui/input-otp/input-otp-group.svelte +6 -1
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +5 -2
- package/dist/components/ui/input-otp/input-otp-separator.svelte +6 -1
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +5 -2
- package/dist/components/ui/input-otp/input-otp-slot.svelte +6 -1
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +5 -2
- package/dist/components/ui/input-otp/input-otp.svelte +6 -1
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +5 -2
- package/dist/components/ui/label/label.svelte +6 -1
- package/dist/components/ui/label/label.svelte.d.ts +4 -2
- package/dist/components/ui/progress/progress.svelte +6 -1
- package/dist/components/ui/progress/progress.svelte.d.ts +4 -2
- package/dist/components/ui/radio-group/radio-group-item.svelte +6 -1
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -2
- package/dist/components/ui/radio-group/radio-group.svelte +6 -1
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-header.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-months.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +5 -2
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +4 -2
- package/dist/components/ui/range-calendar/range-calendar.svelte +6 -1
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +4 -2
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +6 -1
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -2
- package/dist/components/ui/select/select-group-heading.svelte +6 -1
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +4 -2
- package/dist/components/ui/select/select-item.svelte +6 -1
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -2
- package/dist/components/ui/select/select-scroll-down-button.svelte +6 -1
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -2
- package/dist/components/ui/select/select-scroll-up-button.svelte +6 -1
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -2
- package/dist/components/ui/select/select-separator.svelte +6 -1
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -2
- package/dist/components/ui/select/select-trigger.svelte +6 -1
- package/dist/components/ui/select/select-trigger.svelte.d.ts +4 -2
- package/dist/components/ui/separator/separator.svelte +6 -1
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -2
- package/dist/components/ui/slider/slider.svelte +6 -1
- package/dist/components/ui/slider/slider.svelte.d.ts +4 -2
- package/dist/components/ui/switch/switch.svelte +6 -1
- package/dist/components/ui/switch/switch.svelte.d.ts +4 -2
- package/dist/components/ui/table/table-body.svelte +6 -1
- package/dist/components/ui/table/table-body.svelte.d.ts +5 -2
- package/dist/components/ui/table/table-caption.svelte +6 -1
- package/dist/components/ui/table/table-caption.svelte.d.ts +5 -2
- package/dist/components/ui/table/table-cell.svelte +6 -1
- package/dist/components/ui/table/table-cell.svelte.d.ts +5 -2
- package/dist/components/ui/table/table-footer.svelte +6 -1
- package/dist/components/ui/table/table-footer.svelte.d.ts +5 -2
- package/dist/components/ui/table/table-head.svelte +6 -1
- package/dist/components/ui/table/table-head.svelte.d.ts +5 -2
- package/dist/components/ui/table/table-header.svelte +6 -1
- package/dist/components/ui/table/table-header.svelte.d.ts +5 -2
- package/dist/components/ui/table/table-row.svelte +6 -1
- package/dist/components/ui/table/table-row.svelte.d.ts +5 -2
- package/dist/components/ui/table/table.svelte +6 -1
- package/dist/components/ui/table/table.svelte.d.ts +5 -2
- package/dist/components/ui/tabs/tabs-content.svelte +6 -1
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -2
- package/dist/components/ui/tabs/tabs-list.svelte +6 -1
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +4 -2
- package/dist/components/ui/tabs/tabs-trigger.svelte +6 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -2
- package/dist/components/ui/textarea/textarea.svelte +6 -1
- package/dist/components/ui/textarea/textarea.svelte.d.ts +5 -2
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +6 -1
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +5 -2
- package/dist/components/ui/tooltip/tooltip-content.svelte +6 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type ColorpickerProps = { hex: string };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { mode } from 'mode-watcher';
|
|
3
|
-
let { hex = $bindable() }:
|
|
8
|
+
let { hex = $bindable() }: ColorpickerProps = $props();
|
|
4
9
|
import ColorPicker from 'svelte-awesome-color-picker';
|
|
5
10
|
</script>
|
|
6
11
|
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type ColorpickerProps = {
|
|
3
|
+
hex: string;
|
|
4
|
+
};
|
|
2
5
|
declare const __propDef: {
|
|
3
6
|
props: Record<string, never>;
|
|
4
7
|
events: {
|
|
@@ -6,9 +9,9 @@ declare const __propDef: {
|
|
|
6
9
|
};
|
|
7
10
|
slots: {};
|
|
8
11
|
};
|
|
9
|
-
|
|
12
|
+
type ColorpickerProps_ = typeof __propDef.props;
|
|
10
13
|
export type ColorpickerEvents = typeof __propDef.events;
|
|
11
14
|
export type ColorpickerSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Colorpicker extends SvelteComponentTyped<
|
|
15
|
+
export default class Colorpicker extends SvelteComponentTyped<ColorpickerProps_, ColorpickerEvents, ColorpickerSlots> {
|
|
13
16
|
}
|
|
14
17
|
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type CodeExtendedProps = NodeViewProps;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { NodeViewWrapper, NodeViewContent } from 'svelte-tiptap';
|
|
3
8
|
import type { NodeViewProps } from '@tiptap/core';
|
|
4
9
|
import { Button, buttonVariants } from '../../ui/button/index.js';
|
|
5
10
|
import { onMount } from 'svelte';
|
|
6
|
-
const { node, editor, selected, deleteNode, updateAttributes, extension }:
|
|
7
|
-
$props();
|
|
11
|
+
const { node, editor, selected, deleteNode, updateAttributes, extension }: CodeExtendedProps = $props();
|
|
8
12
|
import { Copy, Check, ChevronDown } from 'lucide-svelte';
|
|
9
13
|
import * as DropdownMenu from '../../ui/dropdown-menu/index.js';
|
|
10
14
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type CodeExtendedProps = NodeViewProps;
|
|
3
|
+
import type { NodeViewProps } from '@tiptap/core';
|
|
2
4
|
declare const __propDef: {
|
|
3
5
|
props: Record<string, never>;
|
|
4
6
|
events: {
|
|
@@ -6,9 +8,9 @@ declare const __propDef: {
|
|
|
6
8
|
};
|
|
7
9
|
slots: {};
|
|
8
10
|
};
|
|
9
|
-
|
|
11
|
+
type CodeExtendedProps_ = typeof __propDef.props;
|
|
10
12
|
export type CodeExtendedEvents = typeof __propDef.events;
|
|
11
13
|
export type CodeExtendedSlots = typeof __propDef.slots;
|
|
12
|
-
export default class CodeExtended extends SvelteComponentTyped<
|
|
14
|
+
export default class CodeExtended extends SvelteComponentTyped<CodeExtendedProps_, CodeExtendedEvents, CodeExtendedSlots> {
|
|
13
15
|
}
|
|
14
16
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type ImageExtendedComponentProps = NodeViewProps;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { onDestroy, onMount } from 'svelte';
|
|
3
8
|
import { NodeViewWrapper } from 'svelte-tiptap';
|
|
@@ -17,7 +22,7 @@
|
|
|
17
22
|
import * as DropdownMenu from '../../ui/dropdown-menu/index.js';
|
|
18
23
|
import { duplicateContent } from './utils.js';
|
|
19
24
|
|
|
20
|
-
const { node, editor, selected, deleteNode, updateAttributes }:
|
|
25
|
+
const { node, editor, selected, deleteNode, updateAttributes }: ImageExtendedComponentProps = $props();
|
|
21
26
|
|
|
22
27
|
const minWidth = 150;
|
|
23
28
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type ImageExtendedComponentProps = NodeViewProps;
|
|
3
|
+
import type { NodeViewProps } from '@tiptap/core';
|
|
2
4
|
declare const __propDef: {
|
|
3
5
|
props: Record<string, never>;
|
|
4
6
|
events: {
|
|
@@ -6,9 +8,9 @@ declare const __propDef: {
|
|
|
6
8
|
};
|
|
7
9
|
slots: {};
|
|
8
10
|
};
|
|
9
|
-
|
|
11
|
+
type ImageExtendedComponentProps_ = typeof __propDef.props;
|
|
10
12
|
export type ImageExtendedComponentEvents = typeof __propDef.events;
|
|
11
13
|
export type ImageExtendedComponentSlots = typeof __propDef.slots;
|
|
12
|
-
export default class ImageExtendedComponent extends SvelteComponentTyped<
|
|
14
|
+
export default class ImageExtendedComponent extends SvelteComponentTyped<ImageExtendedComponentProps_, ImageExtendedComponentEvents, ImageExtendedComponentSlots> {
|
|
13
15
|
}
|
|
14
16
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type EditorToolbarProps = Props;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { type Editor } from '@tiptap/core';
|
|
3
8
|
import Undo from './icons/undo.svelte';
|
|
@@ -29,7 +34,7 @@
|
|
|
29
34
|
class?: string;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
let { class: className = '', editor }:
|
|
37
|
+
let { class: className = '', editor }: EditorToolbarProps = $props();
|
|
33
38
|
</script>
|
|
34
39
|
|
|
35
40
|
<div class="{className ? className + ' ' : ''} shad-editor-toolbar flex w-full items-center overflow-auto border-b p-1 *:mx-1">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type EditorToolbarProps = Props;
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: Record<string, never>;
|
|
4
5
|
events: {
|
|
@@ -6,9 +7,9 @@ declare const __propDef: {
|
|
|
6
7
|
};
|
|
7
8
|
slots: {};
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
type EditorToolbarProps_ = typeof __propDef.props;
|
|
10
11
|
export type EditorToolbarEvents = typeof __propDef.events;
|
|
11
12
|
export type EditorToolbarSlots = typeof __propDef.slots;
|
|
12
|
-
export default class EditorToolbar extends SvelteComponentTyped<
|
|
13
|
+
export default class EditorToolbar extends SvelteComponentTyped<EditorToolbarProps_, EditorToolbarEvents, EditorToolbarSlots> {
|
|
13
14
|
}
|
|
14
15
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type BlockQuoteProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Quote } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: BlockQuoteProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type BlockQuoteProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type BlockQuoteProps_ = typeof __propDef.props;
|
|
10
14
|
export type BlockQuoteEvents = typeof __propDef.events;
|
|
11
15
|
export type BlockQuoteSlots = typeof __propDef.slots;
|
|
12
|
-
export default class BlockQuote extends SvelteComponentTyped<
|
|
16
|
+
export default class BlockQuote extends SvelteComponentTyped<BlockQuoteProps_, BlockQuoteEvents, BlockQuoteSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type BoldProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Bold } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: BoldProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type BoldProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type BoldProps_ = typeof __propDef.props;
|
|
10
14
|
export type BoldEvents = typeof __propDef.events;
|
|
11
15
|
export type BoldSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Bold extends SvelteComponentTyped<
|
|
16
|
+
export default class Bold extends SvelteComponentTyped<BoldProps_, BoldEvents, BoldSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type ButtleListProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { List } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: ButtleListProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type ButtleListProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type ButtleListProps_ = typeof __propDef.props;
|
|
10
14
|
export type ButtleListEvents = typeof __propDef.events;
|
|
11
15
|
export type ButtleListSlots = typeof __propDef.slots;
|
|
12
|
-
export default class ButtleList extends SvelteComponentTyped<
|
|
16
|
+
export default class ButtleList extends SvelteComponentTyped<ButtleListProps_, ButtleListEvents, ButtleListSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type CodeProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Code } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: CodeProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type CodeProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type CodeProps_ = typeof __propDef.props;
|
|
10
14
|
export type CodeEvents = typeof __propDef.events;
|
|
11
15
|
export type CodeSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Code extends SvelteComponentTyped<
|
|
16
|
+
export default class Code extends SvelteComponentTyped<CodeProps_, CodeEvents, CodeSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type HighlighterProps = Props;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Highlighter } from 'lucide-svelte';
|
|
3
8
|
import { X } from 'lucide-svelte';
|
|
@@ -15,7 +20,7 @@
|
|
|
15
20
|
color?: string;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
let { editor, color = $bindable('') }:
|
|
23
|
+
let { editor, color = $bindable('') }: HighlighterProps = $props();
|
|
19
24
|
</script>
|
|
20
25
|
|
|
21
26
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type HighlighterProps = Props;
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: Record<string, never>;
|
|
4
5
|
events: {
|
|
@@ -6,9 +7,9 @@ declare const __propDef: {
|
|
|
6
7
|
};
|
|
7
8
|
slots: {};
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
type HighlighterProps_ = typeof __propDef.props;
|
|
10
11
|
export type HighlighterEvents = typeof __propDef.events;
|
|
11
12
|
export type HighlighterSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Highlighter extends SvelteComponentTyped<
|
|
13
|
+
export default class Highlighter extends SvelteComponentTyped<HighlighterProps_, HighlighterEvents, HighlighterSlots> {
|
|
13
14
|
}
|
|
14
15
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type ImageProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Image } from 'lucide-svelte';
|
|
3
8
|
import { ChevronDown } from 'lucide-svelte';
|
|
@@ -8,7 +13,7 @@
|
|
|
8
13
|
import * as Popover from '../../ui/popover/index.js';
|
|
9
14
|
import { Input } from '../../ui/input/index.js';
|
|
10
15
|
|
|
11
|
-
let { editor }:
|
|
16
|
+
let { editor }: ImageProps = $props();
|
|
12
17
|
</script>
|
|
13
18
|
|
|
14
19
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type ImageProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type ImageProps_ = typeof __propDef.props;
|
|
10
14
|
export type ImageEvents = typeof __propDef.events;
|
|
11
15
|
export type ImageSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Image extends SvelteComponentTyped<
|
|
16
|
+
export default class Image extends SvelteComponentTyped<ImageProps_, ImageEvents, ImageSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type ItalicProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Italic } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: ItalicProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type ItalicProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type ItalicProps_ = typeof __propDef.props;
|
|
10
14
|
export type ItalicEvents = typeof __propDef.events;
|
|
11
15
|
export type ItalicSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Italic extends SvelteComponentTyped<
|
|
16
|
+
export default class Italic extends SvelteComponentTyped<ItalicProps_, ItalicEvents, ItalicSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type LinkProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Link } from 'lucide-svelte';
|
|
3
8
|
import { ChevronDown } from 'lucide-svelte';
|
|
@@ -9,7 +14,7 @@
|
|
|
9
14
|
import * as Popover from '../../ui/popover/index.js';
|
|
10
15
|
import { Input } from '../../ui/input/index.js';
|
|
11
16
|
|
|
12
|
-
let { editor }:
|
|
17
|
+
let { editor }: LinkProps = $props();
|
|
13
18
|
|
|
14
19
|
function setLink(url: string) {
|
|
15
20
|
if (url.trim() === '') {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type LinkProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type LinkProps_ = typeof __propDef.props;
|
|
10
14
|
export type LinkEvents = typeof __propDef.events;
|
|
11
15
|
export type LinkSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Link extends SvelteComponentTyped<
|
|
16
|
+
export default class Link extends SvelteComponentTyped<LinkProps_, LinkEvents, LinkSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type OrderedListProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { ListOrdered } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: OrderedListProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type OrderedListProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type OrderedListProps_ = typeof __propDef.props;
|
|
10
14
|
export type OrderedListEvents = typeof __propDef.events;
|
|
11
15
|
export type OrderedListSlots = typeof __propDef.slots;
|
|
12
|
-
export default class OrderedList extends SvelteComponentTyped<
|
|
16
|
+
export default class OrderedList extends SvelteComponentTyped<OrderedListProps_, OrderedListEvents, OrderedListSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type QuickcolorProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Button } from '../../ui/button/index.js';
|
|
3
8
|
import * as DropdownMenu from '../../ui/dropdown-menu/index.js';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { type Editor } from '@tiptap/core';
|
|
6
11
|
import { Check, ChevronDown } from 'lucide-svelte';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: QuickcolorProps = $props();
|
|
9
14
|
|
|
10
15
|
const colors = [
|
|
11
16
|
{ label: 'Default', value: '' },
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type QuickcolorProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type QuickcolorProps_ = typeof __propDef.props;
|
|
10
14
|
export type QuickcolorEvents = typeof __propDef.events;
|
|
11
15
|
export type QuickcolorSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Quickcolor extends SvelteComponentTyped<
|
|
16
|
+
export default class Quickcolor extends SvelteComponentTyped<QuickcolorProps_, QuickcolorEvents, QuickcolorSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type RedoProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Redo } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
4
9
|
import * as Tooltip from '../../ui/tooltip/index.js';
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
|
|
7
|
-
let { editor }:
|
|
12
|
+
let { editor }: RedoProps = $props();
|
|
8
13
|
</script>
|
|
9
14
|
|
|
10
15
|
<Tooltip.Provider>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type RedoProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type RedoProps_ = typeof __propDef.props;
|
|
10
14
|
export type RedoEvents = typeof __propDef.events;
|
|
11
15
|
export type RedoSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Redo extends SvelteComponentTyped<
|
|
16
|
+
export default class Redo extends SvelteComponentTyped<RedoProps_, RedoEvents, RedoSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type SearchReplaceProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Button } from '../../ui/button/index.js';
|
|
3
8
|
import { Input } from '../../ui/input/index.js';
|
|
@@ -14,7 +19,7 @@
|
|
|
14
19
|
ChevronDown
|
|
15
20
|
} from 'lucide-svelte';
|
|
16
21
|
|
|
17
|
-
let { editor }:
|
|
22
|
+
let { editor }: SearchReplaceProps = $props();
|
|
18
23
|
|
|
19
24
|
let searchText = $state('');
|
|
20
25
|
let replaceText = $state('');
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type SearchReplaceProps = {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
};
|
|
5
|
+
import { type Editor } from '@tiptap/core';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: Record<string, never>;
|
|
4
8
|
events: {
|
|
@@ -6,9 +10,9 @@ declare const __propDef: {
|
|
|
6
10
|
};
|
|
7
11
|
slots: {};
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type SearchReplaceProps_ = typeof __propDef.props;
|
|
10
14
|
export type SearchReplaceEvents = typeof __propDef.events;
|
|
11
15
|
export type SearchReplaceSlots = typeof __propDef.slots;
|
|
12
|
-
export default class SearchReplace extends SvelteComponentTyped<
|
|
16
|
+
export default class SearchReplace extends SvelteComponentTyped<SearchReplaceProps_, SearchReplaceEvents, SearchReplaceSlots> {
|
|
13
17
|
}
|
|
14
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
|
|
3
|
+
export type StrikethroughProps = { editor: Editor };
|
|
4
|
+
</script>
|
|
5
|
+
|
|
1
6
|
<script lang="ts">
|
|
2
7
|
import { Strikethrough } from 'lucide-svelte';
|
|
3
8
|
import { type Editor } from '@tiptap/core';
|
|
@@ -5,7 +10,7 @@
|
|
|
5
10
|
import { Button } from '../../ui/button/index.js';
|
|
6
11
|
import { cn } from '../../../utils.js';
|
|
7
12
|
|
|
8
|
-
let { editor }:
|
|
13
|
+
let { editor }: StrikethroughProps = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
<Tooltip.Provider>
|