@kitconcept/volto-light-theme 1.0.0 → 1.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.
@@ -4,7 +4,7 @@ on: [push]
4
4
  env:
5
5
  ADDON_NAME: "@kitconcept/volto-light-theme"
6
6
  ADDON_PATH: "volto-light-theme"
7
- VOLTO_VERSION: "17.0.0-alpha.30"
7
+ VOLTO_VERSION: "17.2.0"
8
8
 
9
9
  jobs:
10
10
 
@@ -11,7 +11,7 @@ on:
11
11
  env:
12
12
  ENVIRONMENT: "light-theme.kitconcept.io"
13
13
  IMAGE_NAME: "ghcr.io/kitconcept/voltolighttheme-frontend"
14
- VOLTO_VERSION: "17.0.0-alpha.30"
14
+ VOLTO_VERSION: "17.2.0"
15
15
 
16
16
  jobs:
17
17
  meta:
package/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.1 (2023-10-18)
12
+
13
+ ### Bugfix
14
+
15
+ - Small CSS adjustments @sneridagh [#249](https://github.com/kitconcept/volto-light-theme/pull/249)
16
+
17
+ ### Internal
18
+
19
+ - Update to Volto 17 final @sneridagh [#246](https://github.com/kitconcept/volto-light-theme/pull/246)
20
+ - Bump Volto version @sneridagh [#249](https://github.com/kitconcept/volto-light-theme/pull/249)
21
+
22
+
11
23
  ## 1.0.0 (2023-09-29)
12
24
 
13
25
  ### Feature
package/Makefile CHANGED
@@ -22,7 +22,7 @@ RESET=`tput sgr0`
22
22
  YELLOW=`tput setaf 3`
23
23
 
24
24
  PLONE_VERSION=6.0.6
25
- VOLTO_VERSION=17.0.0-alpha.30
25
+ VOLTO_VERSION=17.2.0
26
26
 
27
27
  ADDON_NAME='@kitconcept/volto-light-theme'
28
28
  ADDON_PATH='volto-light-theme'
package/README.md CHANGED
@@ -125,6 +125,7 @@ It is recommended that your project or policy add-on `package.json` include the
125
125
  "@kitconcept/volto-introduction-block": "1.0.0",
126
126
  "@kitconcept/volto-light-theme": "1.0.0",
127
127
  "@kitconcept/volto-separator-block": "4.0.0",
128
+ "@kitconcept/volto-highlight-block": "3.0.0",
128
129
  }
129
130
  ```
130
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -72,6 +72,6 @@
72
72
  "@kitconcept/volto-introduction-block": "^1.0.0",
73
73
  "@kitconcept/volto-separator-block": "^4.0.0",
74
74
  "@kitconcept/volto-slider-block": "^5.1.1",
75
- "@plone/volto": "^17.0.0-alpha.30"
75
+ "@plone/volto": "^17.2.0"
76
76
  }
77
77
  }
@@ -36,3 +36,8 @@ export const defaultStylingSchema = ({ schema, formData, intl }) => {
36
36
 
37
37
  return schema;
38
38
  };
39
+
40
+ export const removeStylingSchema = ({ schema, formData, intl }) => {
41
+ schema.fieldsets = schema.fieldsets.filter((item) => item.id !== 'styling');
42
+ return schema;
43
+ };
package/src/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  import { defineMessages } from 'react-intl';
2
2
 
3
3
  import { composeSchema, getPreviousNextBlock } from '@plone/volto/helpers';
4
- import { defaultStylingSchema } from './components/Blocks/schema';
4
+ import {
5
+ defaultStylingSchema,
6
+ removeStylingSchema,
7
+ } from './components/Blocks/schema';
5
8
  import { teaserSchemaEnhancer } from './components/Blocks/Teaser/schema';
6
9
  import { videoBlockSchemaEnhancer } from './components/Blocks/Video/schema';
7
10
  import { gridTeaserDisableStylingSchema } from '@plone/volto/components/manage/Blocks/Teaser/schema';
@@ -184,43 +187,43 @@ const applyConfig = (config) => {
184
187
  colors: BG_COLORS,
185
188
  schemaEnhancer: defaultStylingSchema,
186
189
  icon: gridSVG,
187
- gridAllowedBlocks: ['teaser', 'image', 'slate'],
188
- // One could customize the blocks inside the grid like this:
189
- blocksConfig: {
190
- ...config.blocks.blocksConfig,
191
- slate: {
192
- ...config.blocks.blocksConfig.slate,
193
- // Slate in grids must have an extra wrapper with the `slate` className
194
- view: (props) => {
195
- const EnhancedSlateViewComponent =
196
- config.blocks.blocksConfig.slate.view;
197
- return (
198
- <div className="slate">
199
- <EnhancedSlateViewComponent {...props} />
200
- </div>
201
- );
202
- },
203
- },
204
- image: {
205
- ...config.blocks.blocksConfig.image,
206
- schemaEnhancer: composeSchema(
207
- imageBlockSchemaEnhancer,
208
- gridImageDisableSizeAndPositionHandlersSchema,
209
- ),
210
- },
211
- teaser: {
212
- ...config.blocks.blocksConfig.teaser,
213
- schemaEnhancer: composeSchema(
214
- gridTeaserDisableStylingSchema,
215
- teaserSchemaEnhancer,
216
- ),
217
- },
218
- listing: {
219
- ...config.blocks.blocksConfig.listing,
220
- allowed_headline_tags: [['h2', 'h2']],
221
- variations: config.blocks.blocksConfig.listing.variations,
190
+ };
191
+
192
+ config.blocks.blocksConfig.gridBlock.blocksConfig = {
193
+ ...config.blocks.blocksConfig,
194
+ slate: {
195
+ ...config.blocks.blocksConfig.slate,
196
+ // Slate in grids must have an extra wrapper with the `slate` className
197
+ view: (props) => {
198
+ const EnhancedSlateViewComponent =
199
+ config.blocks.blocksConfig.slate.view;
200
+ return (
201
+ <div className="slate">
202
+ <EnhancedSlateViewComponent {...props} />
203
+ </div>
204
+ );
222
205
  },
223
206
  },
207
+ image: {
208
+ ...config.blocks.blocksConfig.image,
209
+ schemaEnhancer: composeSchema(
210
+ imageBlockSchemaEnhancer,
211
+ gridImageDisableSizeAndPositionHandlersSchema,
212
+ ),
213
+ },
214
+ teaser: {
215
+ ...config.blocks.blocksConfig.teaser,
216
+ schemaEnhancer: composeSchema(
217
+ gridTeaserDisableStylingSchema,
218
+ teaserSchemaEnhancer,
219
+ ),
220
+ },
221
+ listing: {
222
+ ...config.blocks.blocksConfig.listing,
223
+ allowed_headline_tags: [['h2', 'h2']],
224
+ schemaEnhancer: removeStylingSchema,
225
+ variations: [],
226
+ },
224
227
  };
225
228
 
226
229
  config.blocks.blocksConfig.introduction = {
@@ -50,3 +50,8 @@
50
50
  margin-bottom: 0;
51
51
  }
52
52
  }
53
+
54
+ // Edit mode adjustments
55
+ .block-editor-gridBlock.has--backgroundColor--grey .block h2.headline {
56
+ padding-top: $spacing-xlarge;
57
+ }