@gustavo-valsechi/client 1.4.38 → 1.4.40

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.
@@ -88,14 +88,14 @@ const TargetProviderContainer = ({ children }) => {
88
88
  children: [
89
89
  import_lodash.default.map(
90
90
  targets,
91
- (target, index) => !!target.show && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
+ (target, index) => !!target.show ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
92
92
  import_styles.Container,
93
93
  {
94
94
  style: getCoords(target.ref.current),
95
95
  children: target.component
96
96
  },
97
97
  index
98
- )
98
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {})
99
99
  ),
100
100
  children
101
101
  ]
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { createContext, useContext, useEffect, useState } from "react";
4
4
  import { Container } from "./styles";
5
5
  import _ from "lodash";
@@ -54,14 +54,14 @@ const TargetProviderContainer = ({ children }) => {
54
54
  children: [
55
55
  _.map(
56
56
  targets,
57
- (target, index) => !!target.show && /* @__PURE__ */ jsx(
57
+ (target, index) => !!target.show ? /* @__PURE__ */ jsx(
58
58
  Container,
59
59
  {
60
60
  style: getCoords(target.ref.current),
61
61
  children: target.component
62
62
  },
63
63
  index
64
- )
64
+ ) : /* @__PURE__ */ jsx(Fragment, {})
65
65
  ),
66
66
  children
67
67
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.38",
3
+ "version": "1.4.40",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",