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.
- package/dist/bruce-models.es5.js +1 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +1 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/custom-form/custom-form-content.d.ts +13 -2
- package/package.json +1 -1
package/dist/lib/bruce-models.js
CHANGED
|
@@ -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.
|
|
101
|
+
exports.VERSION = "2.8.6";
|
|
102
102
|
//# sourceMappingURL=bruce-models.js.map
|
|
@@ -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
|
-
|
|
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
|
}
|