bruce-models 2.8.4 → 2.8.6

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.4";
101
+ exports.VERSION = "2.8.6";
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.4";
84
+ export declare const VERSION = "2.8.6";
@@ -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";
15
+ type Component = "STATIC_TEXT" | "ENTITY_TEXT" | "IFRAME" | "ENTITY_GALLERY" | "ENTITY_ATTRIBUTES" | "ENTITY_COMMENTS" | "BUTTON";
16
16
  interface IStaticTextParams {
17
17
  text: string;
18
18
  }
@@ -23,5 +23,16 @@ export declare namespace CustomFormContent {
23
23
  url: string;
24
24
  height: number;
25
25
  }
26
- type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | any;
26
+ /**
27
+ * The button component is used to perform some sort of navigator or action.
28
+ * Navigation is between other forms or the default info-view dialog.
29
+ * We also allow toggling visible relationship parabolas to accommodate for older versions of these custom forms as they used to have an action like that.
30
+ */
31
+ interface IButtonParams {
32
+ action: "OPEN_FORM" | "OPEN_INFO_VIEW" | "TOGGLE_VISIBLE_RELATIONS";
33
+ formId?: string;
34
+ buttonText?: string;
35
+ buttonIcon?: string;
36
+ }
37
+ type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | IButtonParams | any;
27
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "2.8.4",
3
+ "version": "2.8.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",