@jahia/javascript-modules-library 0.5.5 → 0.5.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.
@@ -5,6 +5,27 @@
5
5
  *
6
6
  * @returns The component to be hydrated in the browser
7
7
  */
8
+ export declare function HydrateInBrowser<T, U>(props: Readonly<{
9
+ /** The React component. */
10
+ child: React.ComponentType<{
11
+ children: U;
12
+ } & T>;
13
+ /**
14
+ * The React component props, these props will be serialized/deserialized to be usable server
15
+ * and client side. The serialization is done using
16
+ * [devalue](https://www.npmjs.com/package/devalue) allowing most standard JS types, including
17
+ * `Set` and `Map`.
18
+ */
19
+ props: Omit<T & React.JSX.IntrinsicAttributes, 'children'>;
20
+ children: U;
21
+ }>): React.JSX.Element;
22
+ export declare function HydrateInBrowser<U>(props: Readonly<{
23
+ /** The React component. */
24
+ child: React.ComponentType<{
25
+ children: U;
26
+ }>;
27
+ children: U;
28
+ }>): React.JSX.Element;
8
29
  export declare function HydrateInBrowser<T>(props: Readonly<{
9
30
  /** The React component. */
10
31
  child: React.ComponentType<T>;
@@ -14,8 +14,10 @@ export declare function RenderInBrowser<T>(props: Readonly<{
14
14
  * `Set` and `Map`.
15
15
  */
16
16
  props: T & React.JSX.IntrinsicAttributes;
17
+ children?: React.ReactNode;
17
18
  }>): React.JSX.Element;
18
19
  export declare function RenderInBrowser(props: Readonly<{
19
20
  /** The React component */
20
21
  child: React.ComponentType;
22
+ children?: React.ReactNode;
21
23
  }>): React.JSX.Element;
@@ -1,6 +1,7 @@
1
- declare function InBrowser<T>({ child: Child, props, ssr, }: Readonly<{
1
+ declare function InBrowser<T>({ child: Child, props, ssr, children, }: Readonly<{
2
2
  child: React.ComponentType<T>;
3
3
  props: T & React.JSX.IntrinsicAttributes;
4
4
  ssr?: boolean;
5
+ children?: React.ReactNode;
5
6
  }>): React.JSX.Element;
6
7
  export default InBrowser;
package/dist/package.tgz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/javascript-modules-library",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com:Jahia/javascript-modules.git",