gatsby-theme-q3 2.3.10 → 2.3.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/CHANGELOG.md +121 -104
  2. package/gatsby-ssr.js +1 -1
  3. package/lib/components/AccountPublicGateway.js +0 -7
  4. package/lib/components/AdminLoader.js +0 -6
  5. package/lib/components/AdminPrivateGateway.js +1 -10
  6. package/lib/components/AdminPublicGateway.js +1 -10
  7. package/lib/components/AdminRouter.js +1 -11
  8. package/lib/components/BlogArchiveTemplate.js +0 -12
  9. package/lib/components/BlogTemplate.js +0 -22
  10. package/lib/components/FormBox.js +0 -6
  11. package/lib/components/FormBoxContent.js +0 -7
  12. package/lib/components/FormBoxNotice.js +0 -7
  13. package/lib/components/IsBrowserReady.js +0 -6
  14. package/lib/components/LocaleBundles.js +0 -6
  15. package/lib/components/PageWrapper.js +0 -9
  16. package/lib/components/PublicTemplate.js +0 -8
  17. package/lib/components/Redirect.js +0 -6
  18. package/lib/components/RedirectToIndex.js +0 -6
  19. package/lib/components/RichText.js +0 -26
  20. package/lib/components/SearchEngine.js +0 -7
  21. package/lib/components/ShareButton.js +0 -16
  22. package/lib/components/Wrapper.js +1 -9
  23. package/lib/components/__tests__/withAuthenticate.test.js +0 -11
  24. package/lib/components/__tests__/withSuccessOp.test.js +0 -7
  25. package/lib/components/index.js +0 -16
  26. package/lib/components/useLocale.js +0 -9
  27. package/lib/components/useSiteMetaData.js +0 -4
  28. package/lib/components/utils.js +0 -11
  29. package/lib/components/withAuthenticate.js +1 -10
  30. package/lib/components/withSuccessOp.js +1 -13
  31. package/lib/pages/404.js +0 -9
  32. package/lib/pages/login.js +0 -14
  33. package/lib/pages/password-change.js +0 -16
  34. package/lib/pages/password-reset.js +0 -12
  35. package/lib/pages/reverify.js +0 -14
  36. package/lib/pages/verify.js +0 -14
  37. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [2.3.10](https://github.com/3merge/q/compare/v2.3.9...v2.3.10) (2022-01-18)
6
+ ## [2.3.18](https://github.com/3merge/q/compare/v2.3.17...v2.3.18) (2024-02-24)
7
7
 
8
8
  **Note:** Version bump only for package gatsby-theme-q3
9
9
 
@@ -11,109 +11,126 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [2.3.9](https://github.com/3merge/q/compare/v2.3.8...v2.3.9) (2022-01-17)
15
-
16
- **Note:** Version bump only for package gatsby-theme-q3
17
-
18
-
19
-
20
-
21
-
22
- ## [2.3.8](https://github.com/3merge/q/compare/v2.3.7...v2.3.8) (2022-01-10)
23
-
24
- **Note:** Version bump only for package gatsby-theme-q3
25
-
26
-
27
-
28
-
29
-
30
- ## [2.3.7](https://github.com/3merge/q/compare/v2.3.6...v2.3.7) (2021-12-16)
31
-
32
- **Note:** Version bump only for package gatsby-theme-q3
33
-
34
-
35
-
36
-
37
-
38
- ## [2.3.6](https://github.com/3merge/q/compare/v2.3.5...v2.3.6) (2021-12-16)
39
-
40
- **Note:** Version bump only for package gatsby-theme-q3
41
-
42
-
43
-
44
-
45
-
46
- ## [2.3.4](https://github.com/3merge/q/compare/v2.3.3...v2.3.4) (2021-12-10)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * notistack ([4e40fa1](https://github.com/3merge/q/commit/4e40fa10a8c05ad07978b0f9dfcdb9317f67e712))
52
-
53
-
54
-
55
-
56
-
57
- ## [2.3.2](https://github.com/3merge/q/compare/v2.3.1...v2.3.2) (2021-12-09)
58
-
59
- **Note:** Version bump only for package gatsby-theme-q3
60
-
61
-
62
-
63
-
64
-
65
- ## [2.3.1](https://github.com/3merge/q/compare/v2.3.0...v2.3.1) (2021-12-09)
66
-
67
-
68
- ### Bug Fixes
69
-
70
- * forward all config ([c4c512d](https://github.com/3merge/q/commit/c4c512da530866327940d56dba3976764cf53293))
71
-
72
-
73
-
74
-
75
-
76
- # [2.3.0](https://github.com/3merge/q/compare/v2.2.2...v2.3.0) (2021-12-09)
77
-
78
-
79
- ### Features
80
-
81
- * theme for prevent unstyled load ([#361](https://github.com/3merge/q/issues/361)) ([a1f1535](https://github.com/3merge/q/commit/a1f15358262b40829d3e1312864a1c0d08c778dc))
82
-
83
-
84
-
85
-
86
-
87
- ## [2.2.2](https://github.com/3merge/q/compare/v2.2.1...v2.2.2) (2021-12-09)
88
-
89
- **Note:** Version bump only for package gatsby-theme-q3
90
-
91
-
92
-
93
-
94
-
95
- ## [2.1.1](https://github.com/3merge/q/compare/v2.1.0...v2.1.1) (2021-11-29)
96
-
97
-
98
- ### Bug Fixes
99
-
100
- * webpack util resolve ([60b3713](https://github.com/3merge/q/commit/60b37132309dc0b6167b469ee9849a9585b2466b))
101
-
102
-
103
-
104
-
105
-
106
- # [2.1.0](https://github.com/3merge/q/compare/v1.43.11...v2.1.0) (2021-11-29)
107
-
108
-
109
- ### Features
110
-
111
- * v2 ([#358](https://github.com/3merge/q/issues/358)) ([8e4a15a](https://github.com/3merge/q/commit/8e4a15a99f1f433b4f5770497e8af971d7663c23))
112
-
113
-
114
-
115
-
116
-
14
+
15
+ ## [2.3.11](https://github.com/3merge/q/compare/v2.3.10...v2.3.11) (2022-01-18)
16
+
17
+ **Note:** Version bump only for package gatsby-theme-q3
18
+
19
+
20
+
21
+
22
+
23
+ ## [2.3.10](https://github.com/3merge/q/compare/v2.3.9...v2.3.10) (2022-01-18)
24
+
25
+ **Note:** Version bump only for package gatsby-theme-q3
26
+
27
+
28
+
29
+
30
+
31
+ ## [2.3.9](https://github.com/3merge/q/compare/v2.3.8...v2.3.9) (2022-01-17)
32
+
33
+ **Note:** Version bump only for package gatsby-theme-q3
34
+
35
+
36
+
37
+
38
+
39
+ ## [2.3.8](https://github.com/3merge/q/compare/v2.3.7...v2.3.8) (2022-01-10)
40
+
41
+ **Note:** Version bump only for package gatsby-theme-q3
42
+
43
+
44
+
45
+
46
+
47
+ ## [2.3.7](https://github.com/3merge/q/compare/v2.3.6...v2.3.7) (2021-12-16)
48
+
49
+ **Note:** Version bump only for package gatsby-theme-q3
50
+
51
+
52
+
53
+
54
+
55
+ ## [2.3.6](https://github.com/3merge/q/compare/v2.3.5...v2.3.6) (2021-12-16)
56
+
57
+ **Note:** Version bump only for package gatsby-theme-q3
58
+
59
+
60
+
61
+
62
+
63
+ ## [2.3.4](https://github.com/3merge/q/compare/v2.3.3...v2.3.4) (2021-12-10)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * notistack ([4e40fa1](https://github.com/3merge/q/commit/4e40fa10a8c05ad07978b0f9dfcdb9317f67e712))
69
+
70
+
71
+
72
+
73
+
74
+ ## [2.3.2](https://github.com/3merge/q/compare/v2.3.1...v2.3.2) (2021-12-09)
75
+
76
+ **Note:** Version bump only for package gatsby-theme-q3
77
+
78
+
79
+
80
+
81
+
82
+ ## [2.3.1](https://github.com/3merge/q/compare/v2.3.0...v2.3.1) (2021-12-09)
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * forward all config ([c4c512d](https://github.com/3merge/q/commit/c4c512da530866327940d56dba3976764cf53293))
88
+
89
+
90
+
91
+
92
+
93
+ # [2.3.0](https://github.com/3merge/q/compare/v2.2.2...v2.3.0) (2021-12-09)
94
+
95
+
96
+ ### Features
97
+
98
+ * theme for prevent unstyled load ([#361](https://github.com/3merge/q/issues/361)) ([a1f1535](https://github.com/3merge/q/commit/a1f15358262b40829d3e1312864a1c0d08c778dc))
99
+
100
+
101
+
102
+
103
+
104
+ ## [2.2.2](https://github.com/3merge/q/compare/v2.2.1...v2.2.2) (2021-12-09)
105
+
106
+ **Note:** Version bump only for package gatsby-theme-q3
107
+
108
+
109
+
110
+
111
+
112
+ ## [2.1.1](https://github.com/3merge/q/compare/v2.1.0...v2.1.1) (2021-11-29)
113
+
114
+
115
+ ### Bug Fixes
116
+
117
+ * webpack util resolve ([60b3713](https://github.com/3merge/q/commit/60b37132309dc0b6167b469ee9849a9585b2466b))
118
+
119
+
120
+
121
+
122
+
123
+ # [2.1.0](https://github.com/3merge/q/compare/v1.43.11...v2.1.0) (2021-11-29)
124
+
125
+
126
+ ### Features
127
+
128
+ * v2 ([#358](https://github.com/3merge/q/issues/358)) ([8e4a15a](https://github.com/3merge/q/commit/8e4a15a99f1f433b4f5770497e8af971d7663c23))
129
+
130
+
131
+
132
+
133
+
117
134
 
118
135
  # [2.0.0](https://github.com/3merge/q/compare/v1.43.11...v2.0.0) (2021-11-29)
119
136
 
package/gatsby-ssr.js CHANGED
@@ -14,7 +14,7 @@ export const onRenderBody = ({ setPostBodyComponents }) => {
14
14
  setPostBodyComponents([
15
15
  <script
16
16
  key="polyfill-io"
17
- src="https://cdn.polyfill.io/v3/polyfill.min.js"
17
+ src="https://cdn.polyfill.io/v3/polyfill.min.js?version=3.110.1"
18
18
  />,
19
19
  ]);
20
20
  };
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _gatsby = require("gatsby");
11
-
12
9
  var _containers = require("q3-admin/lib/containers");
13
-
14
10
  var _IsBrowserReady = _interopRequireDefault(require("./IsBrowserReady"));
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  // eslint-disable-next-line
19
13
  const AccountPublicGateway = ({
20
14
  children
@@ -22,6 +16,5 @@ const AccountPublicGateway = ({
22
16
  navigate: _gatsby.navigate,
23
17
  redirectPathOnSession: "/account"
24
18
  }, children));
25
-
26
19
  var _default = AccountPublicGateway;
27
20
  exports.default = _default;
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _components = require("q3-admin/lib/components");
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  const AdminLoader = ({
17
12
  children
18
13
  }) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.Loader, null), children);
19
-
20
14
  AdminLoader.propTypes = {
21
15
  children: _propTypes.default.node.isRequired
22
16
  };
@@ -4,21 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _gatsby = require("gatsby");
13
-
14
10
  var _containers = require("q3-admin/lib/containers");
15
-
16
11
  var _IsBrowserReady = _interopRequireDefault(require("./IsBrowserReady"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
13
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
14
  const AdminPrivateGateway = ({
23
15
  children,
24
16
  GatekeepProps,
@@ -28,7 +20,6 @@ const AdminPrivateGateway = ({
28
20
  navigate: _gatsby.navigate,
29
21
  redirectPathOnPublic: "/login"
30
22
  }, rest, GatekeepProps), children));
31
-
32
23
  AdminPrivateGateway.defaultProps = {
33
24
  GatekeepProps: {},
34
25
  children: null
@@ -4,21 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _gatsby = require("gatsby");
13
-
14
10
  var _containers = require("q3-admin/lib/containers");
15
-
16
11
  var _IsBrowserReady = _interopRequireDefault(require("./IsBrowserReady"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
13
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
14
  const AdminPublicGateway = ({
23
15
  children,
24
16
  GatekeepProps
@@ -26,7 +18,6 @@ const AdminPublicGateway = ({
26
18
  navigate: _gatsby.navigate,
27
19
  redirectPathOnSession: "/app"
28
20
  }, GatekeepProps), children));
29
-
30
21
  AdminPublicGateway.defaultProps = {
31
22
  GatekeepProps: {},
32
23
  children: null
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _router = require("@reach/router");
13
-
14
10
  var _q3Admin = _interopRequireDefault(require("q3-admin"));
15
-
16
11
  var _AdminPrivateGateway = _interopRequireDefault(require("./AdminPrivateGateway"));
17
-
18
12
  var _useSiteMetaData = _interopRequireDefault(require("./useSiteMetaData"));
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
-
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
15
  const AdminRouter = ({
25
16
  AdminProps,
26
17
  GatekeepProps
@@ -45,7 +36,6 @@ const AdminRouter = ({
45
36
  }
46
37
  }))));
47
38
  };
48
-
49
39
  AdminRouter.defaultProps = {
50
40
  AdminProps: {},
51
41
  GatekeepProps: {}
@@ -4,27 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _lodash = require("lodash");
11
-
12
9
  var _router = require("@reach/router");
13
-
14
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
-
16
11
  var _card = require("q3-ui/lib/card");
17
-
18
12
  var _wrapper = _interopRequireDefault(require("q3-ui/lib/wrapper"));
19
-
20
13
  var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
21
-
22
14
  var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
23
-
24
15
  var _Pagination = _interopRequireDefault(require("@material-ui/lab/Pagination"));
25
-
26
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
17
  const BlogArchiveTemplate = ({
29
18
  blogs,
30
19
  pageNum,
@@ -48,7 +37,6 @@ const BlogArchiveTemplate = ({
48
37
  count: total,
49
38
  onChange: (e, num) => (0, _router.navigate)(`/${dir}/${num > 1 ? num : ''}`)
50
39
  })));
51
-
52
40
  BlogArchiveTemplate.propTypes = {
53
41
  blogs: _propTypes.default.arrayOf(_propTypes.default.shape({
54
42
  title: _propTypes.default.string,
@@ -4,43 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _lodash = require("lodash");
13
-
14
10
  var _router = require("@reach/router");
15
-
16
11
  var _moment = _interopRequireDefault(require("moment"));
17
-
18
12
  var _gatsbyImage = _interopRequireDefault(require("gatsby-image"));
19
-
20
13
  var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
21
-
22
14
  var _Container = _interopRequireDefault(require("@material-ui/core/Container"));
23
-
24
15
  var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
25
-
26
16
  var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
27
-
28
17
  var _Today = _interopRequireDefault(require("@material-ui/icons/Today"));
29
-
30
18
  var _breadcrumbs = _interopRequireDefault(require("q3-ui/lib/breadcrumbs"));
31
-
32
19
  var _wrapper = _interopRequireDefault(require("q3-ui/lib/wrapper"));
33
-
34
20
  var _pagination = _interopRequireDefault(require("q3-ui/lib/pagination"));
35
-
36
21
  var _RichText = _interopRequireDefault(require("./RichText"));
37
-
38
22
  var _ShareButton = _interopRequireDefault(require("./ShareButton"));
39
-
40
23
  var _SearchEngine = _interopRequireDefault(require("./SearchEngine"));
41
-
42
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
43
-
44
25
  const BlogTemplateSharePublication = ({
45
26
  publishedOn
46
27
  }) => /*#__PURE__*/_react.default.createElement(_Grid.default, {
@@ -61,14 +42,12 @@ const BlogTemplateSharePublication = ({
61
42
  }), /*#__PURE__*/_react.default.createElement(_ShareButton.default, {
62
43
  platform: "Email"
63
44
  }))));
64
-
65
45
  BlogTemplateSharePublication.propTypes = {
66
46
  publishedOn: _propTypes.default.string
67
47
  };
68
48
  BlogTemplateSharePublication.defaultProps = {
69
49
  publishedOn: null
70
50
  };
71
-
72
51
  const BlogTemplate = ({
73
52
  current,
74
53
  prev,
@@ -112,7 +91,6 @@ const BlogTemplate = ({
112
91
  onNext: () => (0, _router.navigate)(next.to),
113
92
  onPrev: () => (0, _router.navigate)(prev.to)
114
93
  }))));
115
-
116
94
  BlogTemplate.propTypes = {
117
95
  current: _propTypes.default.shape({
118
96
  title: _propTypes.default.string,
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
11
-
12
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  const FormBox = ({
17
12
  renderBottom,
18
13
  renderTop
@@ -24,7 +19,6 @@ const FormBox = ({
24
19
  }, renderTop, /*#__PURE__*/_react.default.createElement(_Box.default, {
25
20
  mt: 1
26
21
  }, renderBottom));
27
-
28
22
  FormBox.propTypes = {
29
23
  renderBottom: _propTypes.default.node.isRequired,
30
24
  renderTop: _propTypes.default.node.isRequired
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _q3UiLocale = require("q3-ui-locale");
11
-
12
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
10
  var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  const FormBoxContent = ({
19
13
  title,
20
14
  description
@@ -29,7 +23,6 @@ const FormBoxContent = ({
29
23
  gutterBottom: true
30
24
  }, t(`descriptions:${description}`)));
31
25
  };
32
-
33
26
  FormBoxContent.propTypes = {
34
27
  title: _propTypes.default.string.isRequired,
35
28
  description: _propTypes.default.string.isRequired
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _FormBox = _interopRequireDefault(require("./FormBox"));
13
-
14
10
  var _FormBoxContent = _interopRequireDefault(require("./FormBoxContent"));
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  const FormBoxNotice = ({
19
13
  children,
20
14
  ...rest
@@ -22,7 +16,6 @@ const FormBoxNotice = ({
22
16
  renderTop: /*#__PURE__*/_react.default.createElement(_FormBoxContent.default, rest),
23
17
  renderBottom: children
24
18
  });
25
-
26
19
  FormBoxNotice.defaultProps = {
27
20
  children: null
28
21
  };
@@ -4,21 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _q3UiHelpers = require("q3-ui-helpers");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  const {
15
11
  isBrowserReady
16
12
  } = _q3UiHelpers.browser;
17
-
18
13
  const IsBrowserReady = ({
19
14
  children
20
15
  }) => isBrowserReady() ? children : null;
21
-
22
16
  IsBrowserReady.propTypes = {
23
17
  children: _propTypes.default.node.isRequired
24
18
  };
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _q3UiLocale = require("q3-ui-locale");
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  const registeri18ResourceBundles = contentData => {
15
11
  if (!contentData || !('en' in contentData)) return;
16
12
  Object.entries(contentData).forEach(([key, bundle]) => {
@@ -19,7 +15,6 @@ const registeri18ResourceBundles = contentData => {
19
15
  });
20
16
  });
21
17
  };
22
-
23
18
  const LocaleBundles = ({
24
19
  children,
25
20
  locale
@@ -27,7 +22,6 @@ const LocaleBundles = ({
27
22
  registeri18ResourceBundles(locale);
28
23
  return children;
29
24
  };
30
-
31
25
  LocaleBundles.defaultProps = {
32
26
  children: null,
33
27
  locale: {}
@@ -4,31 +4,22 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _components = require("q3-admin/lib/components");
13
-
14
10
  var _SearchEngine = _interopRequireDefault(require("./SearchEngine"));
15
-
16
11
  var _useLocale = _interopRequireDefault(require("./useLocale"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  // cannot conditionally call hooks otherwise
21
14
  const Locale = () => {
22
15
  (0, _useLocale.default)();
23
16
  return null;
24
17
  };
25
-
26
18
  const PageWrapper = ({
27
19
  children,
28
20
  includeLoader,
29
21
  includeLocale
30
22
  }) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchEngine.default, null), includeLoader && /*#__PURE__*/_react.default.createElement(_components.Loader, null), includeLocale && /*#__PURE__*/_react.default.createElement(Locale, null), children);
31
-
32
23
  PageWrapper.defaultProps = {
33
24
  children: null,
34
25
  includeLoader: true,