@lblod/ember-rdfa-editor-lblod-plugins 30.0.0 → 31.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/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 31.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#564](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/564) [`d1c6b1e`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/d1c6b1e7a625a1ceaa6bae3b49359b33075f49f0) Thanks [@lagartoverde](https://github.com/lagartoverde)! - BREAKING: changed the endpoint config on lpdc plugin so you can specify if you want instances or concepts.
8
+ The config of the lpdc plugin should go from:
9
+
10
+ ```
11
+ lpdc: {
12
+ endpoint: '/lpdc-service',
13
+ },
14
+ ```
15
+
16
+ to
17
+
18
+ ```
19
+ lpdc: {
20
+ endpoint: '/lpdc-service/doc/instantie',
21
+ },
22
+ ```
23
+
24
+ To maintain the same functionality or
25
+
26
+ ```
27
+ lpdc: {
28
+ endpoint: '/lpdc-service/doc/concept',
29
+ },
30
+ ```
31
+
32
+ To fetch the concepts instead of the instances
33
+
34
+ ### Patch Changes
35
+
36
+ - [#567](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/567) [`04c249c`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/04c249c10a0cf0c67e3f947f5d21008ccefc1268) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Add eli:title to structure titles
37
+
38
+ - [#565](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/565) [`6d321ab`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/6d321abda33b6324d911643ca82938e086bdb2e3) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove unsupported `keyboardInstruction` property from `AuDatePicker` `localization` argument
39
+
40
+ - [#566](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/566) [`ae9d297`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/ae9d297de3a4f5b1c828a9f2e36483d8c680a6a3) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Include paragraph symbol in the serialization of the node
41
+
3
42
  ## 30.0.0
4
43
 
5
44
  ### Major Changes
@@ -85,7 +85,6 @@ export default class EditorPluginsCitationsSearchModalComponent extends Componen
85
85
  monthSelectLabel: this.intl.t('au-date-picker.month-select-label'),
86
86
  yearSelectLabel: this.intl.t('au-date-picker.year-select-label'),
87
87
  closeLabel: this.intl.t('au-date-picker.close-label'),
88
- keyboardInstruction: this.intl.t('au-date-picker.keyboard-instruction'),
89
88
  calendarHeading: this.intl.t('au-date-picker.calendar-heading'),
90
89
  dayNames: getLocalizedDays(this.intl),
91
90
  monthNames: getLocalizedMonths(this.intl),
@@ -60,7 +60,7 @@ export const fetchLpdcs = async ({
60
60
  };
61
61
  };
62
62
  }> => {
63
- const endpoint = `${config?.endpoint}/doc/instantie`;
63
+ const endpoint = `${config?.endpoint}`;
64
64
 
65
65
  const url = endpoint.startsWith('/')
66
66
  ? new URL(endpoint, window.location.origin)
@@ -45,6 +45,8 @@ import {
45
45
 
46
46
  const rdfaAware = true;
47
47
 
48
+ const PARAGRAPH_SYMBOL = '§';
49
+
48
50
  export function getNameForStructureType(
49
51
  structureType: StructureType,
50
52
  number: number,
@@ -102,7 +104,7 @@ function buildTocEntry(node: PNode, state: EditorState) {
102
104
  return `${structureName}${titleString}`;
103
105
  }
104
106
  } else if (headerFormat === 'section-symbol') {
105
- const structureName = '§';
107
+ const structureName = PARAGRAPH_SYMBOL;
106
108
  return `${structureName}${numberString}${titleString}`;
107
109
  } else {
108
110
  return `${numberString}${titleString}`;
@@ -199,7 +201,7 @@ export const emberNodeConfig: (
199
201
  if (titleHTML) {
200
202
  headerSpec = [
201
203
  tag,
202
- { 'data-say-structure-header': true },
204
+ { 'data-say-structure-header': true, property: ELI('title').full },
203
205
  ...(structureName
204
206
  ? [
205
207
  [
@@ -209,6 +211,7 @@ export const emberNodeConfig: (
209
211
  ],
210
212
  ]
211
213
  : []),
214
+ headerFormat === 'section-symbol' ? PARAGRAPH_SYMBOL : '',
212
215
  [
213
216
  'span',
214
217
  {
@@ -225,6 +228,7 @@ export const emberNodeConfig: (
225
228
  } else {
226
229
  headerSpec = [
227
230
  tag,
231
+ { property: ELI('title').full },
228
232
  ...(structureName
229
233
  ? [
230
234
  [
@@ -234,6 +238,7 @@ export const emberNodeConfig: (
234
238
  ],
235
239
  ]
236
240
  : []),
241
+ headerFormat === 'section-symbol' ? PARAGRAPH_SYMBOL : '',
237
242
  [
238
243
  'span',
239
244
  {
@@ -37,7 +37,6 @@ export default class EditorPluginsCitationsSearchModalComponent extends Componen
37
37
  monthSelectLabel: string;
38
38
  yearSelectLabel: string;
39
39
  closeLabel: string;
40
- keyboardInstruction: string;
41
40
  calendarHeading: string;
42
41
  dayNames: string[];
43
42
  monthNames: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "30.0.0",
3
+ "version": "31.0.0",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",