bruce-models 2.8.8 → 2.9.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.
@@ -98,5 +98,5 @@ __exportStar(require("./internal/uploader"), exports);
98
98
  __exportStar(require("./plugin/plugin"), exports);
99
99
  __exportStar(require("./environment"), exports);
100
100
  __exportStar(require("./data-source/data-source"), exports);
101
- exports.VERSION = "2.8.8";
101
+ exports.VERSION = "2.9.0";
102
102
  //# sourceMappingURL=bruce-models.js.map
@@ -81,4 +81,4 @@ export * from "./internal/uploader";
81
81
  export * from "./plugin/plugin";
82
82
  export * from "./environment";
83
83
  export * from "./data-source/data-source";
84
- export declare const VERSION = "2.8.8";
84
+ export declare const VERSION = "2.9.0";
@@ -12,7 +12,7 @@ export declare namespace CustomFormContent {
12
12
  component: Component;
13
13
  params: StackItemParams;
14
14
  }
15
- type Component = "STATIC_TEXT" | "ENTITY_TEXT" | "IFRAME" | "ENTITY_GALLERY" | "ENTITY_ATTRIBUTES" | "ENTITY_COMMENTS" | "BUTTON";
15
+ type Component = "STATIC_TEXT" | "ENTITY_TEXT" | "IFRAME" | "ENTITY_GALLERY" | "ENTITY_ATTRIBUTES" | "ENTITY_ATTRIBUTE_GROUP" | "ENTITY_COMMENTS" | "BUTTON";
16
16
  interface IStaticTextParams {
17
17
  text: string;
18
18
  }
@@ -35,5 +35,15 @@ export declare namespace CustomFormContent {
35
35
  buttonIcon?: string;
36
36
  buttonIconSide?: "LEFT" | "RIGHT";
37
37
  }
38
- type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | IButtonParams | any;
38
+ interface IAttrRow {
39
+ attrPath: string;
40
+ }
41
+ /**
42
+ * This is an alternative to the entity attributes section.
43
+ * The other one will use the entity type's schema to display all attributes whereas this one will display specific ones.
44
+ */
45
+ interface IEntityAttrGroupParams {
46
+ items: IAttrRow[];
47
+ }
48
+ type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | IButtonParams | IEntityAttrGroupParams | any;
39
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "2.8.8",
3
+ "version": "2.9.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",