@abtnode/ux 1.16.25-beta-cfcab4af → 1.16.25-beta-023ec101
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.
|
@@ -8,11 +8,12 @@ import Stack from '@mui/material/Stack';
|
|
|
8
8
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
9
9
|
import { useMemoizedFn } from 'ahooks';
|
|
10
10
|
import pick from 'lodash/pick';
|
|
11
|
+
import { SESSION_TTL } from '@abtnode/constant';
|
|
11
12
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
12
13
|
import { useNodeContext } from '../../contexts/node';
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
const defaultForm = {
|
|
15
|
-
ttl:
|
|
16
|
+
ttl: SESSION_TTL
|
|
16
17
|
};
|
|
17
18
|
function fixTtl(data, reverse = false) {
|
|
18
19
|
const ttl = reverse ? data.ttl * 86400 : data.ttl / 86400;
|
|
@@ -14,6 +14,7 @@ var _Stack = _interopRequireDefault(require("@mui/material/Stack"));
|
|
|
14
14
|
var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
15
15
|
var _ahooks = require("ahooks");
|
|
16
16
|
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
17
|
+
var _constant = require("@abtnode/constant");
|
|
17
18
|
var _blocklet = require("../../contexts/blocklet");
|
|
18
19
|
var _node = require("../../contexts/node");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -24,7 +25,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
24
25
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
25
26
|
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); }
|
|
26
27
|
const defaultForm = {
|
|
27
|
-
ttl:
|
|
28
|
+
ttl: _constant.SESSION_TTL
|
|
28
29
|
};
|
|
29
30
|
function fixTtl(data) {
|
|
30
31
|
let reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.25-beta-
|
|
3
|
+
"version": "1.16.25-beta-023ec101",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@abtnode/auth": "1.16.25-beta-
|
|
32
|
-
"@abtnode/constant": "1.16.25-beta-
|
|
33
|
-
"@abtnode/util": "1.16.25-beta-
|
|
31
|
+
"@abtnode/auth": "1.16.25-beta-023ec101",
|
|
32
|
+
"@abtnode/constant": "1.16.25-beta-023ec101",
|
|
33
|
+
"@abtnode/util": "1.16.25-beta-023ec101",
|
|
34
34
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
35
35
|
"@arcblock/did": "^1.18.113",
|
|
36
|
-
"@arcblock/did-connect": "^2.9.
|
|
36
|
+
"@arcblock/did-connect": "^2.9.60",
|
|
37
37
|
"@arcblock/did-motif": "^1.1.13",
|
|
38
|
-
"@arcblock/icons": "^2.9.
|
|
39
|
-
"@arcblock/nft-display": "2.9.
|
|
40
|
-
"@arcblock/react-hooks": "^2.9.
|
|
41
|
-
"@arcblock/terminal": "^2.9.
|
|
42
|
-
"@arcblock/ux": "^2.9.
|
|
43
|
-
"@blocklet/constant": "1.16.25-beta-
|
|
44
|
-
"@blocklet/launcher-layout": "2.2.
|
|
38
|
+
"@arcblock/icons": "^2.9.60",
|
|
39
|
+
"@arcblock/nft-display": "2.9.60",
|
|
40
|
+
"@arcblock/react-hooks": "^2.9.60",
|
|
41
|
+
"@arcblock/terminal": "^2.9.60",
|
|
42
|
+
"@arcblock/ux": "^2.9.60",
|
|
43
|
+
"@blocklet/constant": "1.16.25-beta-023ec101",
|
|
44
|
+
"@blocklet/launcher-layout": "2.2.60",
|
|
45
45
|
"@blocklet/list": "^0.12.78",
|
|
46
|
-
"@blocklet/meta": "1.16.25-beta-
|
|
47
|
-
"@blocklet/ui-react": "^2.9.
|
|
46
|
+
"@blocklet/meta": "1.16.25-beta-023ec101",
|
|
47
|
+
"@blocklet/ui-react": "^2.9.60",
|
|
48
48
|
"@blocklet/uploader": "^0.0.75",
|
|
49
49
|
"@emotion/react": "^11.10.4",
|
|
50
50
|
"@emotion/styled": "^11.10.4",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"jest": "^29.7.0",
|
|
108
108
|
"jest-environment-jsdom": "^29.7.0"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "7e534f8dd1335f42897bf467e261f02bc7a59be0",
|
|
111
111
|
"exports": {
|
|
112
112
|
".": {
|
|
113
113
|
"import": "./es/index.js",
|