@lax-wp/design-system 0.3.3 → 0.3.6

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.
@@ -1,13 +1,24 @@
1
- import { type JsonValue } from '../types';
2
1
  /**
3
- * Parse JSON string safely
2
+ * Parses a JSON string and returns the parsed JSON object
3
+ * @param json - The JSON string to parse
4
+ * @returns The parsed JSON object or null if the JSON is invalid
4
5
  */
5
- export declare const parseJson: (value: string) => JsonValue;
6
+ export declare const parseJson: (json: string) => any;
6
7
  /**
7
- * Filter top level paths from an array of paths
8
+ * Generates a random hexadecimal string of specified length
9
+ * @param length - The length of the hex string to generate
10
+ * @returns A random hex string
11
+ */
12
+ export declare const randomHexString: (length: number) => string;
13
+ /**
14
+ * Escape special regex characters in a string
15
+ * @param string - The string to escape
16
+ * @returns The escaped string
8
17
  */
9
- export declare const filterTopLevelPaths: (paths: string[]) => string[];
18
+ export declare const escapeRegExp: (string: string) => string;
10
19
  /**
11
- * Generate a random hex string
20
+ * Filters top level paths from a list of paths
21
+ * @param paths - The list of paths to filter
22
+ * @returns The filtered list of top level paths
12
23
  */
13
- export declare const randomHexString: (length: number) => string;
24
+ export declare const filterTopLevelPaths: (paths: string[]) => string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lax-wp/design-system",
3
3
  "private": false,
4
- "version": "0.3.3",
4
+ "version": "0.3.6",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -47,6 +47,7 @@
47
47
  "immer": "^10.1.1",
48
48
  "lodash.debounce": "^4.0.8",
49
49
  "re-resizable": "^6.11.2",
50
+ "react-debounce-input": "^3.3.0",
50
51
  "react-full-screen": "^1.1.1",
51
52
  "react-icons": "^5.5.0",
52
53
  "react-popper-tooltip": "^4.4.2",