@rakutenanalytics/rat-react 0.3.1-rc.716ed0a → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1791,7 +1791,7 @@ class We {
1791
1791
  this.ral.processImmediate();
1792
1792
  }
1793
1793
  }
1794
- const Ge = "0.3.1-rc.716ed0a", je = "rat-react", Ye = Ge;
1794
+ const Ge = "0.3.1", je = "rat-react", Ye = Ge;
1795
1795
  function M(n) {
1796
1796
  return new We({
1797
1797
  ...n,
@@ -1826,16 +1826,7 @@ const ze = (n) => {
1826
1826
  const t = (a, i) => {
1827
1827
  const o = M(i);
1828
1828
  _((c) => ({ ...c, [a]: o }));
1829
- }, r = (a) => {
1830
- const i = s[a];
1831
- if (!i) {
1832
- const o = Object.keys(s);
1833
- console.warn(
1834
- `Tracker with key "${a}" not found. Available trackers: ${o.length > 0 ? o.join(", ") : "none"}`
1835
- );
1836
- }
1837
- return i;
1838
- };
1829
+ }, r = (a) => s[a];
1839
1830
  return /* @__PURE__ */ z(ae.Provider, { value: { getTracker: r, addTracker: t }, children: n });
1840
1831
  };
1841
1832
  function Qe(n) {
@@ -1875,15 +1866,13 @@ const $e = ({
1875
1866
  once: t
1876
1867
  });
1877
1868
  return R(() => {
1878
- i && (e && typeof e.sendEvent == "function" ? e.sendEvent({
1869
+ i && e && typeof e.sendEvent == "function" && e.sendEvent({
1879
1870
  type: "appear",
1880
1871
  params: {
1881
1872
  componentId: [s]
1882
1873
  }
1883
1874
  // Add any required params here
1884
- }) : console.warn(
1885
- `VisibilityTracker: No tracker available for component "${s}". Event not sent.`
1886
- ));
1875
+ });
1887
1876
  }, [i, e, s]), /* @__PURE__ */ z(
1888
1877
  "div",
1889
1878
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rakutenanalytics/rat-react",
3
3
  "private": false,
4
- "version": "0.3.1-rc.716ed0a",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",