@lblod/ember-rdfa-editor-lblod-plugins 32.5.2 → 32.5.3

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,15 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 32.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#594](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/594) [`b732735`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/b732735c373e2cec7bb4ccce6974cc0934ae1f99) Thanks [@abeforgit](https://github.com/abeforgit)! - Fix parsing of articles
8
+
9
+ - [#595](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/595) [`eb0aea2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/eb0aea28d0887ef5274aba72c6f6a7daa02aca24) Thanks [@piemonkey](https://github.com/piemonkey)! - Fix parsing of oslo locations to no longer incorrectly catch non-locations
10
+
11
+ - [#596](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/596) [`ece607c`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/ece607cf50f6480277f9b47893df71fbb85e4b82) Thanks [@piemonkey](https://github.com/piemonkey)! - Correctly parse the subject URI of roadsign_regulation nodes
12
+
3
13
  ## 32.5.2
4
14
 
5
15
  ### Patch Changes
@@ -109,13 +109,15 @@ const parseDOM = (config: LocationPluginConfig): TagParseRule[] => {
109
109
  nodeContentsUtils.address.parse(contentContainer.children[0]) ||
110
110
  nodeContentsUtils.place.parse(contentContainer.children[0]) ||
111
111
  nodeContentsUtils.area.parse(contentContainer.children[0]);
112
- // Ignore the properties for now, we handle these ourselves
113
- const properties: OutgoingTriple[] = [];
114
- return {
115
- ...attrs,
116
- properties,
117
- value: location,
118
- };
112
+ if (location) {
113
+ // Ignore the properties for now, we handle these ourselves
114
+ const properties: OutgoingTriple[] = [];
115
+ return {
116
+ ...attrs,
117
+ properties,
118
+ value: location,
119
+ };
120
+ }
119
121
  }
120
122
  return false;
121
123
  },
@@ -114,6 +114,7 @@ export const roadsign_regulation: NodeSpec = {
114
114
  __rdfaId,
115
115
  properties: propertiesFiltered,
116
116
  backlinks,
117
+ subject: resourceUri,
117
118
  label: `Mobiliteitsmaatregel`,
118
119
  };
119
120
  }
@@ -476,7 +476,7 @@ export const emberNodeConfig: (
476
476
  const body = Array.from(rdfaContent.children).find((child) =>
477
477
  SAY('body').matches(child.getAttribute('property') ?? ''),
478
478
  );
479
- return (body && getRdfaContentElement(body)) ?? (node as HTMLElement);
479
+ return (body && getRdfaContentElement(body)) ?? node;
480
480
  },
481
481
  },
482
482
  {
@@ -537,7 +537,7 @@ export const emberNodeConfig: (
537
537
  if (bodyNode) {
538
538
  return getRdfaContentElement(bodyNode);
539
539
  } else {
540
- return node as HTMLElement;
540
+ return node;
541
541
  }
542
542
  },
543
543
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "32.5.2",
3
+ "version": "32.5.3",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -112,7 +112,7 @@
112
112
  "@glint/template": "^1.5.0",
113
113
  "@graphy/content.ttl.write": "^4.3.7",
114
114
  "@graphy/memory.dataset.fast": "4.3.3",
115
- "@lblod/ember-rdfa-editor": "12.9.0",
115
+ "@lblod/ember-rdfa-editor": "^12.12.1",
116
116
  "@rdfjs/types": "^1.1.0",
117
117
  "@release-it/keep-a-changelog": "^4.0.0",
118
118
  "@tsconfig/ember": "^3.0.8",
@@ -183,7 +183,7 @@
183
183
  "@appuniversum/ember-appuniversum": "^3.12.0",
184
184
  "@ember/string": "3.x",
185
185
  "@glint/template": "^1.4.0",
186
- "@lblod/ember-rdfa-editor": "^12.1.0",
186
+ "@lblod/ember-rdfa-editor": "^12.12.1",
187
187
  "ember-concurrency": "^4.0.2",
188
188
  "ember-element-helper": "^0.8.6",
189
189
  "ember-intl": "^7.0.0",