@veltdev/react 1.0.139 → 1.0.140
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/cjs/index.js +3 -2
- package/cjs/index.js.map +1 -1
- package/cjs/types/constants.d.ts +2 -1
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/esm/types/constants.d.ts +2 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -140,8 +140,9 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
var VELT_SDK_VERSION = '1.0.
|
|
143
|
+
var VELT_SDK_VERSION = '1.0.157';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
|
+
var VELT_TAB_ID = 'veltTabId';
|
|
145
146
|
|
|
146
147
|
var SnippylyProvider = function (props) {
|
|
147
148
|
var apiKey = props.apiKey, user = props.user, config = props.config, documentId = props.documentId, language = props.language, translations = props.translations, autoTranslation = props.autoTranslation, onClientLoad = props.onClientLoad, children = props.children;
|
|
@@ -2698,7 +2699,7 @@ function useAutocompleteChipClick() {
|
|
|
2698
2699
|
|
|
2699
2700
|
var sessionId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
2700
2701
|
var getSessionId = function () {
|
|
2701
|
-
return sessionId;
|
|
2702
|
+
return (sessionStorage === null || sessionStorage === void 0 ? void 0 : sessionStorage.getItem(VELT_TAB_ID)) || sessionId;
|
|
2702
2703
|
};
|
|
2703
2704
|
var VELT_DEFAULT_LIVE_STATE_ID = 'velt-default-redux-live-state';
|
|
2704
2705
|
var createLiveStateMiddleware = function (config) {
|