@emqx/shared-ui-utils 0.0.19 → 0.0.20

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.
@@ -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: Array<T>, index: number) => Array<T>;
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
- } & unknown) => string;
43
- export declare const checkNeedRequestAPI: (isChanged?: boolean) => isChanged is true | undefined;
41
+ }) => string;
42
+ export declare const checkNeedRequestAPI: (isChanged?: boolean) => boolean;
@@ -1,4 +1,4 @@
1
- export declare const useBatchSettings: (locale?: "zh" | "en") => {
1
+ export declare const useBatchSettings: (locale?: 'zh' | 'en') => {
2
2
  filenameMap: {
3
3
  influxdb: string;
4
4
  tdengine: string;
@@ -1,5 +1,4 @@
1
- import { ComposerTranslation } from 'vue-i18n';
2
-
1
+ import type { ComposerTranslation } from 'vue-i18n';
3
2
  export declare const useLocale: (locale: string) => {
4
3
  t: ComposerTranslation;
5
4
  te: (str: string) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { StreamOperation, StreamPermission, StreamResourceType } from '@emqx/shared-ui-constants';
2
-
3
2
  export declare const useStreamingAuth: (lang: string) => {
4
3
  permissionOptions: {
5
4
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emqx/shared-ui-utils",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
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",