@ws-ui/shared 1.11.5 → 1.11.7
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 +1310 -1293
- package/dist/index.es.js.map +1 -1
- package/dist/utils/datasources.d.ts +9 -0
- package/package.json +2 -2
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare function getDatasourceId(def?: Pick<datasources.ICreateDataSource, 'id' | 'namespace'>): string;
|
|
2
|
+
export type ISplitDatasource = {
|
|
3
|
+
id: string;
|
|
4
|
+
namespace: string;
|
|
5
|
+
root: string;
|
|
6
|
+
original: string;
|
|
7
|
+
parts?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare function splitDatasourceID(source?: string): ISplitDatasource;
|
|
2
10
|
/**
|
|
3
11
|
* checks if the attribute is a simple attribute.
|
|
4
12
|
*
|
|
@@ -54,5 +62,6 @@ export declare const isEntitySelection: (datasource: datasources.DataSource) =>
|
|
|
54
62
|
export declare const _isArrayDatasource: (datasource: datasources.DataSource) => boolean;
|
|
55
63
|
export declare const _isObjectDatasource: (datasource: datasources.DataSource) => boolean;
|
|
56
64
|
export declare const isDateDatasource: (datasource: datasources.DataSource) => boolean;
|
|
65
|
+
export declare const isSameNamespace: (first: string | undefined, second: string | undefined) => boolean;
|
|
57
66
|
export declare function loadDS(): Promise<void>;
|
|
58
67
|
export declare function loadI18n(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/shared",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@radix-ui/react-popover": "^0.1.6",
|
|
28
28
|
"@radix-ui/react-tooltip": "^0.1.7",
|
|
29
29
|
"@ws-ui/craftjs-core": "0.2.26",
|
|
30
|
-
"@ws-ui/icons": "1.11.
|
|
30
|
+
"@ws-ui/icons": "1.11.7",
|
|
31
31
|
"classnames": "^2.3.1",
|
|
32
32
|
"hotkeys-js": "^3.8.7",
|
|
33
33
|
"jsonschema": "^1.5.0",
|