@graphcommerce/magento-cms 3.0.1
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/CHANGELOG.md +100 -0
- package/CmsPageContent.gql.ts +4 -0
- package/CmsPageContent.graphql +4 -0
- package/CmsPageContent.tsx +18 -0
- package/CmsPageMeta.gql.ts +4 -0
- package/CmsPageMeta.graphql +6 -0
- package/CmsPageMeta.tsx +15 -0
- package/CmsPageQueryFragment.gql.ts +4 -0
- package/CmsPageQueryFragment.graphql +7 -0
- package/index.ts +1 -0
- package/next-env.d.ts +4 -0
- package/package.json +33 -0
- package/tsconfig.json +5 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [3.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cms@3.0.0...@graphcommerce/magento-cms@3.0.1) (2021-09-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @graphcommerce/magento-cms
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 3.0.0 (2021-09-27)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* canonical urls ([9ff8d3f](https://github.com/ho-nl/m2-pwa/commit/9ff8d3f950098fb28440f31f5dd93a835dce0bda))
|
|
20
|
+
* ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
21
|
+
* remove conflicting files ([0c17ae4](https://github.com/ho-nl/m2-pwa/commit/0c17ae46be62b775ac83b35f11c532ce2d9401a3))
|
|
22
|
+
* yarn workspace packages hot reload ([d03fc9f](https://github.com/ho-nl/m2-pwa/commit/d03fc9fdda3486476761786f2b56a934cc92befc))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* add barrel file for magento-category ([c5ba8c9](https://github.com/ho-nl/m2-pwa/commit/c5ba8c98cbb8192f1c1c85242ff6efa83b1fbdcc))
|
|
28
|
+
* better 404 handling and simplified getStaticProps ([321ace1](https://github.com/ho-nl/m2-pwa/commit/321ace1850642ee3eddfa674c37e6fca8adcdb74))
|
|
29
|
+
* canonical urls using abstract page meta component ([7d52cfc](https://github.com/ho-nl/m2-pwa/commit/7d52cfc76af2766dedf883b1e3fa5a5101eca823))
|
|
30
|
+
* created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
|
|
31
|
+
* **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
|
32
|
+
* introduced a server side shared apolloClient, faster page loading ([5d7bc82](https://github.com/ho-nl/m2-pwa/commit/5d7bc825946c7910a06249041237e54b99f0c5b1))
|
|
33
|
+
* major performance refactor ([03f8e2f](https://github.com/ho-nl/m2-pwa/commit/03f8e2fa16ef919bd6bd6eadd36922d0245ed960))
|
|
34
|
+
* next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
35
|
+
* **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
36
|
+
* renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
37
|
+
* upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
|
38
|
+
* upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Reverts
|
|
42
|
+
|
|
43
|
+
* Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## 2.0.8 (2020-10-28)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* make sure themes extensions are found ([5aa18db](https://github.com/ho-nl/m2-pwa/commit/5aa18db514fd2e2f50681367e39523f8e742ece0))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Features
|
|
56
|
+
|
|
57
|
+
* added generated graphql.ts files ([3e44415](https://github.com/ho-nl/m2-pwa/commit/3e44415b018e74b502e9e98479aa5e84041f337d))
|
|
58
|
+
* split into packages ([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### BREAKING CHANGES
|
|
62
|
+
|
|
63
|
+
* huge folder structure refactor, please read README to reinstall
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# Change Log
|
|
70
|
+
|
|
71
|
+
All notable changes to this project will be documented in this file. See
|
|
72
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
73
|
+
|
|
74
|
+
# [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cms@2.101.9...@graphcommerce/magento-cms@2.102.0) (2021-08-12)
|
|
75
|
+
|
|
76
|
+
### Features
|
|
77
|
+
|
|
78
|
+
- upgraded to nextjs 11
|
|
79
|
+
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
80
|
+
|
|
81
|
+
## [2.101.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cms@2.101.8...@graphcommerce/magento-cms@2.101.9) (2021-08-09)
|
|
82
|
+
|
|
83
|
+
### Reverts
|
|
84
|
+
|
|
85
|
+
- Revert "chore: upgrade @apollo/client"
|
|
86
|
+
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
87
|
+
|
|
88
|
+
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cms@2.100.18...@graphcommerce/magento-cms@2.101.0) (2021-07-26)
|
|
89
|
+
|
|
90
|
+
### Features
|
|
91
|
+
|
|
92
|
+
- **playwright:** added new playwright package to enable browser testing
|
|
93
|
+
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
94
|
+
|
|
95
|
+
## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cms@2.100.10...@graphcommerce/magento-cms@2.100.11) (2021-07-20)
|
|
96
|
+
|
|
97
|
+
### Bug Fixes
|
|
98
|
+
|
|
99
|
+
- ignore md files from triggering version updates
|
|
100
|
+
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Typography, Container } from '@material-ui/core'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import { CmsPageContentFragment } from './CmsPageContent.gql'
|
|
4
|
+
|
|
5
|
+
export default function CmsPageContent(props: CmsPageContentFragment) {
|
|
6
|
+
const { content_heading, content } = props
|
|
7
|
+
return (
|
|
8
|
+
<Container>
|
|
9
|
+
{content_heading && (
|
|
10
|
+
<Typography variant='h2' component='h1'>
|
|
11
|
+
{content_heading}
|
|
12
|
+
</Typography>
|
|
13
|
+
)}
|
|
14
|
+
{/* eslint-disable-next-line react/no-danger */}
|
|
15
|
+
{content && <div dangerouslySetInnerHTML={{ __html: content }} />}
|
|
16
|
+
</Container>
|
|
17
|
+
)
|
|
18
|
+
}
|
package/CmsPageMeta.tsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PageMeta } from '@graphcommerce/magento-store'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import { CmsPageMetaFragment } from './CmsPageMeta.gql'
|
|
4
|
+
|
|
5
|
+
export default function CmsPageMeta(props: CmsPageMetaFragment) {
|
|
6
|
+
const { title, meta_title, meta_description } = props
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<PageMeta
|
|
10
|
+
title={meta_title ?? title ?? ''}
|
|
11
|
+
metaDescription={meta_description ?? ''}
|
|
12
|
+
metaRobots={['noindex']}
|
|
13
|
+
/>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import * as Types from '@graphcommerce/graphql';
|
|
3
|
+
|
|
4
|
+
export type CmsPageQueryFragment = { cmsPage?: Types.Maybe<{ identifier?: Types.Maybe<string>, meta_title?: Types.Maybe<string>, meta_description?: Types.Maybe<string>, url_key?: Types.Maybe<string>, title?: Types.Maybe<string>, content_heading?: Types.Maybe<string>, content?: Types.Maybe<string> }> };
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CmsPageContent } from './CmsPageContent'
|
package/next-env.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@graphcommerce/magento-cms",
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
|
+
"browserslist": [
|
|
7
|
+
"extends @graphcommerce/browserslist-config-pwa"
|
|
8
|
+
],
|
|
9
|
+
"eslintConfig": {
|
|
10
|
+
"extends": "@graphcommerce/eslint-config-pwa",
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"project": "./tsconfig.json"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@graphcommerce/browserslist-config-pwa": "^3.0.1",
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.0.1",
|
|
18
|
+
"@graphcommerce/prettier-config-pwa": "^3.0.1",
|
|
19
|
+
"@graphcommerce/typescript-config-pwa": "^3.0.1",
|
|
20
|
+
"@playwright/test": "^1.14.1"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@apollo/client": "^3.3.21",
|
|
24
|
+
"@graphcommerce/graphql": "^2.103.1",
|
|
25
|
+
"@graphcommerce/magento-store": "^3.0.1",
|
|
26
|
+
"@graphql-typed-document-node/core": "^3.1.0",
|
|
27
|
+
"@material-ui/core": "^4.12.3",
|
|
28
|
+
"next": "^11.1.2",
|
|
29
|
+
"react": "^17.0.2",
|
|
30
|
+
"react-dom": "^17.0.2",
|
|
31
|
+
"type-fest": "^2.1.0"
|
|
32
|
+
}
|
|
33
|
+
}
|