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
@@ -145,21 +145,18 @@ const mock_all_fields = {
145
145
  a_chi_si_rivolge: {
146
146
  blocks: {
147
147
  '2851114d-2489-4ea3-9b46-062cf6437418': {
148
- '@type': 'text',
149
- text: {
150
- blocks: [
151
- {
152
- data: {},
153
- depth: 0,
154
- entityRanges: [],
155
- inlineStyleRanges: [],
156
- key: 'f5rrc',
157
- text: 'Animaletti',
158
- type: 'unstyled',
159
- },
160
- ],
161
- entityMap: {},
162
- },
148
+ '@type': 'slate',
149
+ plaintext: 'Animaletti',
150
+ value: [
151
+ {
152
+ children: [
153
+ {
154
+ text: 'Animaletti',
155
+ },
156
+ ],
157
+ type: 'p',
158
+ },
159
+ ],
163
160
  },
164
161
  },
165
162
  blocks_layout: {
@@ -220,21 +217,18 @@ const mock_all_fields = {
220
217
  canale_digitale: {
221
218
  blocks: {
222
219
  '7bebaf7f-40fd-4274-82a4-59180e9dff0b': {
223
- '@type': 'text',
224
- text: {
225
- blocks: [
226
- {
227
- data: {},
228
- depth: 0,
229
- entityRanges: [],
230
- inlineStyleRanges: [],
231
- key: '1e42l',
232
- text: 'Open your eyes',
233
- type: 'unstyled',
234
- },
235
- ],
236
- entityMap: {},
237
- },
220
+ '@type': 'slate',
221
+ plaintext: 'Open your eyes',
222
+ value: [
223
+ {
224
+ children: [
225
+ {
226
+ text: 'Open your eyes',
227
+ },
228
+ ],
229
+ type: 'p',
230
+ },
231
+ ],
238
232
  },
239
233
  },
240
234
  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: {
@@ -741,21 +708,18 @@ const mock_all_fields = {
741
708
  link_siti_esterni: {
742
709
  blocks: {
743
710
  'ff02a375-2be1-4a43-b758-dbb1fae8fa71': {
744
- '@type': 'text',
745
- text: {
746
- blocks: [
747
- {
748
- data: {},
749
- depth: 0,
750
- entityRanges: [],
751
- inlineStyleRanges: [],
752
- key: 'f14ja',
753
- text: 'Put a gun against his head',
754
- type: 'unstyled',
755
- },
756
- ],
757
- entityMap: {},
758
- },
711
+ '@type': 'slate',
712
+ plaintext: 'Put a gun against his head',
713
+ value: [
714
+ {
715
+ children: [
716
+ {
717
+ text: 'Put a gun against his head',
718
+ },
719
+ ],
720
+ type: 'p',
721
+ },
722
+ ],
759
723
  },
760
724
  },
761
725
  blocks_layout: {
@@ -770,21 +734,18 @@ const mock_all_fields = {
770
734
  motivo_stato_servizio: {
771
735
  blocks: {
772
736
  'c19f982c-ce7a-4050-aa60-65a92723db34': {
773
- '@type': 'text',
774
- text: {
775
- blocks: [
776
- {
777
- data: {},
778
- depth: 0,
779
- entityRanges: [],
780
- inlineStyleRanges: [],
781
- key: '3d3cq',
782
- text: 'Motivazione',
783
- type: 'unstyled',
784
- },
785
- ],
786
- entityMap: {},
787
- },
737
+ '@type': 'slate',
738
+ plaintext: 'Motivazione',
739
+ value: [
740
+ {
741
+ children: [
742
+ {
743
+ text: 'Motivazione',
744
+ },
745
+ ],
746
+ type: 'p',
747
+ },
748
+ ],
788
749
  },
789
750
  },
790
751
  blocks_layout: {
@@ -812,21 +773,18 @@ const mock_all_fields = {
812
773
  prenota_appuntamento: {
813
774
  blocks: {
814
775
  'e26f97de-e008-40a1-929f-315a362f7107': {
815
- '@type': 'text',
816
- text: {
817
- blocks: [
818
- {
819
- data: {},
820
- depth: 0,
821
- entityRanges: [],
822
- inlineStyleRanges: [],
823
- key: 'btarf',
824
- text: "Because I'm easy come, easy go",
825
- type: 'unstyled',
826
- },
827
- ],
828
- entityMap: {},
829
- },
776
+ '@type': 'slate',
777
+ plaintext: "Because I'm easy come, easy go",
778
+ value: [
779
+ {
780
+ children: [
781
+ {
782
+ text: "Because I'm easy come, easy go",
783
+ },
784
+ ],
785
+ type: 'p',
786
+ },
787
+ ],
830
788
  },
831
789
  },
832
790
  blocks_layout: {
@@ -932,21 +890,18 @@ const mock_all_fields = {
932
890
  procedure_collegate: {
933
891
  blocks: {
934
892
  '3ab3b686-ab6e-4a85-bd7b-361e091c05b3': {
935
- '@type': 'text',
936
- text: {
937
- blocks: [
938
- {
939
- data: {},
940
- depth: 0,
941
- entityRanges: [],
942
- inlineStyleRanges: [],
943
- key: 'ba4oq',
944
- text: 'No escape from reality',
945
- type: 'unstyled',
946
- },
947
- ],
948
- entityMap: {},
949
- },
893
+ '@type': 'slate',
894
+ plaintext: 'No escape from reality',
895
+ value: [
896
+ {
897
+ children: [
898
+ {
899
+ text: 'No escape from reality',
900
+ },
901
+ ],
902
+ type: 'p',
903
+ },
904
+ ],
950
905
  },
951
906
  },
952
907
  blocks_layout: {
@@ -989,7 +944,18 @@ const mock_all_fields = {
989
944
  canale_digitale: {
990
945
  blocks: {
991
946
  '33545c64-eadf-429d-9a20-0ab4451bbf2c': {
992
- '@type': 'text',
947
+ '@type': 'slate',
948
+ plaintext: '',
949
+ value: [
950
+ {
951
+ children: [
952
+ {
953
+ text: '',
954
+ },
955
+ ],
956
+ type: 'p',
957
+ },
958
+ ],
993
959
  },
994
960
  },
995
961
  blocks_layout: {
@@ -1031,21 +997,18 @@ const mock_all_fields = {
1031
997
  tempi_e_scadenze: {
1032
998
  blocks: {
1033
999
  'e0c64130-00d4-4747-bc21-b58733cb1b7f': {
1034
- '@type': 'text',
1035
- text: {
1036
- blocks: [
1037
- {
1038
- data: {},
1039
- depth: 0,
1040
- entityRanges: [],
1041
- inlineStyleRanges: [],
1042
- key: 'b6mg7',
1043
- text: 'Dopodomani',
1044
- type: 'unstyled',
1045
- },
1046
- ],
1047
- entityMap: {},
1048
- },
1000
+ '@type': 'slate',
1001
+ plaintext: 'Dopodomani',
1002
+ value: [
1003
+ {
1004
+ children: [
1005
+ {
1006
+ text: 'Dopodomani',
1007
+ },
1008
+ ],
1009
+ type: 'p',
1010
+ },
1011
+ ],
1049
1012
  },
1050
1013
  },
1051
1014
  blocks_layout: {
@@ -1116,21 +1079,18 @@ const mock_all_fields = {
1116
1079
  ulteriori_informazioni: {
1117
1080
  blocks: {
1118
1081
  '89f08a66-9c6a-4a30-86d8-d403475eba6e': {
1119
- '@type': 'text',
1120
- text: {
1121
- blocks: [
1122
- {
1123
- data: {},
1124
- depth: 0,
1125
- entityRanges: [],
1126
- inlineStyleRanges: [],
1127
- key: '72f2h',
1128
- text: 'pulled my trigger',
1129
- type: 'unstyled',
1130
- },
1131
- ],
1132
- entityMap: {},
1133
- },
1082
+ '@type': 'slate',
1083
+ plaintext: 'pulled my trigger',
1084
+ value: [
1085
+ {
1086
+ children: [
1087
+ {
1088
+ text: 'pulled my trigger',
1089
+ },
1090
+ ],
1091
+ type: 'p',
1092
+ },
1093
+ ],
1134
1094
  },
1135
1095
  },
1136
1096
  blocks_layout: {
@@ -1142,21 +1102,18 @@ const mock_all_fields = {
1142
1102
  vincoli: {
1143
1103
  blocks: {
1144
1104
  'b3206125-d0d6-474e-935e-09d28602beca': {
1145
- '@type': 'text',
1146
- text: {
1147
- blocks: [
1148
- {
1149
- data: {},
1150
- depth: 0,
1151
- entityRanges: [],
1152
- inlineStyleRanges: [],
1153
- key: '2hlds',
1154
- text: 'Little high, little low',
1155
- type: 'unstyled',
1156
- },
1157
- ],
1158
- entityMap: {},
1159
- },
1105
+ '@type': 'slate',
1106
+ plaintext: 'Little high, little low',
1107
+ value: [
1108
+ {
1109
+ children: [
1110
+ {
1111
+ text: 'Little high, little low',
1112
+ },
1113
+ ],
1114
+ type: 'p',
1115
+ },
1116
+ ],
1160
1117
  },
1161
1118
  },
1162
1119
  blocks_layout: {
@@ -1976,21 +1933,18 @@ const store = mockStore({
1976
1933
  canale_digitale: {
1977
1934
  blocks: {
1978
1935
  '7bebaf7f-40fd-4274-82a4-59180e9dff0b': {
1979
- '@type': 'text',
1980
- text: {
1981
- blocks: [
1982
- {
1983
- data: {},
1984
- depth: 0,
1985
- entityRanges: [],
1986
- inlineStyleRanges: [],
1987
- key: '1e42l',
1988
- text: 'Open your eyes',
1989
- type: 'unstyled',
1990
- },
1991
- ],
1992
- entityMap: {},
1993
- },
1936
+ '@type': 'slate',
1937
+ plaintext: 'Open your eyes',
1938
+ value: [
1939
+ {
1940
+ children: [
1941
+ {
1942
+ text: 'Open your eyes',
1943
+ },
1944
+ ],
1945
+ type: 'p',
1946
+ },
1947
+ ],
1994
1948
  },
1995
1949
  },
1996
1950
  blocks_layout: {