@lblod/ember-rdfa-editor-lblod-plugins 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.woodpecker/.release.yml +1 -1
- package/.woodpecker/.test-scenarios.yml +17 -0
- package/.woodpecker/.test.yml +5 -5
- package/CHANGELOG.md +31 -1
- package/README.md +1 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +1 -3
- package/addon/components/article-structure-plugin/article-structure-card.ts +14 -8
- package/addon/components/article-structure-plugin/structure-card.hbs +6 -4
- package/addon/components/article-structure-plugin/structure-card.ts +19 -15
- package/addon/components/besluit-plugin/besluit-plugin-card.ts +8 -4
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +2 -2
- package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +12 -10
- package/addon/components/citation-plugin/citation-card.ts +27 -25
- package/addon/components/citation-plugin/citation-insert.ts +34 -27
- package/addon/components/import-snippet-plugin/card.ts +9 -6
- package/addon/components/rdfa-date-plugin/card.ts +14 -18
- package/addon/components/rdfa-date-plugin/insert.hbs +0 -9
- package/addon/components/rdfa-date-plugin/insert.ts +12 -20
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.ts +3 -3
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.ts +5 -4
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.ts +1 -1
- package/addon/components/standard-template-plugin/card.ts +2 -2
- package/addon/components/standard-template-plugin/template-provider.ts +6 -5
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.ts +1 -1
- package/addon/components/table-of-contents-plugin/toolbar-button.ts +15 -9
- package/addon/components/variable-plugin/insert-variable-card.ts +19 -14
- package/addon/components/variable-plugin/template-variable-card.hbs +1 -1
- package/addon/components/variable-plugin/template-variable-card.ts +10 -7
- package/addon/components/variable-plugin/variable.hbs +8 -3
- package/addon/models/instruction.ts +1 -1
- package/addon/models/measure.ts +1 -1
- package/addon/models/sign.ts +1 -1
- package/addon/plugins/article-structure-plugin/commands/move-selected-structure.ts +1 -1
- package/addon/plugins/article-structure-plugin/index.ts +2 -32
- package/addon/plugins/article-structure-plugin/structures/article-paragraph.ts +16 -7
- package/addon/plugins/article-structure-plugin/structures/article.ts +7 -3
- package/addon/plugins/article-structure-plugin/structures/chapter.ts +1 -1
- package/addon/plugins/article-structure-plugin/structures/section.ts +1 -1
- package/addon/plugins/article-structure-plugin/structures/structure-header.ts +7 -2
- package/addon/plugins/article-structure-plugin/structures/subsection.ts +1 -1
- package/addon/plugins/article-structure-plugin/structures/title.ts +1 -1
- package/addon/plugins/besluit-plugin/utils/get-title-for-decision.ts +3 -6
- package/addon/plugins/citation-plugin/index.ts +1 -49
- package/addon/plugins/rdfa-date-plugin/index.ts +5 -28
- package/addon/plugins/rdfa-date-plugin/nodes/date.ts +1 -6
- package/addon/plugins/standard-template-plugin/index.ts +0 -6
- package/addon/plugins/standard-template-plugin/utils/nodes.ts +1 -1
- package/addon/plugins/table-of-contents-plugin/index.ts +0 -7
- package/addon/plugins/variable-plugin/nodes.ts +6 -3
- package/addon/services/roadsign-registry.ts +1 -1
- package/app/styles/article-structure-plugin.scss +7 -0
- package/app/styles/besluit-plugin.scss +4 -0
- package/components/article-structure-plugin/article-structure-card.d.ts +4 -5
- package/components/article-structure-plugin/structure-card.d.ts +4 -6
- package/components/besluit-plugin/besluit-plugin-card.d.ts +3 -3
- package/components/besluit-type-plugin/toolbar-dropdown.d.ts +3 -3
- package/components/citation-plugin/citation-card.d.ts +4 -6
- package/components/citation-plugin/citation-insert.d.ts +5 -7
- package/components/import-snippet-plugin/card.d.ts +3 -3
- package/components/rdfa-date-plugin/card.d.ts +5 -10
- package/components/rdfa-date-plugin/insert.d.ts +6 -12
- package/components/roadsign-regulation-plugin/roadsign-regulation-card.d.ts +3 -3
- package/components/roadsign-regulation-plugin/roadsigns-modal.d.ts +2 -2
- package/components/standard-template-plugin/card.d.ts +3 -3
- package/components/standard-template-plugin/template-provider.d.ts +3 -3
- package/components/table-of-contents-plugin/ember-nodes/table-of-contents.d.ts +1 -1
- package/components/table-of-contents-plugin/toolbar-button.d.ts +3 -3
- package/components/variable-plugin/insert-variable-card.d.ts +7 -8
- package/components/variable-plugin/template-variable-card.d.ts +3 -3
- package/package.json +26 -29
- package/plugins/article-structure-plugin/index.d.ts +2 -3
- package/plugins/besluit-plugin/utils/get-title-for-decision.d.ts +3 -3
- package/plugins/citation-plugin/index.d.ts +2 -12
- package/plugins/rdfa-date-plugin/index.d.ts +5 -5
- package/plugins/rdfa-date-plugin/nodes/date.d.ts +1 -6
- package/plugins/standard-template-plugin/index.d.ts +0 -2
- package/plugins/table-of-contents-plugin/index.d.ts +0 -2
- package/plugins/table-of-contents-plugin/nodes/table-of-contents.d.ts +1 -1
- package/plugins/variable-plugin/nodes.d.ts +1 -1
- package/translations/en-US.yaml +63 -61
- package/translations/nl-BE.yaml +65 -59
- package/addon/components/variable-plugin/variable.ts +0 -262
- package/addon/plugins/besluit-plugin/index.ts +0 -6
- package/addon/plugins/besluit-type-plugin/index.ts +0 -6
- package/addon/plugins/import-snippet-plugin.ts +0 -6
- package/addon/plugins/rdfa-date-plugin/nodes/index.ts +0 -1
- package/addon/plugins/roadsign-regulation-plugin/index.ts +0 -6
- package/addon/plugins/variable-plugin/index.ts +0 -16
- package/components/variable-plugin/variable.d.ts +0 -43
- package/plugins/besluit-plugin/index.d.ts +0 -2
- package/plugins/besluit-type-plugin/index.d.ts +0 -2
- package/plugins/import-snippet-plugin.d.ts +0 -2
- package/plugins/rdfa-date-plugin/nodes/index.d.ts +0 -1
- package/plugins/roadsign-regulation-plugin/index.d.ts +0 -2
- package/plugins/variable-plugin/index.d.ts +0 -3
|
@@ -9,7 +9,7 @@ type OutlineEntry = {
|
|
|
9
9
|
};
|
|
10
10
|
export default class TableOfContentsComponent extends Component<EmberNodeArgs> {
|
|
11
11
|
get config(): TableOfContentsConfig;
|
|
12
|
-
get controller(): import("@lblod/ember-rdfa-editor").
|
|
12
|
+
get controller(): import("@lblod/ember-rdfa-editor").SayController;
|
|
13
13
|
get outline(): {
|
|
14
14
|
entries: OutlineEntry[];
|
|
15
15
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
type Args = {
|
|
4
|
-
controller:
|
|
4
|
+
controller: SayController;
|
|
5
5
|
};
|
|
6
6
|
export default class TableOfContentsCardComponent extends Component<Args> {
|
|
7
7
|
get toggled(): boolean;
|
|
8
|
-
get controller():
|
|
8
|
+
get controller(): SayController;
|
|
9
9
|
get tableOfContentsRange(): {
|
|
10
10
|
from: number;
|
|
11
11
|
to: number;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { VariableType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/constants';
|
|
4
4
|
import { CodeList } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/fetch-data';
|
|
5
5
|
type Args = {
|
|
6
|
-
controller:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
defaultEndpoint: string;
|
|
12
|
-
};
|
|
6
|
+
controller: SayController;
|
|
7
|
+
options: {
|
|
8
|
+
publisher: string;
|
|
9
|
+
variableTypes: (VariableType | string)[];
|
|
10
|
+
defaultEndpoint: string;
|
|
13
11
|
};
|
|
14
12
|
};
|
|
15
13
|
export default class EditorPluginsInsertCodelistCardComponent extends Component<Args> {
|
|
@@ -21,6 +19,7 @@ export default class EditorPluginsInsertCodelistCardComponent extends Component<
|
|
|
21
19
|
publisher: string;
|
|
22
20
|
endpoint: string;
|
|
23
21
|
constructor(parent: unknown, args: Args);
|
|
22
|
+
get controller(): SayController;
|
|
24
23
|
insert(): void;
|
|
25
24
|
updateSelectedVariable(variable: VariableType): void;
|
|
26
25
|
fetchSubtypes: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (fetchFunction: (endpoint: string, publisher: string) => Promise<CodeList[]>) => Promise<void>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { CodeListOption } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/fetch-data';
|
|
4
4
|
import { PNode } from '@lblod/ember-rdfa-editor';
|
|
5
5
|
type Args = {
|
|
6
|
-
controller:
|
|
6
|
+
controller: SayController;
|
|
7
7
|
};
|
|
8
8
|
export default class EditorPluginsTemplateVariableCardComponent extends Component<Args> {
|
|
9
9
|
variableOptions: CodeListOption[];
|
|
@@ -19,7 +19,7 @@ export default class EditorPluginsTemplateVariableCardComponent extends Componen
|
|
|
19
19
|
endpoint: string;
|
|
20
20
|
nonZonalLocationCodelistUri: string;
|
|
21
21
|
constructor(parent: unknown, args: Args);
|
|
22
|
-
get controller():
|
|
22
|
+
get controller(): SayController;
|
|
23
23
|
insert(): void;
|
|
24
24
|
wrapVariableInHighlight(text: string): string;
|
|
25
25
|
selectionChanged(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "ember build --environment=production",
|
|
18
|
-
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
|
|
19
|
-
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
|
|
18
|
+
"lint": "npm-run-all --print-name --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
|
|
19
|
+
"lint:fix": "npm-run-all --print-name --aggregate-output --continue-on-error --parallel \"lint:*:fix\"",
|
|
20
20
|
"lint:hbs": "ember-template-lint .",
|
|
21
21
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
22
22
|
"lint:js": "eslint . --cache",
|
|
23
23
|
"lint:js:fix": "eslint . --fix",
|
|
24
24
|
"start": "ember serve",
|
|
25
|
-
"test": "npm-run-all lint test
|
|
25
|
+
"test": "npm-run-all --print-name \"lint\" \"test:*\"",
|
|
26
26
|
"test:ember": "ember test",
|
|
27
27
|
"test:ember-compatibility": "ember try:each",
|
|
28
28
|
"release": "release-it",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@types/rdfjs__parser-n3": "^1.1.5",
|
|
40
40
|
"buffer": "^6.0.3",
|
|
41
41
|
"date-fns": "^2.29.3",
|
|
42
|
-
"ember-auto-import": "^2.4.
|
|
42
|
+
"ember-auto-import": "^2.4.3",
|
|
43
43
|
"ember-cli-babel": "^7.26.11",
|
|
44
|
-
"ember-cli-htmlbars": "^6.
|
|
44
|
+
"ember-cli-htmlbars": "^6.1.1",
|
|
45
45
|
"ember-cli-typescript": "^5.2.1",
|
|
46
46
|
"ember-concurrency": "^2.3.7",
|
|
47
47
|
"ember-mu-transform-helpers": "^2.0.0",
|
|
48
|
-
"ember-power-select": "^
|
|
48
|
+
"ember-power-select": "^6.0.1",
|
|
49
49
|
"ember-resources": "^5.6.2",
|
|
50
50
|
"ember-velcro": "^1.1.0",
|
|
51
51
|
"fetch-sparql-endpoint": "^3.0.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"uuid": "^9.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@appuniversum/ember-appuniversum": "^2.2
|
|
60
|
+
"@appuniversum/ember-appuniversum": "^2.4.2",
|
|
61
61
|
"@ember/optional-features": "^2.0.0",
|
|
62
|
-
"@ember/test-helpers": "^2.
|
|
63
|
-
"@embroider/test-setup": "^1.
|
|
62
|
+
"@ember/test-helpers": "^2.8.1",
|
|
63
|
+
"@embroider/test-setup": "^1.8.3",
|
|
64
64
|
"@glimmer/component": "^1.1.2",
|
|
65
65
|
"@glimmer/tracking": "^1.1.2",
|
|
66
|
-
"@lblod/ember-rdfa-editor": "^2.
|
|
66
|
+
"@lblod/ember-rdfa-editor": "^3.2.0",
|
|
67
67
|
"@rdfjs/types": "^1.1.0",
|
|
68
68
|
"@release-it/keep-a-changelog": "^3.1.0",
|
|
69
69
|
"@tsconfig/ember": "^1.0.1",
|
|
@@ -85,14 +85,12 @@
|
|
|
85
85
|
"@types/ember__string": "^3.0.10",
|
|
86
86
|
"@types/ember__template": "^4.0.1",
|
|
87
87
|
"@types/ember__test": "^4.0.1",
|
|
88
|
-
"@types/ember__test-helpers": "^2.8.2",
|
|
89
88
|
"@types/ember__utils": "^4.0.2",
|
|
90
|
-
"@types/ember-data": "^4.4.
|
|
89
|
+
"@types/ember-data": "^4.4.7",
|
|
91
90
|
"@types/ember-data__adapter": "^4.0.1",
|
|
92
91
|
"@types/ember-data__model": "^4.0.0",
|
|
93
92
|
"@types/ember-data__serializer": "^4.0.1",
|
|
94
93
|
"@types/ember-data__store": "^4.0.2",
|
|
95
|
-
"@types/ember-qunit": "^5.0.2",
|
|
96
94
|
"@types/ember-resolver": "^5.0.13",
|
|
97
95
|
"@types/prosemirror-dev-tools": "^3.0.3",
|
|
98
96
|
"@types/qunit": "^2.19.3",
|
|
@@ -105,52 +103,51 @@
|
|
|
105
103
|
"@typescript-eslint/parser": "^5.21.0",
|
|
106
104
|
"babel-eslint": "^10.1.0",
|
|
107
105
|
"broccoli-asset-rev": "^3.0.0",
|
|
108
|
-
"ember-cli": "~4.
|
|
106
|
+
"ember-cli": "~4.8.0",
|
|
109
107
|
"ember-cli-dependency-checker": "^3.3.1",
|
|
110
108
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
111
|
-
"ember-cli-sass": "^
|
|
109
|
+
"ember-cli-sass": "^11.0.1",
|
|
112
110
|
"ember-cli-sri": "^2.1.1",
|
|
113
111
|
"ember-cli-string-helpers": "^6.1.0",
|
|
114
112
|
"ember-cli-terser": "^4.0.2",
|
|
115
113
|
"ember-data": "^3.28.12",
|
|
116
114
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
117
|
-
"ember-export-application-global": "^2.0.1",
|
|
118
115
|
"ember-functions-as-helper-polyfill": "^2.1.1",
|
|
119
116
|
"ember-intl": "^5.7.2",
|
|
120
117
|
"ember-load-initializers": "^2.1.2",
|
|
121
118
|
"ember-page-title": "^7.0.0",
|
|
122
|
-
"ember-qunit": "^
|
|
119
|
+
"ember-qunit": "^6.0.0",
|
|
123
120
|
"ember-resolver": "^8.0.3",
|
|
124
121
|
"ember-simple-auth": "4.2.2",
|
|
125
|
-
"ember-source": "~4.
|
|
122
|
+
"ember-source": "~4.8.0",
|
|
126
123
|
"ember-source-channel-url": "^3.0.0",
|
|
127
|
-
"ember-template-lint": "^4.
|
|
124
|
+
"ember-template-lint": "^4.16.1",
|
|
128
125
|
"ember-try": "^2.0.0",
|
|
129
126
|
"eslint": "^7.32.0",
|
|
130
127
|
"eslint-config-prettier": "^8.5.0",
|
|
131
|
-
"eslint-plugin-ember": "^
|
|
128
|
+
"eslint-plugin-ember": "^11.1.0",
|
|
132
129
|
"eslint-plugin-node": "^11.1.0",
|
|
133
|
-
"eslint-plugin-prettier": "^4.
|
|
134
|
-
"eslint-plugin-qunit": "^7.
|
|
130
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
131
|
+
"eslint-plugin-qunit": "^7.3.1",
|
|
135
132
|
"loader.js": "^4.7.0",
|
|
136
133
|
"npm-run-all": "^4.1.5",
|
|
137
|
-
"prettier": "^2.
|
|
134
|
+
"prettier": "^2.7.1",
|
|
138
135
|
"prosemirror-dev-tools": "^3.1.0",
|
|
139
|
-
"qunit": "^2.19.
|
|
136
|
+
"qunit": "^2.19.2",
|
|
140
137
|
"qunit-dom": "^2.0.0",
|
|
141
138
|
"release-it": "^15.5.0",
|
|
142
139
|
"sass": "^1.49.7",
|
|
143
140
|
"tracked-toolbox": "^1.2.3",
|
|
144
141
|
"typescript": "^4.9.3",
|
|
145
|
-
"webpack": "^5.
|
|
142
|
+
"webpack": "^5.74.0"
|
|
146
143
|
},
|
|
147
144
|
"peerDependencies": {
|
|
148
|
-
"@appuniversum/ember-appuniversum": "^2.2
|
|
149
|
-
"@lblod/ember-rdfa-editor": "^2.
|
|
145
|
+
"@appuniversum/ember-appuniversum": "^2.4.2",
|
|
146
|
+
"@lblod/ember-rdfa-editor": "^3.2.0",
|
|
150
147
|
"ember-concurrency": "^2.3.7"
|
|
151
148
|
},
|
|
152
149
|
"engines": {
|
|
153
|
-
"node": "
|
|
150
|
+
"node": ">= 18"
|
|
154
151
|
},
|
|
155
152
|
"volta": {
|
|
156
153
|
"node": "18.14.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment, PNode, Schema,
|
|
1
|
+
import { Fragment, PNode, Schema, EditorState } from '@lblod/ember-rdfa-editor';
|
|
2
2
|
import IntlService from 'ember-intl/services/intl';
|
|
3
3
|
import { Transaction } from '@lblod/ember-rdfa-editor';
|
|
4
4
|
export type SpecName = string;
|
|
@@ -35,7 +35,6 @@ export type StructureSpec = {
|
|
|
35
35
|
}) => Fragment;
|
|
36
36
|
continuous: boolean;
|
|
37
37
|
limitTo?: string;
|
|
38
|
+
noUnwrap?: boolean;
|
|
38
39
|
};
|
|
39
40
|
export type ArticleStructurePluginOptions = StructureSpec[];
|
|
40
|
-
export declare const articleStructureInsertWidget: (options?: ArticleStructurePluginOptions) => WidgetSpec;
|
|
41
|
-
export declare const articleStructureContextWidget: (options?: ArticleStructurePluginOptions) => WidgetSpec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getTitleForDecision(decisionUri: string, datastore:
|
|
1
|
+
import { SayStore } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
2
|
+
export declare function getTitleForDecision(decisionUri: string, datastore: SayStore): boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Gets all nodes defining a eli:title predicate for a certain
|
|
5
5
|
* decision subject URI
|
|
@@ -7,4 +7,4 @@ export declare function getTitleForDecision(decisionUri: string, datastore: Pros
|
|
|
7
7
|
* @param datastore
|
|
8
8
|
* @returns {null|*}
|
|
9
9
|
*/
|
|
10
|
-
export declare function getTitleNodesForDecision(decisionUri: string, datastore:
|
|
10
|
+
export declare function getTitleNodesForDecision(decisionUri: string, datastore: SayStore): import("@lblod/ember-rdfa-editor/plugins/datastore").ResolvedPNode[] | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Decoration, DecorationSet, EditorState, InlineDecorationSpec,
|
|
1
|
+
import { Decoration, DecorationSet, EditorState, InlineDecorationSpec, NodeType, ProsePlugin, Schema } from '@lblod/ember-rdfa-editor';
|
|
2
2
|
/**
|
|
3
3
|
* The monster regex that makes the citation plugin trigger.
|
|
4
4
|
* In restructuring, I've made sure that I didn't abstract away any of the capturing groups,
|
|
@@ -20,16 +20,6 @@ interface CitationPluginState {
|
|
|
20
20
|
activeRanges: [number, number][];
|
|
21
21
|
}
|
|
22
22
|
export type CitationPlugin = ProsePlugin<CitationPluginState>;
|
|
23
|
-
export interface CitationPluginBundle {
|
|
24
|
-
plugin: ProsePlugin<CitationPluginState>;
|
|
25
|
-
widgets: {
|
|
26
|
-
citationCard: WidgetSpec;
|
|
27
|
-
citationInsert: WidgetSpec;
|
|
28
|
-
};
|
|
29
|
-
marks: {
|
|
30
|
-
citation: MarkSpec;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
23
|
export interface CitationPluginNodeConfig {
|
|
34
24
|
type: 'nodes';
|
|
35
25
|
regex?: RegExp;
|
|
@@ -41,5 +31,5 @@ export interface CitationPluginRangeConfig {
|
|
|
41
31
|
activeInRanges(state: EditorState): [number, number][];
|
|
42
32
|
}
|
|
43
33
|
export type CitationPluginConfig = CitationPluginNodeConfig | CitationPluginRangeConfig;
|
|
44
|
-
export declare function
|
|
34
|
+
export declare function citationPlugin(config: CitationPluginConfig): CitationPlugin;
|
|
45
35
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { WidgetSpec } from '@lblod/ember-rdfa-editor';
|
|
2
1
|
export declare const defaultDateFormats: DateFormat[];
|
|
3
|
-
export declare function rdfaDateCardWidget(options?: DatePluginOptions): WidgetSpec;
|
|
4
|
-
export declare function rdfaDateInsertWidget(options?: DatePluginOptions): WidgetSpec;
|
|
5
2
|
export type DateFormat = {
|
|
6
3
|
label: string;
|
|
7
4
|
key: string;
|
|
8
5
|
dateFormat: string;
|
|
9
6
|
dateTimeFormat: string;
|
|
10
7
|
};
|
|
11
|
-
type
|
|
8
|
+
export type DateOptions = {
|
|
9
|
+
placeholder: {
|
|
10
|
+
insertDate: string;
|
|
11
|
+
insertDateTime: string;
|
|
12
|
+
};
|
|
12
13
|
formats: DateFormat[];
|
|
13
14
|
allowCustomFormat: boolean;
|
|
14
15
|
};
|
|
15
|
-
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { NodeSpec } from '@lblod/ember-rdfa-editor';
|
|
2
|
-
|
|
3
|
-
placeholder: {
|
|
4
|
-
insertDate: string;
|
|
5
|
-
insertDateTime: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
2
|
+
import { DateOptions } from '..';
|
|
8
3
|
declare const date: (options: DateOptions) => NodeSpec;
|
|
9
4
|
export default date;
|
|
@@ -2,4 +2,4 @@ import { EmberNodeConfig } from '@lblod/ember-rdfa-editor/utils/ember-node';
|
|
|
2
2
|
import { TableOfContentsConfig } from '..';
|
|
3
3
|
export declare const emberNodeConfig: (config: TableOfContentsConfig) => EmberNodeConfig;
|
|
4
4
|
export declare const table_of_contents: (config: TableOfContentsConfig) => import("prosemirror-model").NodeSpec;
|
|
5
|
-
export declare const tableOfContentsView: (config: TableOfContentsConfig) => (controller: import("@lblod/ember-rdfa-editor/addon").
|
|
5
|
+
export declare const tableOfContentsView: (config: TableOfContentsConfig) => (controller: import("@lblod/ember-rdfa-editor/addon").SayController) => import("prosemirror-view").NodeViewConstructor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const variable: import("prosemirror-model").NodeSpec;
|
|
2
|
-
export declare const variableView: (controller: import("@lblod/ember-rdfa-editor/addon").
|
|
2
|
+
export declare const variableView: (controller: import("@lblod/ember-rdfa-editor/addon").SayController) => import("prosemirror-view").NodeViewConstructor;
|
package/translations/en-US.yaml
CHANGED
|
@@ -1,11 +1,61 @@
|
|
|
1
|
+
article-structure-plugin:
|
|
2
|
+
insert:
|
|
3
|
+
paragraph: Insert paragraph
|
|
4
|
+
article: Insert article
|
|
5
|
+
title: Insert title
|
|
6
|
+
chapter: Insert chapter
|
|
7
|
+
section: Insert section
|
|
8
|
+
subsection: Insert subsection
|
|
9
|
+
move-up:
|
|
10
|
+
paragraph: Move paragraph up
|
|
11
|
+
article: Move article up
|
|
12
|
+
title: Move title up
|
|
13
|
+
chapter: Move chapter up
|
|
14
|
+
section: Move section up
|
|
15
|
+
subsection: Move subsection up
|
|
16
|
+
move-down:
|
|
17
|
+
paragraph: Move paragraph down
|
|
18
|
+
article: Move article down
|
|
19
|
+
title: Move title down
|
|
20
|
+
chapter: Move chapter down
|
|
21
|
+
section: Move section down
|
|
22
|
+
subsection: Move subsection down
|
|
23
|
+
title:
|
|
24
|
+
structure-card: Structure Card
|
|
25
|
+
remove:
|
|
26
|
+
article: Remove Article
|
|
27
|
+
paragraph: Remove Paragraph
|
|
28
|
+
subsection: Remove subsection
|
|
29
|
+
section: Remove section
|
|
30
|
+
chapter: Remove chapter
|
|
31
|
+
title: Remove title
|
|
32
|
+
content: Remove content
|
|
33
|
+
placeholder:
|
|
34
|
+
generic:
|
|
35
|
+
heading: Insert title
|
|
36
|
+
body: Insert content
|
|
37
|
+
chapter:
|
|
38
|
+
heading: Insert chapter heading
|
|
39
|
+
body: Insert chapter content
|
|
40
|
+
section:
|
|
41
|
+
heading: Insert section heading
|
|
42
|
+
body: Insert section content
|
|
43
|
+
subsection:
|
|
44
|
+
heading: Insert subsection heading
|
|
45
|
+
body: Insert subsection content
|
|
46
|
+
article:
|
|
47
|
+
heading: Insert article heading
|
|
48
|
+
body: Insert article content
|
|
49
|
+
paragraph:
|
|
50
|
+
body: Insert paragraph content
|
|
51
|
+
|
|
52
|
+
|
|
1
53
|
citaten-plugin:
|
|
2
54
|
card:
|
|
3
55
|
title: Add reference
|
|
4
56
|
suggestions: Suggestions
|
|
5
|
-
|
|
6
57
|
insert:
|
|
7
58
|
title: Insert reference
|
|
8
|
-
|
|
9
59
|
search:
|
|
10
60
|
term: Search term
|
|
11
61
|
advanced: Advanced search
|
|
@@ -23,28 +73,24 @@ citaten-plugin:
|
|
|
23
73
|
article-placeholder: Article number
|
|
24
74
|
back: Back to search results
|
|
25
75
|
results: Results
|
|
26
|
-
|
|
27
76
|
pagination:
|
|
28
77
|
next: Next page
|
|
29
78
|
previous: Previous page
|
|
30
79
|
of: of
|
|
31
|
-
|
|
32
80
|
references:
|
|
33
81
|
insert: Insert reference
|
|
34
82
|
details: Details
|
|
35
83
|
refer-whole: Refer to whole document
|
|
36
84
|
refer-article: Refer to this article
|
|
37
85
|
lookup-codex: Lookup in Flemish Codex
|
|
38
|
-
|
|
39
86
|
alert:
|
|
40
87
|
loading: Loading…
|
|
41
88
|
no-results: No results found
|
|
42
89
|
error-title: Error while loading results
|
|
43
90
|
error-intro: "An error occured while loading results from the Flemish Codex:"
|
|
44
91
|
error-outro: In case this problem keeps occuring, please contact
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
toggle: Show Table of Contents
|
|
92
|
+
|
|
93
|
+
|
|
48
94
|
besluit-type-plugin:
|
|
49
95
|
dt: "Decision type"
|
|
50
96
|
insert-dt: "Select a decision type"
|
|
@@ -56,12 +102,16 @@ besluit-type-plugin:
|
|
|
56
102
|
error-title: "Error"
|
|
57
103
|
error-first-body: "An error occured while fetching the decision types. Try again later. If this problem persists, please contact"
|
|
58
104
|
error-rest-body: ". For more specific details about this problem, inspect the browser console."
|
|
105
|
+
|
|
106
|
+
|
|
59
107
|
besluit-plugin:
|
|
60
108
|
missing-title-warning: This decision is missing a title
|
|
61
109
|
insert:
|
|
62
110
|
decision-title: Insert decision title
|
|
63
111
|
placeholder:
|
|
64
112
|
decision-title: Insert decision title
|
|
113
|
+
|
|
114
|
+
|
|
65
115
|
date-plugin:
|
|
66
116
|
help:
|
|
67
117
|
title: "Custom format help"
|
|
@@ -112,56 +162,8 @@ variable-plugin:
|
|
|
112
162
|
insert-variable: Insert variable
|
|
113
163
|
button: Insert
|
|
114
164
|
enter-variable-value: Select value
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
title: Insert title
|
|
121
|
-
chapter: Insert chapter
|
|
122
|
-
section: Insert section
|
|
123
|
-
subsection: Insert subsection
|
|
124
|
-
move-up:
|
|
125
|
-
paragraph: Move paragraph up
|
|
126
|
-
article: Move article up
|
|
127
|
-
title: Move title up
|
|
128
|
-
chapter: Move chapter up
|
|
129
|
-
section: Move section up
|
|
130
|
-
subsection: Move subsection up
|
|
131
|
-
move-down:
|
|
132
|
-
paragraph: Move paragraph down
|
|
133
|
-
article: Move article down
|
|
134
|
-
title: Move title down
|
|
135
|
-
chapter: Move chapter down
|
|
136
|
-
section: Move section down
|
|
137
|
-
subsection: Move subsection down
|
|
138
|
-
title:
|
|
139
|
-
paragraphCard: Paragraph Card
|
|
140
|
-
articleCard: Article Card
|
|
141
|
-
structure-card: Structure Card
|
|
142
|
-
remove:
|
|
143
|
-
article: Remove Article
|
|
144
|
-
paragraph: Remove Paragraph
|
|
145
|
-
subsection: Remove subsection
|
|
146
|
-
section: Remove section
|
|
147
|
-
chapter: Remove chapter
|
|
148
|
-
title: Remove title
|
|
149
|
-
content: Remove content
|
|
150
|
-
placeholder:
|
|
151
|
-
generic:
|
|
152
|
-
heading: Insert title
|
|
153
|
-
body: Insert content
|
|
154
|
-
chapter:
|
|
155
|
-
heading: Insert chapter heading
|
|
156
|
-
body: Insert chapter content
|
|
157
|
-
section:
|
|
158
|
-
heading: Insert section heading
|
|
159
|
-
body: Insert section content
|
|
160
|
-
subsection:
|
|
161
|
-
heading: Insert subsection heading
|
|
162
|
-
body: Insert subsection content
|
|
163
|
-
article:
|
|
164
|
-
heading: Insert article heading
|
|
165
|
-
body: Insert article content
|
|
166
|
-
paragraph:
|
|
167
|
-
body: Insert paragraph content
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
table-of-contents-plugin:
|
|
168
|
+
title: Table of Contents
|
|
169
|
+
toggle: Show Table of Contents
|