@budibase/types 3.4.4 → 3.4.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/sdk/user.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
interface BaseUIComponentError {
|
|
2
|
+
componentId: string;
|
|
2
3
|
message: string;
|
|
3
4
|
}
|
|
4
5
|
interface UISettingComponentError extends BaseUIComponentError {
|
|
5
6
|
errorType: "setting";
|
|
6
7
|
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
cause: "missing" | "invalid";
|
|
7
10
|
}
|
|
8
11
|
interface UIAncestorComponentError extends BaseUIComponentError {
|
|
9
12
|
errorType: "ancestor-setting";
|
|
@@ -13,18 +13,21 @@ export interface ComponentDefinition {
|
|
|
13
13
|
requiredAncestors?: string[];
|
|
14
14
|
illegalChildren: string[];
|
|
15
15
|
}
|
|
16
|
+
export type DependsOnComponentSetting = string | {
|
|
17
|
+
setting: string;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
16
20
|
export interface ComponentSetting {
|
|
17
21
|
key: string;
|
|
18
22
|
type: string;
|
|
19
23
|
label?: string;
|
|
20
24
|
section?: string;
|
|
21
25
|
name?: string;
|
|
26
|
+
required?: boolean;
|
|
22
27
|
defaultValue?: any;
|
|
23
28
|
selectAllFields?: boolean;
|
|
24
29
|
resetOn?: string | string[];
|
|
25
30
|
settings?: ComponentSetting[];
|
|
26
|
-
dependsOn?:
|
|
27
|
-
|
|
28
|
-
value: string;
|
|
29
|
-
};
|
|
31
|
+
dependsOn?: DependsOnComponentSetting;
|
|
32
|
+
sectionDependsOn?: DependsOnComponentSetting;
|
|
30
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.6",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"scim-patch": "^0.8.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7d46e2f4d8537764dfa719b48a64ca3ca029c267"
|
|
30
30
|
}
|