Skip to content

Commit

Permalink
Merge pull request #105 from editor-js/fix-build
Browse files Browse the repository at this point in the history
fix (build): update packages to fix build
  • Loading branch information
e11sy authored Nov 6, 2024
2 parents 2d84882 + b324a9f commit a723c51
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@editorjs/editorjs": "^2.31.0-rc.2",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@editorjs/caret": "^1.0.2",
"@editorjs/dom": "^0.0.7",
"@editorjs/caret": "^1.0.3",
"@editorjs/dom": "^1.0.1",
"eslint": "^9.2.0",
"eslint-config-codex": "^2.0.0",
"eslint-import-resolver-alias": "1.1.2",
Expand Down
16 changes: 8 additions & 8 deletions src/ListRenderer/ChecklistRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IconCheck } from '@codexteam/icons';
import type { ChecklistItemMeta } from '../types/ItemMeta';
import type { NestedListConfig } from '../types/ListParams';
import * as Dom from '@editorjs/dom';
import { isEmpty, make } from '@editorjs/dom';
import { DefaultListCssClasses } from './ListRenderer';
import type { ListCssClasses, ListRendererInterface } from './ListRenderer';
import { CssPrefix } from '../styles/CssPrefix';
Expand Down Expand Up @@ -86,7 +86,7 @@ export class CheckListRenderer implements ListRendererInterface<ChecklistItemMet
* Check if it's root level
*/
if (isRoot === true) {
wrapperElement = Dom.make('ul', [CheckListRenderer.CSS.wrapper, CheckListRenderer.CSS.checklist]) as HTMLUListElement;
wrapperElement = make('ul', [CheckListRenderer.CSS.wrapper, CheckListRenderer.CSS.checklist]) as HTMLUListElement;

/**
* Delegate clicks from wrapper to items
Expand All @@ -103,7 +103,7 @@ export class CheckListRenderer implements ListRendererInterface<ChecklistItemMet
}
});
} else {
wrapperElement = Dom.make('ul', [CheckListRenderer.CSS.checklist, CheckListRenderer.CSS.itemChildren]) as HTMLUListElement;
wrapperElement = make('ul', [CheckListRenderer.CSS.checklist, CheckListRenderer.CSS.itemChildren]) as HTMLUListElement;
}

return wrapperElement;
Expand All @@ -116,14 +116,14 @@ export class CheckListRenderer implements ListRendererInterface<ChecklistItemMet
* @returns - created html list item element
*/
public renderItem(content: string, meta: ChecklistItemMeta): HTMLLIElement {
const itemWrapper = Dom.make('li', [CheckListRenderer.CSS.item, CheckListRenderer.CSS.item]);
const itemContent = Dom.make('div', CheckListRenderer.CSS.itemContent, {
const itemWrapper = make('li', [CheckListRenderer.CSS.item, CheckListRenderer.CSS.item]);
const itemContent = make('div', CheckListRenderer.CSS.itemContent, {
innerHTML: content,
contentEditable: (!this.readOnly).toString(),
});

const checkbox = Dom.make('span', CheckListRenderer.CSS.checkbox);
const checkboxContainer = Dom.make('div', CheckListRenderer.CSS.checkboxContainer);
const checkbox = make('span', CheckListRenderer.CSS.checkbox);
const checkboxContainer = make('div', CheckListRenderer.CSS.checkboxContainer);

if (meta.checked === true) {
checkboxContainer.classList.add(CheckListRenderer.CSS.itemChecked);
Expand All @@ -150,7 +150,7 @@ export class CheckListRenderer implements ListRendererInterface<ChecklistItemMet
return '';
}

if (Dom.isEmpty(contentNode)) {
if (isEmpty(contentNode)) {
return '';
}

Expand Down
12 changes: 6 additions & 6 deletions src/ListRenderer/OrderedListRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OrderedListItemMeta } from '../types/ItemMeta';
import type { NestedListConfig } from '../types/ListParams';
import * as Dom from '@editorjs/dom';
import { isEmpty, make } from '@editorjs/dom';
import { DefaultListCssClasses } from './ListRenderer';
import type { ListCssClasses, ListRendererInterface } from './ListRenderer';
import { CssPrefix } from '../styles/CssPrefix';
Expand Down Expand Up @@ -61,9 +61,9 @@ export class OrderedListRenderer implements ListRendererInterface<OrderedListIte
* Check if it's root level
*/
if (isRoot === true) {
wrapperElement = Dom.make('ol', [OrderedListRenderer.CSS.wrapper, OrderedListRenderer.CSS.orderedList]) as HTMLOListElement;
wrapperElement = make('ol', [OrderedListRenderer.CSS.wrapper, OrderedListRenderer.CSS.orderedList]) as HTMLOListElement;
} else {
wrapperElement = Dom.make('ol', [OrderedListRenderer.CSS.orderedList, OrderedListRenderer.CSS.itemChildren]) as HTMLOListElement;
wrapperElement = make('ol', [OrderedListRenderer.CSS.orderedList, OrderedListRenderer.CSS.itemChildren]) as HTMLOListElement;
}

return wrapperElement;
Expand All @@ -76,8 +76,8 @@ export class OrderedListRenderer implements ListRendererInterface<OrderedListIte
* @returns - created html list item element
*/
public renderItem(content: string, _meta: OrderedListItemMeta): HTMLLIElement {
const itemWrapper = Dom.make('li', OrderedListRenderer.CSS.item);
const itemContent = Dom.make('div', OrderedListRenderer.CSS.itemContent, {
const itemWrapper = make('li', OrderedListRenderer.CSS.item);
const itemContent = make('div', OrderedListRenderer.CSS.itemContent, {
innerHTML: content,
contentEditable: (!this.readOnly).toString(),
});
Expand All @@ -99,7 +99,7 @@ export class OrderedListRenderer implements ListRendererInterface<OrderedListIte
return '';
}

if (Dom.isEmpty(contentNode)) {
if (isEmpty(contentNode)) {
return '';
}

Expand Down
12 changes: 6 additions & 6 deletions src/ListRenderer/UnorderedListRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { UnorderedListItemMeta } from '../types/ItemMeta';
import type { NestedListConfig } from '../types/ListParams';
import * as Dom from '@editorjs/dom';
import { make, isEmpty } from '@editorjs/dom';
import { DefaultListCssClasses } from './ListRenderer';
import type { ListCssClasses, ListRendererInterface } from './ListRenderer';
import { CssPrefix } from '../styles/CssPrefix';
Expand Down Expand Up @@ -61,9 +61,9 @@ export class UnorderedListRenderer implements ListRendererInterface<UnorderedLis
* Check if it's root level
*/
if (isRoot === true) {
wrapperElement = Dom.make('ul', [UnorderedListRenderer.CSS.wrapper, UnorderedListRenderer.CSS.unorderedList]) as HTMLUListElement;
wrapperElement = make('ul', [UnorderedListRenderer.CSS.wrapper, UnorderedListRenderer.CSS.unorderedList]) as HTMLUListElement;
} else {
wrapperElement = Dom.make('ul', [UnorderedListRenderer.CSS.unorderedList, UnorderedListRenderer.CSS.itemChildren]) as HTMLUListElement;
wrapperElement = make('ul', [UnorderedListRenderer.CSS.unorderedList, UnorderedListRenderer.CSS.itemChildren]) as HTMLUListElement;
}

return wrapperElement;
Expand All @@ -76,8 +76,8 @@ export class UnorderedListRenderer implements ListRendererInterface<UnorderedLis
* @returns - created html list item element
*/
public renderItem(content: string, _meta: UnorderedListItemMeta): HTMLLIElement {
const itemWrapper = Dom.make('li', UnorderedListRenderer.CSS.item);
const itemContent = Dom.make('div', UnorderedListRenderer.CSS.itemContent, {
const itemWrapper = make('li', UnorderedListRenderer.CSS.item);
const itemContent = make('div', UnorderedListRenderer.CSS.itemContent, {
innerHTML: content,
contentEditable: (!this.readOnly).toString(),
});
Expand All @@ -99,7 +99,7 @@ export class UnorderedListRenderer implements ListRendererInterface<UnorderedLis
return '';
}

if (Dom.isEmpty(contentNode)) {
if (isEmpty(contentNode)) {
return '';
}

Expand Down
34 changes: 17 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,12 @@
dependencies:
"@editorjs/dom" "^1.0.0"

"@editorjs/caret@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@editorjs/caret/-/caret-1.0.2.tgz#8d7c90503caaff553d973968bb24c4ffe5d9a993"
integrity sha512-V1tmvNhTOLAHiJhZRtL26iKe0bs6tH+yWg6FO/v+ydsYbw16y4tMMDLhrgIcYppKmi7tt3t14prdrI1kUNPYcQ==
dependencies:
"@editorjs/dom" "^1.0.0"

"@editorjs/dom@^0.0.7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@editorjs/dom/-/dom-0.0.7.tgz#790ff250dbe10d055c87f3dd599a6e01b7c2ea6c"
integrity sha512-dJH20v58MtTE7U8iYwvWBpPgeqm2dn8DDfovWlp7+bWKEe2q1g0PT/5sxVZT5wPIPWEE73K2EnTqB/3XTuV/rQ==
"@editorjs/caret@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@editorjs/caret/-/caret-1.0.3.tgz#1a622d2d8ec117a724ed782e21b7c5a74c3c1401"
integrity sha512-VmgwQJZgL/LQjk049JunzRV1YCa0vDi+BNEpbDmr5cp3lGZllq9QQFO1eI71ZPzvFVn3vvhb+eOif4sAEyGgbw==
dependencies:
"@editorjs/helpers" "^0.0.7"
"@editorjs/dom" "^1.0.1"

"@editorjs/dom@^1.0.0":
version "1.0.0"
Expand All @@ -61,23 +54,30 @@
dependencies:
"@editorjs/helpers" "^1.0.0"

"@editorjs/dom@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@editorjs/dom/-/dom-1.0.1.tgz#ace66e79096101a9767d29907468f8eb07e73693"
integrity sha512-yLO+86MYOIUr1Jl7SQw23SYT84ggv6aJW0EIRsI3NTHYgnQzmK7Bt2n5ZFupQlB0GJqmKqA5tCue3NKQb+o7Pw==
dependencies:
"@editorjs/helpers" "^1.0.1"

"@editorjs/editorjs@^2.31.0-rc.2":
version "2.31.0-rc.2"
resolved "https://registry.yarnpkg.com/@editorjs/editorjs/-/editorjs-2.31.0-rc.2.tgz#887852655f288a2b7f0d966962d4a1d041da07e4"
integrity sha512-KSB8B5PDtZ1Ea9flGGokgrfBh2ZproTCGwvt5n1CIGt/T2mmSPiYa4woVK0BP8MHbO/weACP2T02brPGNTQenA==
dependencies:
"@editorjs/caret" "^1.0.1"

"@editorjs/helpers@^0.0.7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@editorjs/helpers/-/helpers-0.0.7.tgz#2156ec7b60a133d1e1ff87c50eb09b95b0a40ce0"
integrity sha512-jMFbtfWKip6mSS1Pyhr1ShyOfPKfxg1Z2ESRExyXJrwjWnPF7Xqipzsig8R6ZfJDXVnvhRcKNwQcHGQZuYMjkA==

"@editorjs/helpers@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@editorjs/helpers/-/helpers-1.0.0.tgz#4b0e0868e51e2772a73212f4aac5aff553725894"
integrity sha512-ih4yCm+x+7X9XCn1zxfNous2LQX8ZYMyTHMLdgbyjBf0Opf8GdLxVjdzSjkA+0mUp1tUe3JgWW3FTisYcSnbQA==

"@editorjs/helpers@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@editorjs/helpers/-/helpers-1.0.1.tgz#e96f7d485c15f563e69c37bd82282c148e0187cc"
integrity sha512-Lmr8ImoQvoROXtzhsIJsA1ZtXzH46DmE6O8hMjn9/AvQq62UfjREjn+Ewi6KxjIZMay2PsgDEbLlsVyNJGEaxw==

"@es-joy/jsdoccomment@~0.46.0":
version "0.46.0"
resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.46.0.tgz#47a2ee4bfc0081f252e058272dfab680aaed464d"
Expand Down

0 comments on commit a723c51

Please sign in to comment.