@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.
@@ -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 declare const datasourcesSubject: Subject<{
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.22",
4
+ "version": "0.2.23",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",