File tree 11 files changed +2426
-2243
lines changed
11 files changed +2426
-2243
lines changed Original file line number Diff line number Diff line change 1
1
import { FC , useEffect , useState } from 'react' ;
2
2
import { use100vh } from 'react-div-100vh' ;
3
- import MarkdownEditor , { Props } from 'rich-markdown-editor' ;
3
+ import MarkdownEditor , { Props } from '@notea/ rich-markdown-editor' ;
4
4
import { useEditorTheme } from './theme' ;
5
5
import useMounted from 'libs/web/hooks/use-mounted' ;
6
6
import Tooltip from './tooltip' ;
Original file line number Diff line number Diff line change 1
1
import CsrfTokenState from 'libs/web/state/csrf-token' ;
2
2
import { useCallback } from 'react' ;
3
- import { Props } from 'rich-markdown-editor' ;
3
+ import { Props } from '@notea/ rich-markdown-editor' ;
4
4
import { Bookmark } from './bookmark' ;
5
5
import { Embed } from './embed' ;
6
6
import { ReactComponentLike } from 'prop-types' ;
Original file line number Diff line number Diff line change 1
1
import { InputRule } from 'prosemirror-inputrules' ;
2
- import Mark from 'rich-markdown-editor/dist/marks/Mark' ;
2
+ import Mark from '@notea/ rich-markdown-editor/dist/marks/Mark' ;
3
3
4
4
export default class Bracket extends Mark {
5
5
get name ( ) {
Original file line number Diff line number Diff line change 1
- import { Extension } from 'rich-markdown-editor' ;
1
+ import { Extension } from '@notea/ rich-markdown-editor' ;
2
2
import Bracket from './bracket' ;
3
3
4
4
const extensions : Extension [ ] = [ new Bracket ( ) ] ;
Original file line number Diff line number Diff line change 1
1
import { useTheme } from 'next-themes' ;
2
- import { theme } from 'rich-markdown-editor' ;
3
- import { light , dark } from 'rich-markdown-editor/dist/theme' ;
2
+ import { theme } from '@notea/ rich-markdown-editor' ;
3
+ import { light , dark } from '@notea/ rich-markdown-editor/dist/styles /theme' ;
4
4
5
5
export const darkTheme : typeof theme = {
6
6
...dark ,
Original file line number Diff line number Diff line change 1
- import RichMarkdownEditor from 'rich-markdown-editor' ;
1
+ import RichMarkdownEditor from '@notea/ rich-markdown-editor' ;
2
2
3
3
type Node = RichMarkdownEditor [ 'view' ] [ 'state' ] [ 'doc' ] ;
4
4
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import PortalState from 'libs/web/state/portal';
15
15
import { NoteCacheItem } from 'libs/web/cache' ;
16
16
import noteCache from 'libs/web/cache/note' ;
17
17
import { createContainer } from 'unstated-next' ;
18
- import MarkdownEditor from 'rich-markdown-editor' ;
18
+ import MarkdownEditor from '@notea/ rich-markdown-editor' ;
19
19
import { useDebouncedCallback } from 'use-debounce' ;
20
20
import { ROOT_ID } from 'libs/shared/tree' ;
21
21
import { has } from 'lodash' ;
Original file line number Diff line number Diff line change 1
1
import { NoteModel } from 'libs/shared/note' ;
2
2
import { useState , useCallback } from 'react' ;
3
- import RichMarkdownEditor from 'rich-markdown-editor' ;
3
+ import RichMarkdownEditor from '@notea/ rich-markdown-editor' ;
4
4
import { createContainer } from 'unstated-next' ;
5
5
6
6
const useModalInstance = ( ) => {
Original file line number Diff line number Diff line change 1
1
const nextPWA = require ( 'next-pwa' ) ;
2
2
const cache = require ( './scripts/cache' ) ;
3
3
4
+ const developmentEnv = process . env . NODE_ENV === 'development' ;
4
5
const withPWA = nextPWA ( {
5
6
// target: process.env.NETLIFY ? 'serverless' : 'server',
6
7
// mode: process.env.NODE_ENV ?? 'development',
7
- disable : process . env . NODE_ENV === 'development' ,
8
+ disable : developmentEnv ,
8
9
dest : 'public' ,
9
10
runtimeCaching : cache ,
10
11
} ) ;
Original file line number Diff line number Diff line change 30
30
]
31
31
},
32
32
"dependencies" : {
33
- "@atlaskit/tree" : " ^8.3.0 " ,
33
+ "@atlaskit/tree" : " ^8.6.3 " ,
34
34
"@aws-sdk/client-s3" : " ^3.10.0" ,
35
35
"@aws-sdk/s3-request-presigner" : " ^3.10.0" ,
36
36
"@fontsource/noto-sans" : " ^4.5.10" ,
50
50
"localforage" : " ^1.9.0" ,
51
51
"lodash" : " ^4.17.21" ,
52
52
"lzutf8" : " ^0.6.0" ,
53
- "markdown-link-extractor" : " ^1.3.0 " ,
53
+ "markdown-link-extractor" : " ^4.0.1 " ,
54
54
"md5" : " ^2.3.0" ,
55
55
"minio" : " ^7.0.18" ,
56
56
"nanoid" : " ^3.1.22" ,
71
71
"react-split" : " ^2.0.9" ,
72
72
"refractor" : " ^3.4.0" ,
73
73
"remove-markdown" : " ^0.3.0" ,
74
- "rich-markdown-editor" : " 11.17.4- 0" ,
74
+ "@notea/ rich-markdown-editor" : " 11.22. 0" ,
75
75
"rosetta" : " ^1.1.0" ,
76
76
"styled-components" : " ^5.2.1" ,
77
77
"ua-parser-js" : " ^0.7.24" ,
124
124
"resolutions" : {
125
125
"lodash" : " ^4.17.21" ,
126
126
"refractor" : " ^3.4.0" ,
127
- "prosemirror-model " : " 1.9.1 " ,
128
- "@types/react " : " 17.0.39 "
127
+ "@types/react " : " 17.0.39 " ,
128
+ "prosemirror-model " : " 1.16.1 "
129
129
},
130
130
"license" : " MIT"
131
131
}
You can’t perform that action at this time.
0 commit comments