@evlop/commons 1.0.216 → 1.0.217

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ exports.UPDATE_MODAL = 'modal/update';
7
7
  exports.CLOSE_MODAL = 'modal/close';
8
8
  // export const showModal = (component, props = {})=>({
9
9
  const showModal = (options) => {
10
- const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {} } = options;
10
+ const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true } = options;
11
11
  if (!component) {
12
12
  throw new Error('Modal component is required');
13
13
  }
@@ -15,7 +15,7 @@ const showModal = (options) => {
15
15
  id,
16
16
  component,
17
17
  props,
18
- closeable: true,
18
+ closeable,
19
19
  };
20
20
  return {
21
21
  type: exports.SHOW_MODAL,
@@ -1 +1 @@
1
- {"version":3,"file":"modals.js","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":";;;AAAA,mCAAwC;AAE3B,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,WAAW,GAAG,aAAa,CAAC;AASzC,uDAAuD;AAChD,MAAM,SAAS,GAAG,CAAC,OAA0B,EAAC,EAAE;IACnD,MAAM,EAAC,EAAE,GAAG,eAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAC,GAAG,OAAO,CAAC;IAE9E,IAAI,CAAC,SAAS,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAClD;IAED,MAAM,KAAK,GAAa;QACpB,EAAE;QACF,SAAS;QACT,KAAK;QACL,SAAS,EAAE,IAAI;KAClB,CAAC;IACF,OAAO;QACH,IAAI,EAAE,kBAAU;QAChB,KAAK;KACR,CAAA;AACL,CAAC,CAAC;AAjBW,QAAA,SAAS,aAiBpB;AAEK,MAAM,WAAW,GAAG,CAAC,EAAkB,EAAE,OAA0B,EAAC,EAAE;IACzE,OAAO;QAC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,CAAC,YAAY,EAAC,CAAC,CAAA,CAAC,CAAC,CAAC;QAC3E,KAAK,mBAAW;YACZ,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,EAAE,KAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QAC7C;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.216",
3
+ "version": "1.0.217",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {