@parafin/react 0.0.1 → 0.0.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/index.tsx CHANGED
@@ -104,7 +104,7 @@ export const ParafinWidget = (props: {
104
104
  <iframe
105
105
  key={iframeKey}
106
106
  ref={iframeRef}
107
- id={`parafin-${product}-widget`}
107
+ id={`parafin-${props.product}-widget`}
108
108
  src={`${baseUrl}${token}${product}${hasOptIn}${host}${externalBusinessId}`}
109
109
  style={{
110
110
  width: '100%',
package/out/index.js CHANGED
@@ -63,7 +63,7 @@ export const ParafinWidget = (props) => {
63
63
  window.addEventListener('message', messageListener);
64
64
  return () => window.removeEventListener('message', messageListener);
65
65
  }, []);
66
- return (_jsx("iframe", { ref: iframeRef, id: `parafin-${product}-widget`, src: `${baseUrl}${token}${product}${hasOptIn}${host}${externalBusinessId}`, style: {
66
+ return (_jsx("iframe", { ref: iframeRef, id: `parafin-${props.product}-widget`, src: `${baseUrl}${token}${product}${hasOptIn}${host}${externalBusinessId}`, style: {
67
67
  width: '100%',
68
68
  height: iframeHeight,
69
69
  backgroundColor: '#fff',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parafin/react",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Parafin React widget",
5
5
  "author": "Parafin (https://www.parafin.com)",
6
6
  "module": "out/index.js",
@@ -14,7 +14,7 @@
14
14
  "typescript": "^4.9.5"
15
15
  },
16
16
  "dependencies": {
17
- "@parafin/core": "^1.0.0",
17
+ "@parafin/core": "^1.0.1",
18
18
  "react": "^18.2.0"
19
19
  }
20
20
  }