@informedai/react 0.4.1 → 0.4.2

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/dist/index.js CHANGED
@@ -267,7 +267,7 @@ function InformedAIProvider({ config, children }) {
267
267
  const initRef = (0, import_react.useRef)(false);
268
268
  const heartbeatIntervalRef = (0, import_react.useRef)(null);
269
269
  const sessionIdRef = (0, import_react.useRef)(null);
270
- const shouldPersist = config.persistSession ?? !!config.externalId;
270
+ const shouldPersist = config.persistSession ?? true;
271
271
  const storageKey = getStorageKey(config.documentTypeId, config.externalId);
272
272
  (0, import_react.useEffect)(() => {
273
273
  clientRef.current = new InformedAIClient(config.apiUrl);
package/dist/index.mjs CHANGED
@@ -237,7 +237,7 @@ function InformedAIProvider({ config, children }) {
237
237
  const initRef = useRef(false);
238
238
  const heartbeatIntervalRef = useRef(null);
239
239
  const sessionIdRef = useRef(null);
240
- const shouldPersist = config.persistSession ?? !!config.externalId;
240
+ const shouldPersist = config.persistSession ?? true;
241
241
  const storageKey = getStorageKey(config.documentTypeId, config.externalId);
242
242
  useEffect(() => {
243
243
  clientRef.current = new InformedAIClient(config.apiUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@informedai/react",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "React SDK for InformedAI Assistant - AI-powered content creation widget",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",