@sigmacomputing/react-embed-sdk 0.7.0 → 0.7.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/README.md CHANGED
@@ -49,7 +49,7 @@ function MyEmbed() {
49
49
  {loading && <p>Loading...</p>}
50
50
  {error && <p>Error: {error.message}</p>}
51
51
  <iframe
52
- className={loading || error ? "hidden" : "show"}
52
+ className={loading || error ? "opacity-0 pointer-events-none" : ""}
53
53
  ref={iframeRef}
54
54
  {/* The embed url to load */}
55
55
  src="https://app.sigmacomputing.com/embed"
package/dist/index.d.mts CHANGED
@@ -14,7 +14,7 @@ export { DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl } from '@sigmacomputing/em
14
14
  * {loading && <p>Loading...</p>}
15
15
  * {error && <p>Error: {error.message}</p>}
16
16
  * <iframe
17
- * className={loading || error ? "hidden" : "show"}
17
+ * className={loading || error ? "opacity-0 pointer-events-none" : ""}
18
18
  * ref={iframeRef}
19
19
  * src="https://app.sigmacomputing.com/embed"
20
20
  * />
@@ -90,7 +90,7 @@ declare const useWorkbookVariables: (iframeRef: React.RefObject<HTMLIFrameElemen
90
90
  * useWorkbookLoaded(iframeRef, loadingCallback);
91
91
  * return (
92
92
  * <iframe
93
- * className{loading ? "hidden" : "show"}
93
+ * className={loading ? "opacity-0 pointer-events-none" : ""}
94
94
  * ref={iframeRef}
95
95
  * src="https://app.sigmacomputing.com/embed"
96
96
  * />
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export { DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl } from '@sigmacomputing/em
14
14
  * {loading && <p>Loading...</p>}
15
15
  * {error && <p>Error: {error.message}</p>}
16
16
  * <iframe
17
- * className={loading || error ? "hidden" : "show"}
17
+ * className={loading || error ? "opacity-0 pointer-events-none" : ""}
18
18
  * ref={iframeRef}
19
19
  * src="https://app.sigmacomputing.com/embed"
20
20
  * />
@@ -90,7 +90,7 @@ declare const useWorkbookVariables: (iframeRef: React.RefObject<HTMLIFrameElemen
90
90
  * useWorkbookLoaded(iframeRef, loadingCallback);
91
91
  * return (
92
92
  * <iframe
93
- * className{loading ? "hidden" : "show"}
93
+ * className={loading ? "opacity-0 pointer-events-none" : ""}
94
94
  * ref={iframeRef}
95
95
  * src="https://app.sigmacomputing.com/embed"
96
96
  * />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigmacomputing/react-embed-sdk",
3
3
  "author": "sigmacomputing",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "description": "React JavaScript SDK to interact with Sigma Computing's Embed API",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -43,17 +43,17 @@
43
43
  "@types/react": "^18.3.18",
44
44
  "react": "^18.3.1",
45
45
  "react-dom": "^18.3.1",
46
- "@sigmacomputing/eslint-config": "0.0.0",
47
- "@sigmacomputing/typescript-config": "0.0.0"
46
+ "@sigmacomputing/typescript-config": "0.0.0",
47
+ "@sigmacomputing/eslint-config": "0.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@sigmacomputing/embed-sdk": "0.7.0"
50
+ "@sigmacomputing/embed-sdk": "0.7.1"
51
51
  },
52
52
  "scripts": {
53
53
  "prepublish": "turbo run build",
54
54
  "build": "tsup",
55
55
  "dev": "tsup --watch",
56
56
  "lint": "eslint . --ext .ts,.tsx",
57
- "test": "echo \"Error: no test specified\" && exit 1"
57
+ "test": "echo \"Warn: no test specified\""
58
58
  }
59
59
  }