@blocklet/launcher-layout 1.8.25 → 1.8.28

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.
Files changed (2) hide show
  1. package/lib/index.js +18 -4
  2. package/package.json +14 -14
package/lib/index.js CHANGED
@@ -33,10 +33,22 @@ var _nav = _interopRequireDefault(require("./nav"));
33
33
 
34
34
  var _jsxRuntime = require("react/jsx-runtime");
35
35
 
36
+ const _excluded = ["blockletMeta", "children", "logoUrl", "locale", "headerEndAddons", "pcWidth", "pcHeight", "navLogo", "useOfSkeleton", "stepTip"];
37
+
36
38
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
37
39
 
38
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39
41
 
42
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
43
+
44
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
45
+
46
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
47
+
48
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
49
+
50
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
51
+
40
52
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
41
53
 
42
54
  const MobileContent = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n padding-top: 68px;\n"])));
@@ -55,7 +67,9 @@ function Layout(_ref) {
55
67
  navLogo,
56
68
  useOfSkeleton,
57
69
  stepTip
58
- } = _ref;
70
+ } = _ref,
71
+ rest = _objectWithoutProperties(_ref, _excluded);
72
+
59
73
  const isMobile = (0, _useMediaQuery.default)(theme => theme.breakpoints.down('md'));
60
74
  const {
61
75
  activeStep,
@@ -76,7 +90,7 @@ function Layout(_ref) {
76
90
  }
77
91
  }
78
92
 
79
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Root, {
93
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Root, _objectSpread(_objectSpread({}, rest), {}, {
80
94
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("header", {
81
95
  className: "root-header",
82
96
  children: [isMobile && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -131,7 +145,7 @@ function Layout(_ref) {
131
145
  children: children
132
146
  })]
133
147
  })]
134
- });
148
+ }));
135
149
  }
136
150
 
137
151
  Layout.propTypes = {
@@ -164,7 +178,7 @@ if (ua.includes('iphone os') && ua.includes('crios')) {
164
178
  injectStyle = 'height: calc(100vh - 60px);';
165
179
  }
166
180
 
167
- const Root = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100vh;\n letter-spacing: normal;\n ", "\n\n .circular {\n display: inline-block;\n position: relative;\n width: 15px;\n height: 12px;\n > * {\n position: absolute;\n left: 3px;\n top: 2px;\n width: 100%;\n height: 100%;\n }\n }\n\n .ellipsis-title {\n flex: 1;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", " {\n left: 26px;\n width: calc(100% - 26px);\n }\n }\n\n ", " {\n background: #f6f8fa;\n }\n\n ", " {\n background: ", ";\n }\n\n .root-header {\n box-sizing: border-box;\n position: absolute;\n z-index: 200;\n top: 0;\n display: flex;\n width: 100%;\n max-width: 1245px;\n height: 68px;\n align-items: center;\n\n ", " {\n padding: 24px;\n justify-content: flex-end;\n }\n\n ", " {\n height: 56px;\n padding: 14px 16px;\n justify-content: space-between;\n background: #f6f8fa;\n }\n\n .left {\n flex: 1;\n display: flex;\n align-items: center;\n }\n\n .right {\n display: flex;\n align-items: center;\n ", " {\n button,\n a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n }\n }\n"])), injectStyle, props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.palette.common.white, props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.down('md'));
181
+ const Root = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n letter-spacing: normal;\n ", "\n\n .circular {\n display: inline-block;\n position: relative;\n width: 15px;\n height: 12px;\n > * {\n position: absolute;\n left: 3px;\n top: 2px;\n width: 100%;\n height: 100%;\n }\n }\n\n .ellipsis-title {\n flex: 1;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", " {\n left: 26px;\n width: calc(100% - 26px);\n }\n }\n\n ", " {\n background: #f6f8fa;\n }\n\n ", " {\n background: ", ";\n }\n\n .root-header {\n box-sizing: border-box;\n position: absolute;\n z-index: 200;\n top: 0;\n display: flex;\n width: 100%;\n max-width: 1245px;\n height: 68px;\n align-items: center;\n\n ", " {\n padding: 24px;\n justify-content: flex-end;\n }\n\n ", " {\n height: 56px;\n padding: 14px 16px;\n justify-content: space-between;\n background: #f6f8fa;\n }\n\n .left {\n flex: 1;\n display: flex;\n align-items: center;\n }\n\n .right {\n display: flex;\n align-items: center;\n ", " {\n button,\n a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n }\n }\n"])), injectStyle, props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.palette.common.white, props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.down('md'));
168
182
 
169
183
  const LogoContainer = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: block;\n margin-top: 4px;\n"])));
170
184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-layout",
3
- "version": "1.8.25",
3
+ "version": "1.8.28",
4
4
  "description": "Common ux components of launcher",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,16 +37,16 @@
37
37
  "react": ">=18.1.0"
38
38
  },
39
39
  "dependencies": {
40
- "@arcblock/did-connect": "^2.4.17",
41
- "@arcblock/icons": "^2.4.17",
42
- "@arcblock/ux": "^2.4.17",
43
- "@blocklet/launcher-ux": "1.8.25",
44
- "@blocklet/meta": "^1.8.13",
45
- "@emotion/react": "^11.10.0",
46
- "@emotion/styled": "^11.10.0",
47
- "@mui/icons-material": "^5.10.2",
48
- "@mui/lab": "^5.0.0-alpha.96",
49
- "@mui/material": "^5.10.2",
40
+ "@arcblock/did-connect": "^2.4.23",
41
+ "@arcblock/icons": "^2.4.23",
42
+ "@arcblock/ux": "^2.4.23",
43
+ "@blocklet/launcher-ux": "1.8.28",
44
+ "@blocklet/meta": "^1.8.17",
45
+ "@emotion/react": "^11.10.4",
46
+ "@emotion/styled": "^11.10.4",
47
+ "@mui/icons-material": "^5.10.3",
48
+ "@mui/lab": "^5.0.0-alpha.97",
49
+ "@mui/material": "^5.10.3",
50
50
  "lodash": "^4.17.21",
51
51
  "prop-types": "^15.8.1",
52
52
  "rehype-react": "^7.1.1",
@@ -54,11 +54,11 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/cli": "^7.18.10",
57
- "@babel/core": "^7.18.13",
58
- "@babel/preset-env": "^7.18.10",
57
+ "@babel/core": "^7.19.0",
58
+ "@babel/preset-env": "^7.19.0",
59
59
  "@babel/preset-react": "^7.18.6",
60
60
  "@storybook/react": "^6.5.10",
61
61
  "babel-plugin-inline-react-svg": "^2.0.1"
62
62
  },
63
- "gitHead": "a096cbfd8430d1a8024bc7f95da028bf6ed1b203"
63
+ "gitHead": "6dd1ea73f628b8c27a80c467f2b198418ea29a8c"
64
64
  }