@arcblock/ux 1.17.18 → 1.17.21
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/lib/Header/header.js
CHANGED
|
@@ -94,7 +94,7 @@ Header.defaultProps = {
|
|
|
94
94
|
const Root = _styledComponents.default.div.withConfig({
|
|
95
95
|
displayName: "header__Root",
|
|
96
96
|
componentId: "sc-15qnwg1-0"
|
|
97
|
-
})(["position:relative;z-index:", ";font-size:14px;background:", ";.header-container{display:flex;align-items:center;height:64px;padding:8px
|
|
97
|
+
})(["position:relative;z-index:", ";font-size:14px;background:", ";.header-container{display:flex;align-items:center;height:64px;padding:8px 0;}.header-logo{display:inline-flex;justify-content:center;position:relative;height:40px;margin-right:16px;img,svg{width:auto;height:100%;}> a{height:100%;line-height:1;}> a::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:'';}}.header-brand{display:flex;flex-direction:column;flex-shrink:0;margin-right:16px;.header-brand-title{display:flex;align-items:center;h2{font-size:16px;}.header-brand-addon{margin-left:8px;}}.header-brand-desc{color:#9397a1;}}.header-addons{display:flex;align-items:center;}", "{.header-brand{margin-right:12px;.header-brand-title{h2{font-size:14px;}}}}", "{.header-container{height:56px;}.header-menu{display:inline-block;}.header-logo{height:32px;}.header-brand{display:none;}}"], props => props.$theme.zIndex.drawer + 1, props => props.$theme.palette.common.white, props => props.$theme.breakpoints.down('md'), props => props.$theme.breakpoints.down('sm'));
|
|
98
98
|
|
|
99
99
|
var _default = Header;
|
|
100
100
|
exports.default = _default;
|
package/lib/NFTDisplay/index.js
CHANGED
|
@@ -14,6 +14,8 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
14
14
|
|
|
15
15
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
16
16
|
|
|
17
|
+
var _buffer = require("buffer");
|
|
18
|
+
|
|
17
19
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
18
20
|
|
|
19
21
|
var _pako = _interopRequireDefault(require("pako"));
|
|
@@ -67,7 +69,7 @@ function fromBase64(v) {
|
|
|
67
69
|
throw new Error('fromBase64 requires input to be a string');
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
return Buffer.from(_base64Url.default.unescape(v), 'base64');
|
|
72
|
+
return _buffer.Buffer.from(_base64Url.default.unescape(v), 'base64');
|
|
71
73
|
} // const isVC = type => {
|
|
72
74
|
// return String(type).includes('VerifiableCredential');
|
|
73
75
|
// };
|
|
@@ -205,7 +207,7 @@ function NFTDisplay(_ref) {
|
|
|
205
207
|
{
|
|
206
208
|
const buffer = _pako.default.ungzip(fromBase64(content), {});
|
|
207
209
|
|
|
208
|
-
const svg = Buffer.from(buffer).toString('utf8');
|
|
210
|
+
const svg = _buffer.Buffer.from(buffer).toString('utf8');
|
|
209
211
|
|
|
210
212
|
if (checkSvg && !(0, _isSvg.default)(svg)) {
|
|
211
213
|
throw new Error("Invalid SVG: ".concat(svg));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.21",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"react": ">=16.12.0",
|
|
54
54
|
"react-ga": "^2.7.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "72ee6788c33de8033ac6fcc884554c9e2bdb0849",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@arcblock/icons": "^1.17.
|
|
59
|
-
"@arcblock/react-hooks": "^1.17.
|
|
58
|
+
"@arcblock/icons": "^1.17.21",
|
|
59
|
+
"@arcblock/react-hooks": "^1.17.21",
|
|
60
60
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
61
61
|
"@fontsource/lato": "^4.5.3",
|
|
62
62
|
"@material-ui/core": "^4.12.3",
|
package/src/Header/header.js
CHANGED
package/src/NFTDisplay/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { Buffer } from 'buffer';
|
|
5
6
|
import get from 'lodash/get';
|
|
6
7
|
import pako from 'pako';
|
|
7
8
|
import base64 from 'base64-url';
|