chayns-api 1.0.16 → 1.0.19

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/cjs/index.js CHANGED
@@ -9,6 +9,7 @@ var _exportNames = {
9
9
  getScreenSize: true,
10
10
  ChaynsHost: true,
11
11
  withCompatMode: true,
12
+ DialogHandler: true,
12
13
  dialog: true
13
14
  };
14
15
  Object.defineProperty(exports, "ChaynsHost", {
@@ -23,6 +24,12 @@ Object.defineProperty(exports, "ChaynsProvider", {
23
24
  return _ChaynsProvider.default;
24
25
  }
25
26
  });
27
+ Object.defineProperty(exports, "DialogHandler", {
28
+ enumerable: true,
29
+ get: function () {
30
+ return _DialogHandler.default;
31
+ }
32
+ });
26
33
  exports.dialog = exports.default = void 0;
27
34
  Object.defineProperty(exports, "getDeviceInfo", {
28
35
  enumerable: true,
@@ -105,18 +112,7 @@ Object.keys(_IChaynsReact).forEach(function (key) {
105
112
  }
106
113
  });
107
114
  });
108
- var _DialogHandler = require("./handler/DialogHandler");
109
- Object.keys(_DialogHandler).forEach(function (key) {
110
- if (key === "default" || key === "__esModule") return;
111
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
112
- if (key in exports && exports[key] === _DialogHandler[key]) return;
113
- Object.defineProperty(exports, key, {
114
- enumerable: true,
115
- get: function () {
116
- return _DialogHandler[key];
117
- }
118
- });
119
- });
115
+ var _DialogHandler = _interopRequireDefault(require("./handler/DialogHandler"));
120
116
  var _dialog = _interopRequireWildcard(require("./calls/dialogs/index"));
121
117
  exports.dialog = _dialog;
122
118
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
package/dist/esm/index.js CHANGED
@@ -7,7 +7,7 @@ export * from './hooks';
7
7
  export * from './components/WaitUntil';
8
8
  export * from './types/IChaynsReact';
9
9
  export * from './components/withCompatMode';
10
- export * from './handler/DialogHandler';
10
+ export { default as DialogHandler } from './handler/DialogHandler';
11
11
  import * as _dialog from './calls/dialogs/index';
12
12
  export { _dialog as dialog };
13
13
  export * from './types/IChaynsReact';
@@ -186,7 +186,7 @@ export declare const vibrate: (value: import("../types/IChaynsReact").Vibrate) =
186
186
  /**
187
187
  * This method creates a dialog
188
188
  */
189
- export declare const createDialog: (config: import("../types/IChaynsReact").Dialog) => import("../handler/DialogHandler").default;
189
+ export declare const createDialog: (config: import("../types/IChaynsReact").Dialog) => import("..").DialogHandler;
190
190
  /**
191
191
  * Displays an overlay
192
192
  */
@@ -7,7 +7,7 @@ export * from './hooks';
7
7
  export * from './components/WaitUntil';
8
8
  export * from './types/IChaynsReact';
9
9
  export * from './components/withCompatMode';
10
- export * from './handler/DialogHandler';
10
+ export { default as DialogHandler } from './handler/DialogHandler';
11
11
  export * as dialog from './calls/dialogs/index';
12
12
  export * from './types/IChaynsReact';
13
13
  declare const _default: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.16",
3
+ "version": "1.0.19",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -69,7 +69,7 @@
69
69
  "typescript": "^4.9.5"
70
70
  },
71
71
  "peerDependencies": {
72
- "react": "^16.8 || ^17.0.1",
73
- "react-dom": "^16.8 || ^17.0.1"
72
+ "react": "^16.8 || ^17.0.1 || ^18.0.0",
73
+ "react-dom": "^16.8 || ^17.0.1 || ^18.0.0"
74
74
  }
75
75
  }