@lblod/ember-rdfa-editor-lblod-plugins 27.0.1 → 27.0.2

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,11 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 27.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3ca9431`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/3ca9431392d2927d1e5ee868745cda1cf7f78a4d) Thanks [@piemonkey](https://github.com/piemonkey)! - Correct default header format for decision articles in existing documents
8
+
3
9
  ## 27.0.1
4
10
 
5
11
  ### Patch Changes
@@ -245,7 +245,9 @@ export const emberNodeConfig: (
245
245
  attrs.rdfaNodeType === 'resource' &&
246
246
  node.dataset.sayRenderAs === 'structure'
247
247
  ) {
248
- const headerFormat = node.dataset.sayHeaderFormat;
248
+ // Since there are existing decision articles with no sayHeaderFormat, the default if
249
+ // unset is the default for these structures, 'name'
250
+ const headerFormat = node.dataset.sayHeaderFormat ?? 'name';
249
251
  // strict selector here to avoid false positives when structures are nested
250
252
  // :scope refers to the element on which we call querySelector
251
253
  // say-structure-header-content data attribute is now deprecated in favour of using an
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "27.0.1",
3
+ "version": "27.0.2",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",