@ws-ui/shared 0.2.22 → 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 +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/utils/subjects.d.ts +31 -3
- package/package.json +1 -1
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;
|