@sigmacomputing/react-embed-sdk 0.5.1 → 0.6.0

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/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { WorkbookErrorEvent, WorkbookLoadedEvent, WorkbookDataLoadedEvent, WorkbookVariableOnChangeEvent, WorkbookTableCellSelectEvent, WorkbookPublishedEvent, WorkbookFullScreenEvent, WorkbookPageHeightEvent, WorkbookSelectedNodeEvent, WorkbookPivotTableCellSelectEvent, WorkbookChartValueSelectEvent, WorkbookCurrentVariablesEvent, WorkbookBookmarkOnCreateEvent, WorkbookChartErrorEvent, WorkbookExploreKeyOnChangeEvent, WorkbookBookmarkOnChangeEvent, UrlOnChangeEvent, WorkbookIdOnChangeEvent, ActionOutboundEvent, WorkbookBookmarkCreateEvent } from '@sigmacomputing/embed-sdk';
2
2
  export * from '@sigmacomputing/embed-sdk';
3
+ export { DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl } from '@sigmacomputing/embed-sdk';
3
4
 
4
5
  /**
5
6
  * A hook that returns a ref to be used with an iframe element, and the loading and error state of the embed.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { WorkbookErrorEvent, WorkbookLoadedEvent, WorkbookDataLoadedEvent, WorkbookVariableOnChangeEvent, WorkbookTableCellSelectEvent, WorkbookPublishedEvent, WorkbookFullScreenEvent, WorkbookPageHeightEvent, WorkbookSelectedNodeEvent, WorkbookPivotTableCellSelectEvent, WorkbookChartValueSelectEvent, WorkbookCurrentVariablesEvent, WorkbookBookmarkOnCreateEvent, WorkbookChartErrorEvent, WorkbookExploreKeyOnChangeEvent, WorkbookBookmarkOnChangeEvent, UrlOnChangeEvent, WorkbookIdOnChangeEvent, ActionOutboundEvent, WorkbookBookmarkCreateEvent } from '@sigmacomputing/embed-sdk';
2
2
  export * from '@sigmacomputing/embed-sdk';
3
+ export { DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl } from '@sigmacomputing/embed-sdk';
3
4
 
4
5
  /**
5
6
  * A hook that returns a ref to be used with an iframe element, and the loading and error state of the embed.
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
+ DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl: () => import_embed_sdk4.DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl,
23
24
  createWorkbookBookmark: () => createWorkbookBookmark,
24
25
  getWorkbookVariables: () => getWorkbookVariables,
25
26
  updateWorkbookBookmark: () => updateWorkbookBookmark,
@@ -403,6 +404,7 @@ var useWorkbookVariables = (iframeRef) => {
403
404
 
404
405
  // src/mutations.ts
405
406
  var import_embed_sdk3 = require("@sigmacomputing/embed-sdk");
407
+ var import_embed_sdk4 = require("@sigmacomputing/embed-sdk");
406
408
  function getWorkbookVariables(iframeRef) {
407
409
  if (!iframeRef.current) {
408
410
  throw new Error("iframe is not available");
@@ -451,6 +453,7 @@ function updateWorkbookSharingLink(iframeRef, sharingLink, sharingExplorationLin
451
453
  }
452
454
  // Annotate the CommonJS export names for ESM import in node:
453
455
  0 && (module.exports = {
456
+ DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl,
454
457
  createWorkbookBookmark,
455
458
  getWorkbookVariables,
456
459
  updateWorkbookBookmark,
package/dist/index.mjs CHANGED
@@ -381,6 +381,7 @@ import {
381
381
  workbookSelectedNodeIdUpdate,
382
382
  workbookSharingLinkUpdate
383
383
  } from "@sigmacomputing/embed-sdk";
384
+ import { DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl } from "@sigmacomputing/embed-sdk";
384
385
  function getWorkbookVariables(iframeRef) {
385
386
  if (!iframeRef.current) {
386
387
  throw new Error("iframe is not available");
@@ -428,6 +429,7 @@ function updateWorkbookSharingLink(iframeRef, sharingLink, sharingExplorationLin
428
429
  );
429
430
  }
430
431
  export {
432
+ DO_NOT_USE_IN_PRODUCTION_overrideMutationUrl,
431
433
  createWorkbookBookmark,
432
434
  getWorkbookVariables,
433
435
  updateWorkbookBookmark,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigmacomputing/react-embed-sdk",
3
3
  "author": "sigmacomputing",
4
- "version": "0.5.1",
4
+ "version": "0.6.0",
5
5
  "description": "React JavaScript SDK to interact with Sigma Computing's Embed API",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -19,27 +19,35 @@
19
19
  "sigma",
20
20
  "react"
21
21
  ],
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.ts",
22
25
  "exports": {
23
- "import": "./dist/index.mjs",
24
- "require": "./dist/index.js",
25
- "types": "./dist/index.d.ts"
26
+ "import": {
27
+ "import": "./dist/index.mjs",
28
+ "types": "./dist/index.d.mts"
29
+ },
30
+ "require": {
31
+ "require": "./dist/index.js",
32
+ "types": "./dist/index.d.ts"
33
+ }
26
34
  },
27
35
  "files": [
28
36
  "dist"
29
37
  ],
30
38
  "peerDependencies": {
31
- "react": "^16.8 || ^17 || ^18 || ^19",
32
- "react-dom": "^16.8 || ^17 || ^18 || ^19"
39
+ "react": "^16.8.0 || ^17.0 || ^18.0 || ^19.0 || 19.0.0-rc",
40
+ "react-dom": "^16.8.0 || ^17.0 || ^18.0 || ^19.0 || 19.0.0-rc"
33
41
  },
34
42
  "devDependencies": {
35
- "@types/react": "^18.3.3",
43
+ "@types/react": "^18.3.18",
36
44
  "react": "^18.3.1",
37
45
  "react-dom": "^18.3.1",
38
- "@sigmacomputing/typescript-config": "0.0.0",
39
- "@sigmacomputing/eslint-config": "0.0.0"
46
+ "@sigmacomputing/eslint-config": "0.0.0",
47
+ "@sigmacomputing/typescript-config": "0.0.0"
40
48
  },
41
49
  "dependencies": {
42
- "@sigmacomputing/embed-sdk": "0.5.0"
50
+ "@sigmacomputing/embed-sdk": "0.6.0"
43
51
  },
44
52
  "scripts": {
45
53
  "prepublish": "turbo run build",