x25 18.0.0 → 18.1.0
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/UI/Things.js +3 -12
- package/UI/Things.js.map +1 -1
- package/actions.d.ts +1 -2
- package/actions.js +13 -6
- package/actions.js.map +1 -1
- package/config.d.ts +1 -1
- package/config.js +1 -1
- package/config.js.map +1 -1
- package/package.json +21 -2
package/UI/Things.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
import { connect } from "react-redux";
|
|
2
|
+
import { ToastContainer } from "react-toastify";
|
|
4
3
|
import ModalRoot from "../Modal/Root.js";
|
|
5
|
-
|
|
6
|
-
import { getNotificationState } from "../config.js";
|
|
7
|
-
const mapStateToProps = (state) => ({
|
|
8
|
-
notifications: getNotificationState(state) || [],
|
|
9
|
-
}), mapDispatchToProps = (dispatch) => ({
|
|
10
|
-
handleDismiss: (notification) => {
|
|
11
|
-
dispatch(deleteNotification(notification.key));
|
|
12
|
-
},
|
|
13
|
-
}), NotificationsContainer = connect(mapStateToProps, mapDispatchToProps)(Notifications), Things = () => (React.createElement(React.Fragment, null,
|
|
4
|
+
const Things = () => (React.createElement(React.Fragment, null,
|
|
14
5
|
React.createElement("div", { className: "d-print-none" },
|
|
15
|
-
React.createElement(
|
|
6
|
+
React.createElement(ToastContainer, null)),
|
|
16
7
|
React.createElement(ModalRoot, null)));
|
|
17
8
|
export default Things;
|
|
18
9
|
//# sourceMappingURL=Things.js.map
|
package/UI/Things.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Things.js","sourceRoot":"","sources":["../../src/UI/Things.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Things.js","sourceRoot":"","sources":["../../src/UI/Things.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,MACE,MAAM,GAAG,GAAG,EAAE,CAAC,CACb;IACE,6BAAK,SAAS,EAAC,cAAc;QAC3B,oBAAC,cAAc,OAAG,CACd;IACN,oBAAC,SAAS,OAAG,CACZ,CACJ,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
package/actions.d.ts
CHANGED
|
@@ -3,9 +3,8 @@ import type { Action } from "src/types";
|
|
|
3
3
|
type NotificationOptions = {
|
|
4
4
|
seconds?: number;
|
|
5
5
|
persistent?: boolean;
|
|
6
|
-
position?: "tr" | "tl" | "tc" | "br" | "bl" | "bc";
|
|
7
6
|
};
|
|
8
|
-
export declare const notify: (title: string | JSX.Element, options?: NotificationOptions) =>
|
|
7
|
+
export declare const notify: (title: string | JSX.Element, options?: NotificationOptions) => any, notifyWarning: (title: string | JSX.Element, options?: NotificationOptions) => any, notifyError: (title: string | JSX.Element, options?: NotificationOptions) => any, showCaptcha: (payload: {
|
|
9
8
|
id: string;
|
|
10
9
|
name: string;
|
|
11
10
|
}) => Action, hideCaptcha: (payload: string) => Action;
|
package/actions.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
const autoDismissDelay = 6,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { toast } from "react-toastify";
|
|
2
|
+
const autoDismissDelay = 6, toMs = (sec) => sec * 1000, createNotification = (level) => (title, options) => {
|
|
3
|
+
var _a;
|
|
4
|
+
const autoClose = (options === null || options === void 0 ? void 0 : options.persistent) ? false : toMs((_a = options === null || options === void 0 ? void 0 : options.seconds) !== null && _a !== void 0 ? _a : autoDismissDelay);
|
|
5
|
+
toast(title, {
|
|
6
|
+
type: level,
|
|
7
|
+
position: "bottom-center",
|
|
8
|
+
autoClose,
|
|
9
|
+
});
|
|
10
|
+
// Return a no-op action for Redux dispatch compatibility
|
|
11
|
+
return { type: "NOTIFICATION_SHOWN" };
|
|
12
|
+
};
|
|
13
|
+
export const notify = createNotification("success"), notifyWarning = createNotification("warning"), notifyError = createNotification("error"),
|
|
7
14
|
// captcha
|
|
8
15
|
showCaptcha = (payload) => ({
|
|
9
16
|
type: "SHOW_CAPTCHA",
|
package/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAQvC,MACE,gBAAgB,GAAG,CAAC,EACpB,IAAI,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,EAClC,kBAAkB,GAAG,CAAC,KAAsC,EAAE,EAAE,CAC9D,CAAC,KAA2B,EAAE,OAA6B,EAAE,EAAE;;IAC7D,MAAM,SAAS,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,gBAAgB,CAAC,CAAC;IAE3F,KAAK,CAAC,KAAK,EAAE;QACX,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,eAAe;QACzB,SAAS;KACV,CAAC,CAAC;IAEH,yDAAyD;IACzD,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAY,CAAC;AAClD,CAAC,CAAC;AAEN,MAAM,CAAC,MACL,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC,EACtC,aAAa,GAAG,kBAAkB,CAAC,SAAS,CAAC,EAC7C,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC;AAEzC,UAAU;AAEV,WAAW,GAAG,CAAC,OAGd,EAAU,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,cAAc;IACpB,OAAO;CACR,CAAC,EACF,WAAW,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,CAAC;IAC1C,IAAI,EAAE,cAAc;IACpB,OAAO;CACR,CAAC,CAAC;AAEL,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
package/config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare let config: any;
|
|
2
|
-
export declare const setConfiguration: (current: any) => void, getAccountState: (state: any) => any, getModulesState: (state: any) => any, getModalsState: (state: any) => any
|
|
2
|
+
export declare const setConfiguration: (current: any) => void, getAccountState: (state: any) => any, getModulesState: (state: any) => any, getModalsState: (state: any) => any;
|
package/config.js
CHANGED
|
@@ -7,5 +7,5 @@ const getReducerState = (module) => (state) => {
|
|
|
7
7
|
};
|
|
8
8
|
export const setConfiguration = (current) => {
|
|
9
9
|
config = current;
|
|
10
|
-
}, getAccountState = getReducerState("account"), getModulesState = getReducerState("module"), getModalsState = getReducerState("modal")
|
|
10
|
+
}, getAccountState = getReducerState("account"), getModulesState = getReducerState("module"), getModalsState = getReducerState("modal");
|
|
11
11
|
//# sourceMappingURL=config.js.map
|
package/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAQ,EAAE,CAAC;AAE5B,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,KAAW,EAAE,EAAE;IAC1D,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,CAAC,MACL,gBAAgB,GAAG,CAAC,OAAY,EAAE,EAAE;IAClC,MAAM,GAAG,OAAO,CAAC;AACnB,CAAC,EACD,eAAe,GAAG,eAAe,CAAC,SAAS,CAAC,EAC5C,eAAe,GAAG,eAAe,CAAC,QAAQ,CAAC,EAC3C,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAQ,EAAE,CAAC;AAE5B,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,KAAW,EAAE,EAAE;IAC1D,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,CAAC,MACL,gBAAgB,GAAG,CAAC,OAAY,EAAE,EAAE;IAClC,MAAM,GAAG,OAAO,CAAC;AACnB,CAAC,EACD,eAAe,GAAG,eAAe,CAAC,SAAS,CAAC,EAC5C,eAAe,GAAG,eAAe,CAAC,QAAQ,CAAC,EAC3C,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "18.
|
|
2
|
+
"version": "18.1.0",
|
|
3
3
|
"name": "x25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "x25",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./Account": "./Account/index.js",
|
|
11
|
+
"./Async": "./Async/index.js",
|
|
12
|
+
"./Inputs": "./Inputs/index.js",
|
|
13
|
+
"./Inputs/Selects": "./Inputs/Selects/index.js",
|
|
14
|
+
"./Loader": "./Loader/index.js",
|
|
15
|
+
"./Messages": "./Messages/index.js",
|
|
16
|
+
"./Modal": "./Modal/index.js",
|
|
17
|
+
"./Payment": "./Payment/index.js",
|
|
18
|
+
"./Payment/Modal": "./Payment/Modal/index.js",
|
|
19
|
+
"./reducer": "./reducer/index.js",
|
|
20
|
+
"./utility": "./utility/index.js",
|
|
21
|
+
"./utility/dev": "./utility/dev/index.js",
|
|
22
|
+
"./utility/validation": "./utility/validation/index.js",
|
|
23
|
+
"./utility/validation/validate": "./utility/validation/validate/index.js",
|
|
24
|
+
"./*": "./*.js",
|
|
25
|
+
"./styles/*": "./styles/*"
|
|
26
|
+
},
|
|
8
27
|
"scripts": {
|
|
9
28
|
"load": "npm run intern-pre && npm run ts && npm run intern-copy && npm publish ./dist",
|
|
10
29
|
"load-beta": "npm run intern-pre && npm run ts && npm run intern-copy && npm publish ./dist --tag beta",
|
|
@@ -131,8 +150,8 @@
|
|
|
131
150
|
"react-final-form": "^7.0.0",
|
|
132
151
|
"react-immutable-form": "^1.1.11",
|
|
133
152
|
"react-immutable-form-with-bootstrap": "^1.0.13",
|
|
134
|
-
"react-notification-system-redux2": "^3.0.4",
|
|
135
153
|
"react-redux": "^9.2.0",
|
|
154
|
+
"react-toastify": "^11.0.5",
|
|
136
155
|
"redux": "^5.0.1",
|
|
137
156
|
"reselect": "^5.1.1",
|
|
138
157
|
"superagent": "^8.1.2",
|