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
@@ -65,21 +65,18 @@ const mock_all_fields = {
65
65
  a_chi_si_rivolge: {
66
66
  blocks: {
67
67
  '2851114d-2489-4ea3-9b46-062cf6437418': {
68
- '@type': 'text',
69
- text: {
70
- blocks: [
71
- {
72
- data: {},
73
- depth: 0,
74
- entityRanges: [],
75
- inlineStyleRanges: [],
76
- key: 'f5rrc',
77
- text: 'Animaletti',
78
- type: 'unstyled',
79
- },
80
- ],
81
- entityMap: {},
82
- },
68
+ '@type': 'slate',
69
+ plaintext: 'Animaletti',
70
+ value: [
71
+ {
72
+ children: [
73
+ {
74
+ text: 'Animaletti',
75
+ },
76
+ ],
77
+ type: 'p',
78
+ },
79
+ ],
83
80
  },
84
81
  },
85
82
  blocks_layout: {
@@ -140,21 +137,18 @@ const mock_all_fields = {
140
137
  canale_digitale: {
141
138
  blocks: {
142
139
  '7bebaf7f-40fd-4274-82a4-59180e9dff0b': {
143
- '@type': 'text',
144
- text: {
145
- blocks: [
146
- {
147
- data: {},
148
- depth: 0,
149
- entityRanges: [],
150
- inlineStyleRanges: [],
151
- key: '1e42l',
152
- text: 'Open your eyes',
153
- type: 'unstyled',
154
- },
155
- ],
156
- entityMap: {},
157
- },
140
+ '@type': 'slate',
141
+ plaintext: 'Open yout eyes',
142
+ value: [
143
+ {
144
+ children: [
145
+ {
146
+ text: 'Open yout eyes',
147
+ },
148
+ ],
149
+ type: 'p',
150
+ },
151
+ ],
158
152
  },
159
153
  },
160
154
  blocks_layout: {
@@ -246,21 +240,18 @@ const mock_all_fields = {
246
240
  casi_particolari: {
247
241
  blocks: {
248
242
  '02eda6cd-04cf-471e-b002-a0759264c4d9': {
249
- '@type': 'text',
250
- text: {
251
- blocks: [
252
- {
253
- data: {},
254
- depth: 0,
255
- entityRanges: [],
256
- inlineStyleRanges: [],
257
- key: '743f8',
258
- text: 'Mama, Just killed a man',
259
- type: 'unstyled',
260
- },
261
- ],
262
- entityMap: {},
263
- },
243
+ '@type': 'slate',
244
+ plaintext: 'Mama, just killed a man',
245
+ value: [
246
+ {
247
+ children: [
248
+ {
249
+ text: 'Mama, just killed a man',
250
+ },
251
+ ],
252
+ type: 'p',
253
+ },
254
+ ],
264
255
  },
265
256
  },
266
257
  blocks_layout: {
@@ -271,21 +262,18 @@ const mock_all_fields = {
271
262
  chi_puo_presentare: {
272
263
  blocks: {
273
264
  '3e317fff-a0a6-49c8-85a6-8d415fbc3568': {
274
- '@type': 'text',
275
- text: {
276
- blocks: [
277
- {
278
- data: {},
279
- depth: 0,
280
- entityRanges: [],
281
- inlineStyleRanges: [],
282
- key: '5gmg4',
283
- text: 'Is this just fantasy?',
284
- type: 'unstyled',
285
- },
286
- ],
287
- entityMap: {},
288
- },
265
+ '@type': 'slate',
266
+ plaintext: 'Is this just fantasy?',
267
+ value: [
268
+ {
269
+ children: [
270
+ {
271
+ text: 'Is this just fantasy?',
272
+ },
273
+ ],
274
+ type: 'p',
275
+ },
276
+ ],
289
277
  },
290
278
  },
291
279
  blocks_layout: {
@@ -296,21 +284,18 @@ const mock_all_fields = {
296
284
  come_si_fa: {
297
285
  blocks: {
298
286
  'dd7c859c-8053-4c16-b753-161c438b32ce': {
299
- '@type': 'text',
300
- text: {
301
- blocks: [
302
- {
303
- data: {},
304
- depth: 0,
305
- entityRanges: [],
306
- inlineStyleRanges: [],
307
- key: '1mlqd',
308
- text: "There's a lady who's sure",
309
- type: 'unstyled',
310
- },
311
- ],
312
- entityMap: {},
313
- },
287
+ '@type': 'slate',
288
+ plaintext: "There's a lady who's sure",
289
+ value: [
290
+ {
291
+ children: [
292
+ {
293
+ text: "There's a lady who's sure",
294
+ },
295
+ ],
296
+ type: 'p',
297
+ },
298
+ ],
314
299
  },
315
300
  },
316
301
  blocks_layout: {
@@ -350,21 +335,18 @@ const mock_all_fields = {
350
335
  copertura_geografica: {
351
336
  blocks: {
352
337
  'a04413ee-4676-41b4-9155-6310d8e6ad49': {
353
- '@type': 'text',
354
- text: {
355
- blocks: [
356
- {
357
- data: {},
358
- depth: 0,
359
- entityRanges: [],
360
- inlineStyleRanges: [],
361
- key: 'em5i1',
362
- text: 'Caught in a landside',
363
- type: 'unstyled',
364
- },
365
- ],
366
- entityMap: {},
367
- },
338
+ '@type': 'slate',
339
+ plaintext: 'Caught in a landside',
340
+ value: [
341
+ {
342
+ children: [
343
+ {
344
+ text: 'Caught in a landside',
345
+ },
346
+ ],
347
+ type: 'p',
348
+ },
349
+ ],
368
350
  },
369
351
  },
370
352
  blocks_layout: {
@@ -395,21 +377,18 @@ const mock_all_fields = {
395
377
  cosa_serve: {
396
378
  blocks: {
397
379
  'acfa657c-fbab-45ee-859f-21bb62b7c661': {
398
- '@type': 'text',
399
- text: {
400
- blocks: [
401
- {
402
- data: {},
403
- depth: 0,
404
- entityRanges: [],
405
- inlineStyleRanges: [],
406
- key: '2sdeq',
407
- text: "And she's buying a stairway to heaven",
408
- type: 'unstyled',
409
- },
410
- ],
411
- entityMap: {},
412
- },
380
+ '@type': 'slate',
381
+ plaintext: "And she's buying a stairway to heaven",
382
+ value: [
383
+ {
384
+ children: [
385
+ {
386
+ text: "And she's buying a stairway to heaven",
387
+ },
388
+ ],
389
+ type: 'p',
390
+ },
391
+ ],
413
392
  },
414
393
  },
415
394
  blocks_layout: {
@@ -419,21 +398,18 @@ const mock_all_fields = {
419
398
  cosa_si_ottiene: {
420
399
  blocks: {
421
400
  'bb4db7e4-0a27-41c9-8f34-512eff06aa86': {
422
- '@type': 'text',
423
- text: {
424
- blocks: [
425
- {
426
- data: {},
427
- depth: 0,
428
- entityRanges: [],
429
- inlineStyleRanges: [],
430
- key: 'pru2',
431
- text: 'All that glitters is gold',
432
- type: 'unstyled',
433
- },
434
- ],
435
- entityMap: {},
436
- },
401
+ '@type': 'slate',
402
+ plaintext: 'All that glitters is gold',
403
+ value: [
404
+ {
405
+ children: [
406
+ {
407
+ text: 'All that glitters is gold',
408
+ },
409
+ ],
410
+ type: 'p',
411
+ },
412
+ ],
437
413
  },
438
414
  },
439
415
  blocks_layout: {
@@ -443,21 +419,18 @@ const mock_all_fields = {
443
419
  costi: {
444
420
  blocks: {
445
421
  'fb4ab549-4d60-4a24-a5c4-960e7151b28e': {
446
- '@type': 'text',
447
- text: {
448
- blocks: [
449
- {
450
- data: {},
451
- depth: 0,
452
- entityRanges: [],
453
- inlineStyleRanges: [],
454
- key: 'foiq2',
455
- text: '345',
456
- type: 'unstyled',
457
- },
458
- ],
459
- entityMap: {},
460
- },
422
+ '@type': 'slate',
423
+ plaintext: '345',
424
+ value: [
425
+ {
426
+ children: [
427
+ {
428
+ text: '345',
429
+ },
430
+ ],
431
+ type: 'p',
432
+ },
433
+ ],
461
434
  },
462
435
  },
463
436
  blocks_layout: {
@@ -470,21 +443,18 @@ const mock_all_fields = {
470
443
  descrizione_estesa: {
471
444
  blocks: {
472
445
  '038eb313-2c32-4db4-adae-888197220fd9': {
473
- '@type': 'text',
474
- text: {
475
- blocks: [
476
- {
477
- data: {},
478
- depth: 0,
479
- entityRanges: [],
480
- inlineStyleRanges: [],
481
- key: 'c0a5j',
482
- text: 'Is this the real life?',
483
- type: 'unstyled',
484
- },
485
- ],
486
- entityMap: {},
487
- },
446
+ '@type': 'slate',
447
+ plaintext: 'Is this the real life?',
448
+ value: [
449
+ {
450
+ children: [
451
+ {
452
+ text: 'Is this the real life?',
453
+ },
454
+ ],
455
+ type: 'p',
456
+ },
457
+ ],
488
458
  },
489
459
  },
490
460
  blocks_layout: {
@@ -587,21 +557,18 @@ const mock_all_fields = {
587
557
  dove_rivolgersi_extra: {
588
558
  blocks: {
589
559
  '894e9d1d-1c20-4ed6-a4d0-5e25adbfbd9c': {
590
- '@type': 'text',
591
- text: {
592
- blocks: [
593
- {
594
- data: {},
595
- depth: 0,
596
- entityRanges: [],
597
- inlineStyleRanges: [],
598
- key: '8h4ue',
599
- text: 'I need no sympathy',
600
- type: 'unstyled',
601
- },
602
- ],
603
- entityMap: {},
604
- },
560
+ '@type': 'slate',
561
+ plaintext: 'I need no sympathy',
562
+ value: [
563
+ {
564
+ children: [
565
+ {
566
+ text: 'I need no sympathy',
567
+ },
568
+ ],
569
+ type: 'p',
570
+ },
571
+ ],
605
572
  },
606
573
  },
607
574
  blocks_layout: {
@@ -740,21 +707,18 @@ const mock_all_fields = {
740
707
  link_siti_esterni: {
741
708
  blocks: {
742
709
  'ff02a375-2be1-4a43-b758-dbb1fae8fa71': {
743
- '@type': 'text',
744
- text: {
745
- blocks: [
746
- {
747
- data: {},
748
- depth: 0,
749
- entityRanges: [],
750
- inlineStyleRanges: [],
751
- key: 'f14ja',
752
- text: 'Put a gun against his head',
753
- type: 'unstyled',
754
- },
755
- ],
756
- entityMap: {},
757
- },
710
+ '@type': 'slate',
711
+ plaintext: 'Put a gun against his head',
712
+ value: [
713
+ {
714
+ children: [
715
+ {
716
+ text: 'Put a gun against his head',
717
+ },
718
+ ],
719
+ type: 'p',
720
+ },
721
+ ],
758
722
  },
759
723
  },
760
724
  blocks_layout: {
@@ -769,21 +733,18 @@ const mock_all_fields = {
769
733
  motivo_stato_servizio: {
770
734
  blocks: {
771
735
  'c19f982c-ce7a-4050-aa60-65a92723db34': {
772
- '@type': 'text',
773
- text: {
774
- blocks: [
775
- {
776
- data: {},
777
- depth: 0,
778
- entityRanges: [],
779
- inlineStyleRanges: [],
780
- key: '3d3cq',
781
- text: 'Motivazione',
782
- type: 'unstyled',
783
- },
784
- ],
785
- entityMap: {},
786
- },
736
+ '@type': 'slate',
737
+ plaintext: 'Motivazione',
738
+ value: [
739
+ {
740
+ children: [
741
+ {
742
+ text: 'Motivazione',
743
+ },
744
+ ],
745
+ type: 'p',
746
+ },
747
+ ],
787
748
  },
788
749
  },
789
750
  blocks_layout: {
@@ -811,21 +772,18 @@ const mock_all_fields = {
811
772
  prenota_appuntamento: {
812
773
  blocks: {
813
774
  'e26f97de-e008-40a1-929f-315a362f7107': {
814
- '@type': 'text',
815
- text: {
816
- blocks: [
817
- {
818
- data: {},
819
- depth: 0,
820
- entityRanges: [],
821
- inlineStyleRanges: [],
822
- key: 'btarf',
823
- text: "Because I'm easy come, easy go",
824
- type: 'unstyled',
825
- },
826
- ],
827
- entityMap: {},
828
- },
775
+ '@type': 'slate',
776
+ plaintext: "Because I'm easy come, easy go",
777
+ value: [
778
+ {
779
+ children: [
780
+ {
781
+ text: "Because I'm easy come, easy go",
782
+ },
783
+ ],
784
+ type: 'p',
785
+ },
786
+ ],
829
787
  },
830
788
  },
831
789
  blocks_layout: {
@@ -931,21 +889,18 @@ const mock_all_fields = {
931
889
  procedure_collegate: {
932
890
  blocks: {
933
891
  '3ab3b686-ab6e-4a85-bd7b-361e091c05b3': {
934
- '@type': 'text',
935
- text: {
936
- blocks: [
937
- {
938
- data: {},
939
- depth: 0,
940
- entityRanges: [],
941
- inlineStyleRanges: [],
942
- key: 'ba4oq',
943
- text: 'No escape from reality',
944
- type: 'unstyled',
945
- },
946
- ],
947
- entityMap: {},
948
- },
892
+ '@type': 'slate',
893
+ plaintext: 'No escape from reality',
894
+ value: [
895
+ {
896
+ children: [
897
+ {
898
+ text: 'No escape from reality',
899
+ },
900
+ ],
901
+ type: 'p',
902
+ },
903
+ ],
949
904
  },
950
905
  },
951
906
  blocks_layout: {
@@ -988,7 +943,18 @@ const mock_all_fields = {
988
943
  canale_digitale: {
989
944
  blocks: {
990
945
  '33545c64-eadf-429d-9a20-0ab4451bbf2c': {
991
- '@type': 'text',
946
+ '@type': 'slate',
947
+ plaintext: '',
948
+ value: [
949
+ {
950
+ children: [
951
+ {
952
+ text: '',
953
+ },
954
+ ],
955
+ type: 'p',
956
+ },
957
+ ],
992
958
  },
993
959
  },
994
960
  blocks_layout: {
@@ -1030,21 +996,18 @@ const mock_all_fields = {
1030
996
  tempi_e_scadenze: {
1031
997
  blocks: {
1032
998
  'e0c64130-00d4-4747-bc21-b58733cb1b7f': {
1033
- '@type': 'text',
1034
- text: {
1035
- blocks: [
1036
- {
1037
- data: {},
1038
- depth: 0,
1039
- entityRanges: [],
1040
- inlineStyleRanges: [],
1041
- key: 'b6mg7',
1042
- text: 'Dopodomani',
1043
- type: 'unstyled',
1044
- },
1045
- ],
1046
- entityMap: {},
1047
- },
999
+ '@type': 'slate',
1000
+ plaintext: 'Dopodomani',
1001
+ value: [
1002
+ {
1003
+ children: [
1004
+ {
1005
+ text: 'Dopodomani',
1006
+ },
1007
+ ],
1008
+ type: 'p',
1009
+ },
1010
+ ],
1048
1011
  },
1049
1012
  },
1050
1013
  blocks_layout: {
@@ -1115,21 +1078,18 @@ const mock_all_fields = {
1115
1078
  ulteriori_informazioni: {
1116
1079
  blocks: {
1117
1080
  '89f08a66-9c6a-4a30-86d8-d403475eba6e': {
1118
- '@type': 'text',
1119
- text: {
1120
- blocks: [
1121
- {
1122
- data: {},
1123
- depth: 0,
1124
- entityRanges: [],
1125
- inlineStyleRanges: [],
1126
- key: '72f2h',
1127
- text: 'pulled my trigger',
1128
- type: 'unstyled',
1129
- },
1130
- ],
1131
- entityMap: {},
1132
- },
1081
+ '@type': 'slate',
1082
+ plaintext: 'pulled my trigger',
1083
+ value: [
1084
+ {
1085
+ children: [
1086
+ {
1087
+ text: 'pulled my trigger',
1088
+ },
1089
+ ],
1090
+ type: 'p',
1091
+ },
1092
+ ],
1133
1093
  },
1134
1094
  },
1135
1095
  blocks_layout: {
@@ -1141,21 +1101,18 @@ const mock_all_fields = {
1141
1101
  vincoli: {
1142
1102
  blocks: {
1143
1103
  'b3206125-d0d6-474e-935e-09d28602beca': {
1144
- '@type': 'text',
1145
- text: {
1146
- blocks: [
1147
- {
1148
- data: {},
1149
- depth: 0,
1150
- entityRanges: [],
1151
- inlineStyleRanges: [],
1152
- key: '2hlds',
1153
- text: 'Little high, little low',
1154
- type: 'unstyled',
1155
- },
1156
- ],
1157
- entityMap: {},
1158
- },
1104
+ '@type': 'slate',
1105
+ plaintext: 'Little high, little low',
1106
+ value: [
1107
+ {
1108
+ children: [
1109
+ {
1110
+ text: 'Little high, little low',
1111
+ },
1112
+ ],
1113
+ type: 'p',
1114
+ },
1115
+ ],
1159
1116
  },
1160
1117
  },
1161
1118
  blocks_layout: {
@@ -1975,21 +1932,18 @@ const store = mockStore({
1975
1932
  canale_digitale: {
1976
1933
  blocks: {
1977
1934
  '7bebaf7f-40fd-4274-82a4-59180e9dff0b': {
1978
- '@type': 'text',
1979
- text: {
1980
- blocks: [
1981
- {
1982
- data: {},
1983
- depth: 0,
1984
- entityRanges: [],
1985
- inlineStyleRanges: [],
1986
- key: '1e42l',
1987
- text: 'Open your eyes',
1988
- type: 'unstyled',
1989
- },
1990
- ],
1991
- entityMap: {},
1992
- },
1935
+ '@type': 'slate',
1936
+ plaintext: 'Open your eyes',
1937
+ value: [
1938
+ {
1939
+ children: [
1940
+ {
1941
+ text: 'Open your eyes',
1942
+ },
1943
+ ],
1944
+ type: 'p',
1945
+ },
1946
+ ],
1993
1947
  },
1994
1948
  },
1995
1949
  blocks_layout: {