chayns-api 1.0.41 → 1.0.43

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.
@@ -397,7 +397,7 @@ class AppWrapper {
397
397
  id: options.id,
398
398
  showName: options.showName,
399
399
  position: options.position,
400
- params: options.params
400
+ params: new URLSearchParams(options.params).toString() || undefined
401
401
  }, {
402
402
  awaitResult: false
403
403
  });
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  export default class DialogHandler {
5
5
  constructor(config, open, close, dispatchEvent, addDataListener) {
6
6
  _defineProperty(this, "isOpen", false);
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
 
@@ -353,7 +353,7 @@ export class AppWrapper {
353
353
  id: options.id,
354
354
  showName: options.showName,
355
355
  position: options.position,
356
- params: options.params
356
+ params: new URLSearchParams(options.params).toString() || undefined
357
357
  }, {
358
358
  awaitResult: false
359
359
  });
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
5
5
  import * as comlink from 'comlink';
6
6
  import DialogHandler from '../handler/DialogHandler';
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { moduleWrapper } from '../components/moduleWrapper';
5
5
  import { FrameWrapper } from './FrameWrapper';
6
6
  class StaticChaynsApi {
@@ -228,7 +228,9 @@ export declare const getParameters: () => {
228
228
  };
229
229
  export declare const getPages: () => import("../types/IChaynsReact").Page[];
230
230
  export declare const getEnvironment: () => {
231
- buildEnvironment: import("../types/IChaynsReact").Environment;
231
+ buildEnvironment: import("../types/IChaynsReact").Environment; /**
232
+ * Refresh badge count in navigation, user information and pages
233
+ */
232
234
  runtimeEnvironment: string | import("../types/IChaynsReact").RuntimeEnviroment;
233
235
  };
234
236
  export declare const user: UserInfo;
@@ -246,6 +248,8 @@ export declare const parameters: {
246
248
  };
247
249
  export declare const pages: import("../types/IChaynsReact").Page[];
248
250
  export declare const environment: {
249
- buildEnvironment: import("../types/IChaynsReact").Environment;
251
+ buildEnvironment: import("../types/IChaynsReact").Environment; /**
252
+ * Refresh badge count in navigation, user information and pages
253
+ */
250
254
  runtimeEnvironment: string | import("../types/IChaynsReact").RuntimeEnviroment;
251
255
  };
@@ -39,6 +39,12 @@ export interface DialogToast {
39
39
  showCloseIcon?: boolean;
40
40
  toastType?: ToastType;
41
41
  }
42
+ export interface DialogFileSelect {
43
+ multiselect?: boolean;
44
+ contentType?: Array<string> | string;
45
+ exclude?: Array<string> | string;
46
+ directory?: boolean;
47
+ }
42
48
  export interface DialogConfirm {
43
49
  type: DialogType.CONFIRM;
44
50
  }
@@ -54,7 +60,7 @@ export interface BaseDialog {
54
60
  config?: any;
55
61
  };
56
62
  }
57
- export type Dialog = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule | DialogIFrame | DialogSelect | DialogDate | DialogToast);
63
+ export type Dialog = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule | DialogIFrame | DialogSelect | DialogDate | DialogToast | DialogFileSelect);
58
64
  export interface DialogModule {
59
65
  type: DialogType.MODULE;
60
66
  system: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",