chayns-api 2.4.1 → 2.4.3
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/constants/DefaultLoginDialogOptions.js +18 -0
- package/dist/cjs/constants/index.js +11 -0
- package/dist/cjs/wrapper/FrameWrapper.js +4 -1
- package/dist/esm/constants/DefaultLoginDialogOptions.js +12 -0
- package/dist/esm/constants/index.js +2 -1
- package/dist/esm/wrapper/FrameWrapper.js +4 -1
- package/dist/types/constants/DefaultLoginDialogOptions.d.ts +12 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DefaultLoginDialogOptions = void 0;
|
|
7
|
+
const DefaultLoginDialogOptions = exports.DefaultLoginDialogOptions = {
|
|
8
|
+
type: "module",
|
|
9
|
+
system: {
|
|
10
|
+
scope: "chayns_login",
|
|
11
|
+
url: `https://login.chayns.net/v4/v2.remoteEntry.js`,
|
|
12
|
+
module: './Login'
|
|
13
|
+
},
|
|
14
|
+
minHeight: 200,
|
|
15
|
+
seamless: true,
|
|
16
|
+
dialogInput: {},
|
|
17
|
+
buttons: []
|
|
18
|
+
};
|
|
@@ -13,4 +13,15 @@ Object.keys(_hydrationContext).forEach(function (key) {
|
|
|
13
13
|
return _hydrationContext[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
});
|
|
17
|
+
var _DefaultLoginDialogOptions = require("./DefaultLoginDialogOptions");
|
|
18
|
+
Object.keys(_DefaultLoginDialogOptions).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _DefaultLoginDialogOptions[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _DefaultLoginDialogOptions[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
16
27
|
});
|
|
@@ -315,7 +315,10 @@ class FrameWrapper {
|
|
|
315
315
|
value
|
|
316
316
|
}) => {
|
|
317
317
|
if (this.initialized) {
|
|
318
|
-
this.values
|
|
318
|
+
this.values = {
|
|
319
|
+
...this.values,
|
|
320
|
+
[type]: value
|
|
321
|
+
};
|
|
319
322
|
}
|
|
320
323
|
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
321
324
|
detail: {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './hydrationContext';
|
|
1
|
+
export * from './hydrationContext';
|
|
2
|
+
export * from './DefaultLoginDialogOptions';
|
|
@@ -324,7 +324,10 @@ export class FrameWrapper {
|
|
|
324
324
|
value
|
|
325
325
|
} = _ref;
|
|
326
326
|
if (this.initialized) {
|
|
327
|
-
this.values
|
|
327
|
+
this.values = {
|
|
328
|
+
...this.values,
|
|
329
|
+
[type]: value
|
|
330
|
+
};
|
|
328
331
|
}
|
|
329
332
|
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
330
333
|
detail: {
|