@budibase/types 3.4.12 → 3.4.14

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.
@@ -54,6 +54,7 @@ type RangeFilter = Record<string, {
54
54
  type LogicalFilter = {
55
55
  conditions: SearchFilters[];
56
56
  };
57
+ export declare function isLogicalFilter(filter: any): filter is LogicalFilter;
57
58
  export type AnySearchFilter = BasicFilter | ArrayFilter | RangeFilter;
58
59
  export interface SearchFilters {
59
60
  allOr?: boolean;
@@ -26,6 +26,8 @@ export interface ComponentDefinition {
26
26
  width: number;
27
27
  height: number;
28
28
  };
29
+ context?: ComponentContext | ComponentContext[];
30
+ actions?: (string | any)[];
29
31
  }
30
32
  export type DependsOnComponentSetting = string | {
31
33
  setting: string;
@@ -50,3 +52,24 @@ export interface ComponentSetting {
50
52
  self: boolean;
51
53
  };
52
54
  }
55
+ interface ComponentAction {
56
+ type: string;
57
+ suffix?: string;
58
+ }
59
+ interface ComponentStaticContextValue {
60
+ label: string;
61
+ key: string;
62
+ type: string;
63
+ }
64
+ export interface ComponentContext {
65
+ type: ComponentContextType;
66
+ scope?: ComponentContextScopes;
67
+ actions?: ComponentAction[];
68
+ suffix?: string;
69
+ values?: ComponentStaticContextValue[];
70
+ }
71
+ export type ComponentContextType = "action" | "static" | "schema" | "form";
72
+ export declare const enum ComponentContextScopes {
73
+ Local = "local",
74
+ Global = "global"
75
+ }
@@ -1,2 +1,2 @@
1
1
  export type PreviewDevice = "desktop" | "tablet" | "mobile";
2
- export type ComponentContext = Record<string, any>;
2
+ export type AppContext = Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/types",
3
- "version": "3.4.12",
3
+ "version": "3.4.14",
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": "41f1e95b4da8f6e529beb8f11045ec2acdefda16"
29
+ "gitHead": "6f872db7af2d6213ccbaa88f8d7ec578c8556be3"
30
30
  }