@evlop/commons 1.0.187 → 1.0.188

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,12 @@ export interface ActionObject {
9
9
  route: string;
10
10
  navigate: Array<string> | string;
11
11
  page: Array<string> | string;
12
+ /**
13
+ * @deprecated use reduxAction instead
14
+ */
12
15
  dispatch: Object | Function;
16
+ reduxAction: Object | Function;
17
+ navigationAction: Object;
13
18
  callback: Function;
14
19
  }
15
20
  export declare type Action = ActionObject | Function | any;
@@ -1 +1 @@
1
- {"version":3,"file":"useActionable.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActionable.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AAEF,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED,oBAAY,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,GAAG,CAAA;AAElD,eAAO,MAAM,0BAA0B,cAAe,GAAG,cAkCH,MAAM,GAAG,MAAM,EAAE,aAAa,GAAG,SAUtF,CAAA;AAED;;GAEG;AACJ,eAAO,MAAM,aAAa,iBAf6B,MAAM,GAAG,MAAM,EAAE,aAAa,GAAG,SAmBvF,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"useActionable.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActionable.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AAEF,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,MA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AC;YACvD,IAAI,WAAW;gBAAE,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;YAC9C,IAAI,QAAQ;gBAAE,OAAO,QAAQ,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAC,CAAC,CAAC;SAC/D;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE3C,MAAM,qBAAqB,GAAG,mBAAW,CAAC,CAAC,MAAyB,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE;QACpF,IAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACtB,sHAAsH;YACtH,eAAM,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;YAC/G,OAAO;SACV;QACD,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,qBAAqB,CAAC;AAChC,CAAC,CAAA;AA5CY,QAAA,0BAA0B,8BA4CtC;AAED;;GAEG;AACG,MAAM,aAAa,GAAG,GAAE,EAAE;IAC7B,MAAM,SAAS,GAAG,2BAAY,EAAE,CAAC;IAEjC,OAAO,kCAA0B,CAAC,SAAS,CAAC,CAAA;AAChD,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAEF,kBAAe,qBAAa,CAAC"}
@@ -37,9 +37,9 @@ export interface Notification {
37
37
  * Action buttons for notification
38
38
  */
39
39
  actions?: Array<{
40
- title: string;
41
- color: Theme['colors'];
40
+ label: string;
42
41
  icon: IconIdentifier;
42
+ color: Theme['colors'];
43
43
  action: Action;
44
44
  }>;
45
45
  /**
@@ -1 +1 @@
1
- {"version":3,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AAEH,eAAO,MAAM,kBAAkB;;;CAG7B,CAAC;gCAIoB,MAAM,YAAY,CAAC;AAA1C,wBAgBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.187",
3
+ "version": "1.0.188",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {