@newskit-render/core 2.39.6-alpha.2 → 2.39.6-alpha.4

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.
@@ -33,16 +33,14 @@ const CollectionBlock: React.FC<CollectionBlockProps> = ({
33
33
  <>
34
34
  {index !== 0 && (
35
35
  <SectionContext.Consumer>
36
- {
37
- ({ isIndexPage }) =>
38
- !isIndexPage && (
39
- <SectionTitle
40
- title={collection.title}
41
- sectionURL={sectionURL}
42
- titleBarColour={titleBarColors[index]}
43
- />
44
- )
45
- /* eslint-disable-next-line */
36
+ {({ isIndexPage }) =>
37
+ !isIndexPage && (
38
+ <SectionTitle
39
+ title={collection.title}
40
+ sectionURL={sectionURL}
41
+ titleBarColour={titleBarColors[index]}
42
+ />
43
+ )
46
44
  }
47
45
  </SectionContext.Consumer>
48
46
  )}
@@ -25,7 +25,6 @@ export const Lead: React.FC<LayoutProps> = ({ slice }) => (
25
25
  {slice.children.slice(1).map((block, i) => {
26
26
  return (
27
27
  <Block
28
- /* eslint-disable-next-line */
29
28
  key={`titleVerticalCell-${i}`}
30
29
  data-testid={`titleVerticalCell-${i}`}
31
30
  >
@@ -23,7 +23,6 @@ export const BasicRow: React.FC<LayoutProps> = ({
23
23
  >
24
24
  {articles
25
25
  ? articles.map((article, i) => (
26
- /* eslint-disable-next-line */
27
26
  <Block
28
27
  spaceStack="space050"
29
28
  key={article.title}
@@ -33,7 +32,6 @@ export const BasicRow: React.FC<LayoutProps> = ({
33
32
  </Block>
34
33
  ))
35
34
  : slice.children.map((block, i) => (
36
- /* eslint-disable-next-line */
37
35
  <Block
38
36
  key={'article' in block ? block.article.id : i}
39
37
  data-testid={`titleTeaserVertical-${i}`}
@@ -65,22 +63,20 @@ export const Row3: React.FC<LayoutProps> = ({ slice }) => (
65
63
  columnGap={{ md: 'space050', lg: 'space050' }}
66
64
  data-testid={`${slice.name}-Grid`}
67
65
  >
68
- {
69
- (Areas) =>
70
- Object.entries(Areas).map((Area, i) => {
71
- const AreaComp = Area[1]
72
- const block = slice.children[i]
66
+ {(Areas) =>
67
+ Object.entries(Areas).map((Area, i) => {
68
+ const AreaComp = Area[1]
69
+ const block = slice.children[i]
73
70
 
74
- return (
75
- <AreaComp
76
- key={('article' in block && block.article.id) || i}
77
- data-testid={`titleTeaserVertical-${i}`}
78
- >
79
- {getBlock(block, 'horizontal')}
80
- </AreaComp>
81
- )
82
- })
83
- /* eslint-disable-next-line */
71
+ return (
72
+ <AreaComp
73
+ key={('article' in block && block.article.id) || i}
74
+ data-testid={`titleTeaserVertical-${i}`}
75
+ >
76
+ {getBlock(block, 'horizontal')}
77
+ </AreaComp>
78
+ )
79
+ })
84
80
  }
85
81
  </GridLayout>
86
82
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "2.39.6-alpha.2",
3
+ "version": "2.39.6-alpha.4",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -34,26 +34,26 @@
34
34
  "analyze": "ANALYZE=true next build"
35
35
  },
36
36
  "dependencies": {
37
- "@apollo/client": "3.4.16",
37
+ "@apollo/client": "3.7.4",
38
38
  "@emotion-icons/material": "3.14.0",
39
39
  "@emotion-icons/material-outlined": "3.14.0",
40
40
  "@emotion/react": "11.10.4",
41
41
  "@emotion/styled": "11.10.4",
42
- "@newskit-render/api": "^1.6.2",
43
- "@newskit-render/auth": "^1.3.8",
44
- "@newskit-render/checkout": "^2.2.4-alpha.0",
45
- "@newskit-render/feature-flags": "^1.4.9",
46
- "@newskit-render/feed": "^1.4.12",
47
- "@newskit-render/my-account": "^4.1.5-alpha.0",
48
- "@newskit-render/shared-components": "^2.1.4-alpha.0",
49
- "@newskit-render/standalone-components": "^2.1.6-alpha.0",
50
- "@newskit-render/validation": "^1.5.10",
42
+ "@newskit-render/api": "^1.6.3-alpha.0",
43
+ "@newskit-render/auth": "^1.3.9-alpha.0",
44
+ "@newskit-render/checkout": "^2.2.4-alpha.1",
45
+ "@newskit-render/feature-flags": "^1.4.10-alpha.0",
46
+ "@newskit-render/feed": "^1.4.13-alpha.0",
47
+ "@newskit-render/my-account": "^4.1.5-alpha.1",
48
+ "@newskit-render/shared-components": "^2.1.4-alpha.1",
49
+ "@newskit-render/standalone-components": "^2.1.6-alpha.1",
50
+ "@newskit-render/validation": "^1.5.11-alpha.0",
51
51
  "cross-fetch": "3.1.5",
52
52
  "graphql": "16.6.0",
53
53
  "lodash.get": "4.4.2",
54
54
  "newrelic": "7.1.0",
55
55
  "newskit": "6.6.0",
56
- "next": "13.0.6",
56
+ "next": "13.1.3",
57
57
  "react": "18.2.0",
58
58
  "react-dom": "18.2.0",
59
59
  "react-helmet": "6.1.0",
@@ -71,7 +71,7 @@
71
71
  "@testing-library/react": "13.4.0",
72
72
  "@types/newrelic": "7.0.0",
73
73
  "@types/react": "18.0.26",
74
- "@types/react-dom": "18.0.9",
74
+ "@types/react-dom": "18.0.10",
75
75
  "@types/react-helmet": "6.1.0",
76
76
  "@typescript-eslint/eslint-plugin": "5.48.1",
77
77
  "@typescript-eslint/parser": "5.48.1",
@@ -91,15 +91,15 @@
91
91
  "eslint-plugin-prettier": "4.2.1",
92
92
  "jest": "27.4.7",
93
93
  "jest-junit": "15.0.0",
94
- "jest-watch-typeahead": "0.6.3",
94
+ "jest-watch-typeahead": "2.2.1",
95
95
  "lint-staged": "13.1.0",
96
96
  "next-transpile-modules": "10.0.0",
97
- "prettier": "2.8.1",
98
- "prettier-eslint": "11.0.0",
99
- "prettier-eslint-cli": "5.0.0",
97
+ "prettier": "2.8.3",
98
+ "prettier-eslint": "15.0.1",
99
+ "prettier-eslint-cli": "7.1.0",
100
100
  "ts-jest": "27.1.3",
101
101
  "typescript": "4.9.4",
102
- "wait-on": "6.0.1"
102
+ "wait-on": "7.0.1"
103
103
  },
104
104
  "precommit": [
105
105
  "precommit"
@@ -114,7 +114,7 @@
114
114
  },
115
115
  "resolutions": {
116
116
  "@types/react": "18.0.26",
117
- "@types/react-dom": "18.0.6",
117
+ "@types/react-dom": "18.0.10",
118
118
  "@types/pino-std-serializers": "2.4.1",
119
119
  "@types/pino-pretty": "4.7.5"
120
120
  }