@recursive-robot/react-jsx-parser 1.30.0

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.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Converts a string from other cases to camelCase
3
+ * @param string the value to camelCase
4
+ * @example
5
+ * camelCase('foo-bar') // 'fooBar'
6
+ */
7
+ export declare const camelCase: (string: string) => string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Hashes a value
3
+ * @param value the value to hash
4
+ * @param radix the base-n to hash into (default 16)
5
+ */
6
+ export declare const hash: (value?: string, radix?: number) => string;
7
+ /**
8
+ * Hashes a Math.random() value, returning it in base16
9
+ */
10
+ export declare const randomHash: () => string;
@@ -0,0 +1,8 @@
1
+ declare type Style = string | Partial<CSSStyleDeclaration>;
2
+ /**
3
+ * Converts a CSS Style string
4
+ * @param {string | Partial<CSSStyleDeclaration>} style A string to convert, or object to return
5
+ * @returns {Partial<CSSStyleDeclaration>} a partial CSSStyleDeclaration
6
+ */
7
+ export declare const parseStyle: (style: Style) => Partial<CSSStyleDeclaration> | undefined;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns the result of a path query from an object
3
+ * @param {any} object the object to search
4
+ * @param {string} path the path, whose value will be retrieved
5
+ * @returns {any} the value (undefined if the path doesn't exist)
6
+ * @example
7
+ * resolvePath({ foo: { bar: { baz: 3 } } }, 'foo.bar.baz') // 3
8
+ */
9
+ export declare const resolvePath: (object: any, path: string) => any;
@@ -0,0 +1,4 @@
1
+ /** This file exists solely to build the index.d.ts file */
2
+ import JsxParser from './components/JsxParser';
3
+ export type { TProps } from './components/JsxParser';
4
+ export default JsxParser;