@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/hocon.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert a JavaScript object to a HOCON string.
|
|
3
|
+
* Handles nested objects, arrays, strings, numbers, booleans, and null values.
|
|
4
|
+
* @param data - The object to convert.
|
|
5
|
+
* @returns The HOCON string representation of the object.
|
|
6
|
+
*/
|
|
7
|
+
export declare const objectToHocon: (data: Record<string, any>, objLevel?: number) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Parse a HOCON string into a JavaScript object.
|
|
10
|
+
* Returns an empty object if the input is empty or whitespace.
|
|
11
|
+
* Throws an error if parsing fails.
|
|
12
|
+
* @param hoconData - The HOCON string to parse.
|
|
13
|
+
* @returns The parsed JavaScript object.
|
|
14
|
+
*/
|
|
15
|
+
export declare const hoconToObject: (hoconData: string) => Record<string, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './jsonUtils';
|
|
3
|
-
export * from './format';
|
|
4
|
-
export * from './download';
|
|
5
|
-
export * from './useBatchSettings';
|
|
1
|
+
export * from './tools';
|
|
6
2
|
export * from './useLocale';
|
|
3
|
+
export * from './useBatchSettings';
|
|
7
4
|
export * from './useStreamingAuth';
|
|
8
|
-
export * from './
|
|
5
|
+
export * from './jsonUtils';
|
|
6
|
+
export * from './download';
|
|
7
|
+
export * from './format';
|
|
8
|
+
export * from './objectUtils';
|
|
9
|
+
export * from './hocon';
|