Skip to content

Commit

Permalink
chore: remove unwanted dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Apr 23, 2020
1 parent a0f0bf0 commit 94374c4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 20 deletions.
5 changes: 0 additions & 5 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"@angular/platform-browser": "~9.1.3",
"@angular/platform-browser-dynamic": "~9.1.3",
"@angular/router": "~9.1.3",
"classnames": "^2.2.6",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
Expand Down
2 changes: 0 additions & 2 deletions src/lib/ngx-editor.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "prosemirror-view//style/prosemirror.css";

.ProseMirror {
outline: none;
}
Expand Down
8 changes: 5 additions & 3 deletions src/lib/plugins/menu/getMenu.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { toggleMark } from 'prosemirror-commands';
import { schema } from 'prosemirror-schema-basic';
import classNames from 'classnames';

import { getIconSvg } from '../../utils/icons';
import { MENU_ITEM_CLASSNAME } from './constants';
import { MenuItem, Toolbar } from '../../types';

function getMenuDom(name: string): HTMLElement {
const div = document.createElement('div');
div.className = classNames(MENU_ITEM_CLASSNAME, `${MENU_ITEM_CLASSNAME}__${name}`);

div.classList.add(MENU_ITEM_CLASSNAME);
div.classList.add(`${MENU_ITEM_CLASSNAME}__${name}`);

div.title = name;

div.innerHTML = getIconSvg(name);
Expand All @@ -18,7 +20,7 @@ function getMenuDom(name: string): HTMLElement {

function getSeperatorDom(): HTMLElement {
const div = document.createElement('div');
div.className = classNames(`${MENU_ITEM_CLASSNAME}__Seperator`);
div.className = `${MENU_ITEM_CLASSNAME}__Seperator`;
return div;
}

Expand Down
8 changes: 2 additions & 6 deletions src/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
"prosemirror-schema-basic": "prosemirrorSchemaBasic",
"prosemirror-history": "prosemirrorHistory",
"prosemirror-keymap": "prosemirrorKeymap",
"prosemirror-commands": "prosemirrorCommands",
"classnames": "classNames"
"prosemirror-commands": "prosemirrorCommands"
}
},
"whitelistedNonPeerDependencies": [
"classnames"
]
}
}
3 changes: 0 additions & 3 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
"prosemirror-state": "^1.3.0",
"prosemirror-view": "^1.14.0",
"tslib": "^1.10.0"
},
"dependencies": {
"classnames": "^2.2.6"
}
}

0 comments on commit 94374c4

Please sign in to comment.