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.
@@ -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[type] = value;
318
+ this.values = {
319
+ ...this.values,
320
+ [type]: value
321
+ };
319
322
  }
320
323
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
321
324
  detail: {
@@ -0,0 +1,12 @@
1
+ export const DefaultLoginDialogOptions = {
2
+ type: "module",
3
+ system: {
4
+ scope: "chayns_login",
5
+ url: `https://login.chayns.net/v4/v2.remoteEntry.js`,
6
+ module: './Login'
7
+ },
8
+ minHeight: 200,
9
+ seamless: true,
10
+ dialogInput: {},
11
+ buttons: []
12
+ };
@@ -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[type] = value;
327
+ this.values = {
328
+ ...this.values,
329
+ [type]: value
330
+ };
328
331
  }
329
332
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
330
333
  detail: {
@@ -0,0 +1,12 @@
1
+ export declare const DefaultLoginDialogOptions: {
2
+ type: string;
3
+ system: {
4
+ scope: string;
5
+ url: string;
6
+ module: string;
7
+ };
8
+ minHeight: number;
9
+ seamless: boolean;
10
+ dialogInput: {};
11
+ buttons: never[];
12
+ };
@@ -1 +1,2 @@
1
1
  export * from './hydrationContext';
2
+ export * from './DefaultLoginDialogOptions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",