@nl-portal/nl-portal-api 0.2.0-alpha.8 → 1.5.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/LICENSE.MD ADDED
@@ -0,0 +1,305 @@
1
+ LICENSE
2
+
3
+ Copyright © Ritense BV
4
+
5
+ NL Portal Frontend Libraries is licensed to you under the EUPL 1.2. You can download the license in 23 languages: https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.
6
+ If you have any questions about the use of this codebase in a larger work: just ask us.
7
+
8
+ ---
9
+ Third party licenses
10
+
11
+ All third party components are delivered under their own, original license.
12
+
13
+ ---
14
+
15
+
16
+
17
+
18
+
19
+ EUROPEAN UNION PUBLIC LICENCE v. 1.2
20
+ EUPL © the European Union 2007, 2016
21
+
22
+ This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
23
+ below) which is provided under the terms of this Licence. Any use of the Work,
24
+ other than as authorised under this Licence is prohibited (to the extent such
25
+ use is covered by a right of the copyright holder of the Work).
26
+
27
+ The Work is provided under the terms of this Licence when the Licensor (as
28
+ defined below) has placed the following notice immediately following the
29
+ copyright notice for the Work:
30
+
31
+ Licensed under the EUPL
32
+
33
+ or has expressed by any other means his willingness to license under the EUPL.
34
+
35
+ 1. Definitions
36
+
37
+ In this Licence, the following terms have the following meaning:
38
+
39
+ - ‘The Licence’: this Licence.
40
+
41
+ - ‘The Original Work’: the work or software distributed or communicated by the
42
+ Licensor under this Licence, available as Source Code and also as Executable
43
+ Code as the case may be.
44
+
45
+ - ‘Derivative Works’: the works or software that could be created by the
46
+ Licensee, based upon the Original Work or modifications thereof. This Licence
47
+ does not define the extent of modification or dependence on the Original Work
48
+ required in order to classify a work as a Derivative Work; this extent is
49
+ determined by copyright law applicable in the country mentioned in Article 15.
50
+
51
+ - ‘The Work’: the Original Work or its Derivative Works.
52
+
53
+ - ‘The Source Code’: the human-readable form of the Work which is the most
54
+ convenient for people to study and modify.
55
+
56
+ - ‘The Executable Code’: any code which has generally been compiled and which is
57
+ meant to be interpreted by a computer as a program.
58
+
59
+ - ‘The Licensor’: the natural or legal person that distributes or communicates
60
+ the Work under the Licence.
61
+
62
+ - ‘Contributor(s)’: any natural or legal person who modifies the Work under the
63
+ Licence, or otherwise contributes to the creation of a Derivative Work.
64
+
65
+ - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
66
+ the Work under the terms of the Licence.
67
+
68
+ - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
69
+ renting, distributing, communicating, transmitting, or otherwise making
70
+ available, online or offline, copies of the Work or providing access to its
71
+ essential functionalities at the disposal of any other natural or legal
72
+ person.
73
+
74
+ 2. Scope of the rights granted by the Licence
75
+
76
+ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
77
+ sublicensable licence to do the following, for the duration of copyright vested
78
+ in the Original Work:
79
+
80
+ - use the Work in any circumstance and for all usage,
81
+ - reproduce the Work,
82
+ - modify the Work, and make Derivative Works based upon the Work,
83
+ - communicate to the public, including the right to make available or display
84
+ the Work or copies thereof to the public and perform publicly, as the case may
85
+ be, the Work,
86
+ - distribute the Work or copies thereof,
87
+ - lend and rent the Work or copies thereof,
88
+ - sublicense rights in the Work or copies thereof.
89
+
90
+ Those rights can be exercised on any media, supports and formats, whether now
91
+ known or later invented, as far as the applicable law permits so.
92
+
93
+ In the countries where moral rights apply, the Licensor waives his right to
94
+ exercise his moral right to the extent allowed by law in order to make effective
95
+ the licence of the economic rights here above listed.
96
+
97
+ The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to
98
+ any patents held by the Licensor, to the extent necessary to make use of the
99
+ rights granted on the Work under this Licence.
100
+
101
+ 3. Communication of the Source Code
102
+
103
+ The Licensor may provide the Work either in its Source Code form, or as
104
+ Executable Code. If the Work is provided as Executable Code, the Licensor
105
+ provides in addition a machine-readable copy of the Source Code of the Work
106
+ along with each copy of the Work that the Licensor distributes or indicates, in
107
+ a notice following the copyright notice attached to the Work, a repository where
108
+ the Source Code is easily and freely accessible for as long as the Licensor
109
+ continues to distribute or communicate the Work.
110
+
111
+ 4. Limitations on copyright
112
+
113
+ Nothing in this Licence is intended to deprive the Licensee of the benefits from
114
+ any exception or limitation to the exclusive rights of the rights owners in the
115
+ Work, of the exhaustion of those rights or of other applicable limitations
116
+ thereto.
117
+
118
+ 5. Obligations of the Licensee
119
+
120
+ The grant of the rights mentioned above is subject to some restrictions and
121
+ obligations imposed on the Licensee. Those obligations are the following:
122
+
123
+ Attribution right: The Licensee shall keep intact all copyright, patent or
124
+ trademarks notices and all notices that refer to the Licence and to the
125
+ disclaimer of warranties. The Licensee must include a copy of such notices and a
126
+ copy of the Licence with every copy of the Work he/she distributes or
127
+ communicates. The Licensee must cause any Derivative Work to carry prominent
128
+ notices stating that the Work has been modified and the date of modification.
129
+
130
+ Copyleft clause: If the Licensee distributes or communicates copies of the
131
+ Original Works or Derivative Works, this Distribution or Communication will be
132
+ done under the terms of this Licence or of a later version of this Licence
133
+ unless the Original Work is expressly distributed only under this version of the
134
+ Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
135
+ (becoming Licensor) cannot offer or impose any additional terms or conditions on
136
+ the Work or Derivative Work that alter or restrict the terms of the Licence.
137
+
138
+ Compatibility clause: If the Licensee Distributes or Communicates Derivative
139
+ Works or copies thereof based upon both the Work and another work licensed under
140
+ a Compatible Licence, this Distribution or Communication can be done under the
141
+ terms of this Compatible Licence. For the sake of this clause, ‘Compatible
142
+ Licence’ refers to the licences listed in the appendix attached to this Licence.
143
+ Should the Licensee's obligations under the Compatible Licence conflict with
144
+ his/her obligations under this Licence, the obligations of the Compatible
145
+ Licence shall prevail.
146
+
147
+ Provision of Source Code: When distributing or communicating copies of the Work,
148
+ the Licensee will provide a machine-readable copy of the Source Code or indicate
149
+ a repository where this Source will be easily and freely available for as long
150
+ as the Licensee continues to distribute or communicate the Work.
151
+
152
+ Legal Protection: This Licence does not grant permission to use the trade names,
153
+ trademarks, service marks, or names of the Licensor, except as required for
154
+ reasonable and customary use in describing the origin of the Work and
155
+ reproducing the content of the copyright notice.
156
+
157
+ 6. Chain of Authorship
158
+
159
+ The original Licensor warrants that the copyright in the Original Work granted
160
+ hereunder is owned by him/her or licensed to him/her and that he/she has the
161
+ power and authority to grant the Licence.
162
+
163
+ Each Contributor warrants that the copyright in the modifications he/she brings
164
+ to the Work are owned by him/her or licensed to him/her and that he/she has the
165
+ power and authority to grant the Licence.
166
+
167
+ Each time You accept the Licence, the original Licensor and subsequent
168
+ Contributors grant You a licence to their contributions to the Work, under the
169
+ terms of this Licence.
170
+
171
+ 7. Disclaimer of Warranty
172
+
173
+ The Work is a work in progress, which is continuously improved by numerous
174
+ Contributors. It is not a finished work and may therefore contain defects or
175
+ ‘bugs’ inherent to this type of development.
176
+
177
+ For the above reason, the Work is provided under the Licence on an ‘as is’ basis
178
+ and without warranties of any kind concerning the Work, including without
179
+ limitation merchantability, fitness for a particular purpose, absence of defects
180
+ or errors, accuracy, non-infringement of intellectual property rights other than
181
+ copyright as stated in Article 6 of this Licence.
182
+
183
+ This disclaimer of warranty is an essential part of the Licence and a condition
184
+ for the grant of any rights to the Work.
185
+
186
+ 8. Disclaimer of Liability
187
+
188
+ Except in the cases of wilful misconduct or damages directly caused to natural
189
+ persons, the Licensor will in no event be liable for any direct or indirect,
190
+ material or moral, damages of any kind, arising out of the Licence or of the use
191
+ of the Work, including without limitation, damages for loss of goodwill, work
192
+ stoppage, computer failure or malfunction, loss of data or any commercial
193
+ damage, even if the Licensor has been advised of the possibility of such damage.
194
+ However, the Licensor will be liable under statutory product liability laws as
195
+ far such laws apply to the Work.
196
+
197
+ 9. Additional agreements
198
+
199
+ While distributing the Work, You may choose to conclude an additional agreement,
200
+ defining obligations or services consistent with this Licence. However, if
201
+ accepting obligations, You may act only on your own behalf and on your sole
202
+ responsibility, not on behalf of the original Licensor or any other Contributor,
203
+ and only if You agree to indemnify, defend, and hold each Contributor harmless
204
+ for any liability incurred by, or claims asserted against such Contributor by
205
+ the fact You have accepted any warranty or additional liability.
206
+
207
+ 10. Acceptance of the Licence
208
+
209
+ The provisions of this Licence can be accepted by clicking on an icon ‘I agree’
210
+ placed under the bottom of a window displaying the text of this Licence or by
211
+ affirming consent in any other similar way, in accordance with the rules of
212
+ applicable law. Clicking on that icon indicates your clear and irrevocable
213
+ acceptance of this Licence and all of its terms and conditions.
214
+
215
+ Similarly, you irrevocably accept this Licence and all of its terms and
216
+ conditions by exercising any rights granted to You by Article 2 of this Licence,
217
+ such as the use of the Work, the creation by You of a Derivative Work or the
218
+ Distribution or Communication by You of the Work or copies thereof.
219
+
220
+ 11. Information to the public
221
+
222
+ In case of any Distribution or Communication of the Work by means of electronic
223
+ communication by You (for example, by offering to download the Work from a
224
+ remote location) the distribution channel or media (for example, a website) must
225
+ at least provide to the public the information requested by the applicable law
226
+ regarding the Licensor, the Licence and the way it may be accessible, concluded,
227
+ stored and reproduced by the Licensee.
228
+
229
+ 12. Termination of the Licence
230
+
231
+ The Licence and the rights granted hereunder will terminate automatically upon
232
+ any breach by the Licensee of the terms of the Licence.
233
+
234
+ Such a termination will not terminate the licences of any person who has
235
+ received the Work from the Licensee under the Licence, provided such persons
236
+ remain in full compliance with the Licence.
237
+
238
+ 13. Miscellaneous
239
+
240
+ Without prejudice of Article 9 above, the Licence represents the complete
241
+ agreement between the Parties as to the Work.
242
+
243
+ If any provision of the Licence is invalid or unenforceable under applicable
244
+ law, this will not affect the validity or enforceability of the Licence as a
245
+ whole. Such provision will be construed or reformed so as necessary to make it
246
+ valid and enforceable.
247
+
248
+ The European Commission may publish other linguistic versions or new versions of
249
+ this Licence or updated versions of the Appendix, so far this is required and
250
+ reasonable, without reducing the scope of the rights granted by the Licence. New
251
+ versions of the Licence will be published with a unique version number.
252
+
253
+ All linguistic versions of this Licence, approved by the European Commission,
254
+ have identical value. Parties can take advantage of the linguistic version of
255
+ their choice.
256
+
257
+ 14. Jurisdiction
258
+
259
+ Without prejudice to specific agreement between parties,
260
+
261
+ - any litigation resulting from the interpretation of this License, arising
262
+ between the European Union institutions, bodies, offices or agencies, as a
263
+ Licensor, and any Licensee, will be subject to the jurisdiction of the Court
264
+ of Justice of the European Union, as laid down in article 272 of the Treaty on
265
+ the Functioning of the European Union,
266
+
267
+ - any litigation arising between other parties and resulting from the
268
+ interpretation of this License, will be subject to the exclusive jurisdiction
269
+ of the competent court where the Licensor resides or conducts its primary
270
+ business.
271
+
272
+ 15. Applicable Law
273
+
274
+ Without prejudice to specific agreement between parties,
275
+
276
+ - this Licence shall be governed by the law of the European Union Member State
277
+ where the Licensor has his seat, resides or has his registered office,
278
+
279
+ - this licence shall be governed by Belgian law if the Licensor has no seat,
280
+ residence or registered office inside a European Union Member State.
281
+
282
+ Appendix
283
+
284
+ ‘Compatible Licences’ according to Article 5 EUPL are:
285
+
286
+ - GNU General Public License (GPL) v. 2, v. 3
287
+ - GNU Affero General Public License (AGPL) v. 3
288
+ - Open Software License (OSL) v. 2.1, v. 3.0
289
+ - Eclipse Public License (EPL) v. 1.0
290
+ - CeCILL v. 2.0, v. 2.1
291
+ - Mozilla Public Licence (MPL) v. 2
292
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
293
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
294
+ works other than software
295
+ - European Union Public Licence (EUPL) v. 1.1, v. 1.2
296
+ - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
297
+ Reciprocity (LiLiQ-R+).
298
+
299
+ The European Commission may update this Appendix to later versions of the above
300
+ licences without producing a new version of the EUPL, as long as they provide
301
+ the rights granted in Article 2 of this Licence and protect the covered Source
302
+ Code from exclusive appropriation.
303
+
304
+ All other changes or additions to this Appendix require the production of a new
305
+ EUPL version.
@@ -1,14 +1,14 @@
1
- import { _ as p, a as L, b as Y, c as ee, d as te, e as U } from "./tslib@2.6.2--5uNHRLn.js";
2
- import { w as Me, d as zr } from "./optimism@0.18.0-HGYEqOr2.js";
1
+ import { _ as p, a as L, b as Y, c as ee, d as te, e as U } from "./tslib@2.8.1-B0P70W8Y.js";
2
+ import { w as Me, d as zr } from "./optimism@0.18.1-vkGRflJY.js";
3
3
  import { e as F } from "./@wry_equality@0.5.7-B4-3SnYn.js";
4
4
  import { O as Q } from "./zen-observable-ts@1.2.5-DOQIqfq0.js";
5
- import { S as rr, W as Ge } from "./@wry_caches@1.0.1-B3M4rOrn.js";
5
+ import { W as Ge, S as rr } from "./@wry_caches@1.0.1-B3M4rOrn.js";
6
6
  import { T as he } from "./@wry_trie@0.5.0-BddknVTL.js";
7
- import { v as ne, B as Br, p as Ln, K as W, i as nr } from "./graphql@16.8.1-H_Y5NI5K.js";
7
+ import { v as ne, B as Br, p as Ln, K as W, i as nr } from "./graphql@16.10.0-F120zqtd.js";
8
8
  import "./symbol-observable@4.0.0-C4hJuNth.js";
9
- import { S as An } from "./@wry_context@0.7.4-18Iknt7s.js";
10
- import { i as Ee, I as Nn } from "./ts-invariant@0.10.3-mVIcCCGz.js";
11
- import { R as It, r as R } from "./rehackt@0.1.0_@types_react@18.3.9_react@18.3.1-CiIBBSrF.js";
9
+ import { S as An } from "./@wry_context@0.7.4-BFtqmAuW.js";
10
+ import { i as Ee, I as Nn } from "./ts-invariant@0.10.3-CsD-eSOa.js";
11
+ import { R as It, r as R } from "./rehackt@0.1.0_@types_react@18.3.18_react@18.3.1-CdrLSKYQ.js";
12
12
  var xt = "3.11.1";
13
13
  function B(r) {
14
14
  try {
@@ -1,7 +1,7 @@
1
1
  let t = null;
2
- const i = {};
2
+ const a = {};
3
3
  let y = 1;
4
- const h = () => class {
4
+ const d = () => class {
5
5
  constructor() {
6
6
  this.id = [
7
7
  "slot",
@@ -11,64 +11,64 @@ const h = () => class {
11
11
  ].join(":");
12
12
  }
13
13
  hasValue() {
14
- for (let e = t; e; e = e.parent)
15
- if (this.id in e.slots) {
16
- const n = e.slots[this.id];
17
- if (n === i)
14
+ for (let n = t; n; n = n.parent)
15
+ if (this.id in n.slots) {
16
+ const e = n.slots[this.id];
17
+ if (e === a)
18
18
  break;
19
- return e !== t && (t.slots[this.id] = n), !0;
19
+ return n !== t && (t.slots[this.id] = e), !0;
20
20
  }
21
- return t && (t.slots[this.id] = i), !1;
21
+ return t && (t.slots[this.id] = a), !1;
22
22
  }
23
23
  getValue() {
24
24
  if (this.hasValue())
25
25
  return t.slots[this.id];
26
26
  }
27
- withValue(e, n, l, o) {
27
+ withValue(n, e, l, s) {
28
28
  const f = {
29
29
  __proto__: null,
30
- [this.id]: e
31
- }, a = t;
32
- t = { parent: a, slots: f };
30
+ [this.id]: n
31
+ }, i = t;
32
+ t = { parent: i, slots: f };
33
33
  try {
34
- return n.apply(o, l);
34
+ return e.apply(s, l);
35
35
  } finally {
36
- t = a;
36
+ t = i;
37
37
  }
38
38
  }
39
39
  // Capture the current context and wrap a callback function so that it
40
40
  // reestablishes the captured context when called.
41
- static bind(e) {
42
- const n = t;
41
+ static bind(n) {
42
+ const e = t;
43
43
  return function() {
44
44
  const l = t;
45
45
  try {
46
- return t = n, e.apply(this, arguments);
46
+ return t = e, n.apply(this, arguments);
47
47
  } finally {
48
48
  t = l;
49
49
  }
50
50
  };
51
51
  }
52
52
  // Immediately run a callback function without any captured context.
53
- static noContext(e, n, l) {
53
+ static noContext(n, e, l) {
54
54
  if (t) {
55
- const o = t;
55
+ const s = t;
56
56
  try {
57
- return t = null, e.apply(l, n);
57
+ return t = null, n.apply(l, e);
58
58
  } finally {
59
- t = o;
59
+ t = s;
60
60
  }
61
61
  } else
62
- return e.apply(l, n);
62
+ return n.apply(l, e);
63
63
  }
64
64
  };
65
- function u(s) {
65
+ function u(o) {
66
66
  try {
67
- return s();
67
+ return o();
68
68
  } catch {
69
69
  }
70
70
  }
71
- const r = "@wry/context:Slot", d = (
71
+ const r = "@wry/context:Slot", h = (
72
72
  // Prefer globalThis when available.
73
73
  // https://github.com/benjamn/wryware/issues/347
74
74
  u(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
@@ -78,12 +78,12 @@ const r = "@wry/context:Slot", d = (
78
78
  // back to using the Array constructor as a namespace, but that was flagged in
79
79
  // https://github.com/benjamn/wryware/issues/347, and can be avoided.
80
80
  /* @__PURE__ */ Object.create(null)
81
- ), c = d, b = c[r] || // Earlier versions of this package stored the globalKey property on the Array
81
+ ), c = h, p = c[r] || // Earlier versions of this package stored the globalKey property on the Array
82
82
  // constructor, so we check there as well, to prevent Slot class duplication.
83
- Array[r] || function(s) {
83
+ Array[r] || function(o) {
84
84
  try {
85
85
  Object.defineProperty(c, r, {
86
- value: s,
86
+ value: o,
87
87
  enumerable: !1,
88
88
  writable: !1,
89
89
  // When it was possible for globalHost to be the Array constructor (a
@@ -95,9 +95,9 @@ Array[r] || function(s) {
95
95
  configurable: !0
96
96
  });
97
97
  } finally {
98
- return s;
98
+ return o;
99
99
  }
100
- }(h());
100
+ }(d()), { bind: g, noContext: x } = p;
101
101
  export {
102
- b as S
102
+ p as S
103
103
  };
@@ -0,0 +1,3 @@
1
+ import { InMemoryCacheConfig } from '@apollo/client';
2
+
3
+ export declare const defaultInMemoryCacheOptions: InMemoryCacheConfig;
@@ -1,3 +1,4 @@
1
+ import { InMemoryCacheConfig } from '@apollo/client';
1
2
  import { default as React } from 'react';
2
3
 
3
4
  interface ContextProps {
@@ -8,6 +9,7 @@ interface Props {
8
9
  children: React.ReactNode;
9
10
  graphqlUri: string;
10
11
  restUri: string;
12
+ inMemoryCacheOptions?: InMemoryCacheConfig;
11
13
  }
12
- export declare const ApiProvider: ({ children, graphqlUri, restUri }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ApiProvider: ({ children, graphqlUri, restUri, inMemoryCacheOptions, }: Props) => import("react/jsx-runtime").JSX.Element;
13
15
  export default ApiContext;