@ws-ui/shared 0.2.21 → 0.2.23
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 +38 -38
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +527 -526
- package/dist/index.es.js.map +1 -1
- package/dist/utils/explorer.d.ts +1 -0
- package/dist/utils/subjects.d.ts +31 -3
- package/package.json +2 -2
package/dist/utils/explorer.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { FileFolderTypeWithContent } from '../types/api';
|
|
|
2
2
|
export declare const ROLES_TAB_PATH = "roles.json";
|
|
3
3
|
export declare const SETTINGS_TAB_PATH = "qodlyApp.json";
|
|
4
4
|
export declare const MODEL_TAB_PATH = "model.4DModel";
|
|
5
|
+
export declare const HTTP_HANDLERS_PATH = "HTTPHandlers.json";
|
|
5
6
|
export declare function getTypeFromExtension(path: string): FileFolderTypeWithContent;
|
|
6
7
|
export declare function getFileExtentionFromType(type: string, qodly?: boolean): "" | "WebForm" | "4dm" | "4qs" | "QoDoc" | "MForm";
|
|
7
8
|
export declare function extractWebformName(path: string, fallbackName?: string): string;
|
package/dist/utils/subjects.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ export declare enum WebformActions {
|
|
|
4
4
|
RELOAD = "reload"
|
|
5
5
|
}
|
|
6
6
|
export declare enum DatasourcesActions {
|
|
7
|
-
RENAME = "rename"
|
|
7
|
+
RENAME = "rename",
|
|
8
|
+
TYPE_CHANGE = "type-change"
|
|
8
9
|
}
|
|
9
|
-
export
|
|
10
|
+
export type TDatasourceRenameSubject = {
|
|
10
11
|
action: DatasourcesActions.RENAME;
|
|
11
12
|
/**
|
|
12
13
|
* previous ID of the renamed datasource
|
|
@@ -24,7 +25,34 @@ export declare const datasourcesSubject: Subject<{
|
|
|
24
25
|
* will be used in case the renamed datasource is a local datasource.
|
|
25
26
|
*/
|
|
26
27
|
path: string;
|
|
27
|
-
}
|
|
28
|
+
};
|
|
29
|
+
export type TDatasourceTypeChangeSubject = {
|
|
30
|
+
action: DatasourcesActions.TYPE_CHANGE;
|
|
31
|
+
/**
|
|
32
|
+
* the datasource to be changed
|
|
33
|
+
*/
|
|
34
|
+
datasource: {
|
|
35
|
+
id: string;
|
|
36
|
+
namespace: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* previous Type of the datasource
|
|
40
|
+
*/
|
|
41
|
+
old_type: string;
|
|
42
|
+
/**
|
|
43
|
+
* new Type of the datasource
|
|
44
|
+
*/
|
|
45
|
+
new_type: string;
|
|
46
|
+
/**
|
|
47
|
+
* indicates if the datasource is shared
|
|
48
|
+
*/
|
|
49
|
+
is_shared: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* will be used in case the renamed datasource is a local datasource.
|
|
52
|
+
*/
|
|
53
|
+
path: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const datasourcesSubject: Subject<TDatasourceRenameSubject | TDatasourceTypeChangeSubject>;
|
|
28
56
|
export declare const webformSubject: Subject<{
|
|
29
57
|
path: string;
|
|
30
58
|
action: WebformActions;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/shared",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.23",
|
|
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.13",
|
|
33
|
-
"@ws-ui/icons": "^0.0.
|
|
33
|
+
"@ws-ui/icons": "^0.0.28",
|
|
34
34
|
"classnames": "^2.3.1",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"markdown-to-jsx": "^7.1.3",
|