@intlayer/design-system 9.0.0-canary.0 → 9.0.0-canary.2
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/esm/api/hooks/ai.mjs +20 -1
- package/dist/esm/api/hooks/ai.mjs.map +1 -1
- package/dist/esm/api/hooks/asset.mjs +78 -0
- package/dist/esm/api/hooks/asset.mjs.map +1 -0
- package/dist/esm/api/index.mjs +6 -5
- package/dist/esm/api/useIntlayerAPI.mjs +6 -1
- package/dist/esm/api/useIntlayerAPI.mjs.map +1 -1
- package/dist/esm/components/Command/index.mjs +8 -8
- package/dist/esm/components/Command/index.mjs.map +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs +132 -35
- package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +33 -11
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +146 -35
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +308 -0
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +12 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +460 -20
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +506 -0
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +10 -6
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +9 -9
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/contentEditor.content.mjs +79 -0
- package/dist/esm/components/DictionaryFieldEditor/contentEditor.content.mjs.map +1 -0
- package/dist/esm/components/Form/Form.mjs +3 -43
- package/dist/esm/components/Form/Form.mjs.map +1 -1
- package/dist/esm/components/Form/elements/FormElement.mjs +2 -3
- package/dist/esm/components/Form/elements/FormElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/MultiselectElement.mjs +2 -3
- package/dist/esm/components/Form/elements/MultiselectElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +3 -4
- package/dist/esm/components/Form/elements/OTPElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/SelectElement.mjs +2 -3
- package/dist/esm/components/Form/elements/SelectElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/SwitchSelectorElement.mjs +2 -3
- package/dist/esm/components/Form/elements/SwitchSelectorElement.mjs.map +1 -1
- package/dist/esm/components/Form/index.mjs +21 -2
- package/dist/esm/components/Form/layout/FormItemLayout.mjs +8 -5
- package/dist/esm/components/Form/layout/FormItemLayout.mjs.map +1 -1
- package/dist/esm/components/LanguageBackground/LanguageBackground.mjs +3 -8
- package/dist/esm/components/LanguageBackground/LanguageBackground.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs.map +1 -1
- package/dist/esm/components/MarkdownEditor/MarkdownEditor.mjs +113 -0
- package/dist/esm/components/MarkdownEditor/MarkdownEditor.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/extensions.mjs +103 -0
- package/dist/esm/components/MarkdownEditor/extensions.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/generative/AICompletionCommands.mjs +51 -0
- package/dist/esm/components/MarkdownEditor/generative/AICompletionCommands.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/generative/AISelector.mjs +100 -0
- package/dist/esm/components/MarkdownEditor/generative/AISelector.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/generative/AISelectorCommands.mjs +81 -0
- package/dist/esm/components/MarkdownEditor/generative/AISelectorCommands.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/generative/GenerativeMenuSwitch.mjs +47 -0
- package/dist/esm/components/MarkdownEditor/generative/GenerativeMenuSwitch.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/generative/useAICompletion.mjs +83 -0
- package/dist/esm/components/MarkdownEditor/generative/useAICompletion.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/imageUpload.mjs +47 -0
- package/dist/esm/components/MarkdownEditor/imageUpload.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/index.mjs +4 -0
- package/dist/esm/components/MarkdownEditor/markdownEditor.content.mjs +1140 -0
- package/dist/esm/components/MarkdownEditor/markdownEditor.content.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-bubble-item.mjs +20 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-bubble-item.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-bubble.mjs +39 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-bubble.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-command-item.mjs +25 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-command-item.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-command.mjs +61 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor-command.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor.mjs +27 -0
- package/dist/esm/components/MarkdownEditor/novel/components/editor.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/components/index.mjs +8 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/ai-highlight.mjs +74 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/ai-highlight.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/custom-keymap.mjs +37 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/custom-keymap.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/image-resizer.mjs +49 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/image-resizer.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/index.mjs +51 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/index.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/slash-command.mjs +79 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/slash-command.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/updated-image.mjs +17 -0
- package/dist/esm/components/MarkdownEditor/novel/extensions/updated-image.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/index.mjs +17 -0
- package/dist/esm/components/MarkdownEditor/novel/plugins/index.mjs +3 -0
- package/dist/esm/components/MarkdownEditor/novel/plugins/upload-images.mjs +92 -0
- package/dist/esm/components/MarkdownEditor/novel/plugins/upload-images.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/utils/atoms.mjs +39 -0
- package/dist/esm/components/MarkdownEditor/novel/utils/atoms.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/novel/utils/index.mjs +38 -0
- package/dist/esm/components/MarkdownEditor/novel/utils/index.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/selectors/ColorSelector.mjs +176 -0
- package/dist/esm/components/MarkdownEditor/selectors/ColorSelector.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/selectors/LinkSelector.mjs +95 -0
- package/dist/esm/components/MarkdownEditor/selectors/LinkSelector.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/selectors/NodeSelector.mjs +139 -0
- package/dist/esm/components/MarkdownEditor/selectors/NodeSelector.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/selectors/TextButtons.mjs +81 -0
- package/dist/esm/components/MarkdownEditor/selectors/TextButtons.mjs.map +1 -0
- package/dist/esm/components/MarkdownEditor/slashCommand.mjs +161 -0
- package/dist/esm/components/MarkdownEditor/slashCommand.mjs.map +1 -0
- package/dist/esm/components/Modal/Modal.mjs +2 -2
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/Pattern/GridDistortionPattern.mjs +275 -0
- package/dist/esm/components/Pattern/GridDistortionPattern.mjs.map +1 -0
- package/dist/esm/components/Pattern/index.mjs +2 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/Tab/Tab.mjs +1 -1
- package/dist/esm/components/Table/Table.mjs +1 -1
- package/dist/esm/components/Table/Table.mjs.map +1 -1
- package/dist/esm/components/Tag/index.mjs +0 -9
- package/dist/esm/components/Tag/index.mjs.map +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +1 -1
- package/dist/esm/components/Toaster/Toast.mjs.map +1 -1
- package/dist/esm/components/index.mjs +27 -6
- package/dist/esm/hooks/index.mjs +8 -8
- package/dist/esm/hooks/useIsMounted.mjs +4 -2
- package/dist/esm/hooks/useIsMounted.mjs.map +1 -1
- package/dist/esm/routes.mjs +2 -1
- package/dist/esm/routes.mjs.map +1 -1
- package/dist/types/api/hooks/ai.d.ts +5 -1
- package/dist/types/api/hooks/ai.d.ts.map +1 -1
- package/dist/types/api/hooks/asset.d.ts +27 -0
- package/dist/types/api/hooks/asset.d.ts.map +1 -0
- package/dist/types/api/hooks/audit.d.ts +1 -1
- package/dist/types/api/index.d.ts +4 -3
- package/dist/types/api/useIntlayerAPI.d.ts +15 -3
- package/dist/types/api/useIntlayerAPI.d.ts.map +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
- package/dist/types/components/Command/index.d.ts.map +1 -1
- package/dist/types/components/Container/index.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/ContentEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +308 -0
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts +12 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +2 -0
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +506 -0
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +2 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/contentEditor.content.d.ts +80 -0
- package/dist/types/components/DictionaryFieldEditor/contentEditor.content.d.ts.map +1 -0
- package/dist/types/components/Form/Form.d.ts +27 -47
- package/dist/types/components/Form/Form.d.ts.map +1 -1
- package/dist/types/components/Form/elements/FormElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/MultiselectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/OTPElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SelectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
- package/dist/types/components/Form/index.d.ts +22 -3
- package/dist/types/components/Form/layout/FormItemLayout.d.ts.map +1 -1
- package/dist/types/components/Input/Checkbox.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts +1 -1
- package/dist/types/components/Input/Radio.d.ts +3 -3
- package/dist/types/components/LanguageBackground/LanguageBackground.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +1 -1
- package/dist/types/components/MarkdownEditor/MarkdownEditor.d.ts +31 -0
- package/dist/types/components/MarkdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/extensions.d.ts +11 -0
- package/dist/types/components/MarkdownEditor/extensions.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/generative/AICompletionCommands.d.ts +18 -0
- package/dist/types/components/MarkdownEditor/generative/AICompletionCommands.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/generative/AISelector.d.ts +22 -0
- package/dist/types/components/MarkdownEditor/generative/AISelector.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/generative/AISelectorCommands.d.ts +17 -0
- package/dist/types/components/MarkdownEditor/generative/AISelectorCommands.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/generative/GenerativeMenuSwitch.d.ts +26 -0
- package/dist/types/components/MarkdownEditor/generative/GenerativeMenuSwitch.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/generative/useAICompletion.d.ts +30 -0
- package/dist/types/components/MarkdownEditor/generative/useAICompletion.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/imageUpload.d.ts +29 -0
- package/dist/types/components/MarkdownEditor/imageUpload.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/index.d.ts +3 -0
- package/dist/types/components/MarkdownEditor/markdownEditor.content.d.ts +1135 -0
- package/dist/types/components/MarkdownEditor/markdownEditor.content.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-bubble-item.d.ts +14 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-bubble-item.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-bubble.d.ts +18 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-bubble.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-command-item.d.ts +28 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-command-item.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-command.d.ts +34 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor-command.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor.d.ts +23 -0
- package/dist/types/components/MarkdownEditor/novel/components/editor.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/components/index.d.ts +8 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/ai-highlight.d.ts +36 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/ai-highlight.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/custom-keymap.d.ts +17 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/custom-keymap.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/image-resizer.d.ts +7 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/image-resizer.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/index.d.ts +30 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/index.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/slash-command.d.ts +38 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/slash-command.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/updated-image.d.ts +8 -0
- package/dist/types/components/MarkdownEditor/novel/extensions/updated-image.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/index.d.ts +16 -0
- package/dist/types/components/MarkdownEditor/novel/plugins/index.d.ts +2 -0
- package/dist/types/components/MarkdownEditor/novel/plugins/upload-images.d.ts +22 -0
- package/dist/types/components/MarkdownEditor/novel/plugins/upload-images.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/utils/atoms.d.ts +21 -0
- package/dist/types/components/MarkdownEditor/novel/utils/atoms.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/novel/utils/index.d.ts +10 -0
- package/dist/types/components/MarkdownEditor/novel/utils/index.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/selectors/ColorSelector.d.ts +17 -0
- package/dist/types/components/MarkdownEditor/selectors/ColorSelector.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/selectors/LinkSelector.d.ts +15 -0
- package/dist/types/components/MarkdownEditor/selectors/LinkSelector.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/selectors/NodeSelector.d.ts +22 -0
- package/dist/types/components/MarkdownEditor/selectors/NodeSelector.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/selectors/TextButtons.d.ts +11 -0
- package/dist/types/components/MarkdownEditor/selectors/TextButtons.d.ts.map +1 -0
- package/dist/types/components/MarkdownEditor/slashCommand.d.ts +29 -0
- package/dist/types/components/MarkdownEditor/slashCommand.d.ts.map +1 -0
- package/dist/types/components/Pattern/GridDistortionPattern.d.ts +15 -0
- package/dist/types/components/Pattern/GridDistortionPattern.d.ts.map +1 -0
- package/dist/types/components/Pattern/index.d.ts +2 -1
- package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +1 -1
- package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toast.d.ts +1 -1
- package/dist/types/components/index.d.ts +24 -3
- package/dist/types/routes.d.ts +2 -1
- package/dist/types/routes.d.ts.map +1 -1
- package/package.json +63 -32
- package/src/components/MarkdownEditor/markdown-editor.css +297 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownEditor.content.d.ts","names":[],"sources":["../../../../src/components/MarkdownEditor/markdownEditor.content.ts"],"mappings":";;;cAEM,qBAAA;;;eAymCgB,4BAAA,CAAA,kBAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC, ReactNode, Ref } from "react";
|
|
2
|
+
import { Editor } from "@tiptap/react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/MarkdownEditor/novel/components/editor-bubble-item.d.ts
|
|
5
|
+
interface EditorBubbleItemProps {
|
|
6
|
+
readonly children: ReactNode;
|
|
7
|
+
readonly asChild?: boolean;
|
|
8
|
+
readonly onSelect?: (editor: Editor) => void;
|
|
9
|
+
readonly ref?: Ref<HTMLDivElement>;
|
|
10
|
+
}
|
|
11
|
+
declare const EditorBubbleItem: FC<EditorBubbleItemProps & Omit<ComponentPropsWithoutRef<'div'>, 'onSelect'>>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { EditorBubbleItem, EditorBubbleItem as default };
|
|
14
|
+
//# sourceMappingURL=editor-bubble-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-bubble-item.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/components/editor-bubble-item.tsx"],"mappings":";;;;UAKU,qBAAA;EAAA,SACC,QAAA,EAAU,SAAA;EAAA,SACV,OAAA;EAAA,SACA,QAAA,IAAY,MAAA,EAAQ,MAAA;EAAA,SACpB,GAAA,GAAM,GAAA,CAAI,cAAA;AAAA;AAAA,cAGR,gBAAA,EAAkB,EAAA,CAC7B,qBAAA,GAAwB,IAAA,CAAK,wBAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC, ReactNode, Ref } from "react";
|
|
2
|
+
import { BubbleMenuProps } from "@tiptap/react/menus";
|
|
3
|
+
|
|
4
|
+
//#region src/components/MarkdownEditor/novel/components/editor-bubble.d.ts
|
|
5
|
+
interface EditorBubbleProps extends Omit<BubbleMenuProps, 'editor'> {
|
|
6
|
+
readonly children: ReactNode;
|
|
7
|
+
readonly ref?: Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Thin wrapper around Tiptap v3's floating-ui based `BubbleMenu`
|
|
11
|
+
* (`@tiptap/react/menus`). Positioning is configured through the `options`
|
|
12
|
+
* prop (`{ placement, offset, ... }`) — the v2 `tippyOptions` API and the
|
|
13
|
+
* tippy.js dependency it required are gone.
|
|
14
|
+
*/
|
|
15
|
+
declare const EditorBubble: FC<EditorBubbleProps>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { EditorBubble, EditorBubble as default, EditorBubbleProps };
|
|
18
|
+
//# sourceMappingURL=editor-bubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-bubble.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/components/editor-bubble.tsx"],"mappings":";;;;UAKiB,iBAAA,SAA0B,IAAA,CAAK,eAAA;EAAA,SACrC,QAAA,EAAU,SAAA;EAAA,SACV,GAAA,GAAM,GAAA,CAAI,cAAA;AAAA;;;;;;;cASR,YAAA,EAAc,EAAA,CAAG,iBAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as _$react from "react";
|
|
2
|
+
import { ComponentPropsWithoutRef, FC, Ref } from "react";
|
|
3
|
+
import { CommandItem } from "cmdk";
|
|
4
|
+
import { Editor, Range } from "@tiptap/core";
|
|
5
|
+
|
|
6
|
+
//#region src/components/MarkdownEditor/novel/components/editor-command-item.d.ts
|
|
7
|
+
interface EditorCommandItemProps {
|
|
8
|
+
readonly onCommand: ({
|
|
9
|
+
editor,
|
|
10
|
+
range
|
|
11
|
+
}: {
|
|
12
|
+
editor: Editor;
|
|
13
|
+
range: Range;
|
|
14
|
+
}) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const EditorCommandItem: FC<EditorCommandItemProps & ComponentPropsWithoutRef<typeof CommandItem> & {
|
|
17
|
+
readonly ref?: Ref<HTMLDivElement>;
|
|
18
|
+
}>;
|
|
19
|
+
declare const EditorCommandEmpty: _$react.ForwardRefExoticComponent<{
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
} & Pick<Pick<_$react.DetailedHTMLProps<_$react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof _$react.HTMLAttributes<HTMLDivElement>> & {
|
|
22
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
23
|
+
} & {
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
}, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild"> & _$react.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { EditorCommandEmpty, EditorCommandItem, EditorCommandItem as default };
|
|
28
|
+
//# sourceMappingURL=editor-command-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-command-item.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/components/editor-command-item.tsx"],"mappings":";;;;;;UAMU,sBAAA;EAAA,SACC,SAAA;IACP,MAAA;IACA;EAAA;IAEA,MAAA,EAAQ,MAAA;IACR,KAAA,EAAO,KAAA;EAAA;AAAA;AAAA,cAIE,iBAAA,EAAmB,EAAA,CAC9B,sBAAA,GACE,wBAAA,QAAgC,WAAA;EAAA,SACrB,GAAA,GAAM,GAAA,CAAI,cAAA;AAAA;AAAA,cAmBZ,kBAAA,UAAkB,yBAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as _$react from "react";
|
|
2
|
+
import { ComponentPropsWithoutRef, FC, Ref } from "react";
|
|
3
|
+
import { Command } from "cmdk";
|
|
4
|
+
import { Range } from "@tiptap/core";
|
|
5
|
+
|
|
6
|
+
//#region src/components/MarkdownEditor/novel/components/editor-command.d.ts
|
|
7
|
+
declare const EditorCommandTunnelContext: _$react.Context<{
|
|
8
|
+
In: ({
|
|
9
|
+
children
|
|
10
|
+
}: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}) => null;
|
|
13
|
+
Out: () => JSX.Element;
|
|
14
|
+
}>;
|
|
15
|
+
interface EditorCommandOutProps {
|
|
16
|
+
readonly query: string;
|
|
17
|
+
readonly range: Range;
|
|
18
|
+
}
|
|
19
|
+
declare const EditorCommandOut: FC<EditorCommandOutProps>;
|
|
20
|
+
declare const EditorCommand: FC<ComponentPropsWithoutRef<typeof Command> & {
|
|
21
|
+
readonly ref?: Ref<HTMLDivElement>;
|
|
22
|
+
}>;
|
|
23
|
+
declare const EditorCommandList: _$react.ForwardRefExoticComponent<{
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
} & Pick<Pick<_$react.DetailedHTMLProps<_$react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof _$react.HTMLAttributes<HTMLDivElement>> & {
|
|
26
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
27
|
+
} & {
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
}, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
30
|
+
label?: string;
|
|
31
|
+
} & _$react.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { EditorCommand, EditorCommandList, EditorCommandOut, EditorCommandTunnelContext };
|
|
34
|
+
//# sourceMappingURL=editor-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-command.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/components/editor-command.tsx"],"mappings":";;;;;;cAOa,0BAAA,EAJiC,OAAA,CAIP,OAAA;;;;;;aAJL,GAAA,CAAK,OAAA;AAAA;AAAA,UAQ7B,qBAAA;EAAA,SACC,KAAA;EAAA,SACA,KAAA,EAAO,KAAA;AAAA;AAAA,cAGL,gBAAA,EAAkB,EAAA,CAAG,qBAAA;AAAA,cA4CrB,aAAA,EAAe,EAAA,CAC1B,wBAAA,QAAgC,OAAA;EAAA,SACrB,GAAA,GAAM,GAAA,CAAI,cAAA;AAAA;AAAA,cA8BV,iBAAA,UAAiB,yBAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC, ReactNode, Ref } from "react";
|
|
2
|
+
import { EditorProviderProps, JSONContent } from "@tiptap/react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/MarkdownEditor/novel/components/editor.d.ts
|
|
5
|
+
interface EditorProps {
|
|
6
|
+
readonly children: ReactNode;
|
|
7
|
+
readonly className?: string;
|
|
8
|
+
}
|
|
9
|
+
interface EditorRootProps {
|
|
10
|
+
readonly children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const EditorRoot: FC<EditorRootProps>;
|
|
13
|
+
type EditorContentProps = Omit<EditorProviderProps, 'content'> & {
|
|
14
|
+
readonly children?: ReactNode;
|
|
15
|
+
readonly className?: string;
|
|
16
|
+
readonly initialContent?: JSONContent;
|
|
17
|
+
};
|
|
18
|
+
declare const EditorContent: FC<EditorContentProps & {
|
|
19
|
+
readonly ref?: Ref<HTMLDivElement>;
|
|
20
|
+
}>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { EditorContent, EditorContentProps, EditorProps, EditorRoot };
|
|
23
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/components/editor.tsx"],"mappings":";;;;UAOiB,WAAA;EAAA,SACN,QAAA,EAAU,SAAA;EAAA,SACV,SAAA;AAAA;AAAA,UAGD,eAAA;EAAA,SACC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGR,UAAA,EAAY,EAAA,CAAG,eAAA;AAAA,KAUhB,kBAAA,GAAqB,IAAA,CAAK,mBAAA;EAAA,SAC3B,QAAA,GAAW,SAAA;EAAA,SACX,SAAA;EAAA,SACA,cAAA,GAAiB,WAAA;AAAA;AAAA,cAGf,aAAA,EAAe,EAAA,CAC1B,kBAAA;EAAA,SAAgC,GAAA,GAAM,GAAA,CAAI,cAAA;AAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EditorContent, EditorContentProps, EditorRoot } from "./editor.js";
|
|
2
|
+
import { EditorBubble } from "./editor-bubble.js";
|
|
3
|
+
import { EditorBubbleItem } from "./editor-bubble-item.js";
|
|
4
|
+
import { EditorCommand, EditorCommandList } from "./editor-command.js";
|
|
5
|
+
import { EditorCommandEmpty, EditorCommandItem } from "./editor-command-item.js";
|
|
6
|
+
import { Editor as EditorInstance } from "@tiptap/core";
|
|
7
|
+
import { JSONContent, useCurrentEditor as useEditor } from "@tiptap/react";
|
|
8
|
+
export { EditorBubble, EditorBubbleItem, EditorCommand, EditorCommandEmpty, EditorCommandItem, EditorCommandList, EditorContent, type EditorContentProps, type EditorInstance, EditorRoot, type JSONContent, useEditor };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Editor, Mark } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/novel/extensions/ai-highlight.d.ts
|
|
4
|
+
interface AIHighlightOptions {
|
|
5
|
+
HTMLAttributes: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
declare module '@tiptap/core' {
|
|
8
|
+
interface Commands<ReturnType> {
|
|
9
|
+
AIHighlight: {
|
|
10
|
+
/**
|
|
11
|
+
* Set a AIHighlight mark
|
|
12
|
+
*/
|
|
13
|
+
setAIHighlight: (attributes?: {
|
|
14
|
+
color: string;
|
|
15
|
+
}) => ReturnType;
|
|
16
|
+
/**
|
|
17
|
+
* Toggle a AIHighlight mark
|
|
18
|
+
*/
|
|
19
|
+
toggleAIHighlight: (attributes?: {
|
|
20
|
+
color: string;
|
|
21
|
+
}) => ReturnType;
|
|
22
|
+
/**
|
|
23
|
+
* Unset a AIHighlight mark
|
|
24
|
+
*/
|
|
25
|
+
unsetAIHighlight: () => ReturnType;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
declare const inputRegex: RegExp;
|
|
30
|
+
declare const pasteRegex: RegExp;
|
|
31
|
+
declare const AIHighlight: Mark<AIHighlightOptions, any>;
|
|
32
|
+
declare const removeAIHighlight: (editor: Editor) => void;
|
|
33
|
+
declare const addAIHighlight: (editor: Editor, color?: string) => void;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { AIHighlight, AIHighlightOptions, addAIHighlight, inputRegex, pasteRegex, removeAIHighlight };
|
|
36
|
+
//# sourceMappingURL=ai-highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-highlight.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/extensions/ai-highlight.ts"],"mappings":";;;UAQiB,kBAAA;EACf,cAAA,EAAgB,MAAA;AAAA;AAAA;EAAA,UAIN,QAAA;IACR,WAAA;MALoB;AACvB;;MAQK,cAAA,GAAiB,UAAA;QAAe,KAAA;MAAA,MAAoB,UAAA;MAQ5B;;;MAJxB,iBAAA,GAAoB,UAAA;QAAe,KAAA;MAAA,MAAoB,UAAA;MAJvD;;;MAQA,gBAAA,QAAwB,UAAA;IAAA;EAAA;AAAA;AAAA,cAKjB,UAAA,EAAU,MAAA;AAAA,cACV,UAAA,EAAU,MAAA;AAAA,cAEV,WAAA,EAAW,IAAA,CAAA,kBAAA;AAAA,cA0FX,iBAAA,GAAqB,MAAA,EAAQ,MAAA;AAAA,cAS7B,cAAA,GAAkB,MAAA,EAAQ,MAAA,EAAQ,KAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/novel/extensions/custom-keymap.d.ts
|
|
4
|
+
declare module '@tiptap/core' {
|
|
5
|
+
interface Commands<ReturnType> {
|
|
6
|
+
customkeymap: {
|
|
7
|
+
/**
|
|
8
|
+
* Select text between node boundaries
|
|
9
|
+
*/
|
|
10
|
+
selectTextWithinNodeBoundaries: () => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare const CustomKeymap: Extension<any, any>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { CustomKeymap as default };
|
|
17
|
+
//# sourceMappingURL=custom-keymap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-keymap.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/extensions/custom-keymap.ts"],"mappings":";;;;YAIY,QAAA;IACR,YAAA;MALqC;;;MASnC,8BAAA,QAAsC,UAAA;IAAA;EAAA;AAAA;AAAA,cAKtC,YAAA,EAAY,SAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resizer.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/extensions/image-resizer.tsx"],"mappings":";;;cAIa,YAAA,EAAc,EAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import CustomKeymap from "./custom-keymap.js";
|
|
2
|
+
import { ImageResizer } from "./image-resizer.js";
|
|
3
|
+
import UpdatedImage from "./updated-image.js";
|
|
4
|
+
import { AIHighlight, AIHighlightOptions, addAIHighlight, inputRegex, pasteRegex, removeAIHighlight } from "./ai-highlight.js";
|
|
5
|
+
import { Command, SuggestionItem, createSuggestionItems, handleCommandNavigation, renderItems } from "./slash-command.js";
|
|
6
|
+
import * as _$_tiptap_core0 from "@tiptap/core";
|
|
7
|
+
import { InputRule } from "@tiptap/core";
|
|
8
|
+
import * as _$_tiptap_extension_highlight0 from "@tiptap/extension-highlight";
|
|
9
|
+
import * as _$tiptap_markdown0 from "tiptap-markdown";
|
|
10
|
+
import * as _$_tiptap_extension_horizontal_rule0 from "@tiptap/extension-horizontal-rule";
|
|
11
|
+
import CharacterCount from "@tiptap/extension-character-count";
|
|
12
|
+
import { Color } from "@tiptap/extension-color";
|
|
13
|
+
import TiptapImage from "@tiptap/extension-image";
|
|
14
|
+
import TiptapLink from "@tiptap/extension-link";
|
|
15
|
+
import { TaskItem } from "@tiptap/extension-task-item";
|
|
16
|
+
import { TaskList } from "@tiptap/extension-task-list";
|
|
17
|
+
import { TextStyle } from "@tiptap/extension-text-style";
|
|
18
|
+
import TiptapUnderline from "@tiptap/extension-underline";
|
|
19
|
+
import Youtube from "@tiptap/extension-youtube";
|
|
20
|
+
import StarterKit from "@tiptap/starter-kit";
|
|
21
|
+
import GlobalDragHandle from "tiptap-extension-global-drag-handle";
|
|
22
|
+
|
|
23
|
+
//#region src/components/MarkdownEditor/novel/extensions/index.d.ts
|
|
24
|
+
declare const PlaceholderExtension: any;
|
|
25
|
+
declare const HighlightExtension: _$_tiptap_core0.Mark<_$_tiptap_extension_highlight0.HighlightOptions, any>;
|
|
26
|
+
declare const MarkdownExtension: _$_tiptap_core0.Extension<_$tiptap_markdown0.MarkdownOptions, _$tiptap_markdown0.MarkdownStorage>;
|
|
27
|
+
declare const Horizontal: _$_tiptap_core0.Node<_$_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { AIHighlight, AIHighlightOptions, CharacterCount, Color, Command, CustomKeymap, GlobalDragHandle, HighlightExtension, Horizontal as HorizontalRule, ImageResizer, InputRule, MarkdownExtension, PlaceholderExtension as Placeholder, StarterKit, SuggestionItem, TaskItem, TaskList, TextStyle, TiptapImage, TiptapLink, TiptapUnderline, UpdatedImage, Youtube, addAIHighlight, createSuggestionItems, handleCommandNavigation, inputRegex, pasteRegex, removeAIHighlight, renderItems };
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/extensions/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cAoBM,oBAAA;AAAA,cAUA,kBAAA,EAAkB,eAAA,CAAA,IAAA,CAEtB,8BAAA,CAFsB,gBAAA;AAAA,cAIlB,iBAAA,EAAiB,eAAA,CAAA,SAAA,CAGrB,kBAAA,CAHqB,eAAA,EAAA,kBAAA,CAAA,eAAA;AAAA,cAKjB,UAAA,EAAU,eAAA,CAAA,IAAA,CAoBd,oCAAA,CApBc,qBAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
import { Editor, Extension, Range } from "@tiptap/core";
|
|
3
|
+
import { SuggestionOptions } from "@tiptap/suggestion";
|
|
4
|
+
import { GetReferenceClientRect } from "tippy.js";
|
|
5
|
+
|
|
6
|
+
//#region src/components/MarkdownEditor/novel/extensions/slash-command.d.ts
|
|
7
|
+
declare const Command: Extension<{
|
|
8
|
+
suggestion: SuggestionOptions;
|
|
9
|
+
}, any>;
|
|
10
|
+
declare const renderItems: (elementRef?: RefObject<Element> | null) => {
|
|
11
|
+
onStart: (props: {
|
|
12
|
+
editor: Editor;
|
|
13
|
+
clientRect: DOMRect;
|
|
14
|
+
}) => boolean;
|
|
15
|
+
onUpdate: (props: {
|
|
16
|
+
editor: Editor;
|
|
17
|
+
clientRect: GetReferenceClientRect;
|
|
18
|
+
}) => void;
|
|
19
|
+
onKeyDown: (props: {
|
|
20
|
+
event: KeyboardEvent;
|
|
21
|
+
}) => any;
|
|
22
|
+
onExit: () => void;
|
|
23
|
+
};
|
|
24
|
+
interface SuggestionItem {
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
icon: ReactNode;
|
|
28
|
+
searchTerms?: string[];
|
|
29
|
+
command?: (props: {
|
|
30
|
+
editor: Editor;
|
|
31
|
+
range: Range;
|
|
32
|
+
}) => void;
|
|
33
|
+
}
|
|
34
|
+
declare const createSuggestionItems: (items: SuggestionItem[]) => SuggestionItem[];
|
|
35
|
+
declare const handleCommandNavigation: (event: KeyboardEvent) => boolean;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Command, SuggestionItem, createSuggestionItems, handleCommandNavigation, renderItems };
|
|
38
|
+
//# sourceMappingURL=slash-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash-command.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/extensions/slash-command.tsx"],"mappings":";;;;;;cAYM,OAAA,EAAO,SAAA;cASF,iBAAA;AAAA;AAAA,cAaL,WAAA,GAAe,UAAA,GAAa,SAAA,CAAU,OAAA;;IAKrB,MAAA,EAAQ,MAAA;IAAQ,UAAA,EAAY,OAAA;EAAA;;IA2B7C,MAAA,EAAQ,MAAA;IACR,UAAA,EAAY,sBAAA;EAAA;;IASO,KAAA,EAAO,aAAA;EAAA;;;UAiBf,cAAA;EACf,KAAA;EACA,WAAA;EACA,IAAA,EAAM,SAAA;EACN,WAAA;EACA,OAAA,IAAW,KAAA;IAAS,MAAA,EAAQ,MAAA;IAAQ,KAAA,EAAO,KAAA;EAAA;AAAA;AAAA,cAGhC,qBAAA,GAAyB,KAAA,EAAO,cAAA,OAAgB,cAAA;AAAA,cAEhD,uBAAA,GAA2B,KAAA,EAAO,aAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _$_tiptap_core0 from "@tiptap/core";
|
|
2
|
+
import * as _$_tiptap_extension_image0 from "@tiptap/extension-image";
|
|
3
|
+
|
|
4
|
+
//#region src/components/MarkdownEditor/novel/extensions/updated-image.d.ts
|
|
5
|
+
declare const UpdatedImage: _$_tiptap_core0.Node<_$_tiptap_extension_image0.ImageOptions, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { UpdatedImage as default };
|
|
8
|
+
//# sourceMappingURL=updated-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updated-image.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/extensions/updated-image.ts"],"mappings":";;;;cAEM,YAAA,EAAY,eAAA,CAAA,IAAA,CAahB,0BAAA,CAbgB,YAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorContent, EditorContentProps, EditorRoot } from "./components/editor.js";
|
|
2
|
+
import { EditorBubble } from "./components/editor-bubble.js";
|
|
3
|
+
import { EditorBubbleItem } from "./components/editor-bubble-item.js";
|
|
4
|
+
import { EditorCommand, EditorCommandList } from "./components/editor-command.js";
|
|
5
|
+
import { EditorCommandEmpty, EditorCommandItem } from "./components/editor-command-item.js";
|
|
6
|
+
import { EditorInstance, JSONContent, useEditor } from "./components/index.js";
|
|
7
|
+
import CustomKeymap from "./extensions/custom-keymap.js";
|
|
8
|
+
import { ImageResizer } from "./extensions/image-resizer.js";
|
|
9
|
+
import UpdatedImage from "./extensions/updated-image.js";
|
|
10
|
+
import { AIHighlight, addAIHighlight, removeAIHighlight } from "./extensions/ai-highlight.js";
|
|
11
|
+
import { Command, SuggestionItem, createSuggestionItems, handleCommandNavigation, renderItems } from "./extensions/slash-command.js";
|
|
12
|
+
import { CharacterCount, Color, GlobalDragHandle, HighlightExtension, HorizontalRule as Horizontal, InputRule, MarkdownExtension, Placeholder as PlaceholderExtension, StarterKit, TaskItem, TaskList, TextStyle, TiptapImage, TiptapLink, TiptapUnderline, Youtube } from "./extensions/index.js";
|
|
13
|
+
import { ImageUploadOptions, UploadFn, UploadImagesPlugin, createImageUpload, handleImageDrop, handleImagePaste } from "./plugins/upload-images.js";
|
|
14
|
+
import { getAllContent, getPrevText, getUrlFromString, isValidUrl } from "./utils/index.js";
|
|
15
|
+
import { queryStore, rangeStore, useQuery, useRange } from "./utils/atoms.js";
|
|
16
|
+
export { AIHighlight, CharacterCount, Color, Command, CustomKeymap, EditorBubble, EditorBubbleItem, EditorCommand, EditorCommandEmpty, EditorCommandItem, EditorCommandList, EditorContent, type EditorContentProps, type EditorInstance, EditorRoot, GlobalDragHandle, HighlightExtension, Horizontal as HorizontalRule, ImageResizer, type ImageUploadOptions, InputRule, type JSONContent, MarkdownExtension, PlaceholderExtension as Placeholder, StarterKit, type SuggestionItem, TaskItem, TaskList, TextStyle, TiptapImage, TiptapLink, TiptapUnderline, UpdatedImage, type UploadFn, UploadImagesPlugin, Youtube, addAIHighlight, createImageUpload, createSuggestionItems, getAllContent, getPrevText, getUrlFromString, handleCommandNavigation, handleImageDrop, handleImagePaste, isValidUrl, queryStore, rangeStore, removeAIHighlight, renderItems, useEditor, useQuery, useRange };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EditorView } from "@tiptap/pm/view";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/novel/plugins/upload-images.d.ts
|
|
4
|
+
declare const UploadImagesPlugin: ({
|
|
5
|
+
imageClass
|
|
6
|
+
}: {
|
|
7
|
+
imageClass: string;
|
|
8
|
+
}) => any;
|
|
9
|
+
interface ImageUploadOptions {
|
|
10
|
+
validateFn?: (file: File) => void;
|
|
11
|
+
onUpload: (file: File) => Promise<unknown>;
|
|
12
|
+
}
|
|
13
|
+
declare const createImageUpload: ({
|
|
14
|
+
validateFn,
|
|
15
|
+
onUpload
|
|
16
|
+
}: ImageUploadOptions) => UploadFn;
|
|
17
|
+
type UploadFn = (file: File, view: EditorView, pos: number) => void;
|
|
18
|
+
declare const handleImagePaste: (view: EditorView, event: ClipboardEvent, uploadFn: UploadFn) => boolean;
|
|
19
|
+
declare const handleImageDrop: (view: EditorView, event: DragEvent, moved: boolean, uploadFn: UploadFn) => boolean;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ImageUploadOptions, UploadFn, UploadImagesPlugin, createImageUpload, handleImageDrop, handleImagePaste };
|
|
22
|
+
//# sourceMappingURL=upload-images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-images.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/plugins/upload-images.tsx"],"mappings":";;;cAKa,kBAAA;EAAsB;AAAA;EAAkB,UAAA;AAAA;AAAA,UAkDpC,kBAAA;EACf,UAAA,IAAc,IAAA,EAAM,IAAA;EACpB,QAAA,GAAW,IAAA,EAAM,IAAA,KAAS,OAAA;AAAA;AAAA,cAGf,iBAAA;EACV,UAAA;EAAA;AAAA,GAA0B,kBAAA,KAAqB,QAAA;AAAA,KA4DtC,QAAA,IAAY,IAAA,EAAM,IAAA,EAAM,IAAA,EAAM,UAAA,EAAY,GAAA;AAAA,cAEzC,gBAAA,GACX,IAAA,EAAM,UAAA,EACN,KAAA,EAAO,cAAA,EACP,QAAA,EAAU,QAAA;AAAA,cAaC,eAAA,GACX,IAAA,EAAM,UAAA,EACN,KAAA,EAAO,SAAA,EACP,KAAA,WACA,QAAA,EAAU,QAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Range } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/novel/utils/atoms.d.ts
|
|
4
|
+
type Listener = () => void;
|
|
5
|
+
declare const queryStore: {
|
|
6
|
+
getSnapshot: () => string;
|
|
7
|
+
setValue: (next: string) => void;
|
|
8
|
+
subscribe: (listener: Listener) => () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const rangeStore: {
|
|
11
|
+
getSnapshot: () => Range;
|
|
12
|
+
setValue: (next: Range) => void;
|
|
13
|
+
subscribe: (listener: Listener) => () => void;
|
|
14
|
+
};
|
|
15
|
+
/** Subscribe to the current slash-command query string. */
|
|
16
|
+
declare const useQuery: () => string;
|
|
17
|
+
/** Subscribe to the current slash-command range. */
|
|
18
|
+
declare const useRange: () => Range | null;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { queryStore, rangeStore, useQuery, useRange };
|
|
21
|
+
//# sourceMappingURL=atoms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atoms.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/utils/atoms.ts"],"mappings":";;;KAGK,QAAA;AAAA,cA8BQ,UAAA;;;wBATa,QAAA;AAAA;AAAA,cAUb,UAAA;;;wBAVa,QAAA;AAAA;;cAab,QAAA;;cAQA,QAAA,QAAe,KAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EditorInstance } from "../components/index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/novel/utils/index.d.ts
|
|
4
|
+
declare const isValidUrl: (url: string) => boolean;
|
|
5
|
+
declare const getUrlFromString: (str: string) => string;
|
|
6
|
+
declare const getPrevText: (editor: EditorInstance, position: number) => string;
|
|
7
|
+
declare const getAllContent: (editor: EditorInstance) => string;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { getAllContent, getPrevText, getUrlFromString, isValidUrl };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../src/components/MarkdownEditor/novel/utils/index.ts"],"mappings":";;;cAGa,UAAA,GAAc,GAAA;AAAA,cASd,gBAAA,GAAoB,GAAA;AAAA,cAYpB,WAAA,GAAe,MAAA,EAAQ,cAAA,EAAgB,QAAA;AAAA,cAavC,aAAA,GAAiB,MAAA,EAAQ,cAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/selectors/ColorSelector.d.ts
|
|
4
|
+
type ColorMenuItem = {
|
|
5
|
+
name: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Bubble-menu selector for text color and highlight color.
|
|
10
|
+
*
|
|
11
|
+
* Uses `onMouseDown` + `preventDefault` on every interactive element so the
|
|
12
|
+
* editor's selection is never cleared while the panel is open.
|
|
13
|
+
*/
|
|
14
|
+
declare const ColorSelector: FC;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ColorMenuItem, ColorSelector };
|
|
17
|
+
//# sourceMappingURL=ColorSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorSelector.d.ts","names":[],"sources":["../../../../../src/components/MarkdownEditor/selectors/ColorSelector.tsx"],"mappings":";;;KAOY,aAAA;EACV,IAAA;EACA,KAAA;AAAA;;;;AA6BF;;;cAAa,aAAA,EAAe,EAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/selectors/LinkSelector.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Bubble-menu selector for adding / editing / removing a link on the current
|
|
6
|
+
* selection.
|
|
7
|
+
*
|
|
8
|
+
* The trigger uses `onMouseDown` + `preventDefault` to keep the editor
|
|
9
|
+
* selection alive. The input inside the panel is allowed to take real focus
|
|
10
|
+
* (the user needs to type a URL) — the editor re-focuses on submit/remove.
|
|
11
|
+
*/
|
|
12
|
+
declare const LinkSelector: FC;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { LinkSelector };
|
|
15
|
+
//# sourceMappingURL=LinkSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkSelector.d.ts","names":[],"sources":["../../../../../src/components/MarkdownEditor/selectors/LinkSelector.tsx"],"mappings":";;;;;AAiBA;;;;;;cAAa,YAAA,EAAc,EAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EditorInstance } from "../novel/components/index.js";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
import { LucideIcon } from "lucide-react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/MarkdownEditor/selectors/NodeSelector.d.ts
|
|
6
|
+
type SelectorItem = {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: LucideIcon;
|
|
9
|
+
command: (editor: NonNullable<EditorInstance>) => void;
|
|
10
|
+
isActive: (editor: NonNullable<EditorInstance>) => boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Bubble-menu selector that converts the current block between paragraph,
|
|
14
|
+
* headings, lists, quote and code.
|
|
15
|
+
*
|
|
16
|
+
* Uses `onMouseDown` + `preventDefault` on every interactive element so the
|
|
17
|
+
* editor's selection is never cleared while the panel is open.
|
|
18
|
+
*/
|
|
19
|
+
declare const NodeSelector: FC;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { NodeSelector, SelectorItem };
|
|
22
|
+
//# sourceMappingURL=NodeSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeSelector.d.ts","names":[],"sources":["../../../../../src/components/MarkdownEditor/selectors/NodeSelector.tsx"],"mappings":";;;;;KAoBY,YAAA;EACV,IAAA;EACA,IAAA,EAAM,UAAA;EACN,OAAA,GAAU,MAAA,EAAQ,WAAA,CAAY,cAAA;EAC9B,QAAA,GAAW,MAAA,EAAQ,WAAA,CAAY,cAAA;AAAA;;;;;;;;cA8EpB,YAAA,EAAc,EAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _$react from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/MarkdownEditor/selectors/TextButtons.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Inline mark toggles (bold / italic / underline / strike / code) shown in the
|
|
6
|
+
* bubble menu.
|
|
7
|
+
*/
|
|
8
|
+
declare const TextButtons: () => _$react.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { TextButtons };
|
|
11
|
+
//# sourceMappingURL=TextButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextButtons.d.ts","names":[],"sources":["../../../../../src/components/MarkdownEditor/selectors/TextButtons.tsx"],"mappings":";;;;;;AAmBA;cAAa,WAAA,QAAW,OAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SuggestionItem } from "./novel/extensions/slash-command.js";
|
|
2
|
+
import { UploadFn } from "./novel/plugins/upload-images.js";
|
|
3
|
+
import * as _$_tiptap_core0 from "@tiptap/core";
|
|
4
|
+
import * as _$_tiptap_suggestion0 from "@tiptap/suggestion";
|
|
5
|
+
|
|
6
|
+
//#region src/components/MarkdownEditor/slashCommand.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Builds the list of slash-command suggestions. The image command needs the
|
|
9
|
+
* runtime `uploadFn`, hence the factory.
|
|
10
|
+
*
|
|
11
|
+
* @param uploadFn - Novel upload handler used by the "Image" command.
|
|
12
|
+
* @param content - The internationalized content object from useIntlayer.
|
|
13
|
+
*/
|
|
14
|
+
declare const getSuggestionItems: (uploadFn: UploadFn, content: any) => SuggestionItem[];
|
|
15
|
+
/**
|
|
16
|
+
* Builds the slash-command extension wired to the given upload handler.
|
|
17
|
+
*
|
|
18
|
+
* @param uploadFn - Novel upload handler used by the "Image" command.
|
|
19
|
+
* @param content - The internationalized content object from useIntlayer.
|
|
20
|
+
*/
|
|
21
|
+
declare const createSlashCommand: (uploadFn: UploadFn, content: any) => {
|
|
22
|
+
slashCommand: _$_tiptap_core0.Extension<{
|
|
23
|
+
suggestion: _$_tiptap_suggestion0.SuggestionOptions;
|
|
24
|
+
}, any>;
|
|
25
|
+
suggestionItems: SuggestionItem[];
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { createSlashCommand, getSuggestionItems };
|
|
29
|
+
//# sourceMappingURL=slashCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slashCommand.d.ts","names":[],"sources":["../../../../src/components/MarkdownEditor/slashCommand.tsx"],"mappings":";;;;;;;;;;;;AA4BA;cAAa,kBAAA,GACX,QAAA,EAAU,QAAA,EACV,OAAA,UACC,cAAA;;;;;;;cA8JU,kBAAA,GAAsB,QAAA,EAAU,QAAA,EAAU,OAAA;;gBAAF,qBAAA,CAAA,iBAAA;EAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, SVGProps } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Pattern/GridDistortionPattern.d.ts
|
|
4
|
+
type GridDistortionPatternProps = {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
radius?: number;
|
|
8
|
+
strength?: number;
|
|
9
|
+
lineColor?: string;
|
|
10
|
+
highlightColor?: string;
|
|
11
|
+
} & SVGProps<SVGSVGElement>;
|
|
12
|
+
declare const GridDistortionPattern: FC<GridDistortionPatternProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { GridDistortionPattern };
|
|
15
|
+
//# sourceMappingURL=GridDistortionPattern.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridDistortionPattern.d.ts","names":[],"sources":["../../../../src/components/Pattern/GridDistortionPattern.tsx"],"mappings":";;;KA+MK,0BAAA;EACH,KAAA;EACA,MAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,cAAA;AAAA,IACE,QAAA,CAAS,aAAA;AAAA,cAEA,qBAAA,EAAuB,EAAA,CAAG,0BAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DotPattern } from "./DotPattern.js";
|
|
2
|
+
import { GridDistortionPattern } from "./GridDistortionPattern.js";
|
|
2
3
|
import { GridPattern } from "./GridPattern.js";
|
|
3
4
|
import { Spotlight } from "./SpotLight.js";
|
|
4
|
-
export { DotPattern, GridPattern, Spotlight };
|
|
5
|
+
export { DotPattern, GridDistortionPattern, GridPattern, Spotlight };
|
|
@@ -29,7 +29,7 @@ declare const switchSelectorVariant: (props?: {
|
|
|
29
29
|
disabled?: boolean;
|
|
30
30
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
31
31
|
declare const choiceVariant: (props?: {
|
|
32
|
-
size?: "
|
|
32
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
33
33
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
34
34
|
declare const indicatorVariant: (props?: {
|
|
35
35
|
color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark";
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/SwitchSelector/VerticalSwitchSelector.d.ts
|
|
7
7
|
declare const verticalSwitchSelectorVariant: (props?: {
|
|
8
|
-
color?: "
|
|
8
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark";
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
declare const verticalChoiceVariant: (props?: {
|
|
@@ -147,8 +147,8 @@ type TagBorder = 'none' | 'with';
|
|
|
147
147
|
type TagBackground = 'none' | 'with';
|
|
148
148
|
declare const containerVariants: (props?: {
|
|
149
149
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | "xxl" | "xxxl";
|
|
150
|
-
color?: "error" | "text" | "success" | "primary" | "neutral" | "warning" | "
|
|
151
|
-
size?: "
|
|
150
|
+
color?: "error" | "text" | "success" | "primary" | "neutral" | "warning" | "black" | "white";
|
|
151
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
152
152
|
border?: "with" | "none";
|
|
153
153
|
background?: "with" | "none";
|
|
154
154
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Tag/index.tsx"],"mappings":";;;;;;;;AACmE;;;;;;;;;;;;;;;;;AA+DnE;;;;;AAmCA;;;;;AA0CA;KA3GK,QAAA,GAAW,iBAAA,CAAkB,YAAA,QAAoB,iBAAA,KACpD,cAAA,CAAe,cAAA;;;;AA2HjB;;;;;AAiBA;;;;;AAA4C;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Tag/index.tsx"],"mappings":";;;;;;;;AACmE;;;;;;;;;;;;;;;;;AA+DnE;;;;;AAmCA;;;;;AA0CA;KA3GK,QAAA,GAAW,iBAAA,CAAkB,YAAA,QAAoB,iBAAA,KACpD,cAAA,CAAe,cAAA;;;;AA2HjB;;;;;AAiBA;;;;;AAA4C;;;;;;;;;;;;;AAwI5C;KAvPY,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;KA0CA,OAAA;;;;;;;;;;;;;;;;KAiBA,SAAA;;;;;;;;;;;;;;;;KAiBA,aAAA;AAAA,cAEN,iBAAA,GAAiB,KAAA;;;;;;IA6CrB,iCAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyFW,GAAA,EAAK,EAAA,CAAG,QAAA"}
|
|
@@ -25,7 +25,7 @@ declare const ToastViewport: FC<ComponentProps<typeof ToastPrimitives.Viewport>>
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
declare const toastVariants: (props?: {
|
|
28
|
-
variant?: "
|
|
28
|
+
variant?: "error" | "default" | "success";
|
|
29
29
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
30
30
|
/**
|
|
31
31
|
* Toast Component
|