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.
Files changed (194) hide show
  1. package/.github/workflows/slate.yml +47 -0
  2. package/.yarn/cache/@babel-helper-module-imports-npm-7.24.3-edb733448b-c23492189b.zip +0 -0
  3. package/.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-4b574a37d4.zip +0 -0
  4. package/.yarn/cache/babel-plugin-lodash-npm-3.3.4-c7161075b6-044a4261e6.zip +0 -0
  5. package/.yarn/cache/require-package-name-npm-2.0.1-ac9a206b63-00f4e9e467.zip +0 -0
  6. 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
  7. package/.yarn/install-state.gz +0 -0
  8. package/CHANGELOG.md +878 -904
  9. package/RELEASE.md +8 -0
  10. package/locales/de/LC_MESSAGES/volto.po +86 -18
  11. package/locales/en/LC_MESSAGES/volto.po +86 -18
  12. package/locales/es/LC_MESSAGES/volto.po +86 -18
  13. package/locales/fr/LC_MESSAGES/volto.po +86 -18
  14. package/locales/it/LC_MESSAGES/volto.po +86 -18
  15. package/locales/volto.pot +87 -19
  16. package/package.json +4 -2
  17. package/publiccode.yml +2 -2
  18. package/src/components/Collapse.jsx +1 -0
  19. package/src/components/ItaliaTheme/Blocks/Accordion/Block/EditBlock.jsx +29 -24
  20. package/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx +4 -12
  21. package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +67 -6
  22. package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +60 -113
  23. package/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx +1 -0
  24. package/src/components/ItaliaTheme/Blocks/Alert/View.jsx +5 -14
  25. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Block.jsx +16 -11
  26. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Body.jsx +2 -1
  27. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +39 -1
  28. package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +35 -95
  29. package/src/components/ItaliaTheme/Blocks/Callout/Edit.jsx +108 -0
  30. package/src/components/ItaliaTheme/Blocks/Callout/Sidebar.jsx +173 -0
  31. package/src/components/ItaliaTheme/Blocks/Callout/View.jsx +45 -0
  32. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock.jsx +84 -63
  33. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/ViewBlock.jsx +19 -39
  34. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +92 -19
  35. package/src/components/ItaliaTheme/Blocks/ContactsBlock/View.jsx +13 -21
  36. package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +21 -25
  37. package/src/components/ItaliaTheme/Blocks/CountDown/View.jsx +6 -15
  38. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock.jsx +40 -15
  39. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +6 -21
  40. package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +93 -20
  41. package/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +1 -9
  42. package/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +4 -17
  43. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock.jsx +46 -15
  44. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/ViewBlock.jsx +2 -18
  45. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +84 -11
  46. package/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx +2 -11
  47. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Block.jsx +33 -67
  48. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +2 -8
  49. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/BodyWrapper.jsx +2 -1
  50. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Edit.jsx +98 -84
  51. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/View.jsx +20 -3
  52. package/src/components/ItaliaTheme/Blocks/__tests__/Accordion.test.jsx +11 -28
  53. package/src/components/ItaliaTheme/Blocks/__tests__/Alert.test.jsx +10 -14
  54. package/src/components/ItaliaTheme/Blocks/__tests__/ArgumentsInEvidence.test.jsx +20 -28
  55. package/src/components/ItaliaTheme/Blocks/__tests__/CTABlock.test.jsx +14 -29
  56. package/src/components/ItaliaTheme/Blocks/__tests__/CardWithImage.test.jsx +11 -28
  57. package/src/components/ItaliaTheme/Blocks/__tests__/ContactsBlock.test.jsx +75 -140
  58. package/src/components/ItaliaTheme/Blocks/__tests__/Countdown.test.jsx +20 -28
  59. package/src/components/ItaliaTheme/Blocks/__tests__/IconBlocks.test.jsx +22 -56
  60. package/src/components/ItaliaTheme/Blocks/__tests__/NumbersBlock.test.jsx +14 -43
  61. package/src/components/ItaliaTheme/Blocks/__tests__/SimpleCard.test.jsx +14 -30
  62. package/src/components/ItaliaTheme/Footer/FooterInfos.jsx +22 -8
  63. package/src/components/ItaliaTheme/Footer/FooterNavigation.jsx +3 -3
  64. package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +5 -1
  65. package/src/components/ItaliaTheme/Slider/SingleSlideWrapper.jsx +2 -3
  66. package/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +1 -2
  67. package/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx +14 -5
  68. package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +19 -3
  69. package/src/components/ItaliaTheme/View/Commons/Attachments.jsx +0 -1
  70. package/src/components/ItaliaTheme/View/Commons/DownloadFileFormat.jsx +11 -7
  71. package/src/components/ItaliaTheme/View/Commons/Module.jsx +7 -6
  72. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderLinkServizio.jsx +6 -2
  73. package/src/components/ItaliaTheme/View/Commons/RichTextRender.jsx +8 -6
  74. package/src/components/ItaliaTheme/View/Commons/__tests__/RichText.test.jsx +14 -17
  75. package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +5 -6
  76. package/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +4 -0
  77. package/src/components/ItaliaTheme/View/__tests__/CartellaModulisticaView.test.jsx +12 -1
  78. package/src/components/ItaliaTheme/View/__tests__/IncaricoView.test.jsx +24 -30
  79. package/src/components/ItaliaTheme/View/__tests__/PageView.test.jsx +24 -2
  80. package/src/components/ItaliaTheme/View/__tests__/PersonaView.test.jsx +96 -92
  81. package/src/components/ItaliaTheme/View/__tests__/ServizioAChiSiRivolge.test.jsx +240 -286
  82. package/src/components/ItaliaTheme/View/__tests__/ServizioAccedi.test.jsx +240 -286
  83. package/src/components/ItaliaTheme/View/__tests__/ServizioCasiParticolari.test.jsx +240 -286
  84. package/src/components/ItaliaTheme/View/__tests__/ServizioComeFare.test.jsx +240 -286
  85. package/src/components/ItaliaTheme/View/__tests__/ServizioCondizioni.test.jsx +240 -286
  86. package/src/components/ItaliaTheme/View/__tests__/ServizioContatti.test.jsx +240 -286
  87. package/src/components/ItaliaTheme/View/__tests__/ServizioCosE.test.jsx +240 -286
  88. package/src/components/ItaliaTheme/View/__tests__/ServizioCosaServe.test.jsx +240 -286
  89. package/src/components/ItaliaTheme/View/__tests__/ServizioCosaSiOttiene.test.jsx +240 -286
  90. package/src/components/ItaliaTheme/View/__tests__/ServizioCostiVincoli.test.jsx +240 -286
  91. package/src/components/ItaliaTheme/View/__tests__/ServizioMetadati.test.jsx +240 -286
  92. package/src/components/ItaliaTheme/View/__tests__/ServizioModulistica.test.jsx +240 -286
  93. package/src/components/ItaliaTheme/View/__tests__/ServizioProcedure.test.jsx +240 -286
  94. package/src/components/ItaliaTheme/View/__tests__/ServizioSitiEsterni.test.jsx +240 -286
  95. package/src/components/ItaliaTheme/View/__tests__/ServizioTempiScadenze.test.jsx +240 -286
  96. package/src/components/ItaliaTheme/View/__tests__/ServizioUlterioriInformazioni.test.jsx +240 -286
  97. package/src/components/ItaliaTheme/View/__tests__/ServizioView.test.jsx +470 -560
  98. package/src/components/ItaliaTheme/View/__tests__/TrasparenzaView.test.jsx +12 -1
  99. package/src/components/ItaliaTheme/manage/Widgets/ColorListWidget.jsx +11 -2
  100. package/src/components/ItaliaTheme/manage/Widgets/HtmlSlateWidget.jsx +154 -0
  101. package/src/components/ItaliaTheme/manage/Widgets/RichTextWidget.jsx +88 -0
  102. package/src/components/ItaliaTheme/manage/Widgets/SimpleTextEditorWidget.jsx +158 -0
  103. package/src/components/ItaliaTheme/manage/Widgets/TextEditorWidget.jsx +167 -270
  104. package/src/config/Blocks/ListingOptions/index.js +0 -1
  105. package/src/config/Blocks/ListingOptions/utils.js +0 -7
  106. package/src/config/Blocks/blocks.js +29 -8
  107. package/src/config/Blocks/listingVariations.js +1 -1
  108. package/src/config/Slate/Alignment/AlignMenu.jsx +169 -0
  109. package/src/config/Slate/Alignment/index.js +42 -0
  110. package/src/config/Slate/Blockquote/BlockquoteMenu.jsx +151 -0
  111. package/src/config/Slate/Blockquote/index.js +12 -0
  112. package/src/config/Slate/Headings/HeadingsMenu.jsx +139 -0
  113. package/src/config/Slate/Headings/headingsMenu.scss +44 -0
  114. package/src/config/Slate/Headings/index.js +62 -0
  115. package/src/config/Slate/Link/deserializer.js +25 -0
  116. package/src/config/Slate/Link/index.js +126 -0
  117. package/src/config/Slate/Link/renderer.jsx +99 -0
  118. package/src/config/Slate/LinkButton/index.js +47 -0
  119. package/src/config/Slate/TextLarger/index.js +51 -0
  120. package/src/config/Slate/Underline/index.js +10 -0
  121. package/src/config/Slate/config.js +43 -0
  122. package/src/config/Slate/deserializers.js +66 -0
  123. package/src/config/Slate/dropdownStyle.scss +14 -0
  124. package/src/config/Slate/dropdownUtils.js +422 -0
  125. package/src/config/Slate/extensions/breakList.js +91 -0
  126. package/src/config/Slate/handlers.js +243 -0
  127. package/src/config/Slate/utils.js +73 -0
  128. package/src/config/Widgets/widgets.js +1 -2
  129. package/src/config/italiaConfig.js +7 -54
  130. package/src/customizations/volto/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +360 -0
  131. package/src/customizations/volto/components/manage/Blocks/HeroImageLeft/Edit.jsx +75 -200
  132. package/src/customizations/volto/components/manage/Blocks/Video/Edit.jsx +1 -1
  133. package/src/customizations/volto/components/manage/Form/BlocksToolbar.jsx +1 -1
  134. package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +59 -6
  135. package/src/customizations/volto-form-block/components/Field.jsx +45 -22
  136. package/src/customizations/volto-form-block/components/FormResult.jsx +74 -0
  137. package/src/customizations/volto-form-block/components/FormView.jsx +79 -66
  138. package/src/customizations/volto-form-block/components/Widget/Button.jsx +50 -0
  139. package/src/helpers/EnhanceLink.js +44 -0
  140. package/src/helpers/FormValidation/FormValidationHelpers.js +3 -0
  141. package/src/helpers/blocks.js +86 -0
  142. package/src/helpers/files.js +14 -14
  143. package/src/helpers/index.js +4 -3
  144. package/src/helpers/richTextHelper.js +10 -0
  145. package/src/icons/Group.svg +1 -0
  146. package/src/icons/blocco-icone.svg +0 -3
  147. package/src/icons/blockquote-card-dark.svg +1 -0
  148. package/src/icons/blockquote-card.svg +1 -0
  149. package/src/icons/blockquote-simple.svg +1 -0
  150. package/src/icons/text-larger.svg +1 -0
  151. package/src/theme/ItaliaTheme/Blocks/_accordion.scss +1 -10
  152. package/src/theme/ItaliaTheme/Blocks/_alert.scss +53 -1
  153. package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +1 -0
  154. package/src/theme/ItaliaTheme/Blocks/_callout.scss +32 -0
  155. package/src/theme/ItaliaTheme/Blocks/_contacts.scss +15 -32
  156. package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +0 -14
  157. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +1 -1
  158. package/src/theme/ItaliaTheme/Blocks/_hero.scss +1 -8
  159. package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +0 -30
  160. package/src/theme/ItaliaTheme/Blocks/_imageCardTextBlock.scss +3 -2
  161. package/src/theme/ItaliaTheme/Blocks/_numbers.scss +1 -5
  162. package/src/theme/ItaliaTheme/Blocks/_simpleCardTextBlock.scss +8 -2
  163. package/src/theme/ItaliaTheme/Blocks/_tableOfContents.scss +1 -0
  164. package/src/theme/ItaliaTheme/Components/_megamenu.scss +0 -4
  165. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_cta.scss +1 -0
  166. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss +1 -0
  167. package/src/theme/ItaliaTheme/Subsites/bootstrap-italia/custom/_headercenter.scss +1 -0
  168. package/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss +11 -2
  169. package/src/theme/ItaliaTheme/Views/_slider.scss +3 -3
  170. package/src/theme/ItaliaTheme/Widgets/_iconWidget.scss +4 -0
  171. package/src/theme/ItaliaTheme/_main.scss +42 -54
  172. package/src/theme/_cms-ui.scss +59 -161
  173. package/src/theme/extras/_forms.scss +2 -14
  174. package/src/theme/site.scss +1 -0
  175. package/test-setup-config.js +58 -0
  176. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Block.jsx +0 -151
  177. package/src/config/RichTextEditor/LinkEntity.jsx +0 -27
  178. package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/Link/index.jsx +0 -44
  179. package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +0 -349
  180. package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/LinkButton/index.js +0 -150
  181. package/src/config/RichTextEditor/Plugins/AnchorPlugin/index.js +0 -88
  182. package/src/config/RichTextEditor/ToolbarButtons/AlignButton.jsx +0 -61
  183. package/src/config/RichTextEditor/ToolbarButtons/ButtonsButton.jsx +0 -14
  184. package/src/config/RichTextEditor/ToolbarButtons/CalloutsButton.jsx +0 -38
  185. package/src/config/RichTextEditor/ToolbarButtons/DraftJsDropdownButton.jsx +0 -106
  186. package/src/config/RichTextEditor/ToolbarButtons/HeadingsButton.jsx +0 -57
  187. package/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx +0 -65
  188. package/src/config/RichTextEditor/ToolbarButtons/UnderlineButton.jsx +0 -14
  189. package/src/config/RichTextEditor/config.js +0 -253
  190. package/src/config/volto-gdpr-privacy-defaultPanelConfig.js +0 -292
  191. package/src/customizations/volto/components/manage/Blocks/ToC/View.jsx +0 -134
  192. package/src/customizations/volto/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +0 -99
  193. package/src/customizations/volto/config/RichTextEditor/Plugins.jsx +0 -63
  194. package/src/helpers/redraftHelper.js +0 -9
@@ -60,21 +60,18 @@ const mock_mandatory = {
60
60
  a_chi_si_rivolge: {
61
61
  blocks: {
62
62
  '2851114d-2489-4ea3-9b46-062cf6437418': {
63
- '@type': 'text',
64
- text: {
65
- blocks: [
66
- {
67
- data: {},
68
- depth: 0,
69
- entityRanges: [],
70
- inlineStyleRanges: [],
71
- key: 'f5rrc',
72
- text: 'Animaletti',
73
- type: 'unstyled',
74
- },
75
- ],
76
- entityMap: {},
77
- },
63
+ '@type': 'slate',
64
+ plaintext: 'Animaletti',
65
+ value: [
66
+ {
67
+ children: [
68
+ {
69
+ text: 'Animaletti',
70
+ },
71
+ ],
72
+ type: 'p',
73
+ },
74
+ ],
78
75
  },
79
76
  },
80
77
  blocks_layout: {
@@ -139,21 +136,18 @@ const mock_all_fields = {
139
136
  canale_digitale: {
140
137
  blocks: {
141
138
  '7bebaf7f-40fd-4274-82a4-59180e9dff0b': {
142
- '@type': 'text',
143
- text: {
144
- blocks: [
145
- {
146
- data: {},
147
- depth: 0,
148
- entityRanges: [],
149
- inlineStyleRanges: [],
150
- key: '1e42l',
151
- text: 'Open your eyes',
152
- type: 'unstyled',
153
- },
154
- ],
155
- entityMap: {},
156
- },
139
+ '@type': 'slate',
140
+ plaintext: 'Open yout eyes',
141
+ value: [
142
+ {
143
+ children: [
144
+ {
145
+ text: 'Open yout eyes',
146
+ },
147
+ ],
148
+ type: 'p',
149
+ },
150
+ ],
157
151
  },
158
152
  },
159
153
  blocks_layout: {
@@ -245,21 +239,18 @@ const mock_all_fields = {
245
239
  casi_particolari: {
246
240
  blocks: {
247
241
  '02eda6cd-04cf-471e-b002-a0759264c4d9': {
248
- '@type': 'text',
249
- text: {
250
- blocks: [
251
- {
252
- data: {},
253
- depth: 0,
254
- entityRanges: [],
255
- inlineStyleRanges: [],
256
- key: '743f8',
257
- text: 'Mama, Just killed a man',
258
- type: 'unstyled',
259
- },
260
- ],
261
- entityMap: {},
262
- },
242
+ '@type': 'slate',
243
+ plaintext: 'Mama, just killed a man',
244
+ value: [
245
+ {
246
+ children: [
247
+ {
248
+ text: 'Mama, just killed a man',
249
+ },
250
+ ],
251
+ type: 'p',
252
+ },
253
+ ],
263
254
  },
264
255
  },
265
256
  blocks_layout: {
@@ -270,21 +261,18 @@ const mock_all_fields = {
270
261
  chi_puo_presentare: {
271
262
  blocks: {
272
263
  '3e317fff-a0a6-49c8-85a6-8d415fbc3568': {
273
- '@type': 'text',
274
- text: {
275
- blocks: [
276
- {
277
- data: {},
278
- depth: 0,
279
- entityRanges: [],
280
- inlineStyleRanges: [],
281
- key: '5gmg4',
282
- text: 'Is this just fantasy?',
283
- type: 'unstyled',
284
- },
285
- ],
286
- entityMap: {},
287
- },
264
+ '@type': 'slate',
265
+ plaintext: 'Is this just fantasy?',
266
+ value: [
267
+ {
268
+ children: [
269
+ {
270
+ text: 'Is this just fantasy?',
271
+ },
272
+ ],
273
+ type: 'p',
274
+ },
275
+ ],
288
276
  },
289
277
  },
290
278
  blocks_layout: {
@@ -295,21 +283,18 @@ const mock_all_fields = {
295
283
  come_si_fa: {
296
284
  blocks: {
297
285
  'dd7c859c-8053-4c16-b753-161c438b32ce': {
298
- '@type': 'text',
299
- text: {
300
- blocks: [
301
- {
302
- data: {},
303
- depth: 0,
304
- entityRanges: [],
305
- inlineStyleRanges: [],
306
- key: '1mlqd',
307
- text: "There's a lady who's sure",
308
- type: 'unstyled',
309
- },
310
- ],
311
- entityMap: {},
312
- },
286
+ '@type': 'slate',
287
+ plaintext: "There's a lady who's sure",
288
+ value: [
289
+ {
290
+ children: [
291
+ {
292
+ text: "There's a lady who's sure",
293
+ },
294
+ ],
295
+ type: 'p',
296
+ },
297
+ ],
313
298
  },
314
299
  },
315
300
  blocks_layout: {
@@ -349,21 +334,18 @@ const mock_all_fields = {
349
334
  copertura_geografica: {
350
335
  blocks: {
351
336
  'a04413ee-4676-41b4-9155-6310d8e6ad49': {
352
- '@type': 'text',
353
- text: {
354
- blocks: [
355
- {
356
- data: {},
357
- depth: 0,
358
- entityRanges: [],
359
- inlineStyleRanges: [],
360
- key: 'em5i1',
361
- text: 'Caught in a landside',
362
- type: 'unstyled',
363
- },
364
- ],
365
- entityMap: {},
366
- },
337
+ '@type': 'slate',
338
+ plaintext: 'Caught in a landside',
339
+ value: [
340
+ {
341
+ children: [
342
+ {
343
+ text: 'Caught in a landside',
344
+ },
345
+ ],
346
+ type: 'p',
347
+ },
348
+ ],
367
349
  },
368
350
  },
369
351
  blocks_layout: {
@@ -394,21 +376,18 @@ const mock_all_fields = {
394
376
  cosa_serve: {
395
377
  blocks: {
396
378
  'acfa657c-fbab-45ee-859f-21bb62b7c661': {
397
- '@type': 'text',
398
- text: {
399
- blocks: [
400
- {
401
- data: {},
402
- depth: 0,
403
- entityRanges: [],
404
- inlineStyleRanges: [],
405
- key: '2sdeq',
406
- text: "And she's buying a stairway to heaven",
407
- type: 'unstyled',
408
- },
409
- ],
410
- entityMap: {},
411
- },
379
+ '@type': 'slate',
380
+ plaintext: "And she's buying a stairway to heaven",
381
+ value: [
382
+ {
383
+ children: [
384
+ {
385
+ text: "And she's buying a stairway to heaven",
386
+ },
387
+ ],
388
+ type: 'p',
389
+ },
390
+ ],
412
391
  },
413
392
  },
414
393
  blocks_layout: {
@@ -418,21 +397,18 @@ const mock_all_fields = {
418
397
  cosa_si_ottiene: {
419
398
  blocks: {
420
399
  'bb4db7e4-0a27-41c9-8f34-512eff06aa86': {
421
- '@type': 'text',
422
- text: {
423
- blocks: [
424
- {
425
- data: {},
426
- depth: 0,
427
- entityRanges: [],
428
- inlineStyleRanges: [],
429
- key: 'pru2',
430
- text: 'All that glitters is gold',
431
- type: 'unstyled',
432
- },
433
- ],
434
- entityMap: {},
435
- },
400
+ '@type': 'slate',
401
+ plaintext: 'All that glitters is gold',
402
+ value: [
403
+ {
404
+ children: [
405
+ {
406
+ text: 'All that glitters is gold',
407
+ },
408
+ ],
409
+ type: 'p',
410
+ },
411
+ ],
436
412
  },
437
413
  },
438
414
  blocks_layout: {
@@ -442,21 +418,18 @@ const mock_all_fields = {
442
418
  costi: {
443
419
  blocks: {
444
420
  'fb4ab549-4d60-4a24-a5c4-960e7151b28e': {
445
- '@type': 'text',
446
- text: {
447
- blocks: [
448
- {
449
- data: {},
450
- depth: 0,
451
- entityRanges: [],
452
- inlineStyleRanges: [],
453
- key: 'foiq2',
454
- text: '345',
455
- type: 'unstyled',
456
- },
457
- ],
458
- entityMap: {},
459
- },
421
+ '@type': 'slate',
422
+ plaintext: '345',
423
+ value: [
424
+ {
425
+ children: [
426
+ {
427
+ text: '345',
428
+ },
429
+ ],
430
+ type: 'p',
431
+ },
432
+ ],
460
433
  },
461
434
  },
462
435
  blocks_layout: {
@@ -469,21 +442,18 @@ const mock_all_fields = {
469
442
  descrizione_estesa: {
470
443
  blocks: {
471
444
  '038eb313-2c32-4db4-adae-888197220fd9': {
472
- '@type': 'text',
473
- text: {
474
- blocks: [
475
- {
476
- data: {},
477
- depth: 0,
478
- entityRanges: [],
479
- inlineStyleRanges: [],
480
- key: 'c0a5j',
481
- text: 'Is this the real life?',
482
- type: 'unstyled',
483
- },
484
- ],
485
- entityMap: {},
486
- },
445
+ '@type': 'slate',
446
+ plaintext: 'Is this the real life?',
447
+ value: [
448
+ {
449
+ children: [
450
+ {
451
+ text: 'Is this the real life?',
452
+ },
453
+ ],
454
+ type: 'p',
455
+ },
456
+ ],
487
457
  },
488
458
  },
489
459
  blocks_layout: {
@@ -586,21 +556,18 @@ const mock_all_fields = {
586
556
  dove_rivolgersi_extra: {
587
557
  blocks: {
588
558
  '894e9d1d-1c20-4ed6-a4d0-5e25adbfbd9c': {
589
- '@type': 'text',
590
- text: {
591
- blocks: [
592
- {
593
- data: {},
594
- depth: 0,
595
- entityRanges: [],
596
- inlineStyleRanges: [],
597
- key: '8h4ue',
598
- text: 'I need no sympathy',
599
- type: 'unstyled',
600
- },
601
- ],
602
- entityMap: {},
603
- },
559
+ '@type': 'slate',
560
+ plaintext: 'I need no sympathy',
561
+ value: [
562
+ {
563
+ children: [
564
+ {
565
+ text: 'I need no sympathy',
566
+ },
567
+ ],
568
+ type: 'p',
569
+ },
570
+ ],
604
571
  },
605
572
  },
606
573
  blocks_layout: {
@@ -739,21 +706,18 @@ const mock_all_fields = {
739
706
  link_siti_esterni: {
740
707
  blocks: {
741
708
  'ff02a375-2be1-4a43-b758-dbb1fae8fa71': {
742
- '@type': 'text',
743
- text: {
744
- blocks: [
745
- {
746
- data: {},
747
- depth: 0,
748
- entityRanges: [],
749
- inlineStyleRanges: [],
750
- key: 'f14ja',
751
- text: 'Put a gun against his head',
752
- type: 'unstyled',
753
- },
754
- ],
755
- entityMap: {},
756
- },
709
+ '@type': 'slate',
710
+ plaintext: 'Put a gun against his head',
711
+ value: [
712
+ {
713
+ children: [
714
+ {
715
+ text: 'Put a gun against his head',
716
+ },
717
+ ],
718
+ type: 'p',
719
+ },
720
+ ],
757
721
  },
758
722
  },
759
723
  blocks_layout: {
@@ -768,21 +732,18 @@ const mock_all_fields = {
768
732
  motivo_stato_servizio: {
769
733
  blocks: {
770
734
  'c19f982c-ce7a-4050-aa60-65a92723db34': {
771
- '@type': 'text',
772
- text: {
773
- blocks: [
774
- {
775
- data: {},
776
- depth: 0,
777
- entityRanges: [],
778
- inlineStyleRanges: [],
779
- key: '3d3cq',
780
- text: 'Motivazione',
781
- type: 'unstyled',
782
- },
783
- ],
784
- entityMap: {},
785
- },
735
+ '@type': 'slate',
736
+ plaintext: 'Motivazione',
737
+ value: [
738
+ {
739
+ children: [
740
+ {
741
+ text: 'Motivazione',
742
+ },
743
+ ],
744
+ type: 'p',
745
+ },
746
+ ],
786
747
  },
787
748
  },
788
749
  blocks_layout: {
@@ -810,21 +771,18 @@ const mock_all_fields = {
810
771
  prenota_appuntamento: {
811
772
  blocks: {
812
773
  'e26f97de-e008-40a1-929f-315a362f7107': {
813
- '@type': 'text',
814
- text: {
815
- blocks: [
816
- {
817
- data: {},
818
- depth: 0,
819
- entityRanges: [],
820
- inlineStyleRanges: [],
821
- key: 'btarf',
822
- text: "Because I'm easy come, easy go",
823
- type: 'unstyled',
824
- },
825
- ],
826
- entityMap: {},
827
- },
774
+ '@type': 'slate',
775
+ plaintext: "Because I'm easy come, easy go",
776
+ value: [
777
+ {
778
+ children: [
779
+ {
780
+ text: "Because I'm easy come, easy go",
781
+ },
782
+ ],
783
+ type: 'p',
784
+ },
785
+ ],
828
786
  },
829
787
  },
830
788
  blocks_layout: {
@@ -930,21 +888,18 @@ const mock_all_fields = {
930
888
  procedure_collegate: {
931
889
  blocks: {
932
890
  '3ab3b686-ab6e-4a85-bd7b-361e091c05b3': {
933
- '@type': 'text',
934
- text: {
935
- blocks: [
936
- {
937
- data: {},
938
- depth: 0,
939
- entityRanges: [],
940
- inlineStyleRanges: [],
941
- key: 'ba4oq',
942
- text: 'No escape from reality',
943
- type: 'unstyled',
944
- },
945
- ],
946
- entityMap: {},
947
- },
891
+ '@type': 'slate',
892
+ plaintext: 'No escape from reality',
893
+ value: [
894
+ {
895
+ children: [
896
+ {
897
+ text: 'No escape from reality',
898
+ },
899
+ ],
900
+ type: 'p',
901
+ },
902
+ ],
948
903
  },
949
904
  },
950
905
  blocks_layout: {
@@ -987,7 +942,18 @@ const mock_all_fields = {
987
942
  canale_digitale: {
988
943
  blocks: {
989
944
  '33545c64-eadf-429d-9a20-0ab4451bbf2c': {
990
- '@type': 'text',
945
+ '@type': 'slate',
946
+ plaintext: '',
947
+ value: [
948
+ {
949
+ children: [
950
+ {
951
+ text: '',
952
+ },
953
+ ],
954
+ type: 'p',
955
+ },
956
+ ],
991
957
  },
992
958
  },
993
959
  blocks_layout: {
@@ -1029,21 +995,18 @@ const mock_all_fields = {
1029
995
  tempi_e_scadenze: {
1030
996
  blocks: {
1031
997
  'e0c64130-00d4-4747-bc21-b58733cb1b7f': {
1032
- '@type': 'text',
1033
- text: {
1034
- blocks: [
1035
- {
1036
- data: {},
1037
- depth: 0,
1038
- entityRanges: [],
1039
- inlineStyleRanges: [],
1040
- key: 'b6mg7',
1041
- text: 'Dopodomani',
1042
- type: 'unstyled',
1043
- },
1044
- ],
1045
- entityMap: {},
1046
- },
998
+ '@type': 'slate',
999
+ plaintext: 'Dopodomani',
1000
+ value: [
1001
+ {
1002
+ children: [
1003
+ {
1004
+ text: 'Dopodomani',
1005
+ },
1006
+ ],
1007
+ type: 'p',
1008
+ },
1009
+ ],
1047
1010
  },
1048
1011
  },
1049
1012
  blocks_layout: {
@@ -1114,21 +1077,18 @@ const mock_all_fields = {
1114
1077
  ulteriori_informazioni: {
1115
1078
  blocks: {
1116
1079
  '89f08a66-9c6a-4a30-86d8-d403475eba6e': {
1117
- '@type': 'text',
1118
- text: {
1119
- blocks: [
1120
- {
1121
- data: {},
1122
- depth: 0,
1123
- entityRanges: [],
1124
- inlineStyleRanges: [],
1125
- key: '72f2h',
1126
- text: 'pulled my trigger',
1127
- type: 'unstyled',
1128
- },
1129
- ],
1130
- entityMap: {},
1131
- },
1080
+ '@type': 'slate',
1081
+ plaintext: 'pulled my trigger',
1082
+ value: [
1083
+ {
1084
+ children: [
1085
+ {
1086
+ text: 'pulled my trigger',
1087
+ },
1088
+ ],
1089
+ type: 'p',
1090
+ },
1091
+ ],
1132
1092
  },
1133
1093
  },
1134
1094
  blocks_layout: {
@@ -1140,21 +1100,18 @@ const mock_all_fields = {
1140
1100
  vincoli: {
1141
1101
  blocks: {
1142
1102
  'b3206125-d0d6-474e-935e-09d28602beca': {
1143
- '@type': 'text',
1144
- text: {
1145
- blocks: [
1146
- {
1147
- data: {},
1148
- depth: 0,
1149
- entityRanges: [],
1150
- inlineStyleRanges: [],
1151
- key: '2hlds',
1152
- text: 'Little high, little low',
1153
- type: 'unstyled',
1154
- },
1155
- ],
1156
- entityMap: {},
1157
- },
1103
+ '@type': 'slate',
1104
+ plaintext: 'Little high, little low',
1105
+ value: [
1106
+ {
1107
+ children: [
1108
+ {
1109
+ text: 'Little high, little low',
1110
+ },
1111
+ ],
1112
+ type: 'p',
1113
+ },
1114
+ ],
1158
1115
  },
1159
1116
  },
1160
1117
  blocks_layout: {
@@ -1974,21 +1931,18 @@ const store = mockStore({
1974
1931
  canale_digitale: {
1975
1932
  blocks: {
1976
1933
  '7bebaf7f-40fd-4274-82a4-59180e9dff0b': {
1977
- '@type': 'text',
1978
- text: {
1979
- blocks: [
1980
- {
1981
- data: {},
1982
- depth: 0,
1983
- entityRanges: [],
1984
- inlineStyleRanges: [],
1985
- key: '1e42l',
1986
- text: 'Open your eyes',
1987
- type: 'unstyled',
1988
- },
1989
- ],
1990
- entityMap: {},
1991
- },
1934
+ '@type': 'slate',
1935
+ plaintext: 'Open your eyes',
1936
+ value: [
1937
+ {
1938
+ children: [
1939
+ {
1940
+ text: 'Open your eyes',
1941
+ },
1942
+ ],
1943
+ type: 'p',
1944
+ },
1945
+ ],
1992
1946
  },
1993
1947
  },
1994
1948
  blocks_layout: {