@sigmacomputing/react-embed-sdk 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -333,8 +333,7 @@ var import_react3 = require("react");
333
333
  function usePageHeight(iframeRef) {
334
334
  const [height, setHeight] = (0, import_react3.useState)(void 0);
335
335
  useWorkbookPageHeight(iframeRef, (event) => {
336
- if (!iframeRef.current)
337
- return;
336
+ if (!iframeRef.current) return;
338
337
  setHeight(event.pageHeight);
339
338
  });
340
339
  return height;
@@ -365,8 +364,7 @@ var useWorkbookVariables = (iframeRef) => {
365
364
  [iframeRef]
366
365
  );
367
366
  (0, import_react4.useEffect)(() => {
368
- if (!iframeRef.current)
369
- return;
367
+ if (!iframeRef.current) return;
370
368
  const listener = (event) => {
371
369
  if (!iframeRef.current) {
372
370
  return;
package/dist/index.mjs CHANGED
@@ -300,8 +300,7 @@ import { useState as useState2 } from "react";
300
300
  function usePageHeight(iframeRef) {
301
301
  const [height, setHeight] = useState2(void 0);
302
302
  useWorkbookPageHeight(iframeRef, (event) => {
303
- if (!iframeRef.current)
304
- return;
303
+ if (!iframeRef.current) return;
305
304
  setHeight(event.pageHeight);
306
305
  });
307
306
  return height;
@@ -336,8 +335,7 @@ var useWorkbookVariables = (iframeRef) => {
336
335
  [iframeRef]
337
336
  );
338
337
  useEffect2(() => {
339
- if (!iframeRef.current)
340
- return;
338
+ if (!iframeRef.current) return;
341
339
  const listener = (event) => {
342
340
  if (!iframeRef.current) {
343
341
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigmacomputing/react-embed-sdk",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "React JavaScript SDK to interact with Sigma Computing's Embed API",
5
5
  "author": "sigmacomputing",
6
6
  "license": "ISC",
@@ -17,14 +17,14 @@
17
17
  "react-dom": "^16.8 || ^17 || ^18"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/react": "^18.2.66",
21
- "react": "^18.2.0",
22
- "react-dom": "^18.2.0",
23
- "@sigmacomputing/typescript-config": "0.0.0",
24
- "@sigmacomputing/eslint-config": "0.0.0"
20
+ "@types/react": "^18.3.3",
21
+ "react": "^18.3.1",
22
+ "react-dom": "^18.3.1",
23
+ "@sigmacomputing/eslint-config": "0.0.0",
24
+ "@sigmacomputing/typescript-config": "0.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@sigmacomputing/embed-sdk": "0.2.10"
27
+ "@sigmacomputing/embed-sdk": "0.2.11"
28
28
  },
29
29
  "scripts": {
30
30
  "prepublish": "pnpm build",