diff --git a/bin/update.sh b/bin/update.sh index a54e09a0..a78ed3f3 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -7,5 +7,5 @@ git pull pnpm install pnpm run build -pm2 restart @think/server -pm2 restart @think/client +pm2 reload @think/server +pm2 reload @think/client diff --git a/package.json b/package.json index 1e91617a..cffd9188 100644 --- a/package.json +++ b/package.json @@ -34,17 +34,6 @@ "node": ">=16.5.0" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^8.11.0", - "eslint-config-next": "12.0.10", - "eslint-config-prettier": "^8.3.0", - "eslint-import-resolver-typescript": "^2.5.0", - "eslint-plugin-import": "^2.25.4", - "eslint-plugin-jest": "^26.1.1", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-react": "^7.29.3", - "eslint-plugin-react-hooks": "^4.3.0", "prettier": "^2.3.2", "stylelint": "^14.6.1", "stylelint-config-css-modules": "^4.1.0", diff --git a/packages/client/src/components/banner/index.tsx b/packages/client/src/components/banner/index.tsx index bf06b947..b1b53a43 100644 --- a/packages/client/src/components/banner/index.tsx +++ b/packages/client/src/components/banner/index.tsx @@ -7,7 +7,7 @@ interface IProps extends BannerProps { duration?: number; } -export const Banner: React.FC = ({ type, description, duration }) => { +export const Banner: React.FC = ({ type, description, duration = 0 }) => { const timer = useRef>(); const [visible, toggleVisible] = useToggle(true); diff --git a/packages/client/src/components/document/comments/index.tsx b/packages/client/src/components/document/comments/index.tsx index 2514ac53..6a7c2833 100644 --- a/packages/client/src/components/document/comments/index.tsx +++ b/packages/client/src/components/document/comments/index.tsx @@ -2,7 +2,7 @@ import React, { useRef, useState } from 'react'; import { useEditor, EditorContent } from '@tiptap/react'; import { Avatar, Button, Space, Typography, Banner, Pagination } from '@douyinfe/semi-ui'; import { useToggle } from 'hooks/use-toggle'; -import { DEFAULT_EXTENSION, Document, History, CommentMenuBar } from 'components/tiptap'; +import { DEFAULT_EXTENSION, Document, History, CommentMenuBar } from 'tiptap'; import { DataRender } from 'components/data-render'; import { useUser } from 'data/user'; import { useComments } from 'data/comment'; diff --git a/packages/client/src/components/document/editor/editor.tsx b/packages/client/src/components/document/editor/editor.tsx index ce1dbbba..2b7c8035 100644 --- a/packages/client/src/components/document/editor/editor.tsx +++ b/packages/client/src/components/document/editor/editor.tsx @@ -4,6 +4,7 @@ import { useEditor, EditorContent } from '@tiptap/react'; import { BackTop } from '@douyinfe/semi-ui'; import { ILoginUser, IAuthority } from '@think/domains'; import { useToggle } from 'hooks/use-toggle'; +import { useNetwork } from 'hooks/use-network'; import { MenuBar, DEFAULT_EXTENSION, @@ -15,7 +16,7 @@ import { ProviderStatus, getIndexdbProvider, destoryIndexdbProvider, -} from 'components/tiptap'; +} from 'tiptap'; import { DataRender } from 'components/data-render'; import { joinUser } from 'components/document/collaboration'; import { Banner } from 'components/banner'; @@ -34,6 +35,7 @@ interface IProps { export const Editor: React.FC = ({ user, documentId, authority, className, style }) => { if (!user) return null; const [status, setStatus] = useState('connecting'); + const { online } = useNetwork(); const provider = useMemo(() => { return getProvider({ targetId: documentId, @@ -94,11 +96,10 @@ export const Editor: React.FC = ({ user, documentId, authority, classNam normalContent={() => { return (
- {status === 'disconnected' && ( + {(!online || status === 'disconnected') && ( )}
diff --git a/packages/client/src/components/document/reader/editor.tsx b/packages/client/src/components/document/reader/editor.tsx index 6fd6b836..ef1bac72 100644 --- a/packages/client/src/components/document/reader/editor.tsx +++ b/packages/client/src/components/document/reader/editor.tsx @@ -10,7 +10,7 @@ import { getCollaborationCursorExtension, getProvider, destoryProvider, -} from 'components/tiptap'; +} from 'tiptap'; import { DataRender } from 'components/data-render'; import { ImageViewer } from 'components/image-viewer'; import { joinUser } from 'components/document/collaboration'; diff --git a/packages/client/src/components/document/reader/index.tsx b/packages/client/src/components/document/reader/index.tsx index bb1df2a7..6ad626c1 100644 --- a/packages/client/src/components/document/reader/index.tsx +++ b/packages/client/src/components/document/reader/index.tsx @@ -14,7 +14,7 @@ import { useDocumentStyle } from 'hooks/use-document-style'; import { useWindowSize } from 'hooks/use-window-size'; import { useUser } from 'data/user'; import { useDocumentDetail } from 'data/document'; -import { DocumentSkeleton } from 'components/tiptap'; +import { DocumentSkeleton } from 'tiptap'; import { Editor } from './editor'; import { CreateUser } from './user'; import styles from './index.module.scss'; diff --git a/packages/client/src/components/document/reader/public/content.tsx b/packages/client/src/components/document/reader/public/content.tsx index e2a69267..f4f34d2c 100644 --- a/packages/client/src/components/document/reader/public/content.tsx +++ b/packages/client/src/components/document/reader/public/content.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { useEditor, EditorContent } from '@tiptap/react'; import { IDocument } from '@think/domains'; -import { DEFAULT_EXTENSION, DocumentWithTitle } from 'components/tiptap'; +import { DEFAULT_EXTENSION, DocumentWithTitle } from 'tiptap'; import { safeJSONParse } from 'helpers/json'; import { CreateUser } from '../user'; diff --git a/packages/client/src/components/document/reader/public/index.tsx b/packages/client/src/components/document/reader/public/index.tsx index a76a1214..52995bc0 100644 --- a/packages/client/src/components/document/reader/public/index.tsx +++ b/packages/client/src/components/document/reader/public/index.tsx @@ -12,7 +12,7 @@ import { ImageViewer } from 'components/image-viewer'; import { useDocumentStyle } from 'hooks/use-document-style'; import { useWindowSize } from 'hooks/use-window-size'; import { usePublicDocument } from 'data/document'; -import { DocumentSkeleton } from 'components/tiptap'; +import { DocumentSkeleton } from 'tiptap'; import { DocumentContent } from './content'; import styles from './index.module.scss'; diff --git a/packages/client/src/components/icons/IconSub.tsx b/packages/client/src/components/icons/IconSub.tsx index a20dacbb..6637831c 100644 --- a/packages/client/src/components/icons/IconSub.tsx +++ b/packages/client/src/components/icons/IconSub.tsx @@ -7,7 +7,7 @@ export const IconSub: React.FC<{ style?: React.CSSProperties }> = ({ style = {} svg={ - + = ({ style = {} svg={ - + { - const cursor = document.createElement('span'); - cursor.classList.add('ProseMirror-yjs-cursor'); - cursor.setAttribute('style', `border-color: ${user.color}`); - const userDiv = document.createElement('div'); - userDiv.setAttribute('style', `background-color: ${user.color}`); - userDiv.insertBefore(document.createTextNode(user.name), null); - cursor.insertBefore(userDiv, null); - return cursor; -}; - -const rxValidColor = /^#[0-9a-fA-F]{6}$/; - -/** - * @param {any} state - * @param {Awareness} awareness - * @return {any} DecorationSet - */ -export const createDecorations = (state, awareness, createCursor) => { - const ystate = ySyncPluginKey.getState(state) || state['y-sync$']; - const y = ystate.doc; - const decorations = []; - if (ystate.snapshot != null || ystate.prevSnapshot != null || ystate.binding === null) { - // do not render cursors while snapshot is active - return DecorationSet.create(state.doc, []); - } - awareness.getStates().forEach((aw, clientId) => { - if (clientId === y.clientID) { - return; - } - if (aw.cursor != null) { - const user = aw.user || {}; - if (user.color == null) { - user.color = '#ffa500'; - } else if (!rxValidColor.test(user.color)) { - // We only support 6-digit RGB colors in y-prosemirror - console.warn('A user uses an unsupported color format', user); - } - if (user.name == null) { - user.name = `User: ${clientId}`; - } - let anchor = relativePositionToAbsolutePosition( - y, - ystate.type, - Y.createRelativePositionFromJSON(aw.cursor.anchor), - ystate.binding.mapping - ); - let head = relativePositionToAbsolutePosition( - y, - ystate.type, - Y.createRelativePositionFromJSON(aw.cursor.head), - ystate.binding.mapping - ); - if (anchor !== null && head !== null) { - const maxsize = math.max(state.doc.content.size - 1, 0); - anchor = math.min(anchor, maxsize); - head = math.min(head, maxsize); - decorations.push(Decoration.widget(head, () => createCursor(user), { key: clientId + '', side: 10 })); - const from = math.min(anchor, head); - const to = math.max(anchor, head); - decorations.push( - Decoration.inline( - from, - to, - { style: `background-color: ${user.color}70` }, - { inclusiveEnd: true, inclusiveStart: false } - ) - ); - } - } - }); - return DecorationSet.create(state.doc, decorations); -}; - -/** - * A prosemirror plugin that listens to awareness information on Yjs. - * This requires that a `prosemirrorPlugin` is also bound to the prosemirror. - * - * @public - * @param {Awareness} awareness - * @param {object} [opts] - * @param {function(any):HTMLElement} [opts.cursorBuilder] - * @param {function(any):any} [opts.getSelection] - * @param {string} [opts.cursorStateField] By default all editor bindings use the awareness 'cursor' field to propagate cursor information. - * @return {any} - */ -export const yCursorPlugin = ( - awareness, - { cursorBuilder = defaultCursorBuilder, getSelection = (state) => state.selection } = {}, - cursorStateField = 'cursor' -) => - new Plugin({ - key: yCursorPluginKey, - state: { - init(_, state) { - return createDecorations(state, awareness, cursorBuilder); - }, - apply(tr, prevState, oldState, newState) { - const ystate = ySyncPluginKey.getState(newState); - const yCursorState = tr.getMeta(yCursorPluginKey); - if ((ystate && ystate.isChangeOrigin) || (yCursorState && yCursorState.awarenessUpdated)) { - return createDecorations(newState, awareness, cursorBuilder); - } - return prevState.map(tr.mapping, tr.doc); - }, - }, - props: { - decorations: (state) => { - return yCursorPluginKey.getState(state); - }, - }, - view: (view) => { - const awarenessListener = () => { - // @ts-ignore - if (view.docView) { - setMeta(view, yCursorPluginKey, { awarenessUpdated: true }); - } - }; - const updateCursorInfo = () => { - const ystate = ySyncPluginKey.getState(view.state) || view.state['y-sync$']; - // @note We make implicit checks when checking for the cursor property - const current = awareness.getLocalState() || {}; - if (view.hasFocus() && ystate.binding !== null) { - const selection = getSelection(view.state); - /** - * @type {Y.RelativePosition} - */ - const anchor = absolutePositionToRelativePosition(selection.anchor, ystate.type, ystate.binding.mapping); - /** - * @type {Y.RelativePosition} - */ - const head = absolutePositionToRelativePosition(selection.head, ystate.type, ystate.binding.mapping); - if ( - current.cursor == null || - !Y.compareRelativePositions(Y.createRelativePositionFromJSON(current.cursor.anchor), anchor) || - !Y.compareRelativePositions(Y.createRelativePositionFromJSON(current.cursor.head), head) - ) { - awareness.setLocalStateField(cursorStateField, { - anchor, - head, - }); - } - } else if ( - current.cursor != null && - relativePositionToAbsolutePosition( - ystate.doc, - ystate.type, - Y.createRelativePositionFromJSON(current.cursor.anchor), - ystate.binding.mapping - ) !== null - ) { - // delete cursor information if current cursor information is owned by this editor binding - awareness.setLocalStateField(cursorStateField, null); - } - }; - awareness.on('change', awarenessListener); - view.dom.addEventListener('focusin', updateCursorInfo); - view.dom.addEventListener('focusout', updateCursorInfo); - return { - update: updateCursorInfo, - destroy: () => { - view.dom.removeEventListener('focusin', updateCursorInfo); - view.dom.removeEventListener('focusout', updateCursorInfo); - awareness.off('change', awarenessListener); - awareness.setLocalStateField(cursorStateField, null); - }, - }; - }, - }); diff --git a/packages/client/src/hooks/use-network.tsx b/packages/client/src/hooks/use-network.tsx new file mode 100644 index 00000000..c68e51a2 --- /dev/null +++ b/packages/client/src/hooks/use-network.tsx @@ -0,0 +1,35 @@ +import React, { useEffect, useState } from 'react'; + +interface INetworkStatus { + online: boolean; +} + +export const useNetwork = () => { + const [networkState, setNetworkState] = useState({ online: navigator.onLine }); + + useEffect(() => { + const handleOnline = () => { + setNetworkState((prevState) => ({ + ...prevState, + online: true, + })); + }; + + const handleOffline = () => { + setNetworkState((prevState) => ({ + ...prevState, + online: false, + })); + }; + + window.addEventListener('online', handleOnline); + window.addEventListener('offline', handleOffline); + + return () => { + window.removeEventListener('online', handleOnline); + window.removeEventListener('offline', handleOffline); + }; + }, []); + + return networkState; +}; diff --git a/packages/client/src/pages/_app.tsx b/packages/client/src/pages/_app.tsx index bfc053a7..6e176ae2 100644 --- a/packages/client/src/pages/_app.tsx +++ b/packages/client/src/pages/_app.tsx @@ -2,6 +2,7 @@ import type { AppProps } from 'next/app'; import { useSafari100vh } from 'hooks/use-safari-100vh'; import 'viewerjs/dist/viewer.css'; import 'styles/globals.scss'; +import 'tiptap/styles/index.scss'; function MyApp({ Component, pageProps }: AppProps) { useSafari100vh(); diff --git a/packages/client/src/styles/globals.scss b/packages/client/src/styles/globals.scss index 3ebb8295..69701b08 100644 --- a/packages/client/src/styles/globals.scss +++ b/packages/client/src/styles/globals.scss @@ -1,7 +1,6 @@ @import '~@douyinfe/semi-ui/dist/css/semi.min.css'; @import './var.scss'; @import './reset.scss'; -@import './editor/index.scss'; .container { margin-right: auto; @@ -29,7 +28,7 @@ .Resizer { z-index: 1; background: var(--semi-color-border); - opacity: .2; + opacity: 0.2; box-sizing: border-box; background-clip: padding; } diff --git a/packages/client/src/components/tiptap/basekit.tsx b/packages/client/src/tiptap/basekit.tsx similarity index 63% rename from packages/client/src/components/tiptap/basekit.tsx rename to packages/client/src/tiptap/basekit.tsx index f038dce9..4e029587 100644 --- a/packages/client/src/components/tiptap/basekit.tsx +++ b/packages/client/src/tiptap/basekit.tsx @@ -1,25 +1,25 @@ import { Attachment } from './extensions/attachment'; -import { BackgroundColor } from './extensions/backgroundColor'; +import { BackgroundColor } from './extensions/background-color'; import { Banner } from './extensions/banner'; import { Blockquote } from './extensions/blockquote'; import { Bold } from './extensions/bold'; -import { BulletList } from './extensions/bulletList'; +import { BulletList } from './extensions/bullet-list'; import { Code } from './extensions/code'; -import { CodeBlock } from './extensions/codeBlock'; +import { CodeBlock } from './extensions/code-block'; import { Color } from './extensions/color'; -import { ColorHighlighter } from './extensions/colorHighlighter'; -import { DocumentChildren } from './extensions/documentChildren'; -import { DocumentReference } from './extensions/documentReference'; -import { Dropcursor } from './extensions/dropCursor'; +import { ColorHighlighter } from './extensions/color-highlighter'; +import { DocumentChildren } from './extensions/document-children'; +import { DocumentReference } from './extensions/document-reference'; +import { Dropcursor } from './extensions/dropcursor'; import { Emoji } from './extensions/emoji'; -import { EvokeMenu } from './extensions/evokeMenu'; +import { EvokeMenu } from './extensions/evoke-menu'; import { Focus } from './extensions/focus'; -import { FontSize } from './extensions/fontSize'; -import { Gapcursor } from './extensions/gapCursor'; -import { HardBreak } from './extensions/hardBreak'; +import { FontSize } from './extensions/font-size'; +import { Gapcursor } from './extensions/gapcursor'; +import { HardBreak } from './extensions/hard-break'; import { Heading } from './extensions/heading'; -import { HorizontalRule } from './extensions/horizontalRule'; -import { HTMLMarks } from './extensions/htmlMarks'; +import { HorizontalRule } from './extensions/horizontal-rule'; +import { HTMLMarks } from './extensions/html-marks'; import { Iframe } from './extensions/iframe'; import { Image } from './extensions/image'; import { Indent } from './extensions/indent'; @@ -29,7 +29,7 @@ import { Link } from './extensions/link'; import { ListItem } from './extensions/listItem'; import { Loading } from './extensions/loading'; import { Mind } from './extensions/mind'; -import { OrderedList } from './extensions/orderedList'; +import { OrderedList } from './extensions/ordered-list'; import { Paragraph } from './extensions/paragraph'; import { Placeholder } from './extensions/placeholder'; import { SearchNReplace } from './extensions/search'; @@ -39,16 +39,16 @@ import { Strike } from './extensions/strike'; import { Subscript } from './extensions/subscript'; import { Superscript } from './extensions/superscript'; import { Table } from './extensions/table'; -import { TableCell } from './extensions/tableCell'; -import { TableHeader } from './extensions/tableHeader'; -import { TableRow } from './extensions/tableRow'; +import { TableCell } from './extensions/table-cell'; +import { TableHeader } from './extensions/table-header'; +import { TableRow } from './extensions/table-row'; import { Text } from './extensions/text'; -import { TextAlign } from './extensions/textAlign'; -import { TextStyle } from './extensions/textStyle'; -import { TaskItem } from './extensions/taskItem'; -import { TaskList } from './extensions/taskList'; +import { TextAlign } from './extensions/text-align'; +import { TextStyle } from './extensions/text-style'; +import { TaskItem } from './extensions/task-item'; +import { TaskList } from './extensions/task-list'; import { Title } from './extensions/title'; -import { TrailingNode } from './extensions/trailingNode'; +import { TrailingNode } from './extensions/trailing-node'; import { Underline } from './extensions/underline'; import { Paste } from './extensions/paste'; diff --git a/packages/client/src/components/tiptap/collaborationCursor/index.ts b/packages/client/src/tiptap/collaboration-cursor/index.ts similarity index 100% rename from packages/client/src/components/tiptap/collaborationCursor/index.ts rename to packages/client/src/tiptap/collaboration-cursor/index.ts diff --git a/packages/client/src/components/tiptap/collaboration/collaboration.ts b/packages/client/src/tiptap/collaboration/collaboration.ts similarity index 100% rename from packages/client/src/components/tiptap/collaboration/collaboration.ts rename to packages/client/src/tiptap/collaboration/collaboration.ts diff --git a/packages/client/src/components/tiptap/collaboration/helpers/isChangeOrigin.ts b/packages/client/src/tiptap/collaboration/helpers/is-change-origin.ts similarity index 100% rename from packages/client/src/components/tiptap/collaboration/helpers/isChangeOrigin.ts rename to packages/client/src/tiptap/collaboration/helpers/is-change-origin.ts diff --git a/packages/client/src/tiptap/collaboration/index.ts b/packages/client/src/tiptap/collaboration/index.ts new file mode 100644 index 00000000..331b1e44 --- /dev/null +++ b/packages/client/src/tiptap/collaboration/index.ts @@ -0,0 +1,2 @@ +export * from './collaboration'; +export * from './helpers/is-change-origin'; diff --git a/packages/client/src/components/tiptap/constants.ts b/packages/client/src/tiptap/constants.ts similarity index 100% rename from packages/client/src/components/tiptap/constants.ts rename to packages/client/src/tiptap/constants.ts diff --git a/packages/client/src/components/tiptap/wrappers/divider.tsx b/packages/client/src/tiptap/divider.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/divider.tsx rename to packages/client/src/tiptap/divider.tsx diff --git a/packages/client/src/components/tiptap/extensions/attachment.ts b/packages/client/src/tiptap/extensions/attachment.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/attachment.ts rename to packages/client/src/tiptap/extensions/attachment.ts diff --git a/packages/client/src/components/tiptap/extensions/backgroundColor.ts b/packages/client/src/tiptap/extensions/background-color.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/backgroundColor.ts rename to packages/client/src/tiptap/extensions/background-color.ts diff --git a/packages/client/src/components/tiptap/extensions/banner.ts b/packages/client/src/tiptap/extensions/banner.ts similarity index 95% rename from packages/client/src/components/tiptap/extensions/banner.ts rename to packages/client/src/tiptap/extensions/banner.ts index d99141ce..b8ad7d6c 100644 --- a/packages/client/src/components/tiptap/extensions/banner.ts +++ b/packages/client/src/tiptap/extensions/banner.ts @@ -1,7 +1,7 @@ import { Node, Command, mergeAttributes, wrappingInputRule } from '@tiptap/core'; import { ReactNodeViewRenderer } from '@tiptap/react'; import { BannerWrapper } from '../wrappers/banner'; -import { typesAvailable } from '../services/markdown/markdownToHTML/markdownBanner'; +import { typesAvailable } from '../services/markdown/markdown-to-html/markdownBanner'; import { getDatasetAttribute } from '../services/dataset'; declare module '@tiptap/core' { diff --git a/packages/client/src/components/tiptap/extensions/blockquote.ts b/packages/client/src/tiptap/extensions/blockquote.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/blockquote.ts rename to packages/client/src/tiptap/extensions/blockquote.ts diff --git a/packages/client/src/components/tiptap/extensions/bold.ts b/packages/client/src/tiptap/extensions/bold.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/bold.ts rename to packages/client/src/tiptap/extensions/bold.ts diff --git a/packages/client/src/components/tiptap/extensions/bulletList.ts b/packages/client/src/tiptap/extensions/bullet-list.ts similarity index 88% rename from packages/client/src/components/tiptap/extensions/bulletList.ts rename to packages/client/src/tiptap/extensions/bullet-list.ts index 163a14fb..6f25b8a3 100644 --- a/packages/client/src/components/tiptap/extensions/bulletList.ts +++ b/packages/client/src/tiptap/extensions/bullet-list.ts @@ -1,6 +1,5 @@ import { BulletList as BuiltInBulletList } from '@tiptap/extension-bullet-list'; import { getMarkdownSource } from '../services/markdown'; -import { listInputRule } from '../services/listInputRule'; export const BulletList = BuiltInBulletList.extend({ addAttributes() { diff --git a/packages/client/src/components/tiptap/extensions/codeBlock.ts b/packages/client/src/tiptap/extensions/code-block.ts similarity index 98% rename from packages/client/src/components/tiptap/extensions/codeBlock.ts rename to packages/client/src/tiptap/extensions/code-block.ts index 55004ec6..6f0e23bb 100644 --- a/packages/client/src/components/tiptap/extensions/codeBlock.ts +++ b/packages/client/src/tiptap/extensions/code-block.ts @@ -2,8 +2,8 @@ import { lowlight } from 'lowlight/lib/all'; import { Node, textblockTypeInputRule, mergeAttributes } from '@tiptap/core'; import { Plugin, PluginKey, TextSelection } from 'prosemirror-state'; import { ReactNodeViewRenderer } from '@tiptap/react'; -import { LowlightPlugin } from '../services/lowlightPlugin'; -import { CodeBlockWrapper } from '../wrappers/codeBlock'; +import { LowlightPlugin } from '../services/lowlight-plugin'; +import { CodeBlockWrapper } from '../wrappers/code-block'; export interface CodeBlockOptions { /** diff --git a/packages/client/src/components/tiptap/extensions/code.ts b/packages/client/src/tiptap/extensions/code.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/code.ts rename to packages/client/src/tiptap/extensions/code.ts diff --git a/packages/client/src/components/tiptap/extensions/colorHighlighter.ts b/packages/client/src/tiptap/extensions/color-highlighter.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/colorHighlighter.ts rename to packages/client/src/tiptap/extensions/color-highlighter.ts diff --git a/packages/client/src/components/tiptap/extensions/color.ts b/packages/client/src/tiptap/extensions/color.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/color.ts rename to packages/client/src/tiptap/extensions/color.ts diff --git a/packages/client/src/components/tiptap/extensions/documentChildren.ts b/packages/client/src/tiptap/extensions/document-children.ts similarity index 95% rename from packages/client/src/components/tiptap/extensions/documentChildren.ts rename to packages/client/src/tiptap/extensions/document-children.ts index cfe79646..f089bc18 100644 --- a/packages/client/src/components/tiptap/extensions/documentChildren.ts +++ b/packages/client/src/tiptap/extensions/document-children.ts @@ -1,6 +1,6 @@ import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'; import { ReactNodeViewRenderer } from '@tiptap/react'; -import { DocumentChildrenWrapper } from '../wrappers/documentChildren'; +import { DocumentChildrenWrapper } from '../wrappers/document-children'; import { getDatasetAttribute } from '../services/dataset'; declare module '@tiptap/core' { diff --git a/packages/client/src/components/tiptap/extensions/documentReference.ts b/packages/client/src/tiptap/extensions/document-reference.ts similarity index 95% rename from packages/client/src/components/tiptap/extensions/documentReference.ts rename to packages/client/src/tiptap/extensions/document-reference.ts index c17be2dc..cf719f33 100644 --- a/packages/client/src/components/tiptap/extensions/documentReference.ts +++ b/packages/client/src/tiptap/extensions/document-reference.ts @@ -1,6 +1,6 @@ import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'; import { ReactNodeViewRenderer } from '@tiptap/react'; -import { DocumentReferenceWrapper } from '../wrappers/documentReference'; +import { DocumentReferenceWrapper } from '../wrappers/document-reference'; import { getDatasetAttribute } from '../services/dataset'; declare module '@tiptap/core' { diff --git a/packages/client/src/components/tiptap/extensions/document.ts b/packages/client/src/tiptap/extensions/document.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/document.ts rename to packages/client/src/tiptap/extensions/document.ts diff --git a/packages/client/src/components/tiptap/extensions/dropCursor.ts b/packages/client/src/tiptap/extensions/dropcursor.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/dropCursor.ts rename to packages/client/src/tiptap/extensions/dropcursor.ts diff --git a/packages/client/src/components/tiptap/extensions/emoji.ts b/packages/client/src/tiptap/extensions/emoji.ts similarity index 96% rename from packages/client/src/components/tiptap/extensions/emoji.ts rename to packages/client/src/tiptap/extensions/emoji.ts index 260e168e..0eccd29e 100644 --- a/packages/client/src/components/tiptap/extensions/emoji.ts +++ b/packages/client/src/tiptap/extensions/emoji.ts @@ -4,8 +4,8 @@ import { Plugin, PluginKey } from 'prosemirror-state'; import { Decoration, DecorationSet } from 'prosemirror-view'; import Suggestion from '@tiptap/suggestion'; import tippy from 'tippy.js'; -import { EmojiList } from '../wrappers/emojiList'; -import { emojiSearch, emojisToName } from '../wrappers/emojiList/emojis'; +import { EmojiList } from '../wrappers/emoji-list'; +import { emojiSearch, emojisToName } from '../wrappers/emoji-list/emojis'; declare module '@tiptap/core' { interface Commands { diff --git a/packages/client/src/components/tiptap/extensions/evokeMenu.tsx b/packages/client/src/tiptap/extensions/evoke-menu.tsx similarity index 97% rename from packages/client/src/components/tiptap/extensions/evokeMenu.tsx rename to packages/client/src/tiptap/extensions/evoke-menu.tsx index 976b50f5..6e91386f 100644 --- a/packages/client/src/components/tiptap/extensions/evokeMenu.tsx +++ b/packages/client/src/tiptap/extensions/evoke-menu.tsx @@ -4,8 +4,8 @@ import { Plugin, PluginKey } from 'prosemirror-state'; import { Decoration, DecorationSet } from 'prosemirror-view'; import Suggestion from '@tiptap/suggestion'; import tippy from 'tippy.js'; -import { MenuList } from '../wrappers/menuList'; -import { EVOKE_MENU_ITEMS } from '../menus/evokeMenu'; +import { MenuList } from '../wrappers/menu-list'; +import { EVOKE_MENU_ITEMS } from '../menus/evoke-menu'; export const EvokeMenuPluginKey = new PluginKey('evokeMenu'); diff --git a/packages/client/src/components/tiptap/extensions/focus.ts b/packages/client/src/tiptap/extensions/focus.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/focus.ts rename to packages/client/src/tiptap/extensions/focus.ts diff --git a/packages/client/src/components/tiptap/extensions/fontSize.ts b/packages/client/src/tiptap/extensions/font-size.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/fontSize.ts rename to packages/client/src/tiptap/extensions/font-size.ts diff --git a/packages/client/src/components/tiptap/extensions/gapCursor.ts b/packages/client/src/tiptap/extensions/gapcursor.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/gapCursor.ts rename to packages/client/src/tiptap/extensions/gapcursor.ts diff --git a/packages/client/src/components/tiptap/extensions/hardBreak.ts b/packages/client/src/tiptap/extensions/hard-break.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/hardBreak.ts rename to packages/client/src/tiptap/extensions/hard-break.ts diff --git a/packages/client/src/components/tiptap/extensions/heading.ts b/packages/client/src/tiptap/extensions/heading.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/heading.ts rename to packages/client/src/tiptap/extensions/heading.ts diff --git a/packages/client/src/components/tiptap/extensions/horizontalRule.ts b/packages/client/src/tiptap/extensions/horizontal-rule.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/horizontalRule.ts rename to packages/client/src/tiptap/extensions/horizontal-rule.ts diff --git a/packages/client/src/components/tiptap/extensions/htmlMarks.ts b/packages/client/src/tiptap/extensions/html-marks.ts similarity index 98% rename from packages/client/src/components/tiptap/extensions/htmlMarks.ts rename to packages/client/src/tiptap/extensions/html-marks.ts index cd4f1605..22ad6528 100644 --- a/packages/client/src/components/tiptap/extensions/htmlMarks.ts +++ b/packages/client/src/tiptap/extensions/html-marks.ts @@ -1,6 +1,6 @@ import { Mark, mergeAttributes, markInputRule } from '@tiptap/core'; import { PARSE_HTML_PRIORITY_LOWEST } from '../constants'; -import { markInputRegex, extractMarkAttributesFromMatch } from '../services/markUtils'; +import { markInputRegex, extractMarkAttributesFromMatch } from '../services/mark-utils'; export const marks = [{ name: 'underline', tag: 'u' }]; diff --git a/packages/client/src/components/tiptap/extensions/iframe.ts b/packages/client/src/tiptap/extensions/iframe.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/iframe.ts rename to packages/client/src/tiptap/extensions/iframe.ts diff --git a/packages/client/src/components/tiptap/extensions/image.ts b/packages/client/src/tiptap/extensions/image.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/image.ts rename to packages/client/src/tiptap/extensions/image.ts diff --git a/packages/client/src/components/tiptap/extensions/indent.ts b/packages/client/src/tiptap/extensions/indent.ts similarity index 98% rename from packages/client/src/components/tiptap/extensions/indent.ts rename to packages/client/src/tiptap/extensions/indent.ts index 6cd9dac2..3bbbc666 100644 --- a/packages/client/src/components/tiptap/extensions/indent.ts +++ b/packages/client/src/tiptap/extensions/indent.ts @@ -1,7 +1,7 @@ import { Command, Extension } from '@tiptap/core'; import { sinkListItem, liftListItem } from 'prosemirror-schema-list'; import { TextSelection, AllSelection, Transaction } from 'prosemirror-state'; -import { isListActive } from '../services/isActive'; +import { isListActive } from '../services/is-active'; import { clamp } from '../services/clamp'; import { getNodeType } from '../services/type'; import { isListNode } from '../services/node'; diff --git a/packages/client/src/components/tiptap/extensions/italic.ts b/packages/client/src/tiptap/extensions/italic.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/italic.ts rename to packages/client/src/tiptap/extensions/italic.ts diff --git a/packages/client/src/components/tiptap/extensions/katex.ts b/packages/client/src/tiptap/extensions/katex.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/katex.ts rename to packages/client/src/tiptap/extensions/katex.ts diff --git a/packages/client/src/components/tiptap/extensions/link.ts b/packages/client/src/tiptap/extensions/link.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/link.ts rename to packages/client/src/tiptap/extensions/link.ts diff --git a/packages/client/src/components/tiptap/extensions/listItem.ts b/packages/client/src/tiptap/extensions/listItem.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/listItem.ts rename to packages/client/src/tiptap/extensions/listItem.ts diff --git a/packages/client/src/components/tiptap/extensions/loading.ts b/packages/client/src/tiptap/extensions/loading.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/loading.ts rename to packages/client/src/tiptap/extensions/loading.ts diff --git a/packages/client/src/components/tiptap/extensions/mind.ts b/packages/client/src/tiptap/extensions/mind.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/mind.ts rename to packages/client/src/tiptap/extensions/mind.ts diff --git a/packages/client/src/components/tiptap/extensions/orderedList.ts b/packages/client/src/tiptap/extensions/ordered-list.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/orderedList.ts rename to packages/client/src/tiptap/extensions/ordered-list.ts diff --git a/packages/client/src/components/tiptap/extensions/paragraph.ts b/packages/client/src/tiptap/extensions/paragraph.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/paragraph.ts rename to packages/client/src/tiptap/extensions/paragraph.ts diff --git a/packages/client/src/components/tiptap/extensions/paste.ts b/packages/client/src/tiptap/extensions/paste.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/paste.ts rename to packages/client/src/tiptap/extensions/paste.ts diff --git a/packages/client/src/components/tiptap/extensions/placeholder.ts b/packages/client/src/tiptap/extensions/placeholder.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/placeholder.ts rename to packages/client/src/tiptap/extensions/placeholder.ts diff --git a/packages/client/src/components/tiptap/extensions/search.ts b/packages/client/src/tiptap/extensions/search.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/search.ts rename to packages/client/src/tiptap/extensions/search.ts diff --git a/packages/client/src/components/tiptap/extensions/selection.ts b/packages/client/src/tiptap/extensions/selection.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/selection.ts rename to packages/client/src/tiptap/extensions/selection.ts diff --git a/packages/client/src/components/tiptap/extensions/status.ts b/packages/client/src/tiptap/extensions/status.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/status.ts rename to packages/client/src/tiptap/extensions/status.ts diff --git a/packages/client/src/components/tiptap/extensions/strike.ts b/packages/client/src/tiptap/extensions/strike.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/strike.ts rename to packages/client/src/tiptap/extensions/strike.ts diff --git a/packages/client/src/components/tiptap/extensions/subscript.ts b/packages/client/src/tiptap/extensions/subscript.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/subscript.ts rename to packages/client/src/tiptap/extensions/subscript.ts diff --git a/packages/client/src/components/tiptap/extensions/superscript.ts b/packages/client/src/tiptap/extensions/superscript.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/superscript.ts rename to packages/client/src/tiptap/extensions/superscript.ts diff --git a/packages/client/src/components/tiptap/extensions/tableCell.tsx b/packages/client/src/tiptap/extensions/table-cell.tsx similarity index 99% rename from packages/client/src/components/tiptap/extensions/tableCell.tsx rename to packages/client/src/tiptap/extensions/table-cell.tsx index d6816567..dde7ac72 100644 --- a/packages/client/src/components/tiptap/extensions/tableCell.tsx +++ b/packages/client/src/tiptap/extensions/table-cell.tsx @@ -14,7 +14,7 @@ import { selectRow, selectTable, } from '../services/table'; -import { FloatMenuView } from '../views/floatMenuView'; +import { FloatMenuView } from '../views/float-menu'; export const TableCell = BuiltInTableCell.extend({ addAttributes() { diff --git a/packages/client/src/components/tiptap/extensions/tableHeader.tsx b/packages/client/src/tiptap/extensions/table-header.tsx similarity index 99% rename from packages/client/src/components/tiptap/extensions/tableHeader.tsx rename to packages/client/src/tiptap/extensions/table-header.tsx index 52c939ae..d52e3937 100644 --- a/packages/client/src/components/tiptap/extensions/tableHeader.tsx +++ b/packages/client/src/tiptap/extensions/table-header.tsx @@ -6,7 +6,7 @@ import { Tooltip } from 'components/tooltip'; import { Plugin, PluginKey } from 'prosemirror-state'; import { Decoration, DecorationSet } from 'prosemirror-view'; import { getCellsInRow, isColumnSelected, isTableSelected, selectColumn } from '../services/table'; -import { FloatMenuView } from '../views/floatMenuView'; +import { FloatMenuView } from '../views/float-menu'; // @flow /* eslint-disable no-unused-vars */ diff --git a/packages/client/src/components/tiptap/extensions/tableRow.ts b/packages/client/src/tiptap/extensions/table-row.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/tableRow.ts rename to packages/client/src/tiptap/extensions/table-row.ts diff --git a/packages/client/src/components/tiptap/extensions/table.ts b/packages/client/src/tiptap/extensions/table.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/table.ts rename to packages/client/src/tiptap/extensions/table.ts diff --git a/packages/client/src/components/tiptap/extensions/taskItem.ts b/packages/client/src/tiptap/extensions/task-item.ts similarity index 98% rename from packages/client/src/components/tiptap/extensions/taskItem.ts rename to packages/client/src/tiptap/extensions/task-item.ts index d3749935..8f801080 100644 --- a/packages/client/src/components/tiptap/extensions/taskItem.ts +++ b/packages/client/src/tiptap/extensions/task-item.ts @@ -4,7 +4,7 @@ import { TaskItem as BuiltInTaskItem } from '@tiptap/extension-task-item'; import { Plugin } from 'prosemirror-state'; import { findParentNodeClosestToPos } from 'prosemirror-utils'; import { PARSE_HTML_PRIORITY_HIGHEST } from '../constants'; -import { TaskItemWrapper } from '../wrappers/taskItem'; +import { TaskItemWrapper } from '../wrappers/task-item'; const CustomTaskItem = BuiltInTaskItem.extend({ parseHTML() { diff --git a/packages/client/src/components/tiptap/extensions/taskList.ts b/packages/client/src/tiptap/extensions/task-list.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/taskList.ts rename to packages/client/src/tiptap/extensions/task-list.ts diff --git a/packages/client/src/components/tiptap/extensions/textAlign.ts b/packages/client/src/tiptap/extensions/text-align.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/textAlign.ts rename to packages/client/src/tiptap/extensions/text-align.ts diff --git a/packages/client/src/components/tiptap/extensions/textStyle.ts b/packages/client/src/tiptap/extensions/text-style.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/textStyle.ts rename to packages/client/src/tiptap/extensions/text-style.ts diff --git a/packages/client/src/components/tiptap/extensions/text.ts b/packages/client/src/tiptap/extensions/text.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/text.ts rename to packages/client/src/tiptap/extensions/text.ts diff --git a/packages/client/src/components/tiptap/extensions/title.tsx b/packages/client/src/tiptap/extensions/title.tsx similarity index 100% rename from packages/client/src/components/tiptap/extensions/title.tsx rename to packages/client/src/tiptap/extensions/title.tsx diff --git a/packages/client/src/components/tiptap/extensions/trailingNode.ts b/packages/client/src/tiptap/extensions/trailing-node.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/trailingNode.ts rename to packages/client/src/tiptap/extensions/trailing-node.ts diff --git a/packages/client/src/components/tiptap/extensions/underline.ts b/packages/client/src/tiptap/extensions/underline.ts similarity index 100% rename from packages/client/src/components/tiptap/extensions/underline.ts rename to packages/client/src/tiptap/extensions/underline.ts diff --git a/packages/client/src/components/tiptap/index.ts b/packages/client/src/tiptap/index.ts similarity index 94% rename from packages/client/src/components/tiptap/index.ts rename to packages/client/src/tiptap/index.ts index eb031e24..58b29c60 100644 --- a/packages/client/src/components/tiptap/index.ts +++ b/packages/client/src/tiptap/index.ts @@ -1,6 +1,6 @@ import { HocuspocusProvider } from '@hocuspocus/provider'; import { Collaboration } from './collaboration'; -import { CollaborationCursor } from './collaborationCursor'; +import { CollaborationCursor } from './collaboration-cursor'; import History from '@tiptap/extension-history'; import { getRandomColor } from 'helpers/color'; import { Document } from './extensions/document'; diff --git a/packages/client/src/components/tiptap/indexdb.ts b/packages/client/src/tiptap/indexdb.ts similarity index 100% rename from packages/client/src/components/tiptap/indexdb.ts rename to packages/client/src/tiptap/indexdb.ts diff --git a/packages/client/src/components/tiptap/menubar.tsx b/packages/client/src/tiptap/menubar.tsx similarity index 91% rename from packages/client/src/components/tiptap/menubar.tsx rename to packages/client/src/tiptap/menubar.tsx index cce3d6e7..2b8eafab 100644 --- a/packages/client/src/components/tiptap/menubar.tsx +++ b/packages/client/src/tiptap/menubar.tsx @@ -3,15 +3,15 @@ import { Space, Button } from '@douyinfe/semi-ui'; import { IconUndo, IconRedo } from '@douyinfe/semi-icons'; import { Tooltip } from 'components/tooltip'; import { IconClear } from 'components/icons'; -import { Divider } from './wrappers/divider'; -import { MediaInsertMenu } from './menus/mediaInsert'; +import { Divider } from './divider'; +import { MediaInsertMenu } from './menus/media-insert'; import { Paragraph } from './menus/paragraph'; -import { FontSize } from './menus/fontSize'; -import { BaseMenu } from './menus/baseMenu'; +import { FontSize } from './menus/font-size'; +import { BaseMenu } from './menus/base-menu'; import { AlignMenu } from './menus/align'; import { ListMenu } from './menus/list'; -import { BaseInsertMenu } from './menus/baseInsert'; -import { BaseBubbleMenu } from './menus/baseBubbleMenu'; +import { BaseInsertMenu } from './menus/base-insert'; +import { BaseBubbleMenu } from './menus/base-bubble-menu'; import { ImageBubbleMenu } from './menus/image'; import { BannerBubbleMenu } from './menus/banner'; import { LinkBubbleMenu } from './menus/link'; diff --git a/packages/client/src/components/tiptap/menus/align.tsx b/packages/client/src/tiptap/menus/align.tsx similarity index 96% rename from packages/client/src/components/tiptap/menus/align.tsx rename to packages/client/src/tiptap/menus/align.tsx index ae683877..2878ea82 100644 --- a/packages/client/src/components/tiptap/menus/align.tsx +++ b/packages/client/src/tiptap/menus/align.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Button, Dropdown, Tooltip } from '@douyinfe/semi-ui'; import { IconAlignLeft, IconAlignCenter, IconAlignRight, IconAlignJustify } from '@douyinfe/semi-icons'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; export const AlignMenu = ({ editor }) => { const current = (() => { diff --git a/packages/client/src/components/tiptap/menus/banner.tsx b/packages/client/src/tiptap/menus/banner.tsx similarity index 95% rename from packages/client/src/components/tiptap/menus/banner.tsx rename to packages/client/src/tiptap/menus/banner.tsx index c6bec11f..36f82a6a 100644 --- a/packages/client/src/components/tiptap/menus/banner.tsx +++ b/packages/client/src/tiptap/menus/banner.tsx @@ -1,10 +1,10 @@ import { Space, Button } from '@douyinfe/semi-ui'; import { IconDelete, IconTickCircle, IconAlertTriangle, IconClear, IconInfoCircle } from '@douyinfe/semi-icons'; import { Tooltip } from 'components/tooltip'; -import { BubbleMenu } from '../views/bubbleMenu'; -import { Divider } from '../wrappers/divider'; +import { BubbleMenu } from '../views/bubble-menu'; +import { Divider } from '../divider'; import { Banner } from '../extensions/banner'; -import { deleteNode } from '../services/deleteNode'; +import { deleteNode } from '../services/delete-node'; export const BannerBubbleMenu = ({ editor }) => { return ( diff --git a/packages/client/src/components/tiptap/menus/baseBubbleMenu.tsx b/packages/client/src/tiptap/menus/base-bubble-menu.tsx similarity index 79% rename from packages/client/src/components/tiptap/menus/baseBubbleMenu.tsx rename to packages/client/src/tiptap/menus/base-bubble-menu.tsx index 1710a7b5..54a88060 100644 --- a/packages/client/src/components/tiptap/menus/baseBubbleMenu.tsx +++ b/packages/client/src/tiptap/menus/base-bubble-menu.tsx @@ -7,16 +7,16 @@ import { Attachment } from '../extensions/attachment'; import { Image } from '../extensions/image'; import { Banner } from '../extensions/banner'; import { Status } from '../extensions/status'; -import { HorizontalRule } from '../extensions/horizontalRule'; +import { HorizontalRule } from '../extensions/horizontal-rule'; import { Iframe } from '../extensions/iframe'; import { Mind } from '../extensions/mind'; import { Table } from '../extensions/table'; -import { TaskList } from '../extensions/taskList'; -import { TaskItem } from '../extensions/taskItem'; +import { TaskList } from '../extensions/task-list'; +import { TaskItem } from '../extensions/task-item'; import { Katex } from '../extensions/katex'; -import { DocumentReference } from '../extensions/documentReference'; -import { DocumentChildren } from '../extensions/documentChildren'; -import { BaseMenu } from './baseMenu'; +import { DocumentReference } from '../extensions/document-reference'; +import { DocumentChildren } from '../extensions/document-children'; +import { BaseMenu } from './base-menu'; const OTHER_BUBBLE_MENU_TYPES = [ Title.name, diff --git a/packages/client/src/components/tiptap/menus/baseInsert.tsx b/packages/client/src/tiptap/menus/base-insert.tsx similarity index 96% rename from packages/client/src/components/tiptap/menus/baseInsert.tsx rename to packages/client/src/tiptap/menus/base-insert.tsx index 611b0c4c..25ccc950 100644 --- a/packages/client/src/components/tiptap/menus/baseInsert.tsx +++ b/packages/client/src/tiptap/menus/base-insert.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Button } from '@douyinfe/semi-ui'; import { Tooltip } from 'components/tooltip'; import { IconQuote, IconLink, IconHorizontalRule } from 'components/icons'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; import { Emoji } from './emoji'; import { Search } from './search'; diff --git a/packages/client/src/components/tiptap/menus/baseMenu.tsx b/packages/client/src/tiptap/menus/base-menu.tsx similarity index 98% rename from packages/client/src/components/tiptap/menus/baseMenu.tsx rename to packages/client/src/tiptap/menus/base-menu.tsx index fc9f59f0..676df53e 100644 --- a/packages/client/src/components/tiptap/menus/baseMenu.tsx +++ b/packages/client/src/tiptap/menus/base-menu.tsx @@ -3,7 +3,7 @@ import { Button } from '@douyinfe/semi-ui'; import { IconBold, IconItalic, IconStrikeThrough, IconUnderline, IconCode } from '@douyinfe/semi-icons'; import { IconSup, IconSub } from 'components/icons'; import { Tooltip } from 'components/tooltip'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; import { ColorMenu } from './color'; export const BaseMenu: React.FC<{ editor: any }> = ({ editor }) => { diff --git a/packages/client/src/components/tiptap/menus/colorPicker/index.tsx b/packages/client/src/tiptap/menus/color-picker/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/menus/colorPicker/index.tsx rename to packages/client/src/tiptap/menus/color-picker/index.tsx diff --git a/packages/client/src/components/tiptap/menus/colorPicker/style.module.scss b/packages/client/src/tiptap/menus/color-picker/style.module.scss similarity index 100% rename from packages/client/src/components/tiptap/menus/colorPicker/style.module.scss rename to packages/client/src/tiptap/menus/color-picker/style.module.scss diff --git a/packages/client/src/components/tiptap/menus/color.tsx b/packages/client/src/tiptap/menus/color.tsx similarity index 95% rename from packages/client/src/components/tiptap/menus/color.tsx rename to packages/client/src/tiptap/menus/color.tsx index 3f291e42..45c17b61 100644 --- a/packages/client/src/components/tiptap/menus/color.tsx +++ b/packages/client/src/tiptap/menus/color.tsx @@ -2,8 +2,8 @@ import React from 'react'; import { Button } from '@douyinfe/semi-ui'; import { IconFont, IconMark } from '@douyinfe/semi-icons'; import { Tooltip } from 'components/tooltip'; -import { isTitleActive } from '../services/isActive'; -import { ColorPicker } from './colorPicker'; +import { isTitleActive } from '../services/is-active'; +import { ColorPicker } from './color-picker'; export const ColorMenu: React.FC<{ editor: any }> = ({ editor }) => { const { color, backgroundColor } = editor.getAttributes('textStyle'); diff --git a/packages/client/src/components/tiptap/menus/emoji/constants.ts b/packages/client/src/tiptap/menus/emoji/constants.ts similarity index 100% rename from packages/client/src/components/tiptap/menus/emoji/constants.ts rename to packages/client/src/tiptap/menus/emoji/constants.ts diff --git a/packages/client/src/components/tiptap/menus/emoji/index.module.scss b/packages/client/src/tiptap/menus/emoji/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/menus/emoji/index.module.scss rename to packages/client/src/tiptap/menus/emoji/index.module.scss diff --git a/packages/client/src/components/tiptap/menus/emoji/index.tsx b/packages/client/src/tiptap/menus/emoji/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/menus/emoji/index.tsx rename to packages/client/src/tiptap/menus/emoji/index.tsx diff --git a/packages/client/src/components/tiptap/menus/evokeMenu.tsx b/packages/client/src/tiptap/menus/evoke-menu.tsx similarity index 100% rename from packages/client/src/components/tiptap/menus/evokeMenu.tsx rename to packages/client/src/tiptap/menus/evoke-menu.tsx diff --git a/packages/client/src/components/tiptap/menus/fontSize.tsx b/packages/client/src/tiptap/menus/font-size.tsx similarity index 93% rename from packages/client/src/components/tiptap/menus/fontSize.tsx rename to packages/client/src/tiptap/menus/font-size.tsx index 4eec3e29..2a1e5515 100644 --- a/packages/client/src/components/tiptap/menus/fontSize.tsx +++ b/packages/client/src/tiptap/menus/font-size.tsx @@ -1,6 +1,6 @@ import React, { useCallback } from 'react'; import { Select } from '@douyinfe/semi-ui'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; export const FONT_SIZES = [12, 13, 14, 15, 16, 19, 22, 24, 29, 32, 40, 48]; diff --git a/packages/client/src/components/tiptap/menus/image.tsx b/packages/client/src/tiptap/menus/image.tsx similarity index 97% rename from packages/client/src/components/tiptap/menus/image.tsx rename to packages/client/src/tiptap/menus/image.tsx index 3fcdb52e..c481643f 100644 --- a/packages/client/src/components/tiptap/menus/image.tsx +++ b/packages/client/src/tiptap/menus/image.tsx @@ -3,8 +3,8 @@ import { Space, Button, InputNumber, Typography } from '@douyinfe/semi-ui'; import { IconAlignLeft, IconAlignCenter, IconAlignRight, IconUpload, IconDelete } from '@douyinfe/semi-icons'; import { Tooltip } from 'components/tooltip'; import { Upload } from 'components/upload'; -import { BubbleMenu } from '../views/bubbleMenu'; -import { Divider } from '../wrappers/divider'; +import { BubbleMenu } from '../views/bubble-menu'; +import { Divider } from '../divider'; import { Image } from '../extensions/image'; import { getImageOriginSize } from '../services/image'; diff --git a/packages/client/src/components/tiptap/menus/link.tsx b/packages/client/src/tiptap/menus/link.tsx similarity index 97% rename from packages/client/src/components/tiptap/menus/link.tsx rename to packages/client/src/tiptap/menus/link.tsx index 07cf8c02..a0aa0554 100644 --- a/packages/client/src/components/tiptap/menus/link.tsx +++ b/packages/client/src/tiptap/menus/link.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { Space, Button, Input } from '@douyinfe/semi-ui'; import { IconExternalOpen, IconUnlink, IconTickCircle } from '@douyinfe/semi-icons'; import { Tooltip } from 'components/tooltip'; -import { BubbleMenu } from '../views/bubbleMenu'; +import { BubbleMenu } from '../views/bubble-menu'; import { Link } from '../extensions/link'; export const LinkBubbleMenu = ({ editor }) => { diff --git a/packages/client/src/components/tiptap/menus/list.tsx b/packages/client/src/tiptap/menus/list.tsx similarity index 97% rename from packages/client/src/components/tiptap/menus/list.tsx rename to packages/client/src/tiptap/menus/list.tsx index 4fb37a8c..350c513c 100644 --- a/packages/client/src/components/tiptap/menus/list.tsx +++ b/packages/client/src/tiptap/menus/list.tsx @@ -4,7 +4,7 @@ import { IconIndentLeft, IconIndentRight } from '@douyinfe/semi-icons'; import { IconOrderedList, IconList } from 'components/icons'; import { Tooltip } from 'components/tooltip'; import { IconTask } from 'components/icons'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; export const ListMenu: React.FC<{ editor: any }> = ({ editor }) => { if (!editor) { diff --git a/packages/client/src/components/tiptap/menus/mediaInsert.tsx b/packages/client/src/tiptap/menus/media-insert.tsx similarity index 98% rename from packages/client/src/components/tiptap/menus/mediaInsert.tsx rename to packages/client/src/tiptap/menus/media-insert.tsx index 09c7086a..462b4b1f 100644 --- a/packages/client/src/components/tiptap/menus/mediaInsert.tsx +++ b/packages/client/src/tiptap/menus/media-insert.tsx @@ -16,7 +16,7 @@ import { IconMath, } from 'components/icons'; import { GridSelect } from 'components/grid-select'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; export const MediaInsertMenu: React.FC<{ editor: Editor }> = ({ editor }) => { if (!editor) { diff --git a/packages/client/src/components/tiptap/menus/paragraph.tsx b/packages/client/src/tiptap/menus/paragraph.tsx similarity index 96% rename from packages/client/src/components/tiptap/menus/paragraph.tsx rename to packages/client/src/tiptap/menus/paragraph.tsx index 52312027..18ec3756 100644 --- a/packages/client/src/components/tiptap/menus/paragraph.tsx +++ b/packages/client/src/tiptap/menus/paragraph.tsx @@ -1,6 +1,6 @@ import React, { useCallback } from 'react'; import { Select } from '@douyinfe/semi-ui'; -import { isTitleActive } from '../services/isActive'; +import { isTitleActive } from '../services/is-active'; const getCurrentCaretTitle = (editor) => { if (editor.isActive('heading', { level: 1 })) return 1; diff --git a/packages/client/src/components/tiptap/menus/search/index.tsx b/packages/client/src/tiptap/menus/search/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/menus/search/index.tsx rename to packages/client/src/tiptap/menus/search/index.tsx diff --git a/packages/client/src/components/tiptap/menus/table.tsx b/packages/client/src/tiptap/menus/table.tsx similarity index 97% rename from packages/client/src/components/tiptap/menus/table.tsx rename to packages/client/src/tiptap/menus/table.tsx index 81de92b9..95f8cb63 100644 --- a/packages/client/src/components/tiptap/menus/table.tsx +++ b/packages/client/src/tiptap/menus/table.tsx @@ -14,8 +14,8 @@ import { IconTableHeaderCell, } from 'components/icons'; import { Tooltip } from 'components/tooltip'; -import { Divider } from '../wrappers/divider'; -import { BubbleMenu } from '../views/bubbleMenu'; +import { Divider } from '../divider'; +import { BubbleMenu } from '../views/bubble-menu'; import { Table } from '../extensions/table'; export const TableBubbleMenu = ({ editor }) => { diff --git a/packages/client/src/components/tiptap/provider.ts b/packages/client/src/tiptap/provider.ts similarity index 100% rename from packages/client/src/components/tiptap/provider.ts rename to packages/client/src/tiptap/provider.ts diff --git a/packages/client/src/components/tiptap/services/clamp.ts b/packages/client/src/tiptap/services/clamp.ts similarity index 100% rename from packages/client/src/components/tiptap/services/clamp.ts rename to packages/client/src/tiptap/services/clamp.ts diff --git a/packages/client/src/components/tiptap/services/code.ts b/packages/client/src/tiptap/services/code.ts similarity index 92% rename from packages/client/src/components/tiptap/services/code.ts rename to packages/client/src/tiptap/services/code.ts index 40bf6ca3..18c5b325 100644 --- a/packages/client/src/components/tiptap/services/code.ts +++ b/packages/client/src/tiptap/services/code.ts @@ -1,7 +1,7 @@ import { EditorState } from 'prosemirror-state'; // @ts-ignore import { lowlight } from 'lowlight'; -import { isMarkActive } from './isActive'; +import { isMarkActive } from './is-active'; export const LANGUAGES = lowlight.listLanguages().reduce((a, language) => { a[language] = language; diff --git a/packages/client/src/components/tiptap/services/color.ts b/packages/client/src/tiptap/services/color.ts similarity index 100% rename from packages/client/src/components/tiptap/services/color.ts rename to packages/client/src/tiptap/services/color.ts diff --git a/packages/client/src/components/tiptap/services/dataset.ts b/packages/client/src/tiptap/services/dataset.ts similarity index 100% rename from packages/client/src/components/tiptap/services/dataset.ts rename to packages/client/src/tiptap/services/dataset.ts diff --git a/packages/client/src/components/tiptap/services/deleteNode.ts b/packages/client/src/tiptap/services/delete-node.ts similarity index 100% rename from packages/client/src/components/tiptap/services/deleteNode.ts rename to packages/client/src/tiptap/services/delete-node.ts diff --git a/packages/client/src/components/tiptap/services/dom.ts b/packages/client/src/tiptap/services/dom.ts similarity index 100% rename from packages/client/src/components/tiptap/services/dom.ts rename to packages/client/src/tiptap/services/dom.ts diff --git a/packages/client/src/components/tiptap/services/download.ts b/packages/client/src/tiptap/services/download.ts similarity index 100% rename from packages/client/src/components/tiptap/services/download.ts rename to packages/client/src/tiptap/services/download.ts diff --git a/packages/client/src/components/tiptap/services/file.ts b/packages/client/src/tiptap/services/file.ts similarity index 100% rename from packages/client/src/components/tiptap/services/file.ts rename to packages/client/src/tiptap/services/file.ts diff --git a/packages/client/src/components/tiptap/services/image.ts b/packages/client/src/tiptap/services/image.ts similarity index 100% rename from packages/client/src/components/tiptap/services/image.ts rename to packages/client/src/tiptap/services/image.ts diff --git a/packages/client/src/components/tiptap/services/isActive.ts b/packages/client/src/tiptap/services/is-active.ts similarity index 100% rename from packages/client/src/components/tiptap/services/isActive.ts rename to packages/client/src/tiptap/services/is-active.ts diff --git a/packages/client/src/components/tiptap/services/listInputRule.ts b/packages/client/src/tiptap/services/list-input-rule.ts similarity index 100% rename from packages/client/src/components/tiptap/services/listInputRule.ts rename to packages/client/src/tiptap/services/list-input-rule.ts diff --git a/packages/client/src/components/tiptap/services/lowlightPlugin.ts b/packages/client/src/tiptap/services/lowlight-plugin.ts similarity index 100% rename from packages/client/src/components/tiptap/services/lowlightPlugin.ts rename to packages/client/src/tiptap/services/lowlight-plugin.ts diff --git a/packages/client/src/components/tiptap/services/markUtils.ts b/packages/client/src/tiptap/services/mark-utils.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markUtils.ts rename to packages/client/src/tiptap/services/mark-utils.ts diff --git a/packages/client/src/components/tiptap/services/markdown/helpers.ts b/packages/client/src/tiptap/services/markdown/helpers.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/helpers.ts rename to packages/client/src/tiptap/services/markdown/helpers.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/index.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/index.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/index.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/index.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/bold.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/bold.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/bold.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/bold.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/code.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/code.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/code.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/code.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/italic.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/italic.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/italic.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/italic.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/link.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/link.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/link.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/link.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/mark.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/mark.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/mark.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/mark.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/subscript.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/subscript.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/subscript.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/subscript.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/superscript.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/superscript.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/superscript.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/superscript.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/underline.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/underline.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/marks/underline.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/marks/underline.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/attachment.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/attachment.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/attachment.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/attachment.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/banner.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/banner.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/banner.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/banner.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/blockQuote.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/blockQuote.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/blockQuote.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/blockQuote.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/bulletList.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/bulletList.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/bulletList.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/bulletList.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/codeBlock.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/codeBlock.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/codeBlock.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/codeBlock.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/codeBlockWrapper.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/codeBlockWrapper.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/codeBlockWrapper.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/codeBlockWrapper.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/documentChildren.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/documentChildren.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/documentChildren.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/documentChildren.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/documentReference.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/documentReference.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/documentReference.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/documentReference.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/hardBreak.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/hardBreak.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/hardBreak.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/hardBreak.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/heading.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/heading.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/heading.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/heading.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/horizontalRule.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/horizontalRule.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/horizontalRule.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/horizontalRule.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/iframe.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/iframe.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/iframe.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/iframe.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/image.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/image.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/image.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/image.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/katex.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/katex.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/katex.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/katex.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/listItem.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/listItem.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/listItem.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/listItem.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/mind.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/mind.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/mind.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/mind.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/node.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/node.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/node.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/node.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/orderedList.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/orderedList.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/orderedList.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/orderedList.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/paragraph.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/paragraph.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/paragraph.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/paragraph.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/status.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/status.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/status.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/status.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/table.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/table.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/table.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/table.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/tableCell.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/tableCell.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/tableCell.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/tableCell.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/tableHeader.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/tableHeader.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/tableHeader.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/tableHeader.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/tableRow.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/tableRow.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/tableRow.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/tableRow.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/taskList.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/taskList.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/taskList.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/taskList.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/taskListItem.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/taskListItem.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/taskListItem.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/taskListItem.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/text.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/text.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/text.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/text.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/title.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/title.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/nodes/title.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/nodes/title.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/renderer.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/renderer.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/renderer.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/renderer.ts diff --git a/packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/utils.ts b/packages/client/src/tiptap/services/markdown/html-to-prosemirror/utils.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/htmlToProsemirror/utils.ts rename to packages/client/src/tiptap/services/markdown/html-to-prosemirror/utils.ts diff --git a/packages/client/src/components/tiptap/services/markdown/index.tsx b/packages/client/src/tiptap/services/markdown/index.tsx similarity index 67% rename from packages/client/src/components/tiptap/services/markdown/index.tsx rename to packages/client/src/tiptap/services/markdown/index.tsx index cae96ca1..bd1fc287 100644 --- a/packages/client/src/components/tiptap/services/markdown/index.tsx +++ b/packages/client/src/tiptap/services/markdown/index.tsx @@ -1,8 +1,8 @@ -import { htmlToPromsemirror } from './htmlToProsemirror'; -import { markdownToHTML } from './markdownToHTML'; -export { prosemirrorToMarkdown } from './prosemirrorToMarkdown'; +import { htmlToPromsemirror } from './html-to-prosemirror'; +import { markdownToHTML } from './markdown-to-html'; +export { prosemirrorToMarkdown } from './prosemirror-to-markdown'; export * from './helpers'; -export * from './markdownSourceMap'; +export * from './markdown-source-map'; // 将 markdown 字符串转换为 ProseMirror JSONDocument export const markdownToProsemirror = ({ schema, content, hasTitle }) => { diff --git a/packages/client/src/components/tiptap/services/markdown/markdownSourceMap.ts b/packages/client/src/tiptap/services/markdown/markdown-source-map.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownSourceMap.ts rename to packages/client/src/tiptap/services/markdown/markdown-source-map.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/index.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/index.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/index.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/index.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownBanner.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markdownBanner.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownBanner.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markdownBanner.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownItContainer.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markdownItContainer.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownItContainer.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markdownItContainer.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownKatex.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markdownKatex.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownKatex.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markdownKatex.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownTable.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markdownTable.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownTable.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markdownTable.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownTaskList.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markdownTaskList.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownTaskList.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markdownTaskList.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownUnderline.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markdownUnderline.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markdownUnderline.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markdownUnderline.ts diff --git a/packages/client/src/components/tiptap/services/markdown/markdownToHTML/markedownSplitMixedList.ts b/packages/client/src/tiptap/services/markdown/markdown-to-html/markedownSplitMixedList.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/markdownToHTML/markedownSplitMixedList.ts rename to packages/client/src/tiptap/services/markdown/markdown-to-html/markedownSplitMixedList.ts diff --git a/packages/client/src/components/tiptap/services/markdown/prosemirrorToMarkdown/serializerHelpers.ts b/packages/client/src/tiptap/services/markdown/prosemirror-to-markdown/helpers.ts similarity index 100% rename from packages/client/src/components/tiptap/services/markdown/prosemirrorToMarkdown/serializerHelpers.ts rename to packages/client/src/tiptap/services/markdown/prosemirror-to-markdown/helpers.ts diff --git a/packages/client/src/components/tiptap/services/markdown/prosemirrorToMarkdown/index.ts b/packages/client/src/tiptap/services/markdown/prosemirror-to-markdown/index.ts similarity index 85% rename from packages/client/src/components/tiptap/services/markdown/prosemirrorToMarkdown/index.ts rename to packages/client/src/tiptap/services/markdown/prosemirror-to-markdown/index.ts index 9b1ce7ad..0b55f58a 100644 --- a/packages/client/src/components/tiptap/services/markdown/prosemirrorToMarkdown/index.ts +++ b/packages/client/src/tiptap/services/markdown/prosemirror-to-markdown/index.ts @@ -2,15 +2,15 @@ import { MarkdownSerializer as ProseMirrorMarkdownSerializer, defaultMarkdownSer import { Attachment } from '../../../extensions/attachment'; import { Banner } from '../../../extensions/banner'; import { Bold } from '../../../extensions/bold'; -import { BulletList } from '../../../extensions/bulletList'; +import { BulletList } from '../../../extensions/bullet-list'; import { Code } from '../../../extensions/code'; -import { CodeBlock } from '../../../extensions/codeBlock'; -import { DocumentChildren } from '../../../extensions/documentChildren'; -import { DocumentReference } from '../../../extensions/documentReference'; -import { HardBreak } from '../../../extensions/hardBreak'; +import { CodeBlock } from '../../../extensions/code-block'; +import { DocumentChildren } from '../../../extensions/document-children'; +import { DocumentReference } from '../../../extensions/document-reference'; +import { HardBreak } from '../../../extensions/hard-break'; import { Heading } from '../../../extensions/heading'; -import { HorizontalRule } from '../../../extensions/horizontalRule'; -import { marks } from '../../../extensions/htmlMarks'; +import { HorizontalRule } from '../../../extensions/horizontal-rule'; +import { marks } from '../../../extensions/html-marks'; import { Iframe } from '../../../extensions/iframe'; import { Image } from '../../../extensions/image'; import { Italic } from '../../../extensions/italic'; @@ -18,20 +18,20 @@ import { Katex } from '../../../extensions/katex'; import { Link } from '../../../extensions/link'; import { ListItem } from '../../../extensions/listItem'; import { Mind } from '../../../extensions/mind'; -import { OrderedList } from '../../../extensions/orderedList'; +import { OrderedList } from '../../../extensions/ordered-list'; import { Paragraph } from '../../../extensions/paragraph'; import { Status } from '../../../extensions/status'; import { Strike } from '../../../extensions/strike'; import { Subscript } from '../../../extensions/subscript'; import { Superscript } from '../../../extensions/superscript'; import { Table } from '../../../extensions/table'; -import { TableCell } from '../../../extensions/tableCell'; -import { TableHeader } from '../../../extensions/tableHeader'; -import { TableRow } from '../../../extensions/tableRow'; +import { TableCell } from '../../../extensions/table-cell'; +import { TableHeader } from '../../../extensions/table-header'; +import { TableRow } from '../../../extensions/table-row'; import { Text } from '../../../extensions/text'; -import { TaskItem } from '../../../extensions/taskItem'; -import { TaskList } from '../../../extensions/taskList'; -import { TextStyle } from '../../../extensions/textStyle'; +import { TaskItem } from '../../../extensions/task-item'; +import { TaskList } from '../../../extensions/task-list'; +import { TextStyle } from '../../../extensions/text-style'; import { Title } from '../../../extensions/title'; import { isPlainURL, @@ -45,7 +45,7 @@ import { renderImage, renderCustomContainer, renderHTMLNode, -} from './serializerHelpers'; +} from './helpers'; const SerializerConfig = { marks: { diff --git a/packages/client/src/components/tiptap/services/node.ts b/packages/client/src/tiptap/services/node.ts similarity index 100% rename from packages/client/src/components/tiptap/services/node.ts rename to packages/client/src/tiptap/services/node.ts diff --git a/packages/client/src/components/tiptap/services/table.ts b/packages/client/src/tiptap/services/table.ts similarity index 100% rename from packages/client/src/components/tiptap/services/table.ts rename to packages/client/src/tiptap/services/table.ts diff --git a/packages/client/src/components/tiptap/services/type.ts b/packages/client/src/tiptap/services/type.ts similarity index 100% rename from packages/client/src/components/tiptap/services/type.ts rename to packages/client/src/tiptap/services/type.ts diff --git a/packages/client/src/components/tiptap/services/upload.ts b/packages/client/src/tiptap/services/upload.ts similarity index 100% rename from packages/client/src/components/tiptap/services/upload.ts rename to packages/client/src/tiptap/services/upload.ts diff --git a/packages/client/src/components/tiptap/skeleton.tsx b/packages/client/src/tiptap/skeleton.tsx similarity index 100% rename from packages/client/src/components/tiptap/skeleton.tsx rename to packages/client/src/tiptap/skeleton.tsx diff --git a/packages/client/src/styles/editor/base.scss b/packages/client/src/tiptap/styles/base.scss similarity index 100% rename from packages/client/src/styles/editor/base.scss rename to packages/client/src/tiptap/styles/base.scss diff --git a/packages/client/src/styles/editor/code.scss b/packages/client/src/tiptap/styles/code.scss similarity index 100% rename from packages/client/src/styles/editor/code.scss rename to packages/client/src/tiptap/styles/code.scss diff --git a/packages/client/src/styles/editor/collaboration.scss b/packages/client/src/tiptap/styles/collaboration.scss similarity index 100% rename from packages/client/src/styles/editor/collaboration.scss rename to packages/client/src/tiptap/styles/collaboration.scss diff --git a/packages/client/src/styles/editor/color.scss b/packages/client/src/tiptap/styles/color.scss similarity index 100% rename from packages/client/src/styles/editor/color.scss rename to packages/client/src/tiptap/styles/color.scss diff --git a/packages/client/src/styles/editor/heading.scss b/packages/client/src/tiptap/styles/heading.scss similarity index 100% rename from packages/client/src/styles/editor/heading.scss rename to packages/client/src/tiptap/styles/heading.scss diff --git a/packages/client/src/styles/editor/index.scss b/packages/client/src/tiptap/styles/index.scss similarity index 100% rename from packages/client/src/styles/editor/index.scss rename to packages/client/src/tiptap/styles/index.scss diff --git a/packages/client/src/styles/editor/katex.scss b/packages/client/src/tiptap/styles/katex.scss similarity index 100% rename from packages/client/src/styles/editor/katex.scss rename to packages/client/src/tiptap/styles/katex.scss diff --git a/packages/client/src/styles/editor/list.scss b/packages/client/src/tiptap/styles/list.scss similarity index 100% rename from packages/client/src/styles/editor/list.scss rename to packages/client/src/tiptap/styles/list.scss diff --git a/packages/client/src/styles/editor/menu.scss b/packages/client/src/tiptap/styles/menu.scss similarity index 100% rename from packages/client/src/styles/editor/menu.scss rename to packages/client/src/tiptap/styles/menu.scss diff --git a/packages/client/src/styles/editor/mind.scss b/packages/client/src/tiptap/styles/mind.scss similarity index 100% rename from packages/client/src/styles/editor/mind.scss rename to packages/client/src/tiptap/styles/mind.scss diff --git a/packages/client/src/styles/editor/placeholder.scss b/packages/client/src/tiptap/styles/placeholder.scss similarity index 100% rename from packages/client/src/styles/editor/placeholder.scss rename to packages/client/src/tiptap/styles/placeholder.scss diff --git a/packages/client/src/styles/editor/search.scss b/packages/client/src/tiptap/styles/search.scss similarity index 100% rename from packages/client/src/styles/editor/search.scss rename to packages/client/src/tiptap/styles/search.scss diff --git a/packages/client/src/styles/editor/selection.scss b/packages/client/src/tiptap/styles/selection.scss similarity index 100% rename from packages/client/src/styles/editor/selection.scss rename to packages/client/src/tiptap/styles/selection.scss diff --git a/packages/client/src/styles/editor/table.scss b/packages/client/src/tiptap/styles/table.scss similarity index 100% rename from packages/client/src/styles/editor/table.scss rename to packages/client/src/tiptap/styles/table.scss diff --git a/packages/client/src/styles/editor/title.scss b/packages/client/src/tiptap/styles/title.scss similarity index 100% rename from packages/client/src/styles/editor/title.scss rename to packages/client/src/tiptap/styles/title.scss diff --git a/packages/client/src/components/tiptap/views/bubbleMenu/bubbleMenuPlugin.tsx b/packages/client/src/tiptap/views/bubble-menu/bubble-menu-plugin.tsx similarity index 100% rename from packages/client/src/components/tiptap/views/bubbleMenu/bubbleMenuPlugin.tsx rename to packages/client/src/tiptap/views/bubble-menu/bubble-menu-plugin.tsx diff --git a/packages/client/src/components/tiptap/views/bubbleMenu/index.tsx b/packages/client/src/tiptap/views/bubble-menu/index.tsx similarity index 98% rename from packages/client/src/components/tiptap/views/bubbleMenu/index.tsx rename to packages/client/src/tiptap/views/bubble-menu/index.tsx index 5e1e1295..265d0577 100644 --- a/packages/client/src/components/tiptap/views/bubbleMenu/index.tsx +++ b/packages/client/src/tiptap/views/bubble-menu/index.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { BubbleMenuPlugin, BubbleMenuPluginProps } from './bubbleMenuPlugin'; +import { BubbleMenuPlugin, BubbleMenuPluginProps } from './bubble-menu-plugin'; type Optional = Pick, K> & Omit; diff --git a/packages/client/src/components/tiptap/views/floatMenuView.tsx b/packages/client/src/tiptap/views/float-menu.tsx similarity index 100% rename from packages/client/src/components/tiptap/views/floatMenuView.tsx rename to packages/client/src/tiptap/views/float-menu.tsx diff --git a/packages/client/src/components/tiptap/wrappers/attachment/index.module.scss b/packages/client/src/tiptap/wrappers/attachment/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/attachment/index.module.scss rename to packages/client/src/tiptap/wrappers/attachment/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/attachment/index.tsx b/packages/client/src/tiptap/wrappers/attachment/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/attachment/index.tsx rename to packages/client/src/tiptap/wrappers/attachment/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/banner/index.module.scss b/packages/client/src/tiptap/wrappers/banner/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/banner/index.module.scss rename to packages/client/src/tiptap/wrappers/banner/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/banner/index.tsx b/packages/client/src/tiptap/wrappers/banner/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/banner/index.tsx rename to packages/client/src/tiptap/wrappers/banner/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/codeBlock/index.module.scss b/packages/client/src/tiptap/wrappers/code-block/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/codeBlock/index.module.scss rename to packages/client/src/tiptap/wrappers/code-block/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/codeBlock/index.tsx b/packages/client/src/tiptap/wrappers/code-block/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/codeBlock/index.tsx rename to packages/client/src/tiptap/wrappers/code-block/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/documentChildren/index.module.scss b/packages/client/src/tiptap/wrappers/document-children/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/documentChildren/index.module.scss rename to packages/client/src/tiptap/wrappers/document-children/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/documentChildren/index.tsx b/packages/client/src/tiptap/wrappers/document-children/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/documentChildren/index.tsx rename to packages/client/src/tiptap/wrappers/document-children/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/documentReference/index.module.scss b/packages/client/src/tiptap/wrappers/document-reference/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/documentReference/index.module.scss rename to packages/client/src/tiptap/wrappers/document-reference/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/documentReference/index.tsx b/packages/client/src/tiptap/wrappers/document-reference/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/documentReference/index.tsx rename to packages/client/src/tiptap/wrappers/document-reference/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/emojiList/emojis.ts b/packages/client/src/tiptap/wrappers/emoji-list/emojis.ts similarity index 100% rename from packages/client/src/components/tiptap/wrappers/emojiList/emojis.ts rename to packages/client/src/tiptap/wrappers/emoji-list/emojis.ts diff --git a/packages/client/src/components/tiptap/wrappers/emojiList/index.module.scss b/packages/client/src/tiptap/wrappers/emoji-list/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/emojiList/index.module.scss rename to packages/client/src/tiptap/wrappers/emoji-list/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/emojiList/index.tsx b/packages/client/src/tiptap/wrappers/emoji-list/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/emojiList/index.tsx rename to packages/client/src/tiptap/wrappers/emoji-list/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/iframe/index.module.scss b/packages/client/src/tiptap/wrappers/iframe/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/iframe/index.module.scss rename to packages/client/src/tiptap/wrappers/iframe/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/iframe/index.tsx b/packages/client/src/tiptap/wrappers/iframe/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/iframe/index.tsx rename to packages/client/src/tiptap/wrappers/iframe/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/image/index.module.scss b/packages/client/src/tiptap/wrappers/image/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/image/index.module.scss rename to packages/client/src/tiptap/wrappers/image/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/image/index.tsx b/packages/client/src/tiptap/wrappers/image/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/image/index.tsx rename to packages/client/src/tiptap/wrappers/image/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/katex/index.module.scss b/packages/client/src/tiptap/wrappers/katex/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/katex/index.module.scss rename to packages/client/src/tiptap/wrappers/katex/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/katex/index.tsx b/packages/client/src/tiptap/wrappers/katex/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/katex/index.tsx rename to packages/client/src/tiptap/wrappers/katex/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/loading.tsx b/packages/client/src/tiptap/wrappers/loading.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/loading.tsx rename to packages/client/src/tiptap/wrappers/loading.tsx diff --git a/packages/client/src/components/tiptap/wrappers/menuList/index.module.scss b/packages/client/src/tiptap/wrappers/menu-list/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/menuList/index.module.scss rename to packages/client/src/tiptap/wrappers/menu-list/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/menuList/index.tsx b/packages/client/src/tiptap/wrappers/menu-list/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/menuList/index.tsx rename to packages/client/src/tiptap/wrappers/menu-list/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/mind/index.module.scss b/packages/client/src/tiptap/wrappers/mind/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/mind/index.module.scss rename to packages/client/src/tiptap/wrappers/mind/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/mind/index.tsx b/packages/client/src/tiptap/wrappers/mind/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/mind/index.tsx rename to packages/client/src/tiptap/wrappers/mind/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/mind/jsmind.jsx b/packages/client/src/tiptap/wrappers/mind/jsmind.jsx similarity index 97% rename from packages/client/src/components/tiptap/wrappers/mind/jsmind.jsx rename to packages/client/src/tiptap/wrappers/mind/jsmind.jsx index 9f955039..cd3382cc 100644 --- a/packages/client/src/components/tiptap/wrappers/mind/jsmind.jsx +++ b/packages/client/src/tiptap/wrappers/mind/jsmind.jsx @@ -3,7 +3,7 @@ import { Space, Button } from '@douyinfe/semi-ui'; import { IconPlus, IconDelete } from '@douyinfe/semi-icons'; import { IconZoomOut, IconZoomIn } from 'components/icons'; import { Tooltip } from 'components/tooltip'; -import { Divider } from '../divider'; +import { Divider } from '../../divider'; import styles from './index.module.scss'; /* @@ -283,16 +283,7 @@ import styles from './index.module.scss'; } node = new jm.node(nodeid, nodeindex, topic, data, false, parent_node, d, expanded); } else { - node = new jm.node( - nodeid, - nodeindex, - topic, - data, - false, - parent_node, - parent_node.direction, - expanded - ); + node = new jm.node(nodeid, nodeindex, topic, data, false, parent_node, parent_node.direction, expanded); } if (this._put_node(node)) { parent_node.children.push(node); @@ -413,11 +404,7 @@ import styles from './index.module.scss'; this._reindex(node.parent); } else { var node_before = beforeid ? this.get_node(beforeid) : null; - if ( - node_before != null && - node_before.parent != null && - node_before.parent.id == node.parent.id - ) { + if (node_before != null && node_before.parent != null && node_before.parent.id == node.parent.id) { node.index = node_before.index - 0.5; this._reindex(node.parent); } @@ -590,15 +577,7 @@ import styles from './index.module.scss'; if (node_parent.isroot) { d = node_json.direction == 'left' ? jm.direction.left : jm.direction.right; } - var node = mind.add_node( - node_parent, - node_json.id, - node_json.topic, - data, - null, - d, - node_json.expanded - ); + var node = mind.add_node(node_parent, node_json.id, node_json.topic, data, null, d, node_json.expanded); if ('children' in node_json) { var children = node_json.children; for (var i = 0; i < children.length; i++) { @@ -715,15 +694,7 @@ import styles from './index.module.scss'; if (node_direction) { d = node_direction == 'left' ? jm.direction.left : jm.direction.right; } - mind.add_node( - parentid, - node_json.id, - node_json.topic, - data, - null, - d, - node_json.expanded - ); + mind.add_node(parentid, node_json.id, node_json.topic, data, null, d, node_json.expanded); node_array.splice(i, 1); extract_count++; var sub_extract_count = df._extract_subnode(mind, node_json.id, node_array); @@ -740,14 +711,7 @@ import styles from './index.module.scss'; _extract_data: function (node_json) { var data = {}; for (var k in node_json) { - if ( - k == 'id' || - k == 'topic' || - k == 'parentid' || - k == 'isroot' || - k == 'direction' || - k == 'expanded' - ) { + if (k == 'id' || k == 'topic' || k == 'parentid' || k == 'isroot' || k == 'direction' || k == 'expanded') { continue; } data[k] = node_json[k]; @@ -901,15 +865,7 @@ import styles from './index.module.scss'; } //logger.debug(node_position +':'+ node_direction); if (parent_id) { - mind.add_node( - parent_id, - node_id, - node_topic, - node_data, - null, - node_direction, - node_expanded - ); + mind.add_node(parent_id, node_id, node_topic, node_data, null, node_direction, node_expanded); } else { mind.set_root(node_id, node_topic, node_data); } @@ -1089,8 +1045,7 @@ import styles from './index.module.scss'; if (typeof $w.Blob === 'function') { blob = new Blob([file_data], { type: type }); } else { - var BlobBuilder = - $w.BlobBuilder || $w.MozBlobBuilder || $w.WebKitBlobBuilder || $w.MSBlobBuilder; + var BlobBuilder = $w.BlobBuilder || $w.MozBlobBuilder || $w.WebKitBlobBuilder || $w.MSBlobBuilder; var bb = new BlobBuilder(); bb.append(file_data); blob = bb.getBlob(type); @@ -1164,10 +1119,7 @@ import styles from './index.module.scss'; uuid: { newid: function () { - return (new Date().getTime().toString(16) + Math.random().toString(16).substr(2)).substr( - 2, - 16 - ); + return (new Date().getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16); }, }, @@ -2136,8 +2088,7 @@ import styles from './index.module.scss'; } else { var view_data = node._data.view; var offset_p = this.get_node_offset(node); - pout_cache.x = - offset_p.x + (view_data.width + this.opts.pspace) * node._data.layout.direction; + pout_cache.x = offset_p.x + (view_data.width + this.opts.pspace) * node._data.layout.direction; pout_cache.y = offset_p.y; //logger.debug('pout'); //logger.debug(pout_cache); @@ -2267,27 +2218,16 @@ import styles from './index.module.scss'; if (root) { var root_layout_data = root._data.layout; if (node.isroot) { - root_layout_data.outer_height_right = this._layout_offset_subnodes_height( - root_layout_data.right_nodes - ); - root_layout_data.outer_height_left = this._layout_offset_subnodes_height( - root_layout_data.left_nodes - ); + root_layout_data.outer_height_right = this._layout_offset_subnodes_height(root_layout_data.right_nodes); + root_layout_data.outer_height_left = this._layout_offset_subnodes_height(root_layout_data.left_nodes); } else { if (node._data.layout.direction == jm.direction.right) { - root_layout_data.outer_height_right = this._layout_offset_subnodes_height( - root_layout_data.right_nodes - ); + root_layout_data.outer_height_right = this._layout_offset_subnodes_height(root_layout_data.right_nodes); } else { - root_layout_data.outer_height_left = this._layout_offset_subnodes_height( - root_layout_data.left_nodes - ); + root_layout_data.outer_height_left = this._layout_offset_subnodes_height(root_layout_data.left_nodes); } } - this.bounds.s = Math.max( - root_layout_data.outer_height_left, - root_layout_data.outer_height_right - ); + this.bounds.s = Math.max(root_layout_data.outer_height_left, root_layout_data.outer_height_right); this.cache_valid = false; } else { logger.warn('can not found root node'); @@ -2577,9 +2517,7 @@ import styles from './index.module.scss'; el.style.display = 'block'; el.style.top = `${node._data.view.abs_y + node._data.view.height / 2 - 12}px`; el.style.left = - direction === -1 - ? `${node._data.view.abs_x - 34}px` - : `${node._data.view.abs_x + node._data.view.width + 5}px`; + direction === -1 ? `${node._data.view.abs_x - 34}px` : `${node._data.view.abs_x + node._data.view.width + 5}px`; }, hideAddHandlerDOMNode: function () { @@ -2684,8 +2622,10 @@ import styles from './index.module.scss'; select_node: function (node) { if (this.selected_node) { - this.selected_node._data.view.element.className = - this.selected_node._data.view.element.className.replace(/\s*selected\b/i, ''); + this.selected_node._data.view.element.className = this.selected_node._data.view.element.className.replace( + /\s*selected\b/i, + '' + ); this.reset_node_custom_style(this.selected_node); } if (node) { @@ -2998,13 +2938,7 @@ import styles from './index.module.scss'; ctx.lineWidth = this.opts.line_width; ctx.lineCap = 'round'; - jm.util.canvas.bezierto( - ctx, - pin.x + offset.x, - pin.y + offset.y, - pout.x + offset.x, - pout.y + offset.y - ); + jm.util.canvas.bezierto(ctx, pin.x + offset.x, pin.y + offset.y, pout.x + offset.x, pout.y + offset.y); }, }; diff --git a/packages/client/src/components/tiptap/wrappers/status/index.module.scss b/packages/client/src/tiptap/wrappers/status/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/status/index.module.scss rename to packages/client/src/tiptap/wrappers/status/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/status/index.tsx b/packages/client/src/tiptap/wrappers/status/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/status/index.tsx rename to packages/client/src/tiptap/wrappers/status/index.tsx diff --git a/packages/client/src/components/tiptap/wrappers/taskItem/index.module.scss b/packages/client/src/tiptap/wrappers/task-item/index.module.scss similarity index 100% rename from packages/client/src/components/tiptap/wrappers/taskItem/index.module.scss rename to packages/client/src/tiptap/wrappers/task-item/index.module.scss diff --git a/packages/client/src/components/tiptap/wrappers/taskItem/index.tsx b/packages/client/src/tiptap/wrappers/task-item/index.tsx similarity index 100% rename from packages/client/src/components/tiptap/wrappers/taskItem/index.tsx rename to packages/client/src/tiptap/wrappers/task-item/index.tsx diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index 029aeb89..a83bfbcc 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -25,7 +25,8 @@ "components/*": ["components/*"], "layout/*": ["layout/*"], "constants/*": ["constants/*"], - "helpers/*": ["helpers/*"] + "helpers/*": ["helpers/*"], + "tiptap/*": ["tiptap/*"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a2618ba9..d3e01787 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,19 +4,8 @@ importers: .: specifiers: - '@typescript-eslint/eslint-plugin': ^5.0.0 - '@typescript-eslint/parser': ^5.0.0 concurrently: ^7.0.0 cross-env: ^7.0.3 - eslint: ^8.11.0 - eslint-config-next: 12.0.10 - eslint-config-prettier: ^8.3.0 - eslint-import-resolver-typescript: ^2.5.0 - eslint-plugin-import: ^2.25.4 - eslint-plugin-jest: ^26.1.1 - eslint-plugin-prettier: ^4.0.0 - eslint-plugin-react: ^7.29.3 - eslint-plugin-react-hooks: ^4.3.0 fs-extra: ^10.0.0 prettier: ^2.3.2 rimraf: ^3.0.2 @@ -34,17 +23,6 @@ importers: fs-extra: 10.0.0 rimraf: 3.0.2 devDependencies: - '@typescript-eslint/eslint-plugin': 5.10.1_8f92d7398e22343c72d5c6104d173a8f - '@typescript-eslint/parser': 5.10.1_eslint@8.11.0+typescript@4.5.5 - eslint: 8.11.0 - eslint-config-next: 12.0.10_eslint@8.11.0+typescript@4.5.5 - eslint-config-prettier: 8.3.0_eslint@8.11.0 - eslint-import-resolver-typescript: 2.5.0_fe22d862ffeecaee86c93a006d59e41e - eslint-plugin-import: 2.25.4_eslint@8.11.0 - eslint-plugin-jest: 26.1.1_4a29411f24b57b6a1b1d61497aa2285b - eslint-plugin-prettier: 4.0.0_e62d464e0d51c042e24f90080a742dd4 - eslint-plugin-react: 7.29.3_eslint@8.11.0 - eslint-plugin-react-hooks: 4.3.0_eslint@8.11.0 prettier: 2.5.1 stylelint: 14.6.1 stylelint-config-css-modules: 4.1.0_stylelint@14.6.1 @@ -728,12 +706,14 @@ packages: dependencies: core-js-pure: 3.20.3 regenerator-runtime: 0.13.9 + dev: false /@babel/runtime/7.16.7: resolution: {integrity: sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.9 + dev: false /@babel/template/7.16.7: resolution: {integrity: sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==} @@ -915,23 +895,6 @@ packages: - supports-color dev: false - /@eslint/eslintrc/1.2.1: - resolution: {integrity: sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - ajv: 6.12.6 - debug: 4.3.3 - espree: 9.3.1 - globals: 13.12.0 - ignore: 5.2.0 - import-fresh: 3.3.0 - js-yaml: 4.1.0 - minimatch: 3.0.4 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - dev: true - /@hocuspocus/common/1.0.0-alpha.4: resolution: {integrity: sha512-LvKj+ASSWnvjFB7n2bl7BUGFKF9XFFP1oA3/XmKl3c7wUIvoN1Ir3sX8XnN6qBA3S2CoruEHHk+KPS6zMSMfHA==} dev: false @@ -978,21 +941,6 @@ packages: - y-protocols dev: false - /@humanwhocodes/config-array/0.9.3: - resolution: {integrity: sha512-3xSMlXHh03hCcCmFc0rbKp3Ivt2PFEJnQUJDDMTJQ2wkECZWdq4GePs2ctc5H8zV+cHPaq8k2vU8mrQjA6iHdQ==} - engines: {node: '>=10.10.0'} - dependencies: - '@humanwhocodes/object-schema': 1.2.1 - debug: 4.3.3 - minimatch: 3.0.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@humanwhocodes/object-schema/1.2.1: - resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} - dev: true - /@interactjs/types/1.10.11: resolution: {integrity: sha512-YRsVFWjL8Gkkvlx3qnjeaxW4fnibSJ9791g8BA7Pv5ANByI64WmtR1vU7A2rXcrOn8XvyCEfY0ss1s8NhZP+MA==} dev: false @@ -1427,12 +1375,6 @@ packages: resolution: {integrity: sha512-mQVj0K6wQ5WEk/sL9SZ+mJXJUaG7el8CpZ6io1uFe9GgNTSC7EgUyNGqM6IQovIFc5ukF4O/hqsdh3S/DCgT2g==} dev: false - /@next/eslint-plugin-next/12.0.10: - resolution: {integrity: sha512-PbGRnV5HGSfRGLjf8uTh1MaWgLwnjKjWiGVjK752ifITJbZ28/5AmLAFT2shDYeux8BHgpgVll5QXu7GN3YLFw==} - dependencies: - glob: 7.1.7 - dev: true - /@next/swc-android-arm64/12.0.10: resolution: {integrity: sha512-xYwXGkNhzZZsM5MD7KRwF5ZNiC8OLPtVMUiagpPnwENg8Hb0GSQo/NbYWXM8YrawEwp9LaZ7OXiuRKPh2JyBdA==} engines: {node: '>= 10'} @@ -1569,10 +1511,6 @@ packages: resolution: {integrity: sha512-92FRmppjjqz29VMJ2dn+xdyXZBrMlE42AV6Kq6BwjWV7CNUW1hs2FtxSNLQE+gJhaZ6AAmYuO9y8dshhcBl7vA==} dev: false - /@rushstack/eslint-patch/1.1.0: - resolution: {integrity: sha512-JLo+Y592QzIE+q7Dl2pMUtt4q8SKYI5jDrZxrozEQxnGVOyYE+GWK9eLkwTaeN9DDctlaRAQ3TBmzZ1qdLE30A==} - dev: true - /@sinonjs/commons/1.8.3: resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==} dependencies: @@ -2290,132 +2228,6 @@ packages: resolution: {integrity: sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==} dev: false - /@typescript-eslint/eslint-plugin/5.10.1_8f92d7398e22343c72d5c6104d173a8f: - resolution: {integrity: sha512-xN3CYqFlyE/qOcy978/L0xLR2HlcAGIyIK5sMOasxaaAPfQRj/MmMV6OC3I7NZO84oEUdWCOju34Z9W8E0pFDQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/parser': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/parser': 5.10.1_eslint@8.11.0+typescript@4.5.5 - '@typescript-eslint/scope-manager': 5.10.1 - '@typescript-eslint/type-utils': 5.10.1_eslint@8.11.0+typescript@4.5.5 - '@typescript-eslint/utils': 5.10.1_eslint@8.11.0+typescript@4.5.5 - debug: 4.3.3 - eslint: 8.11.0 - functional-red-black-tree: 1.0.1 - ignore: 5.2.0 - regexpp: 3.2.0 - semver: 7.3.5 - tsutils: 3.21.0_typescript@4.5.5 - typescript: 4.5.5 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/parser/5.10.1_eslint@8.11.0+typescript@4.5.5: - resolution: {integrity: sha512-GReo3tjNBwR5RnRO0K2wDIDN31cM3MmDtgyQ85oAxAmC5K3j/g85IjP+cDfcqDsDDBf1HNKQAD0WqOYL8jXqUA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/scope-manager': 5.10.1 - '@typescript-eslint/types': 5.10.1 - '@typescript-eslint/typescript-estree': 5.10.1_typescript@4.5.5 - debug: 4.3.3 - eslint: 8.11.0 - typescript: 4.5.5 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/scope-manager/5.10.1: - resolution: {integrity: sha512-Lyvi559Gvpn94k7+ElXNMEnXu/iundV5uFmCUNnftbFrUbAJ1WBoaGgkbOBm07jVZa682oaBU37ao/NGGX4ZDg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.10.1 - '@typescript-eslint/visitor-keys': 5.10.1 - dev: true - - /@typescript-eslint/type-utils/5.10.1_eslint@8.11.0+typescript@4.5.5: - resolution: {integrity: sha512-AfVJkV8uck/UIoDqhu+ptEdBoQATON9GXnhOpPLzkQRJcSChkvD//qsz9JVffl2goxX+ybs5klvacE9vmrQyCw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: '*' - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/utils': 5.10.1_eslint@8.11.0+typescript@4.5.5 - debug: 4.3.3 - eslint: 8.11.0 - tsutils: 3.21.0_typescript@4.5.5 - typescript: 4.5.5 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/types/5.10.1: - resolution: {integrity: sha512-ZvxQ2QMy49bIIBpTqFiOenucqUyjTQ0WNLhBM6X1fh1NNlYAC6Kxsx8bRTY3jdYsYg44a0Z/uEgQkohbR0H87Q==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - - /@typescript-eslint/typescript-estree/5.10.1_typescript@4.5.5: - resolution: {integrity: sha512-PwIGnH7jIueXv4opcwEbVGDATjGPO1dx9RkUl5LlHDSe+FXxPwFL5W/qYd5/NHr7f6lo/vvTrAzd0KlQtRusJQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 5.10.1 - '@typescript-eslint/visitor-keys': 5.10.1 - debug: 4.3.3 - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.3.5 - tsutils: 3.21.0_typescript@4.5.5 - typescript: 4.5.5 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/utils/5.10.1_eslint@8.11.0+typescript@4.5.5: - resolution: {integrity: sha512-RRmlITiUbLuTRtn/gcPRi4202niF+q7ylFLCKu4c+O/PcpRvZ/nAUwQ2G00bZgpWkhrNLNnvhZLbDn8Ml0qsQw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - dependencies: - '@types/json-schema': 7.0.9 - '@typescript-eslint/scope-manager': 5.10.1 - '@typescript-eslint/types': 5.10.1 - '@typescript-eslint/typescript-estree': 5.10.1_typescript@4.5.5 - eslint: 8.11.0 - eslint-scope: 5.1.1 - eslint-utils: 3.0.0_eslint@8.11.0 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - - /@typescript-eslint/visitor-keys/5.10.1: - resolution: {integrity: sha512-NjQ0Xinhy9IL979tpoTRuLKxMc0zJC7QVSdeerXs2/QvOy2yRkzX5dRb10X5woNUdJgU8G3nYRDlI33sq1K4YQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.10.1 - eslint-visitor-keys: 3.3.0 - dev: true - /@webassemblyjs/ast/1.11.1: resolution: {integrity: sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==} dependencies: @@ -2557,14 +2369,6 @@ packages: acorn: 8.7.0 dev: true - /acorn-jsx/5.3.2_acorn@8.7.0: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - dependencies: - acorn: 8.7.0 - dev: true - /acorn-walk/7.2.0: resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} engines: {node: '>=0.4.0'} @@ -2748,53 +2552,17 @@ packages: /argparse/2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - /aria-query/4.2.2: - resolution: {integrity: sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==} - engines: {node: '>=6.0'} - dependencies: - '@babel/runtime': 7.16.7 - '@babel/runtime-corejs3': 7.16.8 - dev: true + dev: false /array-flatten/1.1.1: resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} dev: false - /array-includes/3.1.4: - resolution: {integrity: sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - get-intrinsic: 1.1.1 - is-string: 1.0.7 - dev: true - /array-union/2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} dev: true - /array.prototype.flat/1.2.5: - resolution: {integrity: sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - dev: true - - /array.prototype.flatmap/1.2.5: - resolution: {integrity: sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - dev: true - /arrify/1.0.1: resolution: {integrity: sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=} engines: {node: '>=0.10.0'} @@ -2804,10 +2572,6 @@ packages: resolution: {integrity: sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=} dev: true - /ast-types-flow/0.0.7: - resolution: {integrity: sha1-9wtzXGvKGlycItmCw+Oef+ujva0=} - dev: true - /ast-types/0.13.4: resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} engines: {node: '>=4'} @@ -2842,11 +2606,6 @@ packages: engines: {node: '>= 0.4'} dev: false - /axe-core/4.4.0: - resolution: {integrity: sha512-btWy2rze3NnxSSxb7LtNhPYYFrRoFBfjiGzmSc/5Hu47wApO2KNXjP/w7Nv2Uz/Fyr/pfEiwOkcXhDxu0jz5FA==} - engines: {node: '>=4'} - dev: true - /axios/0.24.0: resolution: {integrity: sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==} dependencies: @@ -2863,10 +2622,6 @@ packages: - debug dev: false - /axobject-query/2.2.0: - resolution: {integrity: sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==} - dev: true - /babel-jest/27.4.6_@babel+core@7.16.12: resolution: {integrity: sha512-qZL0JT0HS1L+lOuH+xC2DVASR3nunZi/ozGhpgauJHgmI7f8rudxf6hUjEHympdQ/J64CdKmPkgfJ+A3U6QCrg==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} @@ -3396,6 +3151,7 @@ packages: /core-js-pure/3.20.3: resolution: {integrity: sha512-Q2H6tQ5MtPtcC7f3HxJ48i4Q7T9ybPKgvWyuH7JXIoNa2pm0KuBnycsET/qw1SLLZYfbsbrZQNMeIOClb+6WIA==} requiresBuild: true + dev: false /core-util-is/1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} @@ -3499,10 +3255,6 @@ packages: /csstype/3.0.10: resolution: {integrity: sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==} - /damerau-levenshtein/1.0.8: - resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} - dev: true - /data-uri-to-buffer/3.0.1: resolution: {integrity: sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==} engines: {node: '>= 6'} @@ -3538,12 +3290,7 @@ packages: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} dependencies: ms: 2.0.0 - - /debug/3.2.7: - resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} - dependencies: - ms: 2.1.3 - dev: true + dev: false /debug/4.3.3: resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==} @@ -3635,6 +3382,7 @@ packages: engines: {node: '>= 0.4'} dependencies: object-keys: 1.1.1 + dev: false /degenerator/3.0.1: resolution: {integrity: sha512-LFsIFEeLPlKvAKXu7j3ssIG6RT0TbI7/GhsqrI0DnHASEQjXQ0LUSYcjJteGgRGmZbl1TnMSxpNQIAiJ7Du5TQ==} @@ -3709,20 +3457,6 @@ packages: path-type: 4.0.0 dev: true - /doctrine/2.1.0: - resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} - engines: {node: '>=0.10.0'} - dependencies: - esutils: 2.0.3 - dev: true - - /doctrine/3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} - dependencies: - esutils: 2.0.3 - dev: true - /domexception/2.0.1: resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} engines: {node: '>=8'} @@ -3770,10 +3504,6 @@ packages: /emoji-regex/8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - /emoji-regex/9.2.2: - resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - dev: true - /emojis-list/3.0.0: resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} engines: {node: '>= 4'} @@ -3835,6 +3565,7 @@ packages: string.prototype.trimend: 1.0.4 string.prototype.trimstart: 1.0.4 unbox-primitive: 1.0.1 + dev: false /es-get-iterator/1.1.2: resolution: {integrity: sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==} @@ -3860,6 +3591,7 @@ packages: is-callable: 1.2.4 is-date-object: 1.0.5 is-symbol: 1.0.4 + dev: false /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -3878,11 +3610,6 @@ packages: engines: {node: '>=8'} dev: true - /escape-string-regexp/4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - dev: true - /escodegen/1.14.3: resolution: {integrity: sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==} engines: {node: '>=4.0'} @@ -3909,186 +3636,6 @@ packages: source-map: 0.6.1 dev: true - /eslint-config-next/12.0.10_eslint@8.11.0+typescript@4.5.5: - resolution: {integrity: sha512-l1er6mwSo1bltjLwmd71p5BdT6k/NQxV1n4lKZI6xt3MDMrq7ChUBr+EecxOry8GC/rCRUtPpH8Ygs0BJc5YLg==} - peerDependencies: - eslint: ^7.23.0 || ^8.0.0 - next: '>=10.2.0' - typescript: '>=3.3.1' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@next/eslint-plugin-next': 12.0.10 - '@rushstack/eslint-patch': 1.1.0 - '@typescript-eslint/parser': 5.10.1_eslint@8.11.0+typescript@4.5.5 - eslint: 8.11.0 - eslint-import-resolver-node: 0.3.6 - eslint-import-resolver-typescript: 2.5.0_fe22d862ffeecaee86c93a006d59e41e - eslint-plugin-import: 2.25.4_eslint@8.11.0 - eslint-plugin-jsx-a11y: 6.5.1_eslint@8.11.0 - eslint-plugin-react: 7.29.3_eslint@8.11.0 - eslint-plugin-react-hooks: 4.3.0_eslint@8.11.0 - typescript: 4.5.5 - transitivePeerDependencies: - - supports-color - dev: true - - /eslint-config-prettier/8.3.0_eslint@8.11.0: - resolution: {integrity: sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - dependencies: - eslint: 8.11.0 - dev: true - - /eslint-import-resolver-node/0.3.6: - resolution: {integrity: sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==} - dependencies: - debug: 3.2.7 - resolve: 1.22.0 - dev: true - - /eslint-import-resolver-typescript/2.5.0_fe22d862ffeecaee86c93a006d59e41e: - resolution: {integrity: sha512-qZ6e5CFr+I7K4VVhQu3M/9xGv9/YmwsEXrsm3nimw8vWaVHRDrQRp26BgCypTxBp3vUp4o5aVEJRiy0F2DFddQ==} - engines: {node: '>=4'} - peerDependencies: - eslint: '*' - eslint-plugin-import: '*' - dependencies: - debug: 4.3.3 - eslint: 8.11.0 - eslint-plugin-import: 2.25.4_eslint@8.11.0 - glob: 7.2.0 - is-glob: 4.0.3 - resolve: 1.22.0 - tsconfig-paths: 3.12.0 - transitivePeerDependencies: - - supports-color - dev: true - - /eslint-module-utils/2.7.3: - resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==} - engines: {node: '>=4'} - dependencies: - debug: 3.2.7 - find-up: 2.1.0 - dev: true - - /eslint-plugin-import/2.25.4_eslint@8.11.0: - resolution: {integrity: sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==} - engines: {node: '>=4'} - peerDependencies: - eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - dependencies: - array-includes: 3.1.4 - array.prototype.flat: 1.2.5 - debug: 2.6.9 - doctrine: 2.1.0 - eslint: 8.11.0 - eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.3 - has: 1.0.3 - is-core-module: 2.8.1 - is-glob: 4.0.3 - minimatch: 3.0.4 - object.values: 1.1.5 - resolve: 1.22.0 - tsconfig-paths: 3.12.0 - dev: true - - /eslint-plugin-jest/26.1.1_4a29411f24b57b6a1b1d61497aa2285b: - resolution: {integrity: sha512-HRKOuPi5ADhza4ZBK5ufyNXy28bXXkib87w+pQqdvBhSTsamndh6sIAKPAUl8y0/n9jSWBdTPslrwtKWqkp8dA==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/eslint-plugin': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - jest: '*' - peerDependenciesMeta: - '@typescript-eslint/eslint-plugin': - optional: true - jest: - optional: true - dependencies: - '@typescript-eslint/eslint-plugin': 5.10.1_8f92d7398e22343c72d5c6104d173a8f - '@typescript-eslint/utils': 5.10.1_eslint@8.11.0+typescript@4.5.5 - eslint: 8.11.0 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - - /eslint-plugin-jsx-a11y/6.5.1_eslint@8.11.0: - resolution: {integrity: sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g==} - engines: {node: '>=4.0'} - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - dependencies: - '@babel/runtime': 7.16.7 - aria-query: 4.2.2 - array-includes: 3.1.4 - ast-types-flow: 0.0.7 - axe-core: 4.4.0 - axobject-query: 2.2.0 - damerau-levenshtein: 1.0.8 - emoji-regex: 9.2.2 - eslint: 8.11.0 - has: 1.0.3 - jsx-ast-utils: 3.2.1 - language-tags: 1.0.5 - minimatch: 3.0.4 - dev: true - - /eslint-plugin-prettier/4.0.0_e62d464e0d51c042e24f90080a742dd4: - resolution: {integrity: sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==} - engines: {node: '>=6.0.0'} - peerDependencies: - eslint: '>=7.28.0' - eslint-config-prettier: '*' - prettier: '>=2.0.0' - peerDependenciesMeta: - eslint-config-prettier: - optional: true - dependencies: - eslint: 8.11.0 - eslint-config-prettier: 8.3.0_eslint@8.11.0 - prettier: 2.5.1 - prettier-linter-helpers: 1.0.0 - dev: true - - /eslint-plugin-react-hooks/4.3.0_eslint@8.11.0: - resolution: {integrity: sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==} - engines: {node: '>=10'} - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - dependencies: - eslint: 8.11.0 - dev: true - - /eslint-plugin-react/7.29.3_eslint@8.11.0: - resolution: {integrity: sha512-MzW6TuCnDOcta67CkpDyRfRsEVx9FNMDV8wZsDqe1luHPdGTrQIUaUXD27Ja3gHsdOIs/cXzNchWGlqm+qRVRg==} - engines: {node: '>=4'} - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - dependencies: - array-includes: 3.1.4 - array.prototype.flatmap: 1.2.5 - doctrine: 2.1.0 - eslint: 8.11.0 - estraverse: 5.3.0 - jsx-ast-utils: 3.2.1 - minimatch: 3.1.2 - object.entries: 1.1.5 - object.fromentries: 2.0.5 - object.hasown: 1.1.0 - object.values: 1.1.5 - prop-types: 15.8.1 - resolve: 2.0.0-next.3 - semver: 6.3.0 - string.prototype.matchall: 4.0.6 - dev: true - /eslint-scope/5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} engines: {node: '>=8.0.0'} @@ -4097,99 +3644,11 @@ packages: estraverse: 4.3.0 dev: true - /eslint-scope/7.1.1: - resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - dev: true - - /eslint-utils/3.0.0_eslint@8.11.0: - resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} - engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} - peerDependencies: - eslint: '>=5' - dependencies: - eslint: 8.11.0 - eslint-visitor-keys: 2.1.0 - dev: true - - /eslint-visitor-keys/2.1.0: - resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} - engines: {node: '>=10'} - dev: true - - /eslint-visitor-keys/3.3.0: - resolution: {integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - - /eslint/8.11.0: - resolution: {integrity: sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - hasBin: true - dependencies: - '@eslint/eslintrc': 1.2.1 - '@humanwhocodes/config-array': 0.9.3 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.3 - doctrine: 3.0.0 - escape-string-regexp: 4.0.0 - eslint-scope: 7.1.1 - eslint-utils: 3.0.0_eslint@8.11.0 - eslint-visitor-keys: 3.3.0 - espree: 9.3.1 - esquery: 1.4.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 - functional-red-black-tree: 1.0.1 - glob-parent: 6.0.2 - globals: 13.12.0 - ignore: 5.2.0 - import-fresh: 3.3.0 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - js-yaml: 4.1.0 - json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 - lodash.merge: 4.6.2 - minimatch: 3.0.4 - natural-compare: 1.4.0 - optionator: 0.9.1 - regexpp: 3.2.0 - strip-ansi: 6.0.1 - strip-json-comments: 3.1.1 - text-table: 0.2.0 - v8-compile-cache: 2.3.0 - transitivePeerDependencies: - - supports-color - dev: true - - /espree/9.3.1: - resolution: {integrity: sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - acorn: 8.7.0 - acorn-jsx: 5.3.2_acorn@8.7.0 - eslint-visitor-keys: 3.3.0 - dev: true - /esprima/4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} hasBin: true - /esquery/1.4.0: - resolution: {integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==} - engines: {node: '>=0.10'} - dependencies: - estraverse: 5.3.0 - dev: true - /esrecurse/4.3.0: resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} engines: {node: '>=4.0'} @@ -4426,13 +3885,6 @@ packages: unpipe: 1.0.0 dev: false - /find-up/2.1.0: - resolution: {integrity: sha1-RdG35QbHF93UgndaK3eSCjwMV6c=} - engines: {node: '>=4'} - dependencies: - locate-path: 2.0.0 - dev: true - /find-up/4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} @@ -4600,10 +4052,6 @@ packages: /function-bind/1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} - /functional-red-black-tree/1.0.1: - resolution: {integrity: sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=} - dev: true - /generate-function/2.3.1: resolution: {integrity: sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==} dependencies: @@ -4658,6 +4106,7 @@ packages: dependencies: call-bind: 1.0.2 get-intrinsic: 1.1.1 + dev: false /get-uri/3.0.2: resolution: {integrity: sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg==} @@ -4679,28 +4128,10 @@ packages: dependencies: is-glob: 4.0.3 - /glob-parent/6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - dependencies: - is-glob: 4.0.3 - dev: true - /glob-to-regexp/0.4.1: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} dev: true - /glob/7.1.7: - resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: true - /glob/7.2.0: resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} dependencies: @@ -4731,13 +4162,6 @@ packages: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} - /globals/13.12.0: - resolution: {integrity: sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==} - engines: {node: '>=8'} - dependencies: - type-fest: 0.20.2 - dev: true - /globby/11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} @@ -4764,6 +4188,7 @@ packages: /has-bigints/1.0.1: resolution: {integrity: sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==} + dev: false /has-flag/3.0.0: resolution: {integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0=} @@ -4782,6 +4207,7 @@ packages: engines: {node: '>= 0.4'} dependencies: has-symbols: 1.0.2 + dev: false /has/1.0.3: resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} @@ -5006,6 +4432,7 @@ packages: get-intrinsic: 1.1.1 has: 1.0.3 side-channel: 1.0.4 + dev: false /interpret/1.4.0: resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} @@ -5043,6 +4470,7 @@ packages: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} dependencies: has-bigints: 1.0.1 + dev: false /is-binary-path/2.1.0: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} @@ -5056,10 +4484,12 @@ packages: dependencies: call-bind: 1.0.2 has-tostringtag: 1.0.0 + dev: false /is-callable/1.2.4: resolution: {integrity: sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==} engines: {node: '>= 0.4'} + dev: false /is-class-hotfix/0.0.6: resolution: {integrity: sha512-0n+pzCC6ICtVr/WXnN2f03TK/3BfXY7me4cjCAqT8TYXEl0+JBRoqBo94JJHXcyDSLUeWbNX8Fvy5g5RJdAstQ==} @@ -5076,6 +4506,7 @@ packages: engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.0 + dev: false /is-extendable/0.1.1: resolution: {integrity: sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=} @@ -5113,12 +4544,14 @@ packages: /is-negative-zero/2.0.2: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} engines: {node: '>= 0.4'} + dev: false /is-number-object/1.0.6: resolution: {integrity: sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==} engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.0 + dev: false /is-number/7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} @@ -5148,6 +4581,7 @@ packages: dependencies: call-bind: 1.0.2 has-tostringtag: 1.0.0 + dev: false /is-regexp/2.1.0: resolution: {integrity: sha512-OZ4IlER3zmRIoB9AqNhEggVxqIH4ofDns5nRrPS6yQxXE1TPCUpFznBfRQmQa8uC+pXqjMnukiJBxCisIxiLGA==} @@ -5160,6 +4594,7 @@ packages: /is-shared-array-buffer/1.0.1: resolution: {integrity: sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==} + dev: false /is-stream/2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} @@ -5171,12 +4606,14 @@ packages: engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.0 + dev: false /is-symbol/1.0.4: resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} engines: {node: '>= 0.4'} dependencies: has-symbols: 1.0.2 + dev: false /is-type-of/1.2.1: resolution: {integrity: sha512-uK0kyX9LZYhSDS7H2sVJQJop1UnWPWmo5RvR3q2kFH6AUHYs7sOrVg0b4nyBHw29kRRNFofYN/JbHZDlHiItTA==} @@ -5214,6 +4651,7 @@ packages: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: call-bind: 1.0.2 + dev: false /is-weakset/2.0.2: resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} @@ -5782,6 +5220,7 @@ packages: hasBin: true dependencies: argparse: 2.0.1 + dev: false /jsdom/16.7.0: resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} @@ -5845,10 +5284,6 @@ packages: resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} dev: true - /json-stable-stringify-without-jsonify/1.0.1: - resolution: {integrity: sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=} - dev: true - /json5/1.0.1: resolution: {integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==} hasBin: true @@ -5901,14 +5336,6 @@ packages: engines: {node: '>=0.2.0'} dev: false - /jsx-ast-utils/3.2.1: - resolution: {integrity: sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA==} - engines: {node: '>=4.0'} - dependencies: - array-includes: 3.1.4 - object.assign: 4.1.2 - dev: true - /jwa/1.4.1: resolution: {integrity: sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==} dependencies: @@ -5961,16 +5388,6 @@ packages: ms: 2.1.3 dev: false - /language-subtag-registry/0.3.21: - resolution: {integrity: sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg==} - dev: true - - /language-tags/1.0.5: - resolution: {integrity: sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=} - dependencies: - language-subtag-registry: 0.3.21 - dev: true - /leven/3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} @@ -5983,14 +5400,6 @@ packages: prelude-ls: 1.1.2 type-check: 0.3.2 - /levn/0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - dev: true - /lib0/0.2.43: resolution: {integrity: sha512-MJ1KLoz5p3gljIUBfdjjNuL/wlWHHK6+DrcIRhzSRLvtAu1XNdRtRGATYM51KSTI0P2nxJZFQM8rwCH6ga9KUw==} engines: {node: '>=12'} @@ -6037,14 +5446,6 @@ packages: json5: 2.2.0 dev: false - /locate-path/2.0.0: - resolution: {integrity: sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=} - engines: {node: '>=4'} - dependencies: - p-locate: 2.0.0 - path-exists: 3.0.0 - dev: true - /locate-path/5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -6080,10 +5481,6 @@ packages: resolution: {integrity: sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=} dev: true - /lodash.merge/4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - dev: true - /lodash.once/4.1.1: resolution: {integrity: sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=} dev: false @@ -6112,6 +5509,7 @@ packages: hasBin: true dependencies: js-tokens: 4.0.0 + dev: false /lowlight/1.20.0: resolution: {integrity: sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==} @@ -6324,12 +5722,6 @@ packages: dependencies: brace-expansion: 1.1.11 - /minimatch/3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - dependencies: - brace-expansion: 1.1.11 - dev: true - /minimist-options/4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -6357,12 +5749,14 @@ packages: /ms/2.0.0: resolution: {integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=} + dev: false /ms/2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} /ms/2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + dev: false /multer/1.4.4: resolution: {integrity: sha512-2wY2+xD4udX612aMqMcB8Ws2Voq6NIUPEtD1be6m411T4uDH/VtL9i//xvcyFlTVfRdaBsk7hV5tgrGQqhuBiw==} @@ -6565,6 +5959,7 @@ packages: /object-assign/4.1.1: resolution: {integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=} engines: {node: '>=0.10.0'} + dev: false /object-hash/2.2.0: resolution: {integrity: sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==} @@ -6585,6 +5980,7 @@ packages: /object-keys/1.1.1: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} + dev: false /object.assign/4.1.2: resolution: {integrity: sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==} @@ -6594,40 +5990,7 @@ packages: define-properties: 1.1.3 has-symbols: 1.0.2 object-keys: 1.1.1 - - /object.entries/1.1.5: - resolution: {integrity: sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - dev: true - - /object.fromentries/2.0.5: - resolution: {integrity: sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - dev: true - - /object.hasown/1.1.0: - resolution: {integrity: sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==} - dependencies: - define-properties: 1.1.3 - es-abstract: 1.19.1 - dev: true - - /object.values/1.1.5: - resolution: {integrity: sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - dev: true + dev: false /on-finished/2.3.0: resolution: {integrity: sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=} @@ -6663,18 +6026,6 @@ packages: type-check: 0.3.2 word-wrap: 1.2.3 - /optionator/0.9.1: - resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} - engines: {node: '>= 0.8.0'} - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.3 - dev: true - /ora/5.4.1: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} engines: {node: '>=10'} @@ -6724,13 +6075,6 @@ packages: minimist: 1.2.5 dev: false - /p-limit/1.3.0: - resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} - engines: {node: '>=4'} - dependencies: - p-try: 1.0.0 - dev: true - /p-limit/2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -6738,13 +6082,6 @@ packages: p-try: 2.2.0 dev: true - /p-locate/2.0.0: - resolution: {integrity: sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=} - engines: {node: '>=4'} - dependencies: - p-limit: 1.3.0 - dev: true - /p-locate/4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} @@ -6752,11 +6089,6 @@ packages: p-limit: 2.3.0 dev: true - /p-try/1.0.0: - resolution: {integrity: sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=} - engines: {node: '>=4'} - dev: true - /p-try/2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} @@ -6843,11 +6175,6 @@ packages: pause: 0.0.1 dev: false - /path-exists/3.0.0: - resolution: {integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=} - engines: {node: '>=4'} - dev: true - /path-exists/4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -7024,11 +6351,6 @@ packages: resolution: {integrity: sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=} engines: {node: '>= 0.8.0'} - /prelude-ls/1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - dev: true - /prettier-linter-helpers/1.0.0: resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} engines: {node: '>=6.0.0'} @@ -7069,6 +6391,7 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 react-is: 16.13.1 + dev: false /prosemirror-commands/1.2.1: resolution: {integrity: sha512-S/IkpXfpuLFsRynC2HQ5iYROUPiZskKS1+ClcWycGJvj4HMb/mVfeEkQrixYxgTl96EAh+RZQNWPC06GZXk5tQ==} @@ -7304,6 +6627,7 @@ packages: /react-is/16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + dev: false /react-is/17.0.2: resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} @@ -7462,6 +6786,7 @@ packages: /regenerator-runtime/0.13.9: resolution: {integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==} + dev: false /regexp.prototype.flags/1.4.1: resolution: {integrity: sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==} @@ -7469,11 +6794,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.3 - - /regexpp/3.2.0: - resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} - engines: {node: '>=8'} - dev: true + dev: false /require-directory/2.1.1: resolution: {integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=} @@ -7519,13 +6840,6 @@ packages: supports-preserve-symlinks-flag: 1.0.0 dev: true - /resolve/2.0.0-next.3: - resolution: {integrity: sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==} - dependencies: - is-core-module: 2.8.1 - path-parse: 1.0.7 - dev: true - /restore-cursor/3.1.0: resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} engines: {node: '>=8'} @@ -7940,30 +7254,19 @@ packages: is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 - /string.prototype.matchall/4.0.6: - resolution: {integrity: sha512-6WgDX8HmQqvEd7J+G6VtAahhsQIssiZ8zl7zKh1VDMFyL3hRTJP4FTNA3RbIp2TOQ9AYNDcc7e3fH0Qbup+DBg==} - dependencies: - call-bind: 1.0.2 - define-properties: 1.1.3 - es-abstract: 1.19.1 - get-intrinsic: 1.1.1 - has-symbols: 1.0.2 - internal-slot: 1.0.3 - regexp.prototype.flags: 1.4.1 - side-channel: 1.0.4 - dev: true - /string.prototype.trimend/1.0.4: resolution: {integrity: sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==} dependencies: call-bind: 1.0.2 define-properties: 1.1.3 + dev: false /string.prototype.trimstart/1.0.4: resolution: {integrity: sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==} dependencies: call-bind: 1.0.2 define-properties: 1.1.3 + dev: false /string_decoder/0.10.31: resolution: {integrity: sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=} @@ -8009,11 +7312,6 @@ packages: min-indent: 1.0.1 dev: true - /strip-json-comments/3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - dev: true - /style-loader/1.3.0: resolution: {integrity: sha512-V7TCORko8rs9rIqkSrlMfkqA63DfoGBBJmK1kKGCcSi+BWb4cqz0SRsnp4l6rU5iwOEd0/2ePv68SV22VXon4Q==} engines: {node: '>= 8.9.0'} @@ -8368,10 +7666,6 @@ packages: minimatch: 3.0.4 dev: true - /text-table/0.2.0: - resolution: {integrity: sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=} - dev: true - /thenify-all/1.6.0: resolution: {integrity: sha1-GhkY1ALY/D+Y+/I02wvMjMEOlyY=} engines: {node: '>=0.8'} @@ -8562,29 +7856,12 @@ packages: /tslib/2.3.1: resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==} - /tsutils/3.21.0_typescript@4.5.5: - resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} - engines: {node: '>= 6'} - peerDependencies: - typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' - dependencies: - tslib: 1.14.1 - typescript: 4.5.5 - dev: true - /type-check/0.3.2: resolution: {integrity: sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=} engines: {node: '>= 0.8.0'} dependencies: prelude-ls: 1.1.2 - /type-check/0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.2.1 - dev: true - /type-detect/4.0.8: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} engines: {node: '>=4'} @@ -8595,11 +7872,6 @@ packages: engines: {node: '>=10'} dev: true - /type-fest/0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} - engines: {node: '>=10'} - dev: true - /type-fest/0.21.3: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} @@ -8732,6 +8004,7 @@ packages: has-bigints: 1.0.1 has-symbols: 1.0.2 which-boxed-primitive: 1.0.2 + dev: false /unescape/1.0.1: resolution: {integrity: sha512-O0+af1Gs50lyH1nUu3ZyYS1cRh01Q/kUKatTOkSs7jukXE6/NebucDVxyiDsA9AQ4JC1V1jUH9EO8JX2nMDgGQ==} @@ -9001,6 +8274,7 @@ packages: is-number-object: 1.0.6 is-string: 1.0.7 is-symbol: 1.0.4 + dev: false /which-collection/1.0.1: resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..7f88c682 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": false, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "downlevelIteration": true + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +}