design-comuni-plone-theme 11.10.1 → 12.0.0-alpha.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/slate.yml +47 -0
- package/.yarn/cache/@babel-helper-module-imports-npm-7.24.3-edb733448b-c23492189b.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-4b574a37d4.zip +0 -0
- package/.yarn/cache/babel-plugin-lodash-npm-3.3.4-c7161075b6-044a4261e6.zip +0 -0
- package/.yarn/cache/require-package-name-npm-2.0.1-ac9a206b63-00f4e9e467.zip +0 -0
- package/.yarn/cache/{volto-form-block-npm-3.7.2-f24953a510-7387a1b85a.zip → volto-form-block-npm-3.8.2-e49cbe07d5-5b72a06a5e.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +878 -904
- package/RELEASE.md +8 -0
- package/locales/de/LC_MESSAGES/volto.po +86 -18
- package/locales/en/LC_MESSAGES/volto.po +86 -18
- package/locales/es/LC_MESSAGES/volto.po +86 -18
- package/locales/fr/LC_MESSAGES/volto.po +86 -18
- package/locales/it/LC_MESSAGES/volto.po +86 -18
- package/locales/volto.pot +87 -19
- package/package.json +4 -2
- package/publiccode.yml +2 -2
- package/src/components/Collapse.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/Accordion/Block/EditBlock.jsx +29 -24
- package/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx +4 -12
- package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +67 -6
- package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +60 -113
- package/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/Alert/View.jsx +5 -14
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Block.jsx +16 -11
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Body.jsx +2 -1
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +39 -1
- package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +35 -95
- package/src/components/ItaliaTheme/Blocks/Callout/Edit.jsx +108 -0
- package/src/components/ItaliaTheme/Blocks/Callout/Sidebar.jsx +173 -0
- package/src/components/ItaliaTheme/Blocks/Callout/View.jsx +45 -0
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock.jsx +84 -63
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/ViewBlock.jsx +19 -39
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +92 -19
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/View.jsx +13 -21
- package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +21 -25
- package/src/components/ItaliaTheme/Blocks/CountDown/View.jsx +6 -15
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock.jsx +40 -15
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +6 -21
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +93 -20
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +1 -9
- package/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +4 -17
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock.jsx +46 -15
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/ViewBlock.jsx +2 -18
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +84 -11
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx +2 -11
- package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Block.jsx +33 -67
- package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +2 -8
- package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/BodyWrapper.jsx +2 -1
- package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Edit.jsx +98 -84
- package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/View.jsx +20 -3
- package/src/components/ItaliaTheme/Blocks/__tests__/Accordion.test.jsx +11 -28
- package/src/components/ItaliaTheme/Blocks/__tests__/Alert.test.jsx +10 -14
- package/src/components/ItaliaTheme/Blocks/__tests__/ArgumentsInEvidence.test.jsx +20 -28
- package/src/components/ItaliaTheme/Blocks/__tests__/CTABlock.test.jsx +14 -29
- package/src/components/ItaliaTheme/Blocks/__tests__/CardWithImage.test.jsx +11 -28
- package/src/components/ItaliaTheme/Blocks/__tests__/ContactsBlock.test.jsx +75 -140
- package/src/components/ItaliaTheme/Blocks/__tests__/Countdown.test.jsx +20 -28
- package/src/components/ItaliaTheme/Blocks/__tests__/IconBlocks.test.jsx +22 -56
- package/src/components/ItaliaTheme/Blocks/__tests__/NumbersBlock.test.jsx +14 -43
- package/src/components/ItaliaTheme/Blocks/__tests__/SimpleCard.test.jsx +14 -30
- package/src/components/ItaliaTheme/Footer/FooterInfos.jsx +22 -8
- package/src/components/ItaliaTheme/Footer/FooterNavigation.jsx +3 -3
- package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +5 -1
- package/src/components/ItaliaTheme/Slider/SingleSlideWrapper.jsx +2 -3
- package/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +1 -2
- package/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx +14 -5
- package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +19 -3
- package/src/components/ItaliaTheme/View/Commons/Attachments.jsx +0 -1
- package/src/components/ItaliaTheme/View/Commons/DownloadFileFormat.jsx +11 -7
- package/src/components/ItaliaTheme/View/Commons/Module.jsx +7 -6
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderLinkServizio.jsx +6 -2
- package/src/components/ItaliaTheme/View/Commons/RichTextRender.jsx +8 -6
- package/src/components/ItaliaTheme/View/Commons/__tests__/RichText.test.jsx +14 -17
- package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +5 -6
- package/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +4 -0
- package/src/components/ItaliaTheme/View/__tests__/CartellaModulisticaView.test.jsx +12 -1
- package/src/components/ItaliaTheme/View/__tests__/IncaricoView.test.jsx +24 -30
- package/src/components/ItaliaTheme/View/__tests__/PageView.test.jsx +24 -2
- package/src/components/ItaliaTheme/View/__tests__/PersonaView.test.jsx +96 -92
- package/src/components/ItaliaTheme/View/__tests__/ServizioAChiSiRivolge.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioAccedi.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioCasiParticolari.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioComeFare.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioCondizioni.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioContatti.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioCosE.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioCosaServe.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioCosaSiOttiene.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioCostiVincoli.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioMetadati.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioModulistica.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioProcedure.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioSitiEsterni.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioTempiScadenze.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioUlterioriInformazioni.test.jsx +240 -286
- package/src/components/ItaliaTheme/View/__tests__/ServizioView.test.jsx +470 -560
- package/src/components/ItaliaTheme/View/__tests__/TrasparenzaView.test.jsx +12 -1
- package/src/components/ItaliaTheme/manage/Widgets/ColorListWidget.jsx +11 -2
- package/src/components/ItaliaTheme/manage/Widgets/HtmlSlateWidget.jsx +154 -0
- package/src/components/ItaliaTheme/manage/Widgets/RichTextWidget.jsx +88 -0
- package/src/components/ItaliaTheme/manage/Widgets/SimpleTextEditorWidget.jsx +158 -0
- package/src/components/ItaliaTheme/manage/Widgets/TextEditorWidget.jsx +167 -270
- package/src/config/Blocks/ListingOptions/index.js +0 -1
- package/src/config/Blocks/ListingOptions/utils.js +0 -7
- package/src/config/Blocks/blocks.js +29 -8
- package/src/config/Blocks/listingVariations.js +1 -1
- package/src/config/Slate/Alignment/AlignMenu.jsx +169 -0
- package/src/config/Slate/Alignment/index.js +42 -0
- package/src/config/Slate/Blockquote/BlockquoteMenu.jsx +151 -0
- package/src/config/Slate/Blockquote/index.js +12 -0
- package/src/config/Slate/Headings/HeadingsMenu.jsx +139 -0
- package/src/config/Slate/Headings/headingsMenu.scss +44 -0
- package/src/config/Slate/Headings/index.js +62 -0
- package/src/config/Slate/Link/deserializer.js +25 -0
- package/src/config/Slate/Link/index.js +126 -0
- package/src/config/Slate/Link/renderer.jsx +99 -0
- package/src/config/Slate/LinkButton/index.js +47 -0
- package/src/config/Slate/TextLarger/index.js +51 -0
- package/src/config/Slate/Underline/index.js +10 -0
- package/src/config/Slate/config.js +43 -0
- package/src/config/Slate/deserializers.js +66 -0
- package/src/config/Slate/dropdownStyle.scss +14 -0
- package/src/config/Slate/dropdownUtils.js +422 -0
- package/src/config/Slate/extensions/breakList.js +91 -0
- package/src/config/Slate/handlers.js +243 -0
- package/src/config/Slate/utils.js +73 -0
- package/src/config/Widgets/widgets.js +1 -2
- package/src/config/italiaConfig.js +7 -54
- package/src/customizations/volto/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +360 -0
- package/src/customizations/volto/components/manage/Blocks/HeroImageLeft/Edit.jsx +75 -200
- package/src/customizations/volto/components/manage/Blocks/Video/Edit.jsx +1 -1
- package/src/customizations/volto/components/manage/Form/BlocksToolbar.jsx +1 -1
- package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +59 -6
- package/src/customizations/volto-form-block/components/Field.jsx +45 -22
- package/src/customizations/volto-form-block/components/FormResult.jsx +74 -0
- package/src/customizations/volto-form-block/components/FormView.jsx +79 -66
- package/src/customizations/volto-form-block/components/Widget/Button.jsx +50 -0
- package/src/helpers/EnhanceLink.js +44 -0
- package/src/helpers/FormValidation/FormValidationHelpers.js +3 -0
- package/src/helpers/blocks.js +86 -0
- package/src/helpers/files.js +14 -14
- package/src/helpers/index.js +4 -3
- package/src/helpers/richTextHelper.js +10 -0
- package/src/icons/Group.svg +1 -0
- package/src/icons/blocco-icone.svg +0 -3
- package/src/icons/blockquote-card-dark.svg +1 -0
- package/src/icons/blockquote-card.svg +1 -0
- package/src/icons/blockquote-simple.svg +1 -0
- package/src/icons/text-larger.svg +1 -0
- package/src/theme/ItaliaTheme/Blocks/_accordion.scss +1 -10
- package/src/theme/ItaliaTheme/Blocks/_alert.scss +53 -1
- package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +1 -0
- package/src/theme/ItaliaTheme/Blocks/_callout.scss +32 -0
- package/src/theme/ItaliaTheme/Blocks/_contacts.scss +15 -32
- package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +0 -14
- package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +1 -1
- package/src/theme/ItaliaTheme/Blocks/_hero.scss +1 -8
- package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +0 -30
- package/src/theme/ItaliaTheme/Blocks/_imageCardTextBlock.scss +3 -2
- package/src/theme/ItaliaTheme/Blocks/_numbers.scss +1 -5
- package/src/theme/ItaliaTheme/Blocks/_simpleCardTextBlock.scss +8 -2
- package/src/theme/ItaliaTheme/Blocks/_tableOfContents.scss +1 -0
- package/src/theme/ItaliaTheme/Components/_megamenu.scss +0 -4
- package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_cta.scss +1 -0
- package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss +1 -0
- package/src/theme/ItaliaTheme/Subsites/bootstrap-italia/custom/_headercenter.scss +1 -0
- package/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss +11 -2
- package/src/theme/ItaliaTheme/Views/_slider.scss +3 -3
- package/src/theme/ItaliaTheme/Widgets/_iconWidget.scss +4 -0
- package/src/theme/ItaliaTheme/_main.scss +42 -54
- package/src/theme/_cms-ui.scss +59 -161
- package/src/theme/extras/_forms.scss +2 -14
- package/src/theme/site.scss +1 -0
- package/test-setup-config.js +58 -0
- package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Block.jsx +0 -151
- package/src/config/RichTextEditor/LinkEntity.jsx +0 -27
- package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/Link/index.jsx +0 -44
- package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +0 -349
- package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/LinkButton/index.js +0 -150
- package/src/config/RichTextEditor/Plugins/AnchorPlugin/index.js +0 -88
- package/src/config/RichTextEditor/ToolbarButtons/AlignButton.jsx +0 -61
- package/src/config/RichTextEditor/ToolbarButtons/ButtonsButton.jsx +0 -14
- package/src/config/RichTextEditor/ToolbarButtons/CalloutsButton.jsx +0 -38
- package/src/config/RichTextEditor/ToolbarButtons/DraftJsDropdownButton.jsx +0 -106
- package/src/config/RichTextEditor/ToolbarButtons/HeadingsButton.jsx +0 -57
- package/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx +0 -65
- package/src/config/RichTextEditor/ToolbarButtons/UnderlineButton.jsx +0 -14
- package/src/config/RichTextEditor/config.js +0 -253
- package/src/config/volto-gdpr-privacy-defaultPanelConfig.js +0 -292
- package/src/customizations/volto/components/manage/Blocks/ToC/View.jsx +0 -134
- package/src/customizations/volto/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +0 -99
- package/src/customizations/volto/config/RichTextEditor/Plugins.jsx +0 -63
- package/src/helpers/redraftHelper.js +0 -9
|
@@ -607,20 +607,16 @@ const mock_fields = {
|
|
|
607
607
|
},
|
|
608
608
|
],
|
|
609
609
|
id: '1675259976943',
|
|
610
|
-
title:
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
},
|
|
621
|
-
],
|
|
622
|
-
entityMap: {},
|
|
623
|
-
},
|
|
610
|
+
title: [
|
|
611
|
+
{
|
|
612
|
+
type: 'p',
|
|
613
|
+
children: [
|
|
614
|
+
{
|
|
615
|
+
text: 'Gunpowder',
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
},
|
|
619
|
+
],
|
|
624
620
|
},
|
|
625
621
|
{
|
|
626
622
|
argument: [
|
|
@@ -879,20 +875,16 @@ const mock_fields = {
|
|
|
879
875
|
},
|
|
880
876
|
],
|
|
881
877
|
id: '1675262982489',
|
|
882
|
-
title:
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
},
|
|
893
|
-
],
|
|
894
|
-
entityMap: {},
|
|
895
|
-
},
|
|
878
|
+
title: [
|
|
879
|
+
{
|
|
880
|
+
type: 'p',
|
|
881
|
+
children: [
|
|
882
|
+
{
|
|
883
|
+
text: 'Gelatine',
|
|
884
|
+
},
|
|
885
|
+
],
|
|
886
|
+
},
|
|
887
|
+
],
|
|
896
888
|
},
|
|
897
889
|
],
|
|
898
890
|
text: "She's a killer queen",
|
|
@@ -59,7 +59,8 @@ const mock_fields = {
|
|
|
59
59
|
has_children: false,
|
|
60
60
|
head_title: null,
|
|
61
61
|
icona: null,
|
|
62
|
-
id:
|
|
62
|
+
id:
|
|
63
|
+
'business-teamwork-join-hands-together-business-teamwork-concept_1150-1804.webp',
|
|
63
64
|
image: {
|
|
64
65
|
scales: {
|
|
65
66
|
gallery: {
|
|
@@ -286,34 +287,18 @@ const mock_fields = {
|
|
|
286
287
|
],
|
|
287
288
|
ctaLink: 'http://localhost:3000/eventi',
|
|
288
289
|
ctaLinkTitle: 'In conversation',
|
|
289
|
-
cta_content:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
entityMap: {},
|
|
302
|
-
},
|
|
303
|
-
cta_title: {
|
|
304
|
-
blocks: [
|
|
305
|
-
{
|
|
306
|
-
data: {},
|
|
307
|
-
depth: 0,
|
|
308
|
-
entityRanges: [],
|
|
309
|
-
inlineStyleRanges: [],
|
|
310
|
-
key: 'd77m6',
|
|
311
|
-
text: 'To avoid complications',
|
|
312
|
-
type: 'unstyled',
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
entityMap: {},
|
|
316
|
-
},
|
|
290
|
+
cta_content: [
|
|
291
|
+
{
|
|
292
|
+
children: [
|
|
293
|
+
{
|
|
294
|
+
text: 'She never kept the same address',
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
type: 'p',
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
|
|
301
|
+
cta_title: 'To avoid complications',
|
|
317
302
|
showFullWidth: true,
|
|
318
303
|
showImage: true,
|
|
319
304
|
};
|
|
@@ -18,34 +18,17 @@ const mock_fields = {
|
|
|
18
18
|
encoding: 'base64',
|
|
19
19
|
filename: 'fisiatria.jpeg',
|
|
20
20
|
},
|
|
21
|
-
image_card_content:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
],
|
|
33
|
-
entityMap: {},
|
|
34
|
-
},
|
|
35
|
-
image_card_title: {
|
|
36
|
-
blocks: [
|
|
37
|
-
{
|
|
38
|
-
data: {},
|
|
39
|
-
depth: 0,
|
|
40
|
-
entityRanges: [],
|
|
41
|
-
inlineStyleRanges: [],
|
|
42
|
-
key: '61l6b',
|
|
43
|
-
text: 'Is this the real life?',
|
|
44
|
-
type: 'unstyled',
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
entityMap: {},
|
|
48
|
-
},
|
|
21
|
+
image_card_content: [
|
|
22
|
+
{
|
|
23
|
+
children: [
|
|
24
|
+
{
|
|
25
|
+
text: 'Is this just fantasy?',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
type: 'p',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
image_card_title: 'Is this the real life?',
|
|
49
32
|
rightImage: true,
|
|
50
33
|
showImage: true,
|
|
51
34
|
sizeNatural: true,
|
|
@@ -13,157 +13,92 @@ const mockStore = configureStore(middlewares);
|
|
|
13
13
|
const mock_fields = {
|
|
14
14
|
'@type': 'contacts',
|
|
15
15
|
bg_color: 'primary',
|
|
16
|
-
description:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
entityMap: {},
|
|
29
|
-
},
|
|
16
|
+
description: [
|
|
17
|
+
{
|
|
18
|
+
children: [
|
|
19
|
+
{
|
|
20
|
+
text: 'Let them eat cake',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
type: 'p',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
30
26
|
href: 'http://localhost:3000/eventi',
|
|
31
27
|
lastChange: 1675330752814,
|
|
32
28
|
linkMoreTitle: 'Extraordinarily nice',
|
|
33
29
|
subblocks: [
|
|
34
30
|
{
|
|
35
|
-
email:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
],
|
|
47
|
-
entityMap: {},
|
|
48
|
-
},
|
|
31
|
+
email: [
|
|
32
|
+
{
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
text: 'For Khrushchev and Kennedy',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
type: 'p',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
|
|
49
42
|
id: '1675328833526',
|
|
50
|
-
tel:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
key: '797hd',
|
|
72
|
-
text: 'Just like Mary Antoinette',
|
|
73
|
-
type: 'unstyled',
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
entityMap: {},
|
|
77
|
-
},
|
|
78
|
-
title: {
|
|
79
|
-
blocks: [
|
|
80
|
-
{
|
|
81
|
-
data: {},
|
|
82
|
-
depth: 0,
|
|
83
|
-
entityRanges: [],
|
|
84
|
-
inlineStyleRanges: [],
|
|
85
|
-
key: 'cue58',
|
|
86
|
-
text: 'She said',
|
|
87
|
-
type: 'unstyled',
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
entityMap: {},
|
|
91
|
-
},
|
|
43
|
+
tel: [
|
|
44
|
+
{
|
|
45
|
+
children: [
|
|
46
|
+
{
|
|
47
|
+
text: 'A built-in remedy',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
type: 'p',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
text: [
|
|
54
|
+
{
|
|
55
|
+
children: [
|
|
56
|
+
{
|
|
57
|
+
text: 'Just like Mary Antoinette',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
type: 'p',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
title: 'She said',
|
|
92
64
|
},
|
|
93
65
|
{
|
|
94
|
-
email:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
entityMap: {},
|
|
107
|
-
},
|
|
66
|
+
email: [
|
|
67
|
+
{
|
|
68
|
+
children: [
|
|
69
|
+
{
|
|
70
|
+
text: 'Well versed in etiquette',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
type: 'p',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
108
76
|
id: '1675330720693',
|
|
109
|
-
tel:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
text: "You can't decline",
|
|
132
|
-
type: 'unstyled',
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
entityMap: {},
|
|
136
|
-
},
|
|
137
|
-
title: {
|
|
138
|
-
blocks: [
|
|
139
|
-
{
|
|
140
|
-
data: {},
|
|
141
|
-
depth: 0,
|
|
142
|
-
entityRanges: [],
|
|
143
|
-
inlineStyleRanges: [],
|
|
144
|
-
key: '999ad',
|
|
145
|
-
text: 'At anytime an invitation',
|
|
146
|
-
type: 'unstyled',
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
entityMap: {},
|
|
150
|
-
},
|
|
77
|
+
tel: [
|
|
78
|
+
{
|
|
79
|
+
children: [
|
|
80
|
+
{
|
|
81
|
+
text: 'Caviar and cigarettes',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
type: 'p',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
|
|
88
|
+
text: [
|
|
89
|
+
{
|
|
90
|
+
children: [
|
|
91
|
+
{
|
|
92
|
+
text: "You can't decline",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
type: 'p',
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
title: 'At anytime an invitation',
|
|
151
99
|
},
|
|
152
100
|
],
|
|
153
|
-
title:
|
|
154
|
-
blocks: [
|
|
155
|
-
{
|
|
156
|
-
data: {},
|
|
157
|
-
depth: 0,
|
|
158
|
-
entityRanges: [],
|
|
159
|
-
inlineStyleRanges: [],
|
|
160
|
-
key: '12dh5',
|
|
161
|
-
text: 'In her pretty cabinet',
|
|
162
|
-
type: 'unstyled',
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
entityMap: {},
|
|
166
|
-
},
|
|
101
|
+
title: 'In her pretty cabinet',
|
|
167
102
|
};
|
|
168
103
|
|
|
169
104
|
const store = mockStore({
|
|
@@ -202,40 +202,32 @@ const mock_fields = {
|
|
|
202
202
|
whole_day: null,
|
|
203
203
|
},
|
|
204
204
|
],
|
|
205
|
-
countdown_text:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
],
|
|
217
|
-
entityMap: {},
|
|
218
|
-
},
|
|
205
|
+
countdown_text: [
|
|
206
|
+
{
|
|
207
|
+
children: [
|
|
208
|
+
{
|
|
209
|
+
text: 'Insatiable an appetite',
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
type: 'p',
|
|
213
|
+
},
|
|
214
|
+
],
|
|
219
215
|
countDownPosition: 'right',
|
|
220
216
|
endDate: '2050-02-28T09:48:37.327Z',
|
|
221
217
|
showFullWidth: true,
|
|
222
218
|
showHours: true,
|
|
223
219
|
showMinutes: true,
|
|
224
220
|
showSeconds: true,
|
|
225
|
-
text:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
entityMap: {},
|
|
238
|
-
},
|
|
221
|
+
text: [
|
|
222
|
+
{
|
|
223
|
+
children: [
|
|
224
|
+
{
|
|
225
|
+
text: 'Recommended at the price',
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
type: 'p',
|
|
229
|
+
},
|
|
230
|
+
],
|
|
239
231
|
};
|
|
240
232
|
|
|
241
233
|
const store = mockStore({
|
|
@@ -284,20 +284,16 @@ const mock_fields = {
|
|
|
284
284
|
whole_day: null,
|
|
285
285
|
},
|
|
286
286
|
],
|
|
287
|
-
description:
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
entityMap: {},
|
|
300
|
-
},
|
|
287
|
+
description: [
|
|
288
|
+
{
|
|
289
|
+
children: [
|
|
290
|
+
{
|
|
291
|
+
text: 'With his brim pulled way down low',
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
type: 'p',
|
|
295
|
+
},
|
|
296
|
+
],
|
|
301
297
|
href: '/',
|
|
302
298
|
lastChange: 1675437158941,
|
|
303
299
|
linkMoreTitle: "Ain't no sound but the sound of his feet",
|
|
@@ -307,50 +303,20 @@ const mock_fields = {
|
|
|
307
303
|
icon: 'hand-holding-heart',
|
|
308
304
|
id: '1675437158941',
|
|
309
305
|
linkMoreTitle: 'Are you hanging on the edge of your seat?',
|
|
310
|
-
text:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
],
|
|
322
|
-
entityMap: {},
|
|
323
|
-
},
|
|
324
|
-
title: {
|
|
325
|
-
blocks: [
|
|
326
|
-
{
|
|
327
|
-
data: {},
|
|
328
|
-
depth: 0,
|
|
329
|
-
entityRanges: [],
|
|
330
|
-
inlineStyleRanges: [],
|
|
331
|
-
key: '3qt26',
|
|
332
|
-
text: 'Machine guns ready to go',
|
|
333
|
-
type: 'unstyled',
|
|
334
|
-
},
|
|
335
|
-
],
|
|
336
|
-
entityMap: {},
|
|
337
|
-
},
|
|
306
|
+
text: [
|
|
307
|
+
{
|
|
308
|
+
children: [
|
|
309
|
+
{
|
|
310
|
+
text: 'Are you ready for this?',
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
type: 'p',
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
title: 'Machine guns ready to go',
|
|
338
317
|
},
|
|
339
318
|
],
|
|
340
|
-
title:
|
|
341
|
-
blocks: [
|
|
342
|
-
{
|
|
343
|
-
data: {},
|
|
344
|
-
depth: 0,
|
|
345
|
-
entityRanges: [],
|
|
346
|
-
inlineStyleRanges: [],
|
|
347
|
-
key: 'ap3pb',
|
|
348
|
-
text: 'Steve walks warily down the street',
|
|
349
|
-
type: 'unstyled',
|
|
350
|
-
},
|
|
351
|
-
],
|
|
352
|
-
entityMap: {},
|
|
353
|
-
},
|
|
319
|
+
title: 'Steve walks warily down the street',
|
|
354
320
|
};
|
|
355
321
|
|
|
356
322
|
const store = mockStore({
|
|
@@ -59,7 +59,8 @@ const mock_fields = {
|
|
|
59
59
|
has_children: false,
|
|
60
60
|
head_title: null,
|
|
61
61
|
icona: null,
|
|
62
|
-
id:
|
|
62
|
+
id:
|
|
63
|
+
'business-teamwork-join-hands-together-business-teamwork-concept_1150-1804.webp',
|
|
63
64
|
image: {
|
|
64
65
|
scales: {
|
|
65
66
|
gallery: {
|
|
@@ -291,50 +292,20 @@ const mock_fields = {
|
|
|
291
292
|
subblocks: [
|
|
292
293
|
{
|
|
293
294
|
id: '1675873050846',
|
|
294
|
-
text:
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
],
|
|
306
|
-
entityMap: {},
|
|
307
|
-
},
|
|
308
|
-
title: {
|
|
309
|
-
blocks: [
|
|
310
|
-
{
|
|
311
|
-
data: {},
|
|
312
|
-
depth: 0,
|
|
313
|
-
entityRanges: [],
|
|
314
|
-
inlineStyleRanges: [],
|
|
315
|
-
key: 'd13g8',
|
|
316
|
-
text: '26',
|
|
317
|
-
type: 'unstyled',
|
|
318
|
-
},
|
|
319
|
-
],
|
|
320
|
-
entityMap: {},
|
|
321
|
-
},
|
|
295
|
+
text: [
|
|
296
|
+
{
|
|
297
|
+
children: [
|
|
298
|
+
{
|
|
299
|
+
text: 'Is this just fantasy',
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
type: 'p',
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
title: '26',
|
|
322
306
|
},
|
|
323
307
|
],
|
|
324
|
-
title:
|
|
325
|
-
blocks: [
|
|
326
|
-
{
|
|
327
|
-
data: {},
|
|
328
|
-
depth: 0,
|
|
329
|
-
entityRanges: [],
|
|
330
|
-
inlineStyleRanges: [],
|
|
331
|
-
key: '7d5lk',
|
|
332
|
-
text: 'Is this the real life',
|
|
333
|
-
type: 'unstyled',
|
|
334
|
-
},
|
|
335
|
-
],
|
|
336
|
-
entityMap: {},
|
|
337
|
-
},
|
|
308
|
+
title: 'Is this the real life',
|
|
338
309
|
};
|
|
339
310
|
|
|
340
311
|
const store = mockStore({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import '@testing-library/jest-dom/extend-expect';
|
|
4
|
-
import
|
|
4
|
+
import View from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/SimpleCard/View';
|
|
5
5
|
import configureStore from 'redux-mock-store';
|
|
6
6
|
import { Provider } from 'react-intl-redux';
|
|
7
7
|
import { MemoryRouter } from 'react-router-dom';
|
|
@@ -12,34 +12,18 @@ const mockStore = configureStore(middlewares);
|
|
|
12
12
|
|
|
13
13
|
const mock_fields = {
|
|
14
14
|
'@type': 'testo_riquadro_semplice',
|
|
15
|
-
simple_card_content:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
entityMap: {},
|
|
28
|
-
},
|
|
29
|
-
simple_card_title: {
|
|
30
|
-
blocks: [
|
|
31
|
-
{
|
|
32
|
-
data: {},
|
|
33
|
-
depth: 0,
|
|
34
|
-
entityRanges: [],
|
|
35
|
-
inlineStyleRanges: [],
|
|
36
|
-
key: '23dhi',
|
|
37
|
-
text: 'Is this the real life?',
|
|
38
|
-
type: 'unstyled',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
entityMap: {},
|
|
42
|
-
},
|
|
15
|
+
simple_card_content: [
|
|
16
|
+
{
|
|
17
|
+
children: [
|
|
18
|
+
{
|
|
19
|
+
text: 'Is this just fantasy?',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
type: 'p',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
|
|
26
|
+
simple_card_title: 'Is this the real life?',
|
|
43
27
|
};
|
|
44
28
|
|
|
45
29
|
const store = mockStore({
|
|
@@ -53,7 +37,7 @@ test('View renders all fields', async () => {
|
|
|
53
37
|
render(
|
|
54
38
|
<Provider store={store}>
|
|
55
39
|
<MemoryRouter>
|
|
56
|
-
<
|
|
40
|
+
<View data={mock_fields} block={{ id: '1234' }} />
|
|
57
41
|
</MemoryRouter>
|
|
58
42
|
</Provider>,
|
|
59
43
|
);
|