@comicrelief/component-library 7.35.7 → 7.35.8

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.
@@ -9,7 +9,7 @@ const formatItems = thisData => {
9
9
  const allValidNodes = [];
10
10
 
11
11
  // Set at a Content Type field level, so doesn't need to be dynamic:
12
- const possibleNumberOfNodes = 12;
12
+ const possibleNumberOfNodes = 9;
13
13
 
14
14
  // Grab ALL keys from our raw data:
15
15
  const theseKeys = Object.keys(thisData);
@@ -111,27 +111,6 @@ const carouselItemsComplete = exports.carouselItemsComplete = {
111
111
  file: {
112
112
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
113
113
  }
114
- },
115
- node10Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
116
- node10Amount: '10,000',
117
- node10Image: {
118
- file: {
119
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
120
- }
121
- },
122
- node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
123
- node11Amount: '11,000',
124
- node11Image: {
125
- file: {
126
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
127
- }
128
- },
129
- node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
130
- node12Amount: '12,000',
131
- node12Image: {
132
- file: {
133
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
134
- }
135
114
  }
136
115
  };
137
116
  const carouselItemsIncomplete = exports.carouselItemsIncomplete = {
@@ -190,30 +169,9 @@ const carouselItemsIncomplete = exports.carouselItemsIncomplete = {
190
169
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
191
170
  }
192
171
  },
193
- node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
194
- node9Amount: null,
195
- node9Image: null,
196
- node10Copy: null,
197
- node10Amount: '10,000',
198
- node10Image: {
199
- file: {
200
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
201
- }
202
- },
203
- node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
204
- node11Amount: '11,000',
205
- node11Image: {
206
- file: {
207
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
208
- }
209
- },
210
- node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
211
- node12Amount: null,
212
- node12Image: {
213
- file: {
214
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
215
- }
216
- }
172
+ node9_Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
173
+ node9_Amount: null,
174
+ node9_Image: null
217
175
  };
218
176
  const carouselItemsMinimal = exports.carouselItemsMinimal = {
219
177
  __typename: 'ContentfulWhatYourMoneyDoesCarousel',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.35.7",
4
+ "version": "7.35.8",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -209,27 +209,6 @@ WYMDCarousel.propTypes = {
209
209
  url: PropTypes.string
210
210
  })
211
211
  }),
212
- node10Amount: PropTypes.string,
213
- node10Copy: PropTypes.string,
214
- node10Image: PropTypes.shape({
215
- file: PropTypes.shape({
216
- url: PropTypes.string
217
- })
218
- }),
219
- node11Amount: PropTypes.string,
220
- node11Copy: PropTypes.string,
221
- node11Image: PropTypes.shape({
222
- file: PropTypes.shape({
223
- url: PropTypes.string
224
- })
225
- }),
226
- node12Amount: PropTypes.string,
227
- node12Copy: PropTypes.string,
228
- node12Image: PropTypes.shape({
229
- file: PropTypes.shape({
230
- url: PropTypes.string
231
- })
232
- }),
233
212
  autoPlay: PropTypes.bool.isRequired,
234
213
  headerCopy: PropTypes.string.isRequired,
235
214
  peopleHelpedText: PropTypes.string.isRequired,
@@ -3,7 +3,7 @@ const formatItems = thisData => {
3
3
  const allValidNodes = [];
4
4
 
5
5
  // Set at a Content Type field level, so doesn't need to be dynamic:
6
- const possibleNumberOfNodes = 12;
6
+ const possibleNumberOfNodes = 9;
7
7
 
8
8
  // Grab ALL keys from our raw data:
9
9
  const theseKeys = Object.keys(thisData);
@@ -120,27 +120,6 @@ const carouselItemsComplete = {
120
120
  file: {
121
121
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
122
122
  }
123
- },
124
- node10Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
125
- node10Amount: '10,000',
126
- node10Image: {
127
- file: {
128
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
129
- }
130
- },
131
- node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
132
- node11Amount: '11,000',
133
- node11Image: {
134
- file: {
135
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
136
- }
137
- },
138
- node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
139
- node12Amount: '12,000',
140
- node12Image: {
141
- file: {
142
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
143
- }
144
123
  }
145
124
  };
146
125
 
@@ -200,30 +179,9 @@ const carouselItemsIncomplete = {
200
179
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
201
180
  }
202
181
  },
203
- node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
204
- node9Amount: null,
205
- node9Image: null,
206
- node10Copy: null,
207
- node10Amount: '10,000',
208
- node10Image: {
209
- file: {
210
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
211
- }
212
- },
213
- node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
214
- node11Amount: '11,000',
215
- node11Image: {
216
- file: {
217
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
218
- }
219
- },
220
- node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
221
- node12Amount: null,
222
- node12Image: {
223
- file: {
224
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
225
- }
226
- }
182
+ node9_Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
183
+ node9_Amount: null,
184
+ node9_Image: null
227
185
  };
228
186
 
229
187
  const carouselItemsMinimal = {