design-comuni-plone-theme 11.13.0 → 11.15.0
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/main.yml +1 -1
- package/.github/workflows/performance.yml +1 -1
- package/.github/workflows/prs.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.yarn/cache/volto-editablefooter-npm-5.1.7-483b4be25b-ad5642959b.zip +0 -0
- package/.yarn/cache/{volto-form-block-npm-3.8.5-43ba012c00-db8d56e91b.zip → volto-form-block-npm-3.8.7-d78dca483b-8c014bdf2d.zip} +0 -0
- package/.yarn/cache/{volto-gdpr-privacy-npm-2.2.6-d189f5d334-604badfe72.zip → volto-gdpr-privacy-npm-2.2.7-dd2359a788-beb301d21f.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +37 -0
- package/Makefile +1 -1
- package/RELEASE.md +12 -0
- package/package.json +5 -5
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +5 -1
- package/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +49 -45
- package/src/config/italiaConfig.js +3 -3
- package/src/customizations/volto/helpers/FormValidation/FormValidation.js +1 -1
- package/src/theme/_cms-ui.scss +5 -0
- package/.yarn/cache/volto-editablefooter-npm-5.1.6-2df484b3b6-0e479d49c4.zip +0 -0
- package/src/customizations/volto/components/manage/BlockChooser/BlockChooserButton.jsx +0 -157
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.15.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.14.0...v11.15.0) (2024-07-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* moved start and end date of incarico after incarico name ([#715](https://github.com/RedTurtle/design-comuni-plone-theme/issues/715)) ([c07c1ea](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c07c1ea41b3534ad0c05ba2b9990c7b1c8f226ff))
|
|
9
|
+
* update to volto 17.18.1 ([8896926](https://github.com/RedTurtle/design-comuni-plone-theme/commit/889692614b5728bd812754dea9191c5bcb127a0a))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* updated form validation customization ([f3d2e72](https://github.com/RedTurtle/design-comuni-plone-theme/commit/f3d2e72b47c8ce33326d0b4b5ca87daf9e874668))
|
|
15
|
+
* upgrade dependencies ([4ea3806](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4ea38067018f2bbd35566b4d70ed87e9362988ef))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Documentation
|
|
19
|
+
|
|
20
|
+
* updated publiccode and release log ([91a58b6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/91a58b6f124da03e10437c0ee4f48b9545d51ddf))
|
|
21
|
+
|
|
22
|
+
## [11.14.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.13.0...v11.14.0) (2024-06-21)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* button block pos editor ([#704](https://github.com/RedTurtle/design-comuni-plone-theme/issues/704)) ([8cf55af](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8cf55afe4d2864ec72a2eba166d9e838b2304899))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* megamenu active item ([#703](https://github.com/RedTurtle/design-comuni-plone-theme/issues/703)) ([f6668ef](https://github.com/RedTurtle/design-comuni-plone-theme/commit/f6668ef7e7f6eaf624a3c3bd2eaf557d7f32ac14))
|
|
33
|
+
* volto-form-block form result ([#700](https://github.com/RedTurtle/design-comuni-plone-theme/issues/700)) ([746502f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/746502f827359205374d54eda99ac4efd47502ba))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Documentation
|
|
37
|
+
|
|
38
|
+
* updated publiccode and release log ([309474a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/309474adfde862d56c35c9b0832925cc157ecef0))
|
|
39
|
+
|
|
3
40
|
## [11.13.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.9...v11.13.0) (2024-06-12)
|
|
4
41
|
|
|
5
42
|
|
package/Makefile
CHANGED
|
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
27
27
|
# ADDON ?= "design-comuni-plone-theme"
|
|
28
28
|
|
|
29
29
|
PLONE_VERSION=6
|
|
30
|
-
VOLTO_VERSION=17.
|
|
30
|
+
VOLTO_VERSION=17.18.1
|
|
31
31
|
|
|
32
32
|
ADDON_NAME='design-comuni-plone-theme'
|
|
33
33
|
ADDON_PATH='design-comuni-plone-theme'
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,18 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.15.0 (05/07/2024)
|
|
45
|
+
|
|
46
|
+
### Novità
|
|
47
|
+
|
|
48
|
+
- Le informazioni sulla data di inizio e fine incarico sul CT persona vengono ora mostrate subito dopo l'incarico.
|
|
49
|
+
|
|
50
|
+
## Versione 11.14.0 (21/06/2024)
|
|
51
|
+
|
|
52
|
+
### Migliorie
|
|
53
|
+
|
|
54
|
+
- Il pulsante di aggiunta dei blocchi è stato spostato nella parte bassa del blocco (non si trova più alla sua sinistra), per migliorare l'usabilità della gestione dei blocchi anche su mobile/tablet.
|
|
55
|
+
|
|
44
56
|
## Versione 11.13.0 (12/06/2024)
|
|
45
57
|
|
|
46
58
|
### Migliorie
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "design-comuni-plone-theme",
|
|
3
3
|
"description": "Volto Theme for Italia design guidelines",
|
|
4
4
|
"license": "GPL-v3",
|
|
5
|
-
"version": "11.
|
|
5
|
+
"version": "11.15.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
"volto-blocks-widget": "3.4.1",
|
|
150
150
|
"volto-data-grid-widget": "2.3.1",
|
|
151
151
|
"volto-dropdownmenu": "4.1.3",
|
|
152
|
-
"volto-editablefooter": "5.1.
|
|
152
|
+
"volto-editablefooter": "5.1.7",
|
|
153
153
|
"volto-feedback": "0.3.2",
|
|
154
|
-
"volto-form-block": "3.8.
|
|
155
|
-
"volto-gdpr-privacy": "2.2.
|
|
154
|
+
"volto-form-block": "3.8.7",
|
|
155
|
+
"volto-gdpr-privacy": "2.2.7",
|
|
156
156
|
"volto-google-analytics": "2.0.0",
|
|
157
157
|
"volto-multilingual-widget": "3.2.1",
|
|
158
158
|
"volto-querywidget-with-browser": "0.4.2",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"stylelint-prettier": "4.0.2"
|
|
199
199
|
},
|
|
200
200
|
"peerDependencies": {
|
|
201
|
-
"@plone/volto": "17.
|
|
201
|
+
"@plone/volto": "17.18.1"
|
|
202
202
|
},
|
|
203
203
|
"packageManager": "yarn@3.2.3"
|
|
204
204
|
}
|
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2024-
|
|
230
|
+
releaseDate: '2024-07-05'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.
|
|
232
|
+
softwareVersion: 11.15.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -66,7 +66,10 @@ const isActive = (item, pathname) => {
|
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
const isChildActive = (itemUrl, pathname) => {
|
|
69
|
+
const isChildActive = (itemUrl, pathname, exact = false) => {
|
|
70
|
+
if (exact) {
|
|
71
|
+
return itemUrl === pathname;
|
|
72
|
+
}
|
|
70
73
|
return pathname.indexOf(itemUrl) > -1;
|
|
71
74
|
};
|
|
72
75
|
|
|
@@ -328,6 +331,7 @@ const MegaMenu = ({ item, pathname }) => {
|
|
|
328
331
|
active: isChildActive(
|
|
329
332
|
flattenToAppURL(child['@id']),
|
|
330
333
|
pathname,
|
|
334
|
+
true,
|
|
331
335
|
),
|
|
332
336
|
})}
|
|
333
337
|
role="menuitem"
|
|
@@ -90,7 +90,10 @@ const PersonaRuolo = ({ content }) => {
|
|
|
90
90
|
tag_id="incarico"
|
|
91
91
|
title={intl.formatMessage(messages.ruolo)}
|
|
92
92
|
>
|
|
93
|
-
<div
|
|
93
|
+
<div
|
|
94
|
+
className="font-serif mb-3"
|
|
95
|
+
key={content?.incarichi_persona[0]?.id}
|
|
96
|
+
>
|
|
94
97
|
<p>{content?.incarichi_persona[0]?.title}</p>
|
|
95
98
|
{content?.incarichi_persona[0]?.atto_di_nomina && (
|
|
96
99
|
<UniversalLink
|
|
@@ -100,6 +103,51 @@ const PersonaRuolo = ({ content }) => {
|
|
|
100
103
|
</UniversalLink>
|
|
101
104
|
)}
|
|
102
105
|
</div>
|
|
106
|
+
|
|
107
|
+
{content.incarichi_persona[0].data_inizio_incarico && (
|
|
108
|
+
<RichTextSection
|
|
109
|
+
tag_id="data_inizio_incarico"
|
|
110
|
+
title={intl.formatMessage(messages.data_inizio_incarico)}
|
|
111
|
+
>
|
|
112
|
+
<div className="font-serif">
|
|
113
|
+
{viewDate(
|
|
114
|
+
intl.locale,
|
|
115
|
+
content.incarichi_persona[0].data_inizio_incarico,
|
|
116
|
+
'DD MMMM Y',
|
|
117
|
+
)}
|
|
118
|
+
</div>
|
|
119
|
+
</RichTextSection>
|
|
120
|
+
)}
|
|
121
|
+
{content.incarichi_persona[0].data_conclusione_incarico && (
|
|
122
|
+
<RichTextSection
|
|
123
|
+
tag_id="data_conclusione_incarico"
|
|
124
|
+
title={intl.formatMessage(messages.data_conclusione_incarico, {
|
|
125
|
+
incarico: content.incarichi_persona[0].title,
|
|
126
|
+
})}
|
|
127
|
+
>
|
|
128
|
+
<div className="font-serif">
|
|
129
|
+
{viewDate(
|
|
130
|
+
intl.locale,
|
|
131
|
+
content.incarichi_persona[0].data_conclusione_incarico,
|
|
132
|
+
'DD MMMM Y',
|
|
133
|
+
)}
|
|
134
|
+
</div>
|
|
135
|
+
</RichTextSection>
|
|
136
|
+
)}
|
|
137
|
+
{content.incarichi_persona[0].data_insediamento && (
|
|
138
|
+
<RichTextSection
|
|
139
|
+
tag_id="data_insediamento"
|
|
140
|
+
title={intl.formatMessage(messages.data_insediamento)}
|
|
141
|
+
>
|
|
142
|
+
<div className="font-serif">
|
|
143
|
+
{viewDate(
|
|
144
|
+
intl.locale,
|
|
145
|
+
content.incarichi_persona[0].data_insediamento,
|
|
146
|
+
'DD MMMM Y',
|
|
147
|
+
)}
|
|
148
|
+
</div>
|
|
149
|
+
</RichTextSection>
|
|
150
|
+
)}
|
|
103
151
|
</RichTextSection>
|
|
104
152
|
{content.incarichi_persona[0]?.tipologia_incarico?.title && (
|
|
105
153
|
<RichTextSection
|
|
@@ -191,50 +239,6 @@ const PersonaRuolo = ({ content }) => {
|
|
|
191
239
|
)}
|
|
192
240
|
</RichTextSection>
|
|
193
241
|
)}
|
|
194
|
-
{content.incarichi_persona[0].data_insediamento && (
|
|
195
|
-
<RichTextSection
|
|
196
|
-
tag_id="data_insediamento"
|
|
197
|
-
title={intl.formatMessage(messages.data_insediamento)}
|
|
198
|
-
>
|
|
199
|
-
<div className="font-serif">
|
|
200
|
-
{viewDate(
|
|
201
|
-
intl.locale,
|
|
202
|
-
content.incarichi_persona[0].data_insediamento,
|
|
203
|
-
'DD MMMM Y',
|
|
204
|
-
)}
|
|
205
|
-
</div>
|
|
206
|
-
</RichTextSection>
|
|
207
|
-
)}
|
|
208
|
-
{content.incarichi_persona[0].data_inizio_incarico && (
|
|
209
|
-
<RichTextSection
|
|
210
|
-
tag_id="data_inizio_incarico"
|
|
211
|
-
title={intl.formatMessage(messages.data_inizio_incarico)}
|
|
212
|
-
>
|
|
213
|
-
<div className="font-serif">
|
|
214
|
-
{viewDate(
|
|
215
|
-
intl.locale,
|
|
216
|
-
content.incarichi_persona[0].data_inizio_incarico,
|
|
217
|
-
'DD MMMM Y',
|
|
218
|
-
)}
|
|
219
|
-
</div>
|
|
220
|
-
</RichTextSection>
|
|
221
|
-
)}
|
|
222
|
-
{content.incarichi_persona[0].data_conclusione_incarico && (
|
|
223
|
-
<RichTextSection
|
|
224
|
-
tag_id="data_conclusione_incarico"
|
|
225
|
-
title={intl.formatMessage(messages.data_conclusione_incarico, {
|
|
226
|
-
incarico: content.incarichi_persona[0].title,
|
|
227
|
-
})}
|
|
228
|
-
>
|
|
229
|
-
<div className="font-serif">
|
|
230
|
-
{viewDate(
|
|
231
|
-
intl.locale,
|
|
232
|
-
content.incarichi_persona[0].data_conclusione_incarico,
|
|
233
|
-
'DD MMMM Y',
|
|
234
|
-
)}
|
|
235
|
-
</div>
|
|
236
|
-
</RichTextSection>
|
|
237
|
-
)}
|
|
238
242
|
</>
|
|
239
243
|
)}
|
|
240
244
|
|
|
@@ -66,8 +66,8 @@ import { schemaListing } from 'design-comuni-plone-theme/components/ItaliaTheme/
|
|
|
66
66
|
|
|
67
67
|
import reducers from 'design-comuni-plone-theme/reducers';
|
|
68
68
|
|
|
69
|
-
const ReleaseLog = loadable(
|
|
70
|
-
|
|
69
|
+
const ReleaseLog = loadable(() =>
|
|
70
|
+
import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
|
|
71
71
|
);
|
|
72
72
|
|
|
73
73
|
const messages = defineMessages({
|
|
@@ -84,7 +84,7 @@ export default function applyConfig(voltoConfig) {
|
|
|
84
84
|
* SETTINGS
|
|
85
85
|
******************************************************************************/
|
|
86
86
|
const voltoSentryOptions = voltoConfig.settings.sentryOptions;
|
|
87
|
-
|
|
87
|
+
config.experimental.addBlockButton.enabled = true; //per spostare il bottone di aggiunta dei blocchi in basso, e fare in modo che i bottoni di edit dei blocchi siano usabili anche da tablet/mobile
|
|
88
88
|
config.settings = {
|
|
89
89
|
...config.settings,
|
|
90
90
|
openExternalLinkInNewTab: true,
|
|
@@ -188,7 +188,7 @@ const widgetValidation = {
|
|
|
188
188
|
* The string that comes my not be a valid JSON
|
|
189
189
|
* @param {string} requestItem
|
|
190
190
|
*/
|
|
191
|
-
const tryParseJSON = (requestItem) => {
|
|
191
|
+
export const tryParseJSON = (requestItem) => {
|
|
192
192
|
let resultObj = null;
|
|
193
193
|
try {
|
|
194
194
|
resultObj = JSON.parse(requestItem);
|
package/src/theme/_cms-ui.scss
CHANGED
|
Binary file
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/* CUSTOMIZATIONS
|
|
2
|
-
- zindex for handling overlapping in small pages
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { doesNodeContainClick } from 'semantic-ui-react/dist/commonjs/lib';
|
|
7
|
-
import addSVG from '@plone/volto/icons/circle-plus.svg';
|
|
8
|
-
import { blockHasValue } from '@plone/volto/helpers';
|
|
9
|
-
import { Icon, BlockChooser } from '@plone/volto/components';
|
|
10
|
-
import config from '@plone/volto/registry';
|
|
11
|
-
import { Button, Ref } from 'semantic-ui-react';
|
|
12
|
-
import { defineMessages, useIntl } from 'react-intl';
|
|
13
|
-
import { usePopper } from 'react-popper';
|
|
14
|
-
import { Portal } from 'react-portal';
|
|
15
|
-
|
|
16
|
-
const messages = defineMessages({
|
|
17
|
-
addBlock: {
|
|
18
|
-
id: 'Add block',
|
|
19
|
-
defaultMessage: 'Add block',
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export const ButtonComponent = (props) => {
|
|
24
|
-
const intl = useIntl();
|
|
25
|
-
const {
|
|
26
|
-
className = `block-add-button${
|
|
27
|
-
config.experimental.addBlockButton.enabled ? ' new-add-block' : ''
|
|
28
|
-
}`,
|
|
29
|
-
size = '19px',
|
|
30
|
-
onShowBlockChooser,
|
|
31
|
-
} = props;
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<Button
|
|
35
|
-
icon
|
|
36
|
-
basic
|
|
37
|
-
title={intl.formatMessage(messages.addBlock)}
|
|
38
|
-
onClick={(e) => {
|
|
39
|
-
e.preventDefault();
|
|
40
|
-
e.stopPropagation();
|
|
41
|
-
onShowBlockChooser();
|
|
42
|
-
}}
|
|
43
|
-
className={className}
|
|
44
|
-
>
|
|
45
|
-
<Icon name={addSVG} className={className} size={size} />
|
|
46
|
-
</Button>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const BlockChooserButton = (props) => {
|
|
51
|
-
const {
|
|
52
|
-
block,
|
|
53
|
-
allowedBlocks,
|
|
54
|
-
showRestricted,
|
|
55
|
-
data,
|
|
56
|
-
onMutateBlock,
|
|
57
|
-
onInsertBlock,
|
|
58
|
-
blocksConfig,
|
|
59
|
-
buttonComponent,
|
|
60
|
-
properties,
|
|
61
|
-
} = props;
|
|
62
|
-
const { disableNewBlocks } = data;
|
|
63
|
-
const [addNewBlockOpened, setAddNewBlockOpened] = React.useState(false);
|
|
64
|
-
|
|
65
|
-
const blockChooserRef = React.useRef();
|
|
66
|
-
|
|
67
|
-
const handleClickOutside = React.useCallback((e) => {
|
|
68
|
-
if (
|
|
69
|
-
blockChooserRef.current &&
|
|
70
|
-
doesNodeContainClick(blockChooserRef.current, e)
|
|
71
|
-
)
|
|
72
|
-
return;
|
|
73
|
-
setAddNewBlockOpened(false);
|
|
74
|
-
}, []);
|
|
75
|
-
|
|
76
|
-
const Component = buttonComponent || ButtonComponent;
|
|
77
|
-
|
|
78
|
-
React.useEffect(() => {
|
|
79
|
-
document.addEventListener('mousedown', handleClickOutside, false);
|
|
80
|
-
return () => {
|
|
81
|
-
document.removeEventListener('mousedown', handleClickOutside, false);
|
|
82
|
-
};
|
|
83
|
-
}, [handleClickOutside]);
|
|
84
|
-
|
|
85
|
-
const [referenceElement, setReferenceElement] = React.useState(null);
|
|
86
|
-
const [popperElement, setPopperElement] = React.useState(null);
|
|
87
|
-
const { styles, attributes } = usePopper(referenceElement, popperElement, {
|
|
88
|
-
placement: config.experimental.addBlockButton.enabled
|
|
89
|
-
? 'bottom'
|
|
90
|
-
: 'right-start',
|
|
91
|
-
modifiers: [
|
|
92
|
-
{
|
|
93
|
-
name: 'offset',
|
|
94
|
-
options: {
|
|
95
|
-
offset: [-10, 5],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'flip',
|
|
100
|
-
options: {
|
|
101
|
-
fallbackPlacements: ['right-end', 'top-start'],
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
return (
|
|
108
|
-
<>
|
|
109
|
-
{!disableNewBlocks &&
|
|
110
|
-
(config.experimental.addBlockButton.enabled ||
|
|
111
|
-
!blockHasValue(data)) && (
|
|
112
|
-
<Ref innerRef={setReferenceElement}>
|
|
113
|
-
<Component
|
|
114
|
-
{...props}
|
|
115
|
-
onShowBlockChooser={() => setAddNewBlockOpened(true)}
|
|
116
|
-
/>
|
|
117
|
-
</Ref>
|
|
118
|
-
)}
|
|
119
|
-
{addNewBlockOpened && (
|
|
120
|
-
<Portal node={document.getElementById('body')}>
|
|
121
|
-
<div
|
|
122
|
-
ref={setPopperElement}
|
|
123
|
-
style={{ ...styles.popper, zIndex: 1000 }}
|
|
124
|
-
{...attributes.popper}
|
|
125
|
-
>
|
|
126
|
-
<BlockChooser
|
|
127
|
-
onMutateBlock={
|
|
128
|
-
onMutateBlock
|
|
129
|
-
? (id, value) => {
|
|
130
|
-
setAddNewBlockOpened(false);
|
|
131
|
-
onMutateBlock(id, value);
|
|
132
|
-
}
|
|
133
|
-
: null
|
|
134
|
-
}
|
|
135
|
-
onInsertBlock={
|
|
136
|
-
onInsertBlock
|
|
137
|
-
? (id, value) => {
|
|
138
|
-
setAddNewBlockOpened(false);
|
|
139
|
-
onInsertBlock(id, value);
|
|
140
|
-
}
|
|
141
|
-
: null
|
|
142
|
-
}
|
|
143
|
-
currentBlock={block}
|
|
144
|
-
allowedBlocks={allowedBlocks}
|
|
145
|
-
blocksConfig={blocksConfig}
|
|
146
|
-
properties={properties}
|
|
147
|
-
showRestricted={showRestricted}
|
|
148
|
-
ref={blockChooserRef}
|
|
149
|
-
/>
|
|
150
|
-
</div>
|
|
151
|
-
</Portal>
|
|
152
|
-
)}
|
|
153
|
-
</>
|
|
154
|
-
);
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export default BlockChooserButton;
|