vdc-editor 0.0.5 → 0.0.7
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/lib/src/components/ActionButton.vue.d.ts +6 -8
- package/lib/src/components/ActionDropdownButton.vue.d.ts +4 -6
- package/lib/src/components/ActionDropdownButtonSplit.vue.d.ts +4 -6
- package/lib/src/components/ColorPicker.vue.d.ts +4 -6
- package/lib/src/components/CoreEditor.vue.d.ts +3 -3
- package/lib/src/components/SelectContextMenu.vue.d.ts +4 -6
- package/lib/src/components/icons/Icon.vue.d.ts +2 -2
- package/lib/src/components/ui/badge/Badge.vue.d.ts +8 -13
- package/lib/src/components/ui/button/Button.vue.d.ts +5 -7
- package/lib/src/components/ui/checkbox/Checkbox.vue.d.ts +6 -9
- package/lib/src/components/ui/context-menu/ContextMenu.vue.d.ts +4 -6
- package/lib/src/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +6 -9
- package/lib/src/components/ui/context-menu/ContextMenuContent.vue.d.ts +6 -9
- package/lib/src/components/ui/context-menu/ContextMenuGroup.vue.d.ts +2 -4
- package/lib/src/components/ui/context-menu/ContextMenuItem.vue.d.ts +8 -11
- package/lib/src/components/ui/context-menu/ContextMenuLabel.vue.d.ts +8 -11
- package/lib/src/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +4 -6
- package/lib/src/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +6 -9
- package/lib/src/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +2 -2
- package/lib/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +6 -10
- package/lib/src/components/ui/context-menu/ContextMenuSub.vue.d.ts +4 -6
- package/lib/src/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +6 -9
- package/lib/src/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +8 -11
- package/lib/src/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +2 -4
- package/lib/src/components/ui/dialog/Dialog.vue.d.ts +4 -6
- package/lib/src/components/ui/dialog/DialogClose.vue.d.ts +2 -4
- package/lib/src/components/ui/dialog/DialogContent.vue.d.ts +6 -9
- package/lib/src/components/ui/dialog/DialogDescription.vue.d.ts +6 -9
- package/lib/src/components/ui/dialog/DialogFooter.vue.d.ts +6 -10
- package/lib/src/components/ui/dialog/DialogHeader.vue.d.ts +6 -10
- package/lib/src/components/ui/dialog/DialogScrollContent.vue.d.ts +6 -9
- package/lib/src/components/ui/dialog/DialogTitle.vue.d.ts +6 -9
- package/lib/src/components/ui/dialog/DialogTrigger.vue.d.ts +2 -4
- package/lib/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +4 -6
- package/lib/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +6 -9
- package/lib/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +6 -9
- package/lib/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +2 -4
- package/lib/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +8 -11
- package/lib/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +8 -11
- package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +4 -6
- package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +6 -9
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +2 -2
- package/lib/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +6 -10
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +4 -6
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +6 -9
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +6 -9
- package/lib/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +2 -4
- package/lib/src/components/ui/input/Input.vue.d.ts +6 -6
- package/lib/src/components/ui/label/Label.vue.d.ts +6 -9
- package/lib/src/components/ui/popover/Popover.vue.d.ts +4 -6
- package/lib/src/components/ui/popover/PopoverContent.vue.d.ts +7 -10
- package/lib/src/components/ui/popover/PopoverTrigger.vue.d.ts +2 -4
- package/lib/src/components/ui/resizable/ResizableHandle.vue.d.ts +4 -4
- package/lib/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +6 -9
- package/lib/src/components/ui/scroll-area/ScrollArea.vue.d.ts +6 -9
- package/lib/src/components/ui/scroll-area/ScrollBar.vue.d.ts +3 -3
- package/lib/src/components/ui/select/Select.vue.d.ts +4 -6
- package/lib/src/components/ui/select/SelectContent.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectGroup.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectItem.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectItemText.vue.d.ts +2 -4
- package/lib/src/components/ui/select/SelectLabel.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectScrollDownButton.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectScrollUpButton.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectSeparator.vue.d.ts +2 -2
- package/lib/src/components/ui/select/SelectTrigger.vue.d.ts +6 -9
- package/lib/src/components/ui/select/SelectValue.vue.d.ts +2 -4
- package/lib/src/components/ui/separator/Separator.vue.d.ts +2 -2
- package/lib/src/components/ui/tabs/Tabs.vue.d.ts +4 -6
- package/lib/src/components/ui/tabs/TabsContent.vue.d.ts +6 -9
- package/lib/src/components/ui/tabs/TabsList.vue.d.ts +6 -9
- package/lib/src/components/ui/tabs/TabsTrigger.vue.d.ts +6 -9
- package/lib/src/components/ui/textarea/Textarea.vue.d.ts +6 -6
- package/lib/src/components/ui/toast/use-toast.d.ts +23 -99
- package/lib/src/components/ui/toggle/Toggle.vue.d.ts +10 -14
- package/lib/src/components/ui/tooltip/Tooltip.vue.d.ts +4 -6
- package/lib/src/components/ui/tooltip/TooltipContent.vue.d.ts +6 -9
- package/lib/src/components/ui/tooltip/TooltipProvider.vue.d.ts +2 -4
- package/lib/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +2 -4
- package/lib/src/extensions/Ai/components/AIButton.vue.d.ts +1 -1
- package/lib/src/extensions/CodeBlock/components/CodeBlockView.vue.d.ts +16 -16
- package/lib/src/extensions/Image/components/ImageView.vue.d.ts +14 -14
- package/lib/src/extensions/ImageUpload/components/ImageUploader.vue.d.ts +16 -16
- package/lib/src/extensions/ImageUpload/image-upload-plugin.d.ts +2 -2
- package/lib/src/extensions/Page/node-view.vue.d.ts +16 -16
- package/lib/src/extensions/Page/utils.d.ts +3 -3
- package/lib/src/extensions/SpellChecker/i-proofreader-interface.d.ts +13 -2
- package/lib/src/extensions/SpellChecker/index.d.ts +1 -1
- package/lib/src/extensions/SpellChecker/proofreader.d.ts +20 -0
- package/lib/src/extensions/SpellChecker/spell-check.service.d.ts +3 -0
- package/lib/src/extensions/SuperText/components/SuperText.vue.d.ts +16 -16
- package/lib/src/extensions/Table/components/CreateTablePopover.vue.d.ts +4 -6
- package/lib/src/extensions/Table/components/TableActionButton.vue.d.ts +1 -1
- package/lib/src/extensions/VideoUpload/components/VideoUploader.vue.d.ts +16 -16
- package/lib/src/hooks/useStore.d.ts +2 -2
- package/lib/src/hooks/useSuperTextStore.d.ts +2 -2
- package/lib/style.css +1 -1
- package/lib/vdc-editor.mjs +37648 -30774
- package/lib/vdc-editor.umd.js +75 -63
- package/package.json +1 -1
- package/lib/src/extensions/SpellChecker/hunspell-proofreader.d.ts +0 -16
- package/lib/src/extensions/SpellChecker/sapling-proofreader.d.ts +0 -13
- package/lib/src/hooks/useConfigTiptap.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Typo } from 'typo-js-ts';
|
|
2
|
-
import { IProofreaderInterface, ITextWithPosition } from './i-proofreader-interface';
|
|
3
|
-
import { Hunspell } from 'hunspell-asm';
|
|
4
|
-
|
|
5
|
-
export interface WordList {
|
|
6
|
-
[word: string]: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class Proofreader implements IProofreaderInterface {
|
|
9
|
-
private hunspell;
|
|
10
|
-
private typo;
|
|
11
|
-
constructor(typo: Typo | null, hunspell: Hunspell | null);
|
|
12
|
-
getSuggestions(word: string): Promise<string[]>;
|
|
13
|
-
normalizeTextForLanguage(text: string): string;
|
|
14
|
-
proofreadText(sentence: string): Promise<ITextWithPosition[]>;
|
|
15
|
-
private tokenizeString;
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IProofreaderInterface, ITextWithPosition } from './i-proofreader-interface';
|
|
2
|
-
|
|
3
|
-
export interface WordList {
|
|
4
|
-
[word: string]: number;
|
|
5
|
-
}
|
|
6
|
-
export declare class Proofreader implements IProofreaderInterface {
|
|
7
|
-
private suggestions;
|
|
8
|
-
constructor();
|
|
9
|
-
setSuggestions(data: any): void;
|
|
10
|
-
getSuggestions(word: string): Promise<string[]>;
|
|
11
|
-
normalizeTextForLanguage(text: string): string;
|
|
12
|
-
proofreadText(sentence: string): Promise<ITextWithPosition[]>;
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PageOption } from '../type';
|
|
2
|
-
|
|
3
|
-
export declare function useConfigTiptap(config?: {
|
|
4
|
-
page: PageOption;
|
|
5
|
-
}): {
|
|
6
|
-
defaultExtensions: globalThis.ComputedRef<(import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<import('../extensions').ClearOptions, any> | import('@tiptap/core').Mark<import('../extensions').LinkOptions, any> | import('@tiptap/core').Node<import('../extensions').HorizontalRuleOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-image').ImageOptions, any> | import('@tiptap/core').Node<import('../extensions').TableOptions, any> | import('@tiptap/core').Node<import('../extensions').ColumnsOptions, any> | import('@tiptap/core').Node<import('../extensions').ImageUploadOptions, any>)[]>;
|
|
7
|
-
content: globalThis.Ref<string, string>;
|
|
8
|
-
};
|