@lblod/ember-rdfa-editor-lblod-plugins 22.0.0 → 22.0.1-dev.d1f3a8c10c84fcfd02fbea2df18f10523d548287

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
+ Add support for relative urls to lpdc endpoint configuration
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 22.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#456](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/456) [`f1844a1`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/f1844a1c61112bbc226e84b2728b20ae18410715) Thanks [@abeforgit](https://github.com/abeforgit)! - Allow any block content in snippet nodes
8
+
3
9
  ## 22.0.0
4
10
 
5
11
  ### Major Changes
@@ -60,9 +60,11 @@ export const fetchLpdcs = async ({
60
60
  };
61
61
  };
62
62
  }> => {
63
- const endpoint = config?.endpoint;
63
+ const endpoint = `${config?.endpoint}/doc/instantie`;
64
64
 
65
- const url = new URL(`${endpoint}/doc/instantie`);
65
+ const url = endpoint.startsWith('/')
66
+ ? new URL(endpoint, window.location.origin)
67
+ : new URL(endpoint);
66
68
 
67
69
  if (filter?.name) {
68
70
  url.searchParams.append('zoekterm', filter.name);
@@ -72,7 +74,7 @@ export const fetchLpdcs = async ({
72
74
  url.searchParams.append('pageIndex', pageNumber.toString());
73
75
  }
74
76
 
75
- const results = await fetch(url.toString(), {
77
+ const results = await fetch(url, {
76
78
  method: 'GET',
77
79
  headers: {
78
80
  Accept: 'application/json',
@@ -41,7 +41,7 @@ const emberNodeConfig = (options: SnippetPluginConfig): EmberNodeConfig => ({
41
41
  config: { default: options },
42
42
  },
43
43
  component: SnippetComponent,
44
- content: '(block | title | chapter | article)*',
44
+ content: 'block+',
45
45
  serialize(node) {
46
46
  return renderRdfaAware({
47
47
  renderable: node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "22.0.0",
3
+ "version": "22.0.1-dev.d1f3a8c10c84fcfd02fbea2df18f10523d548287",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",