File tree 5 files changed +15
-8
lines changed
5 files changed +15
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @editorjs/inline-code" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.4.0 " ,
4
4
"keywords" : [
5
5
" codex editor" ,
6
6
" inline" ,
30
30
"style-loader" : " ^0.21.0" ,
31
31
"webpack" : " ^4.29.5" ,
32
32
"webpack-cli" : " ^3.2.3"
33
+ },
34
+ "dependencies" : {
35
+ "@codexteam/icons" : " ^0.0.5"
33
36
}
34
37
}
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Build styles
3
3
*/
4
- require ( './index.css' ) . toString ( ) ;
4
+ import './index.css' ;
5
+ import { IconInlineCode } from '@codexteam/icons'
5
6
6
7
/**
7
8
* Inline Code Tool for the Editor.js
8
9
*
9
10
* Allows to wrap inline fragment and style it somehow.
10
11
*/
11
- class InlineCode {
12
+ export default class InlineCode {
12
13
/**
13
14
* Class name for term-tag
14
15
*
@@ -166,7 +167,7 @@ class InlineCode {
166
167
* @return {string }
167
168
*/
168
169
get toolboxIcon ( ) {
169
- return require ( './../assets/icon.svg' ) . default ;
170
+ return IconInlineCode ;
170
171
}
171
172
172
173
/**
@@ -181,5 +182,3 @@ class InlineCode {
181
182
} ;
182
183
}
183
184
}
184
-
185
- module . exports = InlineCode ;
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module.exports = {
36
36
publicPath : '/' ,
37
37
filename : 'bundle.js' ,
38
38
library : 'InlineCode' ,
39
- libraryTarget : 'umd'
39
+ libraryTarget : 'umd' ,
40
+ libraryExport : 'default'
40
41
}
41
42
} ;
Original file line number Diff line number Diff line change 526
526
lodash "^4.17.11"
527
527
to-fast-properties "^2.0.0"
528
528
529
+ " @codexteam/icons@^0.0.5 " :
530
+ version "0.0.5"
531
+ resolved "https://registry.yarnpkg.com/@codexteam/icons/-/icons-0.0.5.tgz#d17f39b6a0497c6439f57dd42711817a3dd3679c"
532
+ integrity sha512-s6H2KXhLz2rgbMZSkRm8dsMJvyUNZsEjxobBEg9ztdrb1B2H3pEzY6iTwI4XUPJWJ3c3qRKwV4TrO3J5jUdoQA==
533
+
529
534
" @webassemblyjs/[email protected] " :
530
535
version "1.8.3"
531
536
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.3.tgz#63a741bd715a6b6783f2ea5c6ab707516aa215eb"
You can’t perform that action at this time.
0 commit comments