@parafin/react 7.1.0 → 7.1.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/out/index.js +2 -1
  2. package/package.json +2 -2
package/out/index.js CHANGED
@@ -134,7 +134,7 @@ const emptyMetadata = {
134
134
  timeToLoadInMs: null,
135
135
  };
136
136
  const initializeParafinWidget = (iframe, props) => {
137
- const initStartTime = Date.now();
137
+ let initStartTime = Date.now();
138
138
  // @ts-ignore
139
139
  const url = new URL(props.widgetUrlOverride ?? 'https://widget.parafin.com');
140
140
  const query = {
@@ -169,6 +169,7 @@ const initializeParafinWidget = (iframe, props) => {
169
169
  ...props,
170
170
  route: data?.route,
171
171
  onExit: () => {
172
+ initStartTime = Date.now();
172
173
  iframe.src = iframeSrc;
173
174
  props.onExit?.();
174
175
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parafin/react",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Parafin React widget",
5
5
  "author": "Parafin (https://www.parafin.com)",
6
6
  "module": "out/index.js",
@@ -26,6 +26,6 @@
26
26
  "typescript": "^4.9.5"
27
27
  },
28
28
  "dependencies": {
29
- "@parafin/core": "^3.1.0"
29
+ "@parafin/core": "^3.1.1"
30
30
  }
31
31
  }