@lblod/ember-rdfa-editor-lblod-plugins 35.0.0 → 35.0.1-dev.8d07110ab60ff217089bc8a8c821ef2661c27609
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 35.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#628](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/628) [`ef95ac6`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/ef95ac6afb3fcb00ab62c346376dbf5a88380bc2) Thanks [@kobemertens](https://github.com/kobemertens)! - Fix bug where snippet was not inserted if cursor was placed in link
|
|
8
|
+
|
|
9
|
+
- [#629](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/629) [`bbbbaa1`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/bbbbaa1109bc60cde8affcd8d54dff97b59dfd9b) Thanks [@piemonkey](https://github.com/piemonkey)! - Update tracked-built-ins dependency
|
|
10
|
+
|
|
3
11
|
## 35.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -17,6 +17,10 @@ import {
|
|
|
17
17
|
} from '@rdfjs/types';
|
|
18
18
|
import ValidationReport from 'rdf-validate-shacl/src/validation-report';
|
|
19
19
|
import { SayDataFactory } from '@lblod/ember-rdfa-editor/core/say-data-factory';
|
|
20
|
+
import {
|
|
21
|
+
BESLUIT,
|
|
22
|
+
RDF,
|
|
23
|
+
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
20
24
|
|
|
21
25
|
export const documentValidationPluginKey =
|
|
22
26
|
new PluginKey<DocumentValidationPluginState>('DOCUMENT_VALIDATION');
|
|
@@ -122,6 +126,10 @@ async function validationCallback(view: EditorView, documentHtml: string) {
|
|
|
122
126
|
const { documentShape } = documentValidationState;
|
|
123
127
|
const rdf = await htmlToRdf(documentHtml);
|
|
124
128
|
|
|
129
|
+
const documentHasDecision =
|
|
130
|
+
rdf.match(null, RDF('type').namedNode, BESLUIT('Besluit').namedNode).size >
|
|
131
|
+
0;
|
|
132
|
+
|
|
125
133
|
const shacl = await parse(documentShape);
|
|
126
134
|
|
|
127
135
|
const validator = new SHACLValidator(shacl, {
|
|
@@ -157,11 +165,13 @@ async function validationCallback(view: EditorView, documentHtml: string) {
|
|
|
157
165
|
}
|
|
158
166
|
}
|
|
159
167
|
|
|
160
|
-
const propertiesWithoutErrorsArray =
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
168
|
+
const propertiesWithoutErrorsArray = documentHasDecision
|
|
169
|
+
? propertyNodes.filter((propertyNode) =>
|
|
170
|
+
propertiesWithErrors.every(
|
|
171
|
+
(propertyWithError) => propertyWithError.shape !== propertyNode.value,
|
|
172
|
+
),
|
|
173
|
+
)
|
|
174
|
+
: [];
|
|
165
175
|
|
|
166
176
|
const successMessagePred = sayFactory.namedNode(
|
|
167
177
|
'http://mu.semte.ch/vocabularies/ext/successMessage',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "35.0.
|
|
3
|
+
"version": "35.0.1-dev.8d07110ab60ff217089bc8a8c821ef2661c27609",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"@codemirror/state": "^6.4.1",
|
|
57
57
|
"@codemirror/view": "^6.28.3",
|
|
58
58
|
"@curvenote/prosemirror-utils": "^1.0.5",
|
|
59
|
-
"@embroider/macros": "^1.
|
|
59
|
+
"@embroider/macros": "^1.19.7",
|
|
60
|
+
"@lblod/lib-decision-shapes": "^0.0.25",
|
|
60
61
|
"@lblod/marawa": "0.8.0-beta.6",
|
|
61
62
|
"@lblod/template-uuid-instantiator": "1.0.3",
|
|
62
63
|
"@rdfjs/data-model": "^2.0.2",
|
|
@@ -73,9 +74,8 @@
|
|
|
73
74
|
"ember-cli-htmlbars": "^6.3.0",
|
|
74
75
|
"ember-cli-version-checker": "^5.1.2",
|
|
75
76
|
"ember-resources": "^7.0.2",
|
|
76
|
-
"ember-template-imports": "^4.
|
|
77
|
+
"ember-template-imports": "^4.4.0",
|
|
77
78
|
"ember-velcro": "^2.2.0",
|
|
78
|
-
"@lblod/lib-decision-shapes": "^0.0.25",
|
|
79
79
|
"n2words": "^1.21.0",
|
|
80
80
|
"n3": "^1.26.0",
|
|
81
81
|
"process": "0.11.10",
|
|
@@ -83,26 +83,26 @@
|
|
|
83
83
|
"rdf-ext": "^2.5.2",
|
|
84
84
|
"rdf-validate-shacl": "^0.4.5",
|
|
85
85
|
"rdfa-streaming-parser": "^3.0.2",
|
|
86
|
-
"reactiveweb": "^1.
|
|
86
|
+
"reactiveweb": "^1.9.1",
|
|
87
87
|
"stream-browserify": "^3.0.0",
|
|
88
|
-
"tracked-built-ins": "^
|
|
88
|
+
"tracked-built-ins": "^4.1.0",
|
|
89
89
|
"tracked-toolbox": "^2.0.0",
|
|
90
90
|
"uuid": "^9.0.1",
|
|
91
91
|
"zod": "^3.24.1"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@appuniversum/ember-appuniversum": "~3.
|
|
94
|
+
"@appuniversum/ember-appuniversum": "~3.17.0",
|
|
95
95
|
"@changesets/changelog-github": "^0.5.0",
|
|
96
96
|
"@changesets/cli": "^2.27.7",
|
|
97
|
-
"@ember/optional-features": "^2.
|
|
98
|
-
"@ember/render-modifiers": "^
|
|
97
|
+
"@ember/optional-features": "^2.3.0",
|
|
98
|
+
"@ember/render-modifiers": "^3.0.0",
|
|
99
99
|
"@ember/string": "^3.1.1",
|
|
100
100
|
"@ember/test-helpers": "^3.3.1",
|
|
101
|
-
"@embroider/broccoli-side-watch": "^1.0
|
|
102
|
-
"@embroider/compat": "^3.
|
|
103
|
-
"@embroider/core": "^3.5.
|
|
101
|
+
"@embroider/broccoli-side-watch": "^1.1.0",
|
|
102
|
+
"@embroider/compat": "^3.9.3",
|
|
103
|
+
"@embroider/core": "^3.5.9",
|
|
104
104
|
"@embroider/test-setup": "^4.0.0",
|
|
105
|
-
"@embroider/webpack": "^4.1.
|
|
105
|
+
"@embroider/webpack": "^4.1.2",
|
|
106
106
|
"@gavant/glint-template-types": "^0.4.0",
|
|
107
107
|
"@glimmer/component": "^1.1.2",
|
|
108
108
|
"@glimmer/tracking": "^1.1.2",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"ember-addon": {
|
|
223
223
|
"configPath": "tests/dummy/config"
|
|
224
224
|
},
|
|
225
|
-
"packageManager": "pnpm@
|
|
225
|
+
"packageManager": "pnpm@10.28.2"
|
|
226
226
|
}
|