@emqx/shared-ui-utils 0.0.19 → 0.0.21
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/hocon.d.ts +15 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js +8289 -8145
- package/dist/index.umd.cjs +61 -55
- package/dist/jsonUtils.d.ts +2 -2
- package/dist/tools.d.ts +3 -4
- package/dist/useBatchSettings.d.ts +1 -1
- package/dist/useLocale.d.ts +1 -2
- package/dist/useStreamingAuth.d.ts +0 -1
- package/package.json +2 -1
package/dist/jsonUtils.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const isJSONString: (str: string) => boolean;
|
|
|
23
23
|
* @param reviver A function that transforms the results
|
|
24
24
|
* @returns Parsed JSON object
|
|
25
25
|
*/
|
|
26
|
-
export declare const jsonBigIntParse: (value: string, reviver?: (this: any, key: string, value: any) => any) => any;
|
|
26
|
+
export declare const jsonBigIntParse: (value: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any;
|
|
27
27
|
/**
|
|
28
28
|
* Stringify JSON with enhanced support for big numbers.
|
|
29
29
|
* @param value The value to convert to a JSON string
|
|
@@ -31,4 +31,4 @@ export declare const jsonBigIntParse: (value: string, reviver?: (this: any, key:
|
|
|
31
31
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text
|
|
32
32
|
* @returns JSON string
|
|
33
33
|
*/
|
|
34
|
-
export declare const jsonBigIntStringify: (value: Record<string, unknown>, replacer?: (this: any, key: string, value: any) => any | (number | string)[] | null, space?: string | number) => string;
|
|
34
|
+
export declare const jsonBigIntStringify: (value: Record<string, unknown>, replacer?: ((this: any, key: string, value: any) => any | (number | string)[] | null) | undefined, space?: string | number) => string;
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BridgeType } from '@emqx/shared-ui-constants';
|
|
2
|
-
|
|
3
2
|
export declare const waitAMoment: (ms?: number) => Promise<boolean>;
|
|
4
3
|
export declare const createRandomString: (length?: number) => any;
|
|
5
4
|
export declare const trimSpacesAndLFs: (input: string) => string;
|
|
@@ -15,7 +14,7 @@ export declare const numToFixed: (number: number, digits?: number) => number;
|
|
|
15
14
|
/**
|
|
16
15
|
* will change original arr
|
|
17
16
|
*/
|
|
18
|
-
export declare const removeFromArr: <T>(arr:
|
|
17
|
+
export declare const removeFromArr: <T>(arr: T[], index: number) => T[];
|
|
19
18
|
/**
|
|
20
19
|
* the title -> The Title
|
|
21
20
|
*/
|
|
@@ -39,5 +38,5 @@ export declare const isContainsAIExpression: (sql: string) => boolean;
|
|
|
39
38
|
export declare const getBridgeKey: ({ type, name }: {
|
|
40
39
|
type: string;
|
|
41
40
|
name: string;
|
|
42
|
-
}
|
|
43
|
-
export declare const checkNeedRequestAPI: (isChanged?: boolean) =>
|
|
41
|
+
}) => string;
|
|
42
|
+
export declare const checkNeedRequestAPI: (isChanged?: boolean) => boolean;
|
package/dist/useLocale.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emqx/shared-ui-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"homepage": "https://emqx.io",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@emqx/shared-ui-constants": "link:../constants",
|
|
29
29
|
"@emqx/shared-ui-i18n": "link:../i18n",
|
|
30
|
+
"hocon-parser": "^1.0.1",
|
|
30
31
|
"json-bigint": "^1.0.0",
|
|
31
32
|
"papaparse": "^5.4.1",
|
|
32
33
|
"vue": "^3.2.0",
|