@fairandsmart/consents-ce 2.0.3 → 2.0.5

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.
@@ -15,7 +15,7 @@ var ConsentHelper = /** @class */ (function () {
15
15
  origin: models_1.ConsentOrigin.USER,
16
16
  layoutData: {
17
17
  info: "",
18
- elements: [entry.key],
18
+ blocs: [{ parent: { location: "", key: entry.key } }],
19
19
  type: "layout",
20
20
  },
21
21
  };
@@ -1,4 +1,4 @@
1
- interface HintEntry {
1
+ export interface HintEntry {
2
2
  value: string;
3
3
  context: {
4
4
  [key: string]: string;
@@ -11,4 +11,3 @@ interface HintEntry {
11
11
  };
12
12
  }
13
13
  export declare const CSS_HINTS: HintEntry[];
14
- export {};
@@ -178,20 +178,29 @@ export interface PeerContext {
178
178
  export interface FormLayout extends ModelData {
179
179
  type: 'layout';
180
180
  info: string;
181
- elements: string[];
181
+ blocs: FormLayoutBloc[];
182
+ hiddenBlocs?: string[];
182
183
  defaultNotification?: string;
183
- peerElements?: PeerElements[];
184
184
  orientation?: FormLayoutOrientation;
185
+ blocDetailText?: string;
186
+ acceptAllText?: string;
187
+ submitText?: string;
188
+ cancelText?: string;
185
189
  existingElementsVisible?: boolean;
186
190
  validityVisible?: boolean;
187
191
  includeIFrameResizer?: boolean;
188
192
  acceptAllVisible?: boolean;
189
- acceptAllText?: string;
190
- submitText?: string;
191
- cancelText?: string;
192
193
  cancelVisible?: boolean;
193
194
  footerOnTop?: boolean;
194
195
  }
196
+ export interface FormLayoutBloc {
197
+ parent: FormLayoutElement;
198
+ children?: FormLayoutElement[];
199
+ }
200
+ export interface FormLayoutElement {
201
+ location?: string;
202
+ key: string;
203
+ }
195
204
  export declare enum FormLayoutOrientation {
196
205
  HORIZONTAL = "HORIZONTAL",
197
206
  VERTICAL = "VERTICAL"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},
@@ -31,12 +31,14 @@
31
31
  "module": "./index.js",
32
32
  "exports": {
33
33
  ".": "./index.js",
34
+ "./css-autocomplete": "./css-autocomplete.js",
34
35
  "./api": "./api.js",
35
36
  "./http": "./http.js",
36
37
  "./common": "./common.js",
37
38
  "./consents": "./consents/index.js",
38
39
  "./keys": "./keys/index.js",
39
40
  "./models": "./models/index.js",
41
+ "./peers": "./peers/index.js",
40
42
  "./receipts": "./receipts/index.js",
41
43
  "./records": "./records/index.js",
42
44
  "./statistics": "./statistics/index.js",
Binary file