@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.
- package/CHANGELOG.md +12 -0
- package/dist/{FormModel-Cmzm2g7k.d.ts → FormModel-6QhB7ctI.d.ts} +1 -1
- package/dist/{FormModel-Qa655sE-.d.cts → FormModel-Cfg7h0er.d.cts} +1 -1
- package/dist/{chunk-CPYNQW3X.js → chunk-DUTPBVXD.js} +1 -1
- package/dist/{chunk-CPYNQW3X.js.map → chunk-DUTPBVXD.js.map} +1 -1
- package/dist/{chunk-RI2O4J7J.js → chunk-I2APZXO7.js} +2 -2
- package/dist/chunk-I2APZXO7.js.map +1 -0
- package/dist/{chunk-VLKSMXSB.js → chunk-J2QT7BB2.js} +2 -2
- package/dist/{chunk-GHQP5QNP.js → chunk-S3X2VJQL.js} +1 -1
- package/dist/{chunk-GHQP5QNP.js.map → chunk-S3X2VJQL.js.map} +1 -1
- package/dist/{chunk-Y3XZHSPE.js → chunk-TDCALIXY.js} +2 -2
- package/dist/chunk-YYBJKNUB.js +1 -0
- package/dist/{chunk-GDEYM54A.js → chunk-Z33QXJGH.js} +2 -2
- package/dist/{chunk-GDEYM54A.js.map → chunk-Z33QXJGH.js.map} +1 -1
- package/dist/exceptions/index.d.cts +2 -2
- package/dist/exceptions/index.d.ts +2 -2
- package/dist/{index-RuAoNZgc.d.cts → index-DP8fYb9i.d.cts} +2 -2
- package/dist/{index-BxJE8Lob.d.ts → index-Dz6sC5Ns.d.ts} +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/layouthints/index.cjs.map +1 -1
- package/dist/layouthints/index.d.cts +1 -2
- package/dist/layouthints/index.d.ts +1 -2
- package/dist/layouthints/index.js +1 -1
- package/dist/models/index.cjs +4 -4
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +4 -4
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +1 -1
- package/dist/modularui/index.cjs +4 -4
- package/dist/modularui/index.cjs.map +1 -1
- package/dist/modularui/index.d.cts +12 -10
- package/dist/modularui/index.d.ts +12 -10
- package/dist/modularui/index.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +3 -5
- package/dist/utils/index.d.ts +3 -5
- package/dist/utils/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-QIGFPQFN.js +0 -1
- package/dist/chunk-RI2O4J7J.js.map +0 -1
- /package/dist/{chunk-VLKSMXSB.js.map → chunk-J2QT7BB2.js.map} +0 -0
- /package/dist/{chunk-Y3XZHSPE.js.map → chunk-TDCALIXY.js.map} +0 -0
- /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 {
|
|
3
|
-
export {
|
|
4
|
-
import { C as ContentModel, F as FormModel } from '../FormModel-
|
|
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
|
|
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 {
|
|
3
|
-
export {
|
|
4
|
-
import { C as ContentModel, F as FormModel } from '../FormModel-
|
|
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
|
|
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 };
|
package/dist/modularui/index.js
CHANGED
|
@@ -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-
|
|
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
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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';
|