@blocklet/launcher-layout 2.2.54 → 2.2.56

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.
@@ -1,8 +1,7 @@
1
1
  import { useState, useEffect, useRef } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import PropTypes from 'prop-types';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  function CompactLayout({
7
6
  children,
8
7
  bottom,
package/es/header.js CHANGED
@@ -9,8 +9,7 @@ import { useEffect, useRef, useState } from 'react';
9
9
  import joinUrl from 'url-join';
10
10
  import defaultBlockletLogo from './assets/blocklet-default-logo.png';
11
11
  import { getLaunchingText } from './locale';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  function AppHeader({
15
14
  blockletMeta,
16
15
  subTitle,
package/es/index.js CHANGED
@@ -15,9 +15,7 @@ import { useStepContext } from './context/step';
15
15
  import AppHeader from './header';
16
16
  import { getTranslations } from './locale';
17
17
  import Nav from './nav';
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- import { jsxs as _jsxs } from "react/jsx-runtime";
20
- import { Fragment as _Fragment } from "react/jsx-runtime";
18
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
21
19
  const HEADER_HEIGHT_MD = '72px';
22
20
  const MobileContent = styled.div`
23
21
  box-sizing: border-box;
@@ -37,10 +35,10 @@ const PcContent = styled.div`
37
35
  width: ${props => props.width || '80%'};
38
36
  height: ${props => props.height || '80%'};
39
37
 
40
- @media (max-height: 900px) {
38
+ @media (max-height: 1200px) {
41
39
  margin-top: ${HEADER_HEIGHT_MD};
42
- width: 100%;
43
40
  height: 100%;
41
+ max-height: 100%;
44
42
  }
45
43
  `;
46
44
  const theme = create({
@@ -135,8 +133,7 @@ function Layout({
135
133
  })]
136
134
  }), /*#__PURE__*/_jsxs(Container, {
137
135
  contentMaxWidth: contentMaxWidth,
138
- width: pcWidth,
139
- height: pcHeight,
136
+ className: "ll-container",
140
137
  children: [/*#__PURE__*/_jsx(Hidden, {
141
138
  mdDown: true,
142
139
  children: /*#__PURE__*/_jsx(Nav, {
@@ -4,8 +4,7 @@ import Check from '@mui/icons-material/Check';
4
4
  import Close from '@mui/icons-material/Close';
5
5
  import Spinner from '@mui/material/CircularProgress';
6
6
  import PriorityHigh from '@mui/icons-material/PriorityHigh';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  function LaunchResultMessage({
10
9
  variant,
11
10
  title,
package/es/nav.js CHANGED
@@ -4,8 +4,7 @@ import Skeleton from '@mui/material/Skeleton';
4
4
  import PropTypes from 'prop-types';
5
5
  import { useStepContext } from './context/step';
6
6
  import AppHeader from './header';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  function Nav({
10
9
  blockletMeta,
11
10
  logoUrl,
package/es/page-header.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
2
  import PropTypes from 'prop-types';
3
3
  import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  function PageHeader({
7
6
  title,
8
7
  subTitle,
@@ -6,9 +6,7 @@ import Spinner from '@mui/material/CircularProgress';
6
6
  import Button from '@arcblock/ux/lib/Button';
7
7
  import Dialog from '@arcblock/ux/lib/Dialog';
8
8
  import SubmitHotKey from '@blocklet/launcher-ux/lib/hot-key/submit';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { Fragment as _Fragment } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
12
10
  function ServerEula({
13
11
  onContinue,
14
12
  nextDisabled,
@@ -9,9 +9,7 @@ import TableBody from '@mui/material/TableBody';
9
9
  import TableCell from '@mui/material/TableCell';
10
10
  import TableContainer from '@mui/material/TableContainer';
11
11
  import TableRow from '@mui/material/TableRow';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
- import { Fragment as _Fragment } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
13
  const isFreeBlocklet = meta => {
16
14
  if (!meta.payment) {
17
15
  return true;
package/lib/index.js CHANGED
@@ -28,14 +28,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
28
28
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29
29
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30
30
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
31
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
32
32
  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); }
33
33
  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; }
34
34
  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; }
35
35
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
36
36
  const HEADER_HEIGHT_MD = '72px';
37
37
  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: ", ";\n"])), HEADER_HEIGHT_MD);
38
- const PcContent = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n min-width: 900px;\n max-width: ", ";\n max-height: 880px;\n border-radius: 8px;\n background-color: #fff;\n width: ", ";\n height: ", ";\n\n @media (max-height: 900px) {\n margin-top: ", ";\n width: 100%;\n height: 100%;\n }\n"])), props => props.contentMaxWidth, props => props.width || '80%', props => props.height || '80%', HEADER_HEIGHT_MD);
38
+ const PcContent = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n min-width: 900px;\n max-width: ", ";\n max-height: 880px;\n border-radius: 8px;\n background-color: #fff;\n width: ", ";\n height: ", ";\n\n @media (max-height: 1200px) {\n margin-top: ", ";\n height: 100%;\n max-height: 100%;\n }\n"])), props => props.contentMaxWidth, props => props.width || '80%', props => props.height || '80%', HEADER_HEIGHT_MD);
39
39
  const theme = (0, _Theme.create)({
40
40
  typography: {
41
41
  fontSize: 14
@@ -128,8 +128,7 @@ function Layout(_ref) {
128
128
  })]
129
129
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Container, {
130
130
  contentMaxWidth: contentMaxWidth,
131
- width: pcWidth,
132
- height: pcHeight,
131
+ className: "ll-container",
133
132
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Hidden.default, {
134
133
  mdDown: true,
135
134
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_nav.default, {
@@ -18,7 +18,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
18
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
20
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
22
22
  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); }
23
23
  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; }
24
24
  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; }
@@ -15,7 +15,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
19
19
  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); }
20
20
  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; }
21
21
  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; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-layout",
3
- "version": "2.2.54",
3
+ "version": "2.2.56",
4
4
  "description": "Common ux components of launcher",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,16 +42,16 @@
42
42
  "react": ">=18.1.0"
43
43
  },
44
44
  "dependencies": {
45
- "@arcblock/did-connect": "^2.9.29",
46
- "@arcblock/icons": "^2.9.29",
47
- "@arcblock/ux": "^2.9.29",
48
- "@blocklet/launcher-util": "2.2.54",
49
- "@blocklet/launcher-ux": "2.2.54",
50
- "@blocklet/meta": "^1.16.23",
51
- "@emotion/react": "^11.11.3",
45
+ "@arcblock/did-connect": "^2.9.57",
46
+ "@arcblock/icons": "^2.9.57",
47
+ "@arcblock/ux": "^2.9.57",
48
+ "@blocklet/launcher-util": "2.2.56",
49
+ "@blocklet/launcher-ux": "2.2.56",
50
+ "@blocklet/meta": "^1.16.24",
51
+ "@emotion/react": "^11.11.4",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@mui/icons-material": "^5.15.8",
54
- "@mui/material": "^5.15.7",
53
+ "@mui/icons-material": "^5.15.14",
54
+ "@mui/material": "^5.15.14",
55
55
  "is-empty": "^1.2.0",
56
56
  "lodash": "^4.17.21",
57
57
  "prop-types": "^15.8.1",
@@ -59,10 +59,10 @@
59
59
  "url-join": "^4.0.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/cli": "^7.23.9",
63
- "@babel/core": "^7.23.9",
64
- "@babel/preset-env": "^7.23.9",
65
- "@babel/preset-react": "^7.23.3",
62
+ "@babel/cli": "^7.24.1",
63
+ "@babel/core": "^7.24.3",
64
+ "@babel/preset-env": "^7.24.3",
65
+ "@babel/preset-react": "^7.24.1",
66
66
  "@storybook/react": "^6.5.16",
67
67
  "babel-plugin-inline-react-svg": "^2.0.2",
68
68
  "glob": "^10.3.10"
@@ -77,5 +77,5 @@
77
77
  "require": "./lib/"
78
78
  }
79
79
  },
80
- "gitHead": "cd8c9b12e0d4c89557cd76ce1dc89c5d14ed50e1"
80
+ "gitHead": "0386d6a9170c437800e7e892163787277df7a682"
81
81
  }