@lblod/ember-rdfa-editor-lblod-plugins 22.2.0 → 22.2.1-dev.2d10b694f35aed7ab261b98d254b3dccc79e1e8c

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': patch
3
+ ---
4
+
5
+ Correctly export empty person nodes
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': patch
3
+ ---
4
+
5
+ Correctly export empty person node
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 22.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#464](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/464) [`8401163`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/8401163ca2789e1303060fa1532cd26ce3eaa9e7) Thanks [@elpoelma](https://github.com/elpoelma)! - test-app: exclude fingerprinting on ember-leaflet related images to ensure production builds behave as expected
8
+
9
+ - [#466](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/466) [`227387b`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/227387b683b3b49314683b2c299c45c492393eb8) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Don't show title annotation outside the editor
10
+
3
11
  ## 22.2.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -17,6 +17,22 @@ related to the LBLOD Project.
17
17
  ember install ember-rdfa-editor-lblod-plugins
18
18
  ```
19
19
 
20
+ If you are using the location-plugin, you should also add the following configuration to your `ember-cli-build.js` file:
21
+ ```js
22
+ fingerprint: {
23
+ exclude: [
24
+ 'images/layers-2x.png',
25
+ 'images/layers.png',
26
+ 'images/marker-icon-2x.png',
27
+ 'images/marker-icon.png',
28
+ 'images/marker-shadow.png'
29
+ ]
30
+ }
31
+ ```
32
+ This ensures the map-view behaves as expected in production builds.
33
+
34
+ Check-out https://github.com/miguelcobain/ember-leaflet?tab=readme-ov-file#production-builds for more information.
35
+
20
36
  ## General addon information
21
37
 
22
38
  This addon contains the following editor plugins:
@@ -9,6 +9,7 @@ import {
9
9
  } from '@lblod/ember-rdfa-editor/utils/ember-node';
10
10
  import {
11
11
  DOMOutputSpec,
12
+ EditorState,
12
13
  getRdfaAttrs,
13
14
  PNode,
14
15
  rdfaAttrSpec,
@@ -19,6 +20,11 @@ import type { ComponentLike } from '@glint/template';
19
20
  import { hasOutgoingNamedNodeTriple } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
20
21
  import { renderRdfaAware } from '@lblod/ember-rdfa-editor/core/schema';
21
22
  import Mandatee from '@lblod/ember-rdfa-editor-lblod-plugins/models/mandatee';
23
+ import { getTranslationFunction } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/translation';
24
+
25
+ const TRANSLATION_FALLBACKS = {
26
+ nodeview_placeholder: 'persoon',
27
+ };
22
28
 
23
29
  const rdfaAware = true;
24
30
  const parseDOM = [
@@ -50,7 +56,8 @@ const parseDOM = [
50
56
  },
51
57
  ];
52
58
 
53
- const toDOM = (node: PNode): DOMOutputSpec => {
59
+ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
60
+ const t = getTranslationFunction(state);
54
61
  const mandatee = node.attrs.mandatee as Mandatee;
55
62
  return renderRdfaAware({
56
63
  renderable: node,
@@ -59,7 +66,12 @@ const toDOM = (node: PNode): DOMOutputSpec => {
59
66
  ...node.attrs,
60
67
  'data-mandatee': JSON.stringify(mandatee),
61
68
  },
62
- content: mandatee ? `${mandatee.fullName}` : '',
69
+ content: mandatee
70
+ ? `${mandatee.fullName}`
71
+ : t(
72
+ 'variable-plugin.person.nodeview-placeholder',
73
+ TRANSLATION_FALLBACKS.nodeview_placeholder,
74
+ ),
63
75
  });
64
76
  };
65
77
 
@@ -85,7 +97,7 @@ const emberNodeConfig: EmberNodeConfig = {
85
97
  default: null,
86
98
  },
87
99
  },
88
- toDOM,
100
+ serialize,
89
101
  parseDOM,
90
102
  };
91
103
 
@@ -1,9 +1,11 @@
1
- [property='eli:title']:before {
2
- content: 'Document-titel' !important;
3
- }
4
-
5
- [lang='en-US'] {
1
+ .rdfa-annotations-hover {
6
2
  [property='eli:title']:before {
7
- content: 'Document title' !important;
3
+ content: 'Document-titel' !important;
4
+ }
5
+
6
+ [lang='en-US'] {
7
+ [property='eli:title']:before {
8
+ content: 'Document title' !important;
9
+ }
8
10
  }
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "22.2.0",
3
+ "version": "22.2.1-dev.2d10b694f35aed7ab261b98d254b3dccc79e1e8c",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -268,7 +268,7 @@ variable-plugin:
268
268
  to: to
269
269
  person:
270
270
  card-title: Insert person
271
- nodeview-placeholder: person
271
+ nodeview-placeholder: Insert person
272
272
 
273
273
  table-of-contents-plugin:
274
274
  title: Table of Contents
@@ -272,7 +272,7 @@ variable-plugin:
272
272
  to: tot
273
273
  person:
274
274
  card-title: Persoon invoegen
275
- nodeview-placeholder: persoon
275
+ nodeview-placeholder: Voeg persoon in
276
276
  dummy:
277
277
  validation-card:
278
278
  title: Documentvalidatie