@parafin/core 3.1.0 → 3.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.
- package/index.ts +2 -1
- package/out/index.js +2 -1
- package/package.json +1 -1
- package/.turbo/turbo-build.log +0 -1
package/index.ts
CHANGED
|
@@ -202,7 +202,7 @@ export const initializeParafinWidget = (
|
|
|
202
202
|
iframe: HTMLIFrameElement,
|
|
203
203
|
props: WidgetProps
|
|
204
204
|
) => {
|
|
205
|
-
|
|
205
|
+
let initStartTime = Date.now()
|
|
206
206
|
|
|
207
207
|
// @ts-ignore
|
|
208
208
|
const url = new URL(props.widgetUrlOverride ?? 'https://widget.parafin.com')
|
|
@@ -241,6 +241,7 @@ export const initializeParafinWidget = (
|
|
|
241
241
|
...props,
|
|
242
242
|
route: data?.route,
|
|
243
243
|
onExit: () => {
|
|
244
|
+
initStartTime = Date.now()
|
|
244
245
|
iframe.src = iframeSrc
|
|
245
246
|
props.onExit?.()
|
|
246
247
|
},
|
package/out/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const emptyMetadata = {
|
|
|
131
131
|
timeToLoadInMs: null,
|
|
132
132
|
};
|
|
133
133
|
export const initializeParafinWidget = (iframe, props) => {
|
|
134
|
-
|
|
134
|
+
let initStartTime = Date.now();
|
|
135
135
|
// @ts-ignore
|
|
136
136
|
const url = new URL(props.widgetUrlOverride ?? 'https://widget.parafin.com');
|
|
137
137
|
const query = {
|
|
@@ -166,6 +166,7 @@ export const initializeParafinWidget = (iframe, props) => {
|
|
|
166
166
|
...props,
|
|
167
167
|
route: data?.route,
|
|
168
168
|
onExit: () => {
|
|
169
|
+
initStartTime = Date.now();
|
|
169
170
|
iframe.src = iframeSrc;
|
|
170
171
|
props.onExit?.();
|
|
171
172
|
},
|
package/package.json
CHANGED
package/.turbo/turbo-build.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ tsc
|