@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.
- package/.github/workflows/acceptance.yml +1 -1
- package/.github/workflows/deploy.yml +1 -1
- package/CHANGELOG.md +12 -0
- package/Makefile +1 -1
- package/README.md +1 -0
- package/package.json +2 -2
- package/src/components/Blocks/schema.js +5 -0
- package/src/index.js +39 -36
- package/src/theme/_bgcolor-blocks-layout.scss +5 -0
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
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.
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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 = {
|