@graphcommerce/magento-cms 9.0.4-canary.0 → 9.0.4-canary.10
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 +21 -7
- package/components/CmsPageContent/CmsPageContent.tsx +14 -0
- package/graphql/CmsPage.graphql +11 -0
- package/graphql/CmsPageFragment.graphql +5 -0
- package/index.ts +6 -2
- package/package.json +6 -6
- package/CmsPageContent.tsx +0 -19
- package/CmsPageQueryFragment.graphql +0 -7
- /package/{CmsPageContent.graphql → components/CmsPageContent/CmsPageContent.graphql} +0 -0
- /package/{CmsPageMeta.graphql → components/CmsPageMeta/CmsPageMeta.graphql} +0 -0
- /package/{CmsPageMeta.tsx → components/CmsPageMeta/CmsPageMeta.tsx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 9.0.4-canary.
|
|
3
|
+
## 9.0.4-canary.10
|
|
4
|
+
|
|
5
|
+
## 9.0.4-canary.9
|
|
6
|
+
|
|
7
|
+
## 9.0.4-canary.8
|
|
8
|
+
|
|
9
|
+
## 9.0.4-canary.7
|
|
10
|
+
|
|
11
|
+
## 9.0.4-canary.6
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#2478](https://github.com/graphcommerce-org/graphcommerce/pull/2478) [`a317221`](https://github.com/graphcommerce-org/graphcommerce/commit/a317221a6ef88dc037985398bf87926a73f7fa48) - Convert home to render the home CmsPage and add page/[…url] route for additional pages. ([@paales](https://github.com/paales))
|
|
16
|
+
|
|
17
|
+
- [#2478](https://github.com/graphcommerce-org/graphcommerce/pull/2478) [`d09c98b`](https://github.com/graphcommerce-org/graphcommerce/commit/d09c98bba2ee83fb51b17494354a42b6c38446ab) - Added support for loading CMS Pages from Magento ([@paales](https://github.com/paales))
|
|
6
18
|
|
|
7
|
-
## 9.0.
|
|
19
|
+
## 9.0.4-canary.5
|
|
8
20
|
|
|
9
|
-
## 9.0.
|
|
21
|
+
## 9.0.4-canary.4
|
|
10
22
|
|
|
11
|
-
## 9.0.
|
|
23
|
+
## 9.0.4-canary.3
|
|
12
24
|
|
|
13
|
-
## 9.0.
|
|
25
|
+
## 9.0.4-canary.2
|
|
14
26
|
|
|
15
|
-
## 9.0.
|
|
27
|
+
## 9.0.4-canary.1
|
|
28
|
+
|
|
29
|
+
## 9.0.4-canary.0
|
|
16
30
|
|
|
17
31
|
## 5.1.0
|
|
18
32
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Container } from '@mui/material'
|
|
2
|
+
import type { CmsPageContentFragment } from './CmsPageContent.gql'
|
|
3
|
+
|
|
4
|
+
export type CmsPageContentProps = { cmsPage: CmsPageContentFragment }
|
|
5
|
+
|
|
6
|
+
export function CmsPageContent(props: CmsPageContentProps) {
|
|
7
|
+
const { cmsPage } = props
|
|
8
|
+
return (
|
|
9
|
+
<Container>
|
|
10
|
+
{/* eslint-disable-next-line react/no-danger */}
|
|
11
|
+
{cmsPage.content && <div dangerouslySetInnerHTML={{ __html: cmsPage.content }} />}
|
|
12
|
+
</Container>
|
|
13
|
+
)
|
|
14
|
+
}
|
package/index.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export * from './CmsPageContent'
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './components/CmsPageContent/CmsPageContent'
|
|
2
|
+
export * from './components/CmsPageContent/CmsPageContent.gql'
|
|
3
|
+
export * from './components/CmsPageMeta/CmsPageMeta'
|
|
4
|
+
export * from './components/CmsPageMeta/CmsPageMeta.gql'
|
|
5
|
+
export * from './graphql/CmsPage.gql'
|
|
6
|
+
export * from './graphql/CmsPageFragment.gql'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cms",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.4-canary.
|
|
5
|
+
"version": "9.0.4-canary.10",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.
|
|
16
|
-
"@graphcommerce/graphql": "^9.0.4-canary.
|
|
17
|
-
"@graphcommerce/magento-store": "^9.0.4-canary.
|
|
18
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.
|
|
19
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.10",
|
|
16
|
+
"@graphcommerce/graphql": "^9.0.4-canary.10",
|
|
17
|
+
"@graphcommerce/magento-store": "^9.0.4-canary.10",
|
|
18
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.10",
|
|
19
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.10",
|
|
20
20
|
"@lingui/core": "^4.2.1",
|
|
21
21
|
"@lingui/macro": "^4.2.1",
|
|
22
22
|
"@lingui/react": "^4.2.1",
|
package/CmsPageContent.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Container, Typography } from '@mui/material'
|
|
2
|
-
import type { CmsPageContentFragment } from './CmsPageContent.gql'
|
|
3
|
-
|
|
4
|
-
export type CmsPageContentProps = CmsPageContentFragment
|
|
5
|
-
|
|
6
|
-
export function CmsPageContent(props: CmsPageContentProps) {
|
|
7
|
-
const { content_heading, content } = props
|
|
8
|
-
return (
|
|
9
|
-
<Container>
|
|
10
|
-
{content_heading && (
|
|
11
|
-
<Typography variant='h2' component='h1'>
|
|
12
|
-
{content_heading}
|
|
13
|
-
</Typography>
|
|
14
|
-
)}
|
|
15
|
-
{/* eslint-disable-next-line react/no-danger */}
|
|
16
|
-
{content && <div dangerouslySetInnerHTML={{ __html: content }} />}
|
|
17
|
-
</Container>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|