chayns-api 1.0.15 → 1.0.17
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,6 +112,7 @@ Object.keys(_IChaynsReact).forEach(function (key) {
|
|
|
105
112
|
}
|
|
106
113
|
});
|
|
107
114
|
});
|
|
115
|
+
var _DialogHandler = _interopRequireDefault(require("./handler/DialogHandler"));
|
|
108
116
|
var _dialog = _interopRequireWildcard(require("./calls/dialogs/index"));
|
|
109
117
|
exports.dialog = _dialog;
|
|
110
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,6 +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 { default as DialogHandler } from './handler/DialogHandler';
|
|
10
11
|
import * as _dialog from './calls/dialogs/index';
|
|
11
12
|
export { _dialog as dialog };
|
|
12
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("
|
|
189
|
+
export declare const createDialog: (config: import("../types/IChaynsReact").Dialog) => import("..").DialogHandler;
|
|
190
190
|
/**
|
|
191
191
|
* Displays an overlay
|
|
192
192
|
*/
|
|
@@ -7,7 +7,6 @@ export default class DialogHandler {
|
|
|
7
7
|
private readonly _config;
|
|
8
8
|
private readonly _dispatchEvent;
|
|
9
9
|
private readonly _addDataListener;
|
|
10
|
-
private readonly _removeDataListener;
|
|
11
10
|
private readonly listeners;
|
|
12
11
|
constructor(config: any, open: any, close: any, dispatchEvent: any, addDataListener: any);
|
|
13
12
|
open(): Promise<unknown>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +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 { default as DialogHandler } from './handler/DialogHandler';
|
|
10
11
|
export * as dialog from './calls/dialogs/index';
|
|
11
12
|
export * from './types/IChaynsReact';
|
|
12
13
|
declare const _default: {
|