@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/types/constants.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -132,8 +132,9 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var VELT_SDK_VERSION = '1.0.
|
|
135
|
+
var VELT_SDK_VERSION = '1.0.157';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
|
+
var VELT_TAB_ID = 'veltTabId';
|
|
137
138
|
|
|
138
139
|
var SnippylyProvider = function (props) {
|
|
139
140
|
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;
|
|
@@ -2690,7 +2691,7 @@ function useAutocompleteChipClick() {
|
|
|
2690
2691
|
|
|
2691
2692
|
var sessionId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
2692
2693
|
var getSessionId = function () {
|
|
2693
|
-
return sessionId;
|
|
2694
|
+
return (sessionStorage === null || sessionStorage === void 0 ? void 0 : sessionStorage.getItem(VELT_TAB_ID)) || sessionId;
|
|
2694
2695
|
};
|
|
2695
2696
|
var VELT_DEFAULT_LIVE_STATE_ID = 'velt-default-redux-live-state';
|
|
2696
2697
|
var createLiveStateMiddleware = function (config) {
|