gatsby-theme-q3 1.41.7 → 1.43.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +38 -0
- package/lib/components/AdminRouter.js +3 -6
- package/lib/components/Redirect.js +26 -0
- package/lib/components/RedirectToIndex.js +4 -10
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchEngine.js +3 -2
- package/lib/components/index.js +16 -8
- package/package.json +6 -6
- package/src/components/AdminRouter.jsx +2 -10
- package/src/components/Redirect.jsx +13 -0
- package/src/components/RedirectToIndex.jsx +4 -10
- package/src/components/SearchEngine.jsx +2 -2
- package/src/components/index.js +1 -0
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,44 @@
|
|
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
|
+
## [1.43.10](https://github.com/3merge/q/compare/v1.43.9...v1.43.10) (2021-11-26)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [1.43.6](https://github.com/3merge/q/compare/v1.43.5...v1.43.6) (2021-11-09)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
# [1.42.0](https://github.com/3merge/q/compare/v1.41.8...v1.42.0) (2021-10-14)
|
23
|
+
|
24
|
+
|
25
|
+
### Features
|
26
|
+
|
27
|
+
* hook for looking up records by ID ([#350](https://github.com/3merge/q/issues/350)) ([3a73f61](https://github.com/3merge/q/commit/3a73f617a5d9747bd6435b68a238d78de1a4c125))
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## [1.41.8](https://github.com/3merge/q/compare/v1.41.7...v1.41.8) (2021-10-14)
|
34
|
+
|
35
|
+
|
36
|
+
### Bug Fixes
|
37
|
+
|
38
|
+
* child props ([331bee7](https://github.com/3merge/q/commit/331bee7e62862d0ce91408883c4b5a0c250199d5))
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
6
44
|
## [1.41.7](https://github.com/3merge/q/compare/v1.41.6...v1.41.7) (2021-10-13)
|
7
45
|
|
8
46
|
**Note:** Version bump only for package gatsby-theme-q3
|
@@ -22,7 +22,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
22
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
23
|
|
24
24
|
const AdminRouter = ({
|
25
|
-
children,
|
26
25
|
AdminProps,
|
27
26
|
GatekeepProps
|
28
27
|
}) => {
|
@@ -44,20 +43,18 @@ const AdminRouter = ({
|
|
44
43
|
logoSrc,
|
45
44
|
...(AdminProps === null || AdminProps === void 0 ? void 0 : AdminProps.NavProps)
|
46
45
|
}
|
47
|
-
})
|
46
|
+
}))));
|
48
47
|
};
|
49
48
|
|
50
49
|
AdminRouter.defaultProps = {
|
51
50
|
AdminProps: {},
|
52
|
-
GatekeepProps: {}
|
53
|
-
children: null
|
51
|
+
GatekeepProps: {}
|
54
52
|
};
|
55
53
|
AdminRouter.propTypes = {
|
56
54
|
// eslint-disable-next-line
|
57
55
|
AdminProps: _propTypes.default.object,
|
58
56
|
// eslint-disable-next-line
|
59
|
-
GatekeepProps: _propTypes.default.object
|
60
|
-
children: _propTypes.default.node
|
57
|
+
GatekeepProps: _propTypes.default.object
|
61
58
|
};
|
62
59
|
var _default = AdminRouter;
|
63
60
|
exports.default = _default;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
var _gatsby = require("gatsby");
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
// eslint-disable-next-line
|
15
|
+
const Redirect = ({
|
16
|
+
to
|
17
|
+
}) => {
|
18
|
+
_react.default.useEffect(() => {
|
19
|
+
(0, _gatsby.navigate)(to);
|
20
|
+
}, []);
|
21
|
+
|
22
|
+
return null;
|
23
|
+
};
|
24
|
+
|
25
|
+
var _default = Redirect;
|
26
|
+
exports.default = _default;
|
@@ -7,21 +7,15 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _Redirect = _interopRequireDefault(require("./Redirect"));
|
11
11
|
|
12
12
|
var _useSiteMetaData = _interopRequireDefault(require("./useSiteMetaData"));
|
13
13
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
15
|
|
16
|
-
const IndexPage = () => {
|
17
|
-
|
18
|
-
|
19
|
-
_react.default.useEffect(() => {
|
20
|
-
(0, _gatsby.navigate)(d);
|
21
|
-
}, []);
|
22
|
-
|
23
|
-
return null;
|
24
|
-
};
|
16
|
+
const IndexPage = () => /*#__PURE__*/_react.default.createElement(_Redirect.default, {
|
17
|
+
to: (0, _useSiteMetaData.default)().appDirectory
|
18
|
+
});
|
25
19
|
|
26
20
|
var _default = IndexPage;
|
27
21
|
exports.default = _default;
|
@@ -57,13 +57,14 @@ function SEO({
|
|
57
57
|
SEO.defaultProps = {
|
58
58
|
lang: 'en',
|
59
59
|
meta: [],
|
60
|
-
description: ''
|
60
|
+
description: '',
|
61
|
+
title: ''
|
61
62
|
};
|
62
63
|
SEO.propTypes = {
|
63
64
|
description: _propTypes.default.string,
|
64
65
|
lang: _propTypes.default.string,
|
65
66
|
meta: _propTypes.default.arrayOf(_propTypes.default.object),
|
66
|
-
title: _propTypes.default.string
|
67
|
+
title: _propTypes.default.string
|
67
68
|
};
|
68
69
|
var _default = SEO;
|
69
70
|
exports.default = _default;
|
package/lib/components/index.js
CHANGED
@@ -51,22 +51,22 @@ Object.defineProperty(exports, "PublicTemplate", {
|
|
51
51
|
return _PublicTemplate.default;
|
52
52
|
}
|
53
53
|
});
|
54
|
-
Object.defineProperty(exports, "
|
54
|
+
Object.defineProperty(exports, "Redirect", {
|
55
55
|
enumerable: true,
|
56
56
|
get: function () {
|
57
|
-
return
|
57
|
+
return _Redirect.default;
|
58
58
|
}
|
59
59
|
});
|
60
|
-
Object.defineProperty(exports, "
|
60
|
+
Object.defineProperty(exports, "RedirectToIndex", {
|
61
61
|
enumerable: true,
|
62
62
|
get: function () {
|
63
|
-
return
|
63
|
+
return _RedirectToIndex.default;
|
64
64
|
}
|
65
65
|
});
|
66
|
-
Object.defineProperty(exports, "
|
66
|
+
Object.defineProperty(exports, "RichText", {
|
67
67
|
enumerable: true,
|
68
68
|
get: function () {
|
69
|
-
return _RichText.
|
69
|
+
return _RichText.default;
|
70
70
|
}
|
71
71
|
});
|
72
72
|
Object.defineProperty(exports, "SearchEngine", {
|
@@ -81,6 +81,12 @@ Object.defineProperty(exports, "Wrapper", {
|
|
81
81
|
return _Wrapper.default;
|
82
82
|
}
|
83
83
|
});
|
84
|
+
Object.defineProperty(exports, "renderRichText", {
|
85
|
+
enumerable: true,
|
86
|
+
get: function () {
|
87
|
+
return _RichText.renderRichText;
|
88
|
+
}
|
89
|
+
});
|
84
90
|
|
85
91
|
var _AdminLoader = _interopRequireDefault(require("./AdminLoader"));
|
86
92
|
|
@@ -98,6 +104,8 @@ var _PageWrapper = _interopRequireDefault(require("./PageWrapper"));
|
|
98
104
|
|
99
105
|
var _PublicTemplate = _interopRequireDefault(require("./PublicTemplate"));
|
100
106
|
|
107
|
+
var _Redirect = _interopRequireDefault(require("./Redirect"));
|
108
|
+
|
101
109
|
var _RedirectToIndex = _interopRequireDefault(require("./RedirectToIndex"));
|
102
110
|
|
103
111
|
var _RichText = _interopRequireWildcard(require("./RichText"));
|
@@ -106,8 +114,8 @@ var _SearchEngine = _interopRequireDefault(require("./SearchEngine"));
|
|
106
114
|
|
107
115
|
var _Wrapper = _interopRequireDefault(require("./Wrapper"));
|
108
116
|
|
109
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
117
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
110
118
|
|
111
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
119
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
112
120
|
|
113
121
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-theme-q3",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.43.10",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "MIT",
|
6
6
|
"bin": {
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"@material-ui/styles": "^4.10.0"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@babel/plugin-proposal-export-default-from": "^7.
|
17
|
+
"@babel/plugin-proposal-export-default-from": "^7.16.0",
|
18
18
|
"@contentful/gatsby-transformer-contentful-richtext": "^13.1.0",
|
19
19
|
"@contentful/rich-text-react-renderer": "^14.1.2",
|
20
20
|
"@contentful/rich-text-types": "^14.1.2",
|
@@ -42,13 +42,13 @@
|
|
42
42
|
"gatsby-transformer-sharp": "^2.12.0",
|
43
43
|
"lodash": "^4.17.20",
|
44
44
|
"prop-types": "^15.7.2",
|
45
|
-
"query-string": "^
|
45
|
+
"query-string": "^7.0.1",
|
46
46
|
"react": "^17.0.1",
|
47
47
|
"react-share": "^4.3.1",
|
48
|
-
"slugify": "^1.
|
48
|
+
"slugify": "^1.6.3",
|
49
49
|
"string-replace-webpack-plugin": "^0.1.3",
|
50
50
|
"transform-loader": "^0.2.4",
|
51
|
-
"yarn": "^1.22.
|
51
|
+
"yarn": "^1.22.17"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"child_process": "^1.0.2",
|
@@ -56,5 +56,5 @@
|
|
56
56
|
"fs": "^0.0.1-security",
|
57
57
|
"path": "^0.12.7"
|
58
58
|
},
|
59
|
-
"gitHead": "
|
59
|
+
"gitHead": "387498694663947f873bb1da86f94d78f9684c03"
|
60
60
|
}
|
@@ -5,11 +5,7 @@ import AdminApp from 'q3-admin';
|
|
5
5
|
import AdminPrivateGateway from './AdminPrivateGateway';
|
6
6
|
import useSiteMetaData from './useSiteMetaData';
|
7
7
|
|
8
|
-
const AdminRouter = ({
|
9
|
-
children,
|
10
|
-
AdminProps,
|
11
|
-
GatekeepProps,
|
12
|
-
}) => {
|
8
|
+
const AdminRouter = ({ AdminProps, GatekeepProps }) => {
|
13
9
|
const {
|
14
10
|
appDirectory: basepath,
|
15
11
|
favicon: logoSrc,
|
@@ -29,9 +25,7 @@ const AdminRouter = ({
|
|
29
25
|
logoSrc,
|
30
26
|
...AdminProps?.NavProps,
|
31
27
|
}}
|
32
|
-
|
33
|
-
{children}
|
34
|
-
</AdminApp>
|
28
|
+
/>
|
35
29
|
</Router>
|
36
30
|
</AdminPrivateGateway>
|
37
31
|
);
|
@@ -40,7 +34,6 @@ const AdminRouter = ({
|
|
40
34
|
AdminRouter.defaultProps = {
|
41
35
|
AdminProps: {},
|
42
36
|
GatekeepProps: {},
|
43
|
-
children: null,
|
44
37
|
};
|
45
38
|
|
46
39
|
AdminRouter.propTypes = {
|
@@ -48,7 +41,6 @@ AdminRouter.propTypes = {
|
|
48
41
|
AdminProps: PropTypes.object,
|
49
42
|
// eslint-disable-next-line
|
50
43
|
GatekeepProps: PropTypes.object,
|
51
|
-
children: PropTypes.node,
|
52
44
|
};
|
53
45
|
|
54
46
|
export default AdminRouter;
|
@@ -1,15 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import
|
2
|
+
import Redirect from './Redirect';
|
3
3
|
import useSiteMetaData from './useSiteMetaData';
|
4
4
|
|
5
|
-
const IndexPage = () =>
|
6
|
-
|
7
|
-
|
8
|
-
React.useEffect(() => {
|
9
|
-
navigate(d);
|
10
|
-
}, []);
|
11
|
-
|
12
|
-
return null;
|
13
|
-
};
|
5
|
+
const IndexPage = () => (
|
6
|
+
<Redirect to={useSiteMetaData().appDirectory} />
|
7
|
+
);
|
14
8
|
|
15
9
|
export default IndexPage;
|
@@ -5,7 +5,6 @@ import useSiteMetaData from './useSiteMetaData';
|
|
5
5
|
|
6
6
|
function SEO({ description, lang, meta, title }) {
|
7
7
|
const site = useSiteMetaData();
|
8
|
-
|
9
8
|
const metaDescription = description || site.description;
|
10
9
|
|
11
10
|
return (
|
@@ -53,13 +52,14 @@ SEO.defaultProps = {
|
|
53
52
|
lang: 'en',
|
54
53
|
meta: [],
|
55
54
|
description: '',
|
55
|
+
title: '',
|
56
56
|
};
|
57
57
|
|
58
58
|
SEO.propTypes = {
|
59
59
|
description: PropTypes.string,
|
60
60
|
lang: PropTypes.string,
|
61
61
|
meta: PropTypes.arrayOf(PropTypes.object),
|
62
|
-
title: PropTypes.string
|
62
|
+
title: PropTypes.string,
|
63
63
|
};
|
64
64
|
|
65
65
|
export default SEO;
|
package/src/components/index.js
CHANGED
@@ -6,6 +6,7 @@ export { default as BlogTemplate } from './BlogTemplate';
|
|
6
6
|
export { default as FormBox } from './FormBox';
|
7
7
|
export { default as PageWrapper } from './PageWrapper';
|
8
8
|
export { default as PublicTemplate } from './PublicTemplate';
|
9
|
+
export { default as Redirect } from './Redirect';
|
9
10
|
export { default as RedirectToIndex } from './RedirectToIndex';
|
10
11
|
export {
|
11
12
|
default as RichText,
|