@fibery/react 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -1,3 +1,7 @@
1
1
  # @fibery/react
2
2
 
3
3
  This package contains all React-related utilities that may be consumed by other packages
4
+
5
+ ## How to update and publish @fibery/react
6
+
7
+ Please refer to [How to make changes to packages](../../README.md#how-to-make-changes-to-packages)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/react",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "react": "^18.2.0"
11
11
  },
12
12
  "dependencies": {
13
- "@fibery/helpers": "1.0.3"
13
+ "@fibery/helpers": "1.1.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@testing-library/react": "13.4.0",
package/src/wrap.tsx CHANGED
@@ -31,5 +31,5 @@ export const Wrap = <T extends React.ElementType>({
31
31
  ...rest
32
32
  }: Props<T>): JSX.Element => {
33
33
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
- return condition ? <With {...(rest as any)}>{children}</With> : <>{children}</>;
34
+ return condition ? <With {...(rest as any)}>{children}</With> : (children as JSX.Element);
35
35
  };