Skip to content

Commit

Permalink
chore: Bump editor dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozickis committed Dec 15, 2023
1 parent 5db2cb0 commit 4ba94b9
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 17 deletions.
10 changes: 10 additions & 0 deletions .changeset/lucky-mirrors-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"frontend-gelinkt-notuleren": minor
---

Bump editor dependencies

* Bump `@lblod/ember-rdfa-editor` to `^8.0.2`
* Bump `@lblod/ember-rdfa-editor-lblod-plugins` to `^15.2.1`
* Enable `Alignment` plugin
* Enable column sizing for tables
3 changes: 3 additions & 0 deletions app/components/rdfa-editor-container.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
<Tb.Group>
<Plugins::Heading::HeadingMenu @controller={{this.controller}}/>
</Tb.Group>
<Tb.Group>
<Plugins::Alignment::AlignmentMenu @controller={{this.controller}}/>
</Tb.Group>
<Tb.Spacer/>
</:main>
<:side as |Tb|>
Expand Down
8 changes: 6 additions & 2 deletions app/components/zitting-text-document-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from '@lblod/ember-rdfa-editor/nodes';
import {
tableNodes,
tablePlugin,
tablePlugins,
tableKeymap,
} from '@lblod/ember-rdfa-editor/plugins/table';
import { link, linkView } from '@lblod/ember-rdfa-editor/nodes/link';
Expand Down Expand Up @@ -159,7 +159,11 @@ export default class ZittingTextDocumentContainerComponent extends Component {
}

get plugins() {
return [tablePlugin, tableKeymap, linkPasteHandler(this.schema.nodes.link)];
return [
...tablePlugins,
tableKeymap,
linkPasteHandler(this.schema.nodes.link),
];
}

get nodeViews() {
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/agendapoints/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
import {
tableKeymap,
tableNodes,
tablePlugin,
tablePlugins,
} from '@lblod/ember-rdfa-editor/plugins/table';
import { STRUCTURE_NODES } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin/structures';
import {
Expand Down Expand Up @@ -243,7 +243,7 @@ export default class AgendapointsEditController extends Controller {

get plugins() {
return [
tablePlugin,
...tablePlugins,
tableKeymap,
this.citationPlugin,
this.validationPlugin,
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/regulatory-statements/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
import {
tableKeymap,
tableNodes,
tablePlugin,
tablePlugins,
} from '@lblod/ember-rdfa-editor/plugins/table';
import {
link,
Expand Down Expand Up @@ -170,7 +170,7 @@ export default class RegulatoryStatementsRoute extends Controller {

get plugins() {
return [
tablePlugin,
...tablePlugins,
tableKeymap,
this.citationPlugin,
createInvisiblesPlugin(
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"@lblod/ember-acmidm-login": "^2.0.0-beta.1",
"@lblod/ember-environment-banner": "^0.2.0",
"@lblod/ember-mock-login": "0.7.0",
"@lblod/ember-rdfa-editor": "^7.0.1",
"@lblod/ember-rdfa-editor-lblod-plugins": "^15.1.0",
"@lblod/ember-rdfa-editor": "^8.0.2",
"@lblod/ember-rdfa-editor-lblod-plugins": "^15.2.1",
"@release-it-plugins/lerna-changelog": "^6.0.0",
"broccoli-asset-rev": "^3.0.0",
"broccoli-plugin": "^4.0.7",
Expand Down

0 comments on commit 4ba94b9

Please sign in to comment.