File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 147147 },
148148 "peerDependencies" : {
149149 "@floating-ui/dom" : " ^1.7.0" ,
150+ "react" : " >=16.8.0" ,
150151 "tippy.js" : " ^6.3.7" ,
151152 "y-prosemirror" : " catalog:" ,
152153 "yjs" : " catalog:"
153154 },
155+ "peerDependenciesMeta" : {
156+ "react" : {
157+ "optional" : true
158+ }
159+ },
154160 "devDependencies" : {
155161 "@floating-ui/dom" : " catalog:" ,
156162 "@types/mdast" : " catalog:" ,
162168 "postcss-nested" : " catalog:" ,
163169 "postcss-nested-import" : " catalog:" ,
164170 "prosemirror-test-builder" : " catalog:" ,
171+ "react" : " catalog:" ,
165172 "tippy.js" : " catalog:" ,
166173 "typescript" : " catalog:" ,
167174 "vite" : " catalog:" ,
Original file line number Diff line number Diff line change @@ -112,11 +112,14 @@ export default defineConfig(({ mode }) => {
112112 } ,
113113 rollupOptions : {
114114 external : [
115+ 'react' ,
115116 'vue' ,
116117 'yjs' ,
117118 'y-protocols' ,
118119 ] ,
119120 input : {
121+ 'headless-toolbar-react' : 'src/headless-toolbar/react.ts' ,
122+ 'headless-toolbar-vue' : 'src/headless-toolbar/vue.ts' ,
120123 'super-editor' : 'src/index.ts' ,
121124 'types' : 'src/types.ts' ,
122125 'editor' : '@core/Editor' ,
Original file line number Diff line number Diff line change 120120 "prosemirror-state" : " ^1.4.0" ,
121121 "prosemirror-transform" : " ^1.9.0" ,
122122 "prosemirror-view" : " ^1.33.0" ,
123+ "react" : " >=16.8.0" ,
123124 "y-prosemirror" : " catalog:" ,
124125 "yjs" : " catalog:"
125126 },
138139 },
139140 "prosemirror-view" : {
140141 "optional" : true
142+ },
143+ "react" : {
144+ "optional" : true
141145 }
142146 },
143147 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments