chayns-api 2.4.7 → 2.4.9
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 +10 -3
- package/dist/cjs/types/IChaynsReact.js +1 -0
- package/dist/cjs/wrapper/AppWrapper.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/IChaynsReact.js +1 -0
- package/dist/esm/wrapper/AppWrapper.js +1 -1
- package/dist/types/components/ChaynsProvider.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/IChaynsReact.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
ChaynsProvider: true,
|
|
8
|
+
ChaynsProviderProps: true,
|
|
8
9
|
getDeviceInfo: true,
|
|
9
10
|
getScreenSize: true,
|
|
10
11
|
getClientDeviceInfo: true,
|
|
@@ -29,6 +30,12 @@ Object.defineProperty(exports, "ChaynsProvider", {
|
|
|
29
30
|
return _ChaynsProvider.default;
|
|
30
31
|
}
|
|
31
32
|
});
|
|
33
|
+
Object.defineProperty(exports, "ChaynsProviderProps", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return _ChaynsProvider.ChaynsProviderProps;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
32
39
|
Object.defineProperty(exports, "DialogHandler", {
|
|
33
40
|
enumerable: true,
|
|
34
41
|
get: function () {
|
|
@@ -85,7 +92,7 @@ Object.defineProperty(exports, "withHydrationBoundary", {
|
|
|
85
92
|
}
|
|
86
93
|
});
|
|
87
94
|
require("./util/transferNestedFunctions");
|
|
88
|
-
var _ChaynsProvider =
|
|
95
|
+
var _ChaynsProvider = _interopRequireWildcard(require("./components/ChaynsProvider"));
|
|
89
96
|
var _deviceHelper = _interopRequireWildcard(require("./util/deviceHelper"));
|
|
90
97
|
var _ChaynsHost = _interopRequireDefault(require("./host/ChaynsHost"));
|
|
91
98
|
var _withCompatMode = require("./components/withCompatMode");
|
|
@@ -191,6 +198,6 @@ Object.keys(_bindChaynsApi).forEach(function (key) {
|
|
|
191
198
|
}
|
|
192
199
|
});
|
|
193
200
|
});
|
|
201
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
194
202
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
195
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
196
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
203
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -233,6 +233,7 @@ let RuntimeEnviroment = exports.RuntimeEnviroment = function (RuntimeEnviroment)
|
|
|
233
233
|
RuntimeEnviroment[RuntimeEnviroment["IntercomPlugin"] = 4] = "IntercomPlugin";
|
|
234
234
|
RuntimeEnviroment[RuntimeEnviroment["PagemakerPlugin"] = 5] = "PagemakerPlugin";
|
|
235
235
|
RuntimeEnviroment[RuntimeEnviroment["Dialog"] = 6] = "Dialog";
|
|
236
|
+
RuntimeEnviroment[RuntimeEnviroment["App"] = 7] = "App";
|
|
236
237
|
return RuntimeEnviroment;
|
|
237
238
|
}({});
|
|
238
239
|
let DeviceOs = exports.DeviceOs = function (DeviceOs) {
|
|
@@ -84,7 +84,7 @@ class AppWrapper {
|
|
|
84
84
|
}),
|
|
85
85
|
environment: {
|
|
86
86
|
buildEnvironment: _IChaynsReact.Environment.Production,
|
|
87
|
-
runtimeEnvironment: _IChaynsReact.RuntimeEnviroment.
|
|
87
|
+
runtimeEnvironment: _IChaynsReact.RuntimeEnviroment.App
|
|
88
88
|
},
|
|
89
89
|
language: {
|
|
90
90
|
site: language,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './util/transferNestedFunctions';
|
|
2
|
-
export { default as ChaynsProvider } from './components/ChaynsProvider';
|
|
2
|
+
export { default as ChaynsProvider, ChaynsProviderProps } from './components/ChaynsProvider';
|
|
3
3
|
export { default as getDeviceInfo, getScreenSize, getClientDeviceInfo } from './util/deviceHelper';
|
|
4
4
|
export { default as ChaynsHost } from './host/ChaynsHost';
|
|
5
5
|
export { withCompatMode } from './components/withCompatMode';
|
|
@@ -227,6 +227,7 @@ export let RuntimeEnviroment = function (RuntimeEnviroment) {
|
|
|
227
227
|
RuntimeEnviroment[RuntimeEnviroment["IntercomPlugin"] = 4] = "IntercomPlugin";
|
|
228
228
|
RuntimeEnviroment[RuntimeEnviroment["PagemakerPlugin"] = 5] = "PagemakerPlugin";
|
|
229
229
|
RuntimeEnviroment[RuntimeEnviroment["Dialog"] = 6] = "Dialog";
|
|
230
|
+
RuntimeEnviroment[RuntimeEnviroment["App"] = 7] = "App";
|
|
230
231
|
return RuntimeEnviroment;
|
|
231
232
|
}({});
|
|
232
233
|
export let DeviceOs = function (DeviceOs) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ChaynsReactFunctions, ChaynsReactValues, IChaynsReact } from '../types/IChaynsReact';
|
|
3
|
-
type ChaynsProviderProps = {
|
|
3
|
+
export type ChaynsProviderProps = {
|
|
4
4
|
data?: ChaynsReactValues;
|
|
5
5
|
functions?: ChaynsReactFunctions;
|
|
6
6
|
customFunctions?: IChaynsReact["customFunctions"];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './util/transferNestedFunctions';
|
|
2
|
-
export { default as ChaynsProvider } from './components/ChaynsProvider';
|
|
2
|
+
export { default as ChaynsProvider, ChaynsProviderProps } from './components/ChaynsProvider';
|
|
3
3
|
export { default as getDeviceInfo, getScreenSize, getClientDeviceInfo } from './util/deviceHelper';
|
|
4
4
|
export { default as ChaynsHost } from './host/ChaynsHost';
|
|
5
5
|
export { withCompatMode } from './components/withCompatMode';
|