@veltdev/react 1.0.136 → 1.0.137

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.
@@ -1,2 +1,2 @@
1
- export declare const VELT_SDK_VERSION = "1.0.153";
1
+ export declare const VELT_SDK_VERSION = "1.0.155";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
package/esm/index.js CHANGED
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
132
132
  }
133
133
  };
134
134
 
135
- var VELT_SDK_VERSION = '1.0.153';
135
+ var VELT_SDK_VERSION = '1.0.155';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
 
138
138
  var SnippylyProvider = function (props) {
@@ -2164,15 +2164,15 @@ function useVeltInitState() {
2164
2164
  var client = useVeltClient().client;
2165
2165
  var _a = React.useState(), data = _a[0], setData = _a[1];
2166
2166
  React.useEffect(function () {
2167
- if (!(client === null || client === void 0 ? void 0 : client.getVeltInitState$))
2167
+ if (!(client === null || client === void 0 ? void 0 : client.getVeltInitState))
2168
2168
  return;
2169
- var subscription = client === null || client === void 0 ? void 0 : client.getVeltInitState$().subscribe(function (res) {
2169
+ var subscription = client === null || client === void 0 ? void 0 : client.getVeltInitState().subscribe(function (res) {
2170
2170
  setData(res);
2171
2171
  });
2172
2172
  return function () {
2173
2173
  subscription.unsubscribe();
2174
2174
  };
2175
- }, [client === null || client === void 0 ? void 0 : client.getVeltInitState$]);
2175
+ }, [client === null || client === void 0 ? void 0 : client.getVeltInitState]);
2176
2176
  return data;
2177
2177
  }
2178
2178