@beinformed/ui 2.0.0-beta.2 → 2.0.0-beta.4

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{FormModel-Cmzm2g7k.d.ts → FormModel-6QhB7ctI.d.ts} +1 -1
  3. package/dist/{FormModel-Qa655sE-.d.cts → FormModel-Cfg7h0er.d.cts} +1 -1
  4. package/dist/{chunk-CPYNQW3X.js → chunk-DUTPBVXD.js} +1 -1
  5. package/dist/{chunk-CPYNQW3X.js.map → chunk-DUTPBVXD.js.map} +1 -1
  6. package/dist/{chunk-RI2O4J7J.js → chunk-I2APZXO7.js} +2 -2
  7. package/dist/chunk-I2APZXO7.js.map +1 -0
  8. package/dist/{chunk-VLKSMXSB.js → chunk-J2QT7BB2.js} +2 -2
  9. package/dist/{chunk-GHQP5QNP.js → chunk-S3X2VJQL.js} +1 -1
  10. package/dist/{chunk-GHQP5QNP.js.map → chunk-S3X2VJQL.js.map} +1 -1
  11. package/dist/{chunk-Y3XZHSPE.js → chunk-TDCALIXY.js} +2 -2
  12. package/dist/chunk-YYBJKNUB.js +1 -0
  13. package/dist/{chunk-GDEYM54A.js → chunk-Z33QXJGH.js} +2 -2
  14. package/dist/{chunk-GDEYM54A.js.map → chunk-Z33QXJGH.js.map} +1 -1
  15. package/dist/exceptions/index.d.cts +2 -2
  16. package/dist/exceptions/index.d.ts +2 -2
  17. package/dist/{index-RuAoNZgc.d.cts → index-DP8fYb9i.d.cts} +2 -2
  18. package/dist/{index-BxJE8Lob.d.ts → index-Dz6sC5Ns.d.ts} +2 -2
  19. package/dist/index.cjs +4 -4
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +4 -4
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.js +1 -1
  24. package/dist/layouthints/index.cjs.map +1 -1
  25. package/dist/layouthints/index.d.cts +1 -2
  26. package/dist/layouthints/index.d.ts +1 -2
  27. package/dist/layouthints/index.js +1 -1
  28. package/dist/models/index.cjs +4 -4
  29. package/dist/models/index.cjs.map +1 -1
  30. package/dist/models/index.d.cts +4 -4
  31. package/dist/models/index.d.ts +4 -4
  32. package/dist/models/index.js +1 -1
  33. package/dist/modularui/index.cjs +4 -4
  34. package/dist/modularui/index.cjs.map +1 -1
  35. package/dist/modularui/index.d.cts +12 -10
  36. package/dist/modularui/index.d.ts +12 -10
  37. package/dist/modularui/index.js +1 -1
  38. package/dist/types/index.d.cts +1 -1
  39. package/dist/types/index.d.ts +1 -1
  40. package/dist/utils/index.cjs.map +1 -1
  41. package/dist/utils/index.d.cts +3 -5
  42. package/dist/utils/index.d.ts +3 -5
  43. package/dist/utils/index.js +1 -1
  44. package/package.json +2 -2
  45. package/dist/chunk-QIGFPQFN.js +0 -1
  46. package/dist/chunk-RI2O4J7J.js.map +0 -1
  47. /package/dist/{chunk-VLKSMXSB.js.map → chunk-J2QT7BB2.js.map} +0 -0
  48. /package/dist/{chunk-Y3XZHSPE.js.map → chunk-TDCALIXY.js.map} +0 -0
  49. /package/dist/{chunk-QIGFPQFN.js.map → chunk-YYBJKNUB.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { i as INTERNAL_LOGIN_TYPE, H as HTTP_METHODS } from '../Constants-CYAEbTZ4.cjs';
2
- import { c8 as Href, c_ as HrefState, cR as ModularUIResponse, cS as TargetModel, cZ as ResourceData, cY as Contributions, df as ModularUIRequestOptions, db as ProgressHandler$1, cN as ModularUIModel, aw as ResourceModel, ap as FiletypeConstraintsType, aq as FilesizeConstraintsType } from '../index-RuAoNZgc.cjs';
3
- export { cU as AuthenticationType, cV as ModelConfig, cT as ModularUISpecificErrorResponse } from '../index-RuAoNZgc.cjs';
4
- import { C as ContentModel, F as FormModel } from '../FormModel-Qa655sE-.cjs';
2
+ import { cW as ModelConfig, cS as ModularUIResponse, cT as TargetModel, c_ as ResourceData, cZ as Contributions, c9 as Href, c$ as HrefState, dg as ModularUIRequestOptions, dc as ProgressHandler$1, cO as ModularUIModel, aw as ResourceModel, ap as FiletypeConstraintsType, aq as FilesizeConstraintsType } from '../index-DP8fYb9i.cjs';
3
+ export { cV as AuthenticationType, cU as ModularUISpecificErrorResponse } from '../index-DP8fYb9i.cjs';
4
+ import { C as ContentModel, F as FormModel } from '../FormModel-Cfg7h0er.cjs';
5
5
  import 'immer';
6
6
  import '@date-fns/tz/date';
7
7
  import 'date-fns';
@@ -103,12 +103,7 @@ declare class CaptchaRequest {
103
103
  }>;
104
104
  }
105
105
 
106
- declare class ModularUIError extends Error {
107
- response: object;
108
- href: Href | string | undefined;
109
- constructor(message: string, response: object, href?: string | Href);
110
- get resource(): string | Href<HrefState> | undefined;
111
- }
106
+ declare const MODEL_REGISTRY: ModelConfig[];
112
107
 
113
108
  /**
114
109
  * Utility to determine which JavaScript Model class should be instantiated
@@ -138,6 +133,13 @@ declare class ModelResolver {
138
133
  static resolve(response: ModularUIResponse, overrides?: TargetModel | TargetModel[], forceTargetModel?: boolean): TargetModel<ResourceData, Contributions> | undefined;
139
134
  }
140
135
 
136
+ declare class ModularUIError extends Error {
137
+ response: object;
138
+ href: Href | string | undefined;
139
+ constructor(message: string, response: object, href?: string | Href);
140
+ get resource(): string | Href<HrefState> | undefined;
141
+ }
142
+
141
143
  /**
142
144
  * Helper for fetching data and contributions from the Be Informed modular ui
143
145
  * and merge it into a target or resolvable model.
@@ -279,4 +281,4 @@ declare class UploadRequest {
279
281
  uploadFile(file: File): Promise<UploadResponse>;
280
282
  }
281
283
 
282
- export { Authenticate, CaptchaRequest, ModelResolver, ModularUIError, ModularUIRequest, ModularUIResponse, TargetModel, UploadRequest };
284
+ export { Authenticate, CaptchaRequest, MODEL_REGISTRY, ModelConfig, ModelResolver, ModularUIError, ModularUIRequest, ModularUIResponse, TargetModel, UploadRequest };
@@ -1,7 +1,7 @@
1
1
  import { i as INTERNAL_LOGIN_TYPE, H as HTTP_METHODS } from '../Constants-CYAEbTZ4.js';
2
- import { c8 as Href, c_ as HrefState, cR as ModularUIResponse, cS as TargetModel, cZ as ResourceData, cY as Contributions, df as ModularUIRequestOptions, db as ProgressHandler$1, cN as ModularUIModel, aw as ResourceModel, ap as FiletypeConstraintsType, aq as FilesizeConstraintsType } from '../index-BxJE8Lob.js';
3
- export { cU as AuthenticationType, cV as ModelConfig, cT as ModularUISpecificErrorResponse } from '../index-BxJE8Lob.js';
4
- import { C as ContentModel, F as FormModel } from '../FormModel-Cmzm2g7k.js';
2
+ import { cW as ModelConfig, cS as ModularUIResponse, cT as TargetModel, c_ as ResourceData, cZ as Contributions, c9 as Href, c$ as HrefState, dg as ModularUIRequestOptions, dc as ProgressHandler$1, cO as ModularUIModel, aw as ResourceModel, ap as FiletypeConstraintsType, aq as FilesizeConstraintsType } from '../index-Dz6sC5Ns.js';
3
+ export { cV as AuthenticationType, cU as ModularUISpecificErrorResponse } from '../index-Dz6sC5Ns.js';
4
+ import { C as ContentModel, F as FormModel } from '../FormModel-6QhB7ctI.js';
5
5
  import 'immer';
6
6
  import '@date-fns/tz/date';
7
7
  import 'date-fns';
@@ -103,12 +103,7 @@ declare class CaptchaRequest {
103
103
  }>;
104
104
  }
105
105
 
106
- declare class ModularUIError extends Error {
107
- response: object;
108
- href: Href | string | undefined;
109
- constructor(message: string, response: object, href?: string | Href);
110
- get resource(): string | Href<HrefState> | undefined;
111
- }
106
+ declare const MODEL_REGISTRY: ModelConfig[];
112
107
 
113
108
  /**
114
109
  * Utility to determine which JavaScript Model class should be instantiated
@@ -138,6 +133,13 @@ declare class ModelResolver {
138
133
  static resolve(response: ModularUIResponse, overrides?: TargetModel | TargetModel[], forceTargetModel?: boolean): TargetModel<ResourceData, Contributions> | undefined;
139
134
  }
140
135
 
136
+ declare class ModularUIError extends Error {
137
+ response: object;
138
+ href: Href | string | undefined;
139
+ constructor(message: string, response: object, href?: string | Href);
140
+ get resource(): string | Href<HrefState> | undefined;
141
+ }
142
+
141
143
  /**
142
144
  * Helper for fetching data and contributions from the Be Informed modular ui
143
145
  * and merge it into a target or resolvable model.
@@ -279,4 +281,4 @@ declare class UploadRequest {
279
281
  uploadFile(file: File): Promise<UploadResponse>;
280
282
  }
281
283
 
282
- export { Authenticate, CaptchaRequest, ModelResolver, ModularUIError, ModularUIRequest, ModularUIResponse, TargetModel, UploadRequest };
284
+ export { Authenticate, CaptchaRequest, MODEL_REGISTRY, ModelConfig, ModelResolver, ModularUIError, ModularUIRequest, ModularUIResponse, TargetModel, UploadRequest };
@@ -1,2 +1,2 @@
1
- import{a as b,b as c,c as d,d as e,e as f,f as g}from"../chunk-GDEYM54A.js";import"../chunk-Y3XZHSPE.js";import"../chunk-VLKSMXSB.js";import"../chunk-WHWNPOV6.js";import{e as a}from"../chunk-RI2O4J7J.js";import"../chunk-QTZ77JJN.js";import"../chunk-73XVCQCW.js";import"../chunk-CPYNQW3X.js";import"../chunk-GHQP5QNP.js";import"../chunk-VGAPPKHA.js";import"../chunk-SFI46XCV.js";import"../chunk-24FITWGX.js";import"../chunk-NOB2I3DW.js";import"../chunk-4BYHEGUN.js";export{b as Authenticate,c as CaptchaRequest,e as ModelResolver,d as ModularUIError,f as ModularUIRequest,a as ModularUIResponse,g as UploadRequest};
1
+ import{a as b,b as c,c as d,d as e,e as f,f as g,g as h}from"../chunk-Z33QXJGH.js";import"../chunk-TDCALIXY.js";import"../chunk-J2QT7BB2.js";import"../chunk-WHWNPOV6.js";import{e as a}from"../chunk-I2APZXO7.js";import"../chunk-QTZ77JJN.js";import"../chunk-73XVCQCW.js";import"../chunk-DUTPBVXD.js";import"../chunk-S3X2VJQL.js";import"../chunk-VGAPPKHA.js";import"../chunk-SFI46XCV.js";import"../chunk-24FITWGX.js";import"../chunk-NOB2I3DW.js";import"../chunk-4BYHEGUN.js";export{b as Authenticate,c as CaptchaRequest,d as MODEL_REGISTRY,e as ModelResolver,f as ModularUIError,g as ModularUIRequest,a as ModularUIResponse,h as UploadRequest};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { cY as Contributions, cX as Data, d0 as DefaultLinksData, d3 as ErrorMessage, c$ as HistoryLocation, c_ as HrefState, cW as ISO_DATE, d2 as MessageParameters, cZ as ResourceData, d1 as TextWithPlaceholders } from '../index-RuAoNZgc.cjs';
1
+ export { cZ as Contributions, cY as Data, d1 as DefaultLinksData, d4 as ErrorMessage, d0 as HistoryLocation, c$ as HrefState, cX as ISO_DATE, d3 as MessageParameters, c_ as ResourceData, d2 as TextWithPlaceholders } from '../index-DP8fYb9i.cjs';
2
2
  import '../Constants-CYAEbTZ4.cjs';
3
3
  import 'immer';
4
4
  import '@date-fns/tz/date';
@@ -1,4 +1,4 @@
1
- export { cY as Contributions, cX as Data, d0 as DefaultLinksData, d3 as ErrorMessage, c$ as HistoryLocation, c_ as HrefState, cW as ISO_DATE, d2 as MessageParameters, cZ as ResourceData, d1 as TextWithPlaceholders } from '../index-BxJE8Lob.js';
1
+ export { cZ as Contributions, cY as Data, d1 as DefaultLinksData, d4 as ErrorMessage, d0 as HistoryLocation, c$ as HrefState, cX as ISO_DATE, d3 as MessageParameters, c_ as ResourceData, d2 as TextWithPlaceholders } from '../index-Dz6sC5Ns.js';
2
2
  import '../Constants-CYAEbTZ4.js';
3
3
  import 'immer';
4
4
  import '@date-fns/tz/date';