x25 17.1.0 → 17.1.1
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/actions.d.ts +3 -2
- package/actions.js +1 -1
- package/actions.js.map +1 -1
- package/package.json +1 -1
package/actions.d.ts
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import type { Action } from "src/types";
|
|
3
3
|
declare type NotificationOptions = {
|
|
4
4
|
title: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
seconds?: number;
|
|
6
|
+
persistent?: boolean;
|
|
7
|
+
position?: "tr" | "tl" | "tc" | "br" | "bl" | "bc";
|
|
7
8
|
};
|
|
8
9
|
export declare const notify: (title: string | JSX.Element, options?: NotificationOptions | undefined) => Action, notifyWarning: (title: string | JSX.Element, options?: NotificationOptions | undefined) => Action, notifyError: (title: string | JSX.Element, options?: NotificationOptions | undefined) => Action, deleteNotification: (position: number) => Action, showCaptcha: (payload: {
|
|
9
10
|
id: string;
|
package/actions.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.hideCaptcha = exports.showCaptcha = exports.deleteNotification = exports.notifyError = exports.notifyWarning = exports.notify = void 0;
|
|
28
28
|
var react_notification_system_redux2_1 = __importDefault(require("react-notification-system-redux2"));
|
|
29
|
-
var createNotification = function (level) { return function (title, options) { return react_notification_system_redux2_1.default.show(__assign({ title: title, position: "tc", autoDismiss:
|
|
29
|
+
var autoDismissDelay = 5, createNotification = function (level) { return function (title, options) { return react_notification_system_redux2_1.default.show(__assign({ title: title, position: "tc", autoDismiss: (options === null || options === void 0 ? void 0 : options.persistent) ? 0 : ((options === null || options === void 0 ? void 0 : options.seconds) ? options.seconds : autoDismissDelay) }, options), level); }; };
|
|
30
30
|
var deleteNotification = function (position) { return ({
|
|
31
31
|
type: "DELETE_NOTIFICATION",
|
|
32
32
|
payload: position,
|
package/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sGAA6D;
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sGAA6D;AAa7D,IACE,gBAAgB,GAAG,CAAC,EACpB,kBAAkB,GAAwB,UAAC,KAAK,IAAK,OAAA,UAAC,KAAK,EAAE,OAAO,IAAK,OAAA,0CAAa,CAAC,IAAI,YACzF,KAAK,OAAA,EACL,QAAQ,EAAM,IAAI,EAClB,WAAW,EAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAC5F,OAAO,GACT,KAAK,CAAC,EALgE,CAKhE,EAL4C,CAK5C,CAAC;AAEL,IAIL,kBAAkB,GAAG,UAAC,QAAgB,IAAa,OAAA,CAAC;IAClD,IAAI,EAAM,qBAAqB;IAC/B,OAAO,EAAG,QAAQ;CACnB,CAAC,EAHiD,CAGjD;AAEF,UAAU;AAEV,WAAW,GAAG,UAAC,OAGhB,IAAa,OAAA,CAAC;IACX,IAAI,EAAE,cAAc;IACpB,OAAO,SAAA;CACR,CAAC,EAHU,CAGV,EACF,WAAW,GAAG,UAAC,OAAe,IAAa,OAAA,CAAC;IAC1C,IAAI,EAAE,cAAc;IACpB,OAAO,SAAA;CACR,CAAC,EAHyC,CAGzC,CAAC;AApBH,QAAA,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC,EACtC,QAAA,aAAa,GAAG,kBAAkB,CAAC,SAAS,CAAC,EAC7C,QAAA,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,EACzC,QAAA,kBAAkB;AAKlB,UAAU;AAEV,QAAA,WAAW,gBAOX,QAAA,WAAW,eAGR;AAEL,kDAAgC;AAChC,oDAAkC"}
|
package/package.json
CHANGED