Skip to content

Commit

Permalink
feat(icon): toolbox icon updated using Codex Icons
Browse files Browse the repository at this point in the history
Update toolbox icon
  • Loading branch information
neSpecc committed Nov 29, 2022
2 parents 21cbdea + dc34d96 commit 6e45413
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
5 changes: 2 additions & 3 deletions dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/paragraph",
"version": "2.8.0",
"version": "2.9.0",
"keywords": [
"codex editor",
"paragraph",
Expand Down Expand Up @@ -29,5 +29,8 @@
"style-loader": "^1.2.1",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@codexteam/icons": "^0.0.4"
}
}
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Build styles
*/
require('./index.css').toString();
import './index.css';

import { IconText } from '@codexteam/icons'

/**
* Base Paragraph Block for the Editor.js.
Expand All @@ -23,7 +25,7 @@ require('./index.css').toString();
* @description Tool's input and output data format
* @property {String} text — Paragraph's content. Can include HTML tags: <a><b><i>
*/
class Paragraph {
export default class Paragraph {
/**
* Default placeholder for Paragraph Tool
*
Expand Down Expand Up @@ -246,10 +248,8 @@ class Paragraph {
*/
static get toolbox() {
return {
icon: require('./toolbox-icon.svg').default,
icon: IconText,
title: 'Text'
};
}
}

module.exports = Paragraph;
3 changes: 0 additions & 3 deletions src/toolbox-icon.svg

This file was deleted.

3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
publicPath: '/',
filename: 'bundle.js',
library: 'Paragraph',
libraryTarget: 'umd'
libraryTarget: 'umd',
libraryExport: 'default',
}
};
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@
lodash "^4.17.13"
to-fast-properties "^2.0.0"

"@codexteam/icons@^0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@codexteam/icons/-/icons-0.0.4.tgz#8b72dcd3f3a1b0d880bdceb2abebd74b46d3ae13"
integrity sha512-V8N/TY2TGyas4wLrPIFq7bcow68b3gu8DfDt1+rrHPtXxcexadKauRJL6eQgfG7Z0LCrN4boLRawR4S9gjIh/Q==

"@types/json-schema@^7.0.4":
version "7.0.4"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
Expand Down

0 comments on commit 6e45413

Please sign in to comment.