@sawport/react-sdk 0.1.0-alpha.2 → 0.1.0-alpha.5

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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.sawportReactSDK = {}));
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.sawportSDK = {}));
3
3
  })(this, function(exports2) {
4
4
  "use strict";
5
5
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -3452,14 +3452,21 @@
3452
3452
  }
3453
3453
  return reactIs_development;
3454
3454
  }
3455
- (function(module2) {
3456
- if (process.env.NODE_ENV === "production") {
3457
- module2.exports = requireReactIs_production_min();
3458
- } else {
3459
- module2.exports = requireReactIs_development();
3460
- }
3461
- })(reactIs$1);
3462
- var reactIs = reactIs$1.exports;
3455
+ var hasRequiredReactIs;
3456
+ function requireReactIs() {
3457
+ if (hasRequiredReactIs)
3458
+ return reactIs$1.exports;
3459
+ hasRequiredReactIs = 1;
3460
+ (function(module2) {
3461
+ if (process.env.NODE_ENV === "production") {
3462
+ module2.exports = requireReactIs_production_min();
3463
+ } else {
3464
+ module2.exports = requireReactIs_development();
3465
+ }
3466
+ })(reactIs$1);
3467
+ return reactIs$1.exports;
3468
+ }
3469
+ var reactIs = requireReactIs();
3463
3470
  var FORWARD_REF_STATICS = {
3464
3471
  "$$typeof": true,
3465
3472
  render: true,
@@ -8287,7 +8294,7 @@ attempted value: ${formattedValue}
8287
8294
  if (hasRequiredFactoryWithTypeCheckers)
8288
8295
  return factoryWithTypeCheckers;
8289
8296
  hasRequiredFactoryWithTypeCheckers = 1;
8290
- var ReactIs2 = reactIs$1.exports;
8297
+ var ReactIs2 = requireReactIs();
8291
8298
  var assign2 = requireObjectAssign();
8292
8299
  var ReactPropTypesSecret = requireReactPropTypesSecret();
8293
8300
  var has2 = requireHas();
@@ -8780,7 +8787,7 @@ attempted value: ${formattedValue}
8780
8787
  return factoryWithThrowingShims;
8781
8788
  }
8782
8789
  if (process.env.NODE_ENV !== "production") {
8783
- var ReactIs = reactIs$1.exports;
8790
+ var ReactIs = requireReactIs();
8784
8791
  var throwOnDirectAccess = true;
8785
8792
  propTypes$h.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
8786
8793
  } else {
@@ -68189,6 +68196,15 @@ attempted value: ${formattedValue}
68189
68196
  ...config
68190
68197
  }));
68191
68198
  });
68199
+ window.sawportSDK = {
68200
+ Widget: Widget$1,
68201
+ SawportContext,
68202
+ setSawportConfig,
68203
+ sawportConfig,
68204
+ useSawportConfig,
68205
+ useSawportContext,
68206
+ mountWidget
68207
+ };
68192
68208
  exports2.SawportContext = SawportContext;
68193
68209
  exports2.Widget = Widget$1;
68194
68210
  exports2.mountWidget = mountWidget;
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@sawport/react-sdk",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
- "module": "./dist/index.es.js",
6
+ "module": "./dist/index.js",
7
+ "browser": "./dist/index.js",
7
8
  "exports": {
8
9
  ".": {
9
- "import": "./dist/index.es.js",
10
- "require": "./dist/index.umd.js"
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.umd.js",
12
+ "default": "./dist/index.js"
11
13
  }
12
14
  },
13
15
  "dependencies": {