@ws-ui/shared 0.1.31 → 0.2.0-beta.20240711

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.
@@ -103,14 +103,29 @@ export interface ISetFileContentResponse {
103
103
  type: FileFolderTypeWithContent;
104
104
  size: number;
105
105
  }
106
- export declare function getSharedDatasources(): Promise<ISharedDatasourcesResponse>;
106
+ export declare function getSharedDatasources(): Promise<{
107
+ webform: ISharedDatasourcesResponse;
108
+ report: ISharedDatasourcesResponse;
109
+ }>;
107
110
  export declare function getSharedCSS(): Promise<ISharedCSSResponse>;
108
111
  export declare function getSavedConditions(): Promise<ISavedConditionsResponse>;
109
112
  export declare function getUserPrivileges(): Promise<IUserPrivilegesResponse>;
110
113
  export declare function getMonacoTheme(): Promise<IMonacoThemeResponse>;
111
114
  export declare const setSharedSources: (datasources: {
112
- [key: string]: datasources.ICreateDataSource[];
113
- }) => Promise<ISharedDatasourcesResponse>;
115
+ webform: {
116
+ [key: string]: datasources.ICreateDataSource[];
117
+ };
118
+ report: {
119
+ [key: string]: datasources.ICreateDataSource[];
120
+ };
121
+ }) => Promise<{
122
+ webform: {
123
+ [key: string]: datasources.ICreateDataSource[];
124
+ };
125
+ report: {
126
+ [key: string]: datasources.ICreateDataSource[];
127
+ };
128
+ }>;
114
129
  export declare const setFileContent: (payload: Pick<ISetFileContentRequest, 'content' | 'name'> & Partial<Pick<ISetFileContentRequest, 'asText' | 'path'>>) => Promise<{
115
130
  type: FileFolderTypeWithContent;
116
131
  size: number;
@@ -8,7 +8,7 @@ export type BaseWebformStateCondition = {
8
8
  name: string;
9
9
  };
10
10
  type GenericCondition<T> = BaseWebformStateCondition & T;
11
- type CommonOp = 'eq' | 'neq' | 'regex';
11
+ type CommonOp = 'eq' | 'neq' | 'regex' | 'isnull' | 'notnull';
12
12
  type ValueType = 'datasource' | 'hardCoded';
13
13
  type DataType = 'string' | 'number' | 'date' | 'boolean' | 'array' | 'object';
14
14
  export type DataSourceCondition = GenericCondition<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/shared",
3
3
  "private": false,
4
- "version": "0.1.31",
4
+ "version": "0.2.0-beta.20240711",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",
@@ -30,7 +30,7 @@
30
30
  "@popperjs/core": "^2.9.2",
31
31
  "@radix-ui/react-popover": "^0.1.6",
32
32
  "@ws-ui/craftjs-core": "^0.2.1-beta.3",
33
- "@ws-ui/icons": "^0.0.21",
33
+ "@ws-ui/icons": "^0.0.22",
34
34
  "classnames": "^2.3.1",
35
35
  "lodash": "^4.17.21",
36
36
  "markdown-to-jsx": "^7.1.3",