@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.
- package/dist/index.cjs.js +56 -56
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2302 -2270
- package/dist/index.es.js.map +1 -1
- package/dist/services/api.d.ts +18 -3
- package/dist/types/webform-state.d.ts +1 -1
- package/package.json +2 -2
package/dist/services/api.d.ts
CHANGED
|
@@ -103,14 +103,29 @@ export interface ISetFileContentResponse {
|
|
|
103
103
|
type: FileFolderTypeWithContent;
|
|
104
104
|
size: number;
|
|
105
105
|
}
|
|
106
|
-
export declare function getSharedDatasources(): Promise<
|
|
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
|
-
|
|
113
|
-
|
|
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.
|
|
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.
|
|
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",
|