@blokkli/editor 2.0.0-alpha.46 → 2.0.0-alpha.47

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 (74) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +2 -1
  3. package/dist/modules/agent/runtime/app/helpers/validation.d.ts +13 -0
  4. package/dist/modules/agent/runtime/app/helpers/validation.js +22 -0
  5. package/dist/modules/agent/runtime/app/tools/add_content_search_paragraph/index.js +12 -0
  6. package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +12 -1
  7. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +12 -0
  8. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +10 -0
  9. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +12 -0
  10. package/dist/modules/agent/runtime/app/tools/add_template/index.js +5 -0
  11. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +15 -0
  12. package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.js +12 -0
  13. package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.js +12 -0
  14. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +16 -1
  15. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +17 -0
  16. package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.js +11 -0
  17. package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.js +8 -0
  18. package/dist/modules/agent/runtime/app/tools/replace_media_field/index.js +10 -0
  19. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +10 -0
  20. package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.js +15 -0
  21. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.js +21 -1
  22. package/dist/modules/agent/runtime/app/types/index.d.ts +6 -6
  23. package/dist/modules/drupal/index.mjs +2 -1
  24. package/dist/modules/drupal/runtime/adapter/index.js +15 -3
  25. package/dist/runtime/editor/components/Actions/index.vue +47 -2
  26. package/dist/runtime/editor/components/AnimationCanvas/index.vue +6 -3
  27. package/dist/runtime/editor/components/BundleSelector/index.d.vue.ts +8 -4
  28. package/dist/runtime/editor/components/BundleSelector/index.vue +111 -13
  29. package/dist/runtime/editor/components/BundleSelector/index.vue.d.ts +8 -4
  30. package/dist/runtime/editor/components/EditProvider.vue +2 -2
  31. package/dist/runtime/editor/components/FlexTextarea/index.vue +8 -1
  32. package/dist/runtime/editor/css/output.css +1 -1
  33. package/dist/runtime/editor/features/add-list/Blocks/index.vue +6 -3
  34. package/dist/runtime/editor/features/analyze/Renderer/index.vue +1 -1
  35. package/dist/runtime/editor/features/block-scheduler/index.vue +7 -1
  36. package/dist/runtime/editor/features/changelog/Dialog/index.vue +1 -1
  37. package/dist/runtime/editor/features/changelog/changelog.json +18 -10
  38. package/dist/runtime/editor/features/clipboard/index.vue +6 -1
  39. package/dist/runtime/editor/features/comments/AddForm/index.d.vue.ts +2 -2
  40. package/dist/runtime/editor/features/comments/AddForm/index.vue.d.ts +2 -2
  41. package/dist/runtime/editor/features/delete/index.vue +17 -2
  42. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +12 -2
  43. package/dist/runtime/editor/features/dragging-overlay/index.vue +5 -2
  44. package/dist/runtime/editor/features/duplicate/index.vue +23 -7
  45. package/dist/runtime/editor/features/edit/index.vue +29 -8
  46. package/dist/runtime/editor/features/editable-field/index.vue +15 -1
  47. package/dist/runtime/editor/features/fragments/index.vue +5 -2
  48. package/dist/runtime/editor/features/hover/Renderer/index.vue +19 -6
  49. package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +5 -2
  50. package/dist/runtime/editor/features/library/index.vue +52 -8
  51. package/dist/runtime/editor/features/media-library/index.vue +7 -2
  52. package/dist/runtime/editor/features/multi-select/Renderer/index.vue +4 -1
  53. package/dist/runtime/editor/features/search/index.vue +7 -2
  54. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +1 -1
  55. package/dist/runtime/editor/features/selection/AddButtons/index.vue +26 -2
  56. package/dist/runtime/editor/features/selection/Renderer/index.vue +23 -5
  57. package/dist/runtime/editor/features/selection/Renderer/vertex.glsl +5 -2
  58. package/dist/runtime/editor/features/selection/index.vue +17 -5
  59. package/dist/runtime/editor/features/translations/index.vue +17 -11
  60. package/dist/runtime/editor/helpers/dropTargets/index.d.ts +1 -1
  61. package/dist/runtime/editor/helpers/dropTargets/index.js +2 -2
  62. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +4 -1
  63. package/dist/runtime/editor/plugins/ItemAction/index.vue +9 -3
  64. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +4 -1
  65. package/dist/runtime/editor/providers/permissions.d.ts +22 -1
  66. package/dist/runtime/editor/providers/permissions.js +99 -3
  67. package/dist/runtime/editor/providers/selection.d.ts +2 -1
  68. package/dist/runtime/editor/providers/selection.js +10 -5
  69. package/dist/runtime/editor/translations/de.json +89 -1
  70. package/dist/runtime/editor/translations/fr.json +89 -1
  71. package/dist/runtime/editor/translations/gsw_CH.json +89 -1
  72. package/dist/runtime/editor/translations/it.json +89 -1
  73. package/dist/runtime/editor/types/definitions.d.ts +2 -0
  74. package/package.json +1 -1
@@ -1175,6 +1175,14 @@
1175
1175
  "source": "Bundle",
1176
1176
  "translation": ""
1177
1177
  },
1178
+ "bundleSelectorActionsLabel": {
1179
+ "source": "Actions",
1180
+ "translation": ""
1181
+ },
1182
+ "bundleSelectorFragmentsLabel": {
1183
+ "source": "Fragments",
1184
+ "translation": ""
1185
+ },
1178
1186
  "cancelSelection": {
1179
1187
  "source": "Cancel selection",
1180
1188
  "translation": ""
@@ -1547,6 +1555,10 @@
1547
1555
  "source": "The block could not be deleted.",
1548
1556
  "translation": "L'elemento non può essere rimosso."
1549
1557
  },
1558
+ "deleteNoPermission": {
1559
+ "source": "You do not have permission to delete this block.",
1560
+ "translation": ""
1561
+ },
1550
1562
  "diffAfter": {
1551
1563
  "source": "After",
1552
1564
  "translation": ""
@@ -1611,10 +1623,26 @@
1611
1623
  "source": "The items could not be duplicated.",
1612
1624
  "translation": "Gli elementi non possono essere duplicati."
1613
1625
  },
1626
+ "duplicateFieldFull": {
1627
+ "source": "The field has reached its maximum number of blocks.",
1628
+ "translation": ""
1629
+ },
1630
+ "duplicateNoPermission": {
1631
+ "source": "You do not have permission to duplicate this block.",
1632
+ "translation": ""
1633
+ },
1634
+ "duplicateNotAllowed": {
1635
+ "source": "This block type is not allowed in this field.",
1636
+ "translation": ""
1637
+ },
1614
1638
  "edit": {
1615
- "source": "Edit...",
1639
+ "source": "Edit",
1616
1640
  "translation": "Modifica"
1617
1641
  },
1642
+ "editDisabledByDefinition": {
1643
+ "source": "Editing is disabled for this block type.",
1644
+ "translation": ""
1645
+ },
1618
1646
  "editFormBlockAdd": {
1619
1647
  "source": "Add @label",
1620
1648
  "translation": ""
@@ -1635,6 +1663,10 @@
1635
1663
  "source": "Translate \"@label\" (@language)",
1636
1664
  "translation": ""
1637
1665
  },
1666
+ "editFragmentNotEditable": {
1667
+ "source": "This fragment cannot be edited.",
1668
+ "translation": ""
1669
+ },
1638
1670
  "editIndicatorLabel": {
1639
1671
  "source": "Edit blocks",
1640
1672
  "translation": "Modifica elementi"
@@ -1647,6 +1679,18 @@
1647
1679
  "source": "View changes",
1648
1680
  "translation": ""
1649
1681
  },
1682
+ "editLibraryNotAvailable": {
1683
+ "source": "This reusable block cannot be edited right now.",
1684
+ "translation": ""
1685
+ },
1686
+ "editNoLibraryPermission": {
1687
+ "source": "You do not have permission to edit library items.",
1688
+ "translation": ""
1689
+ },
1690
+ "editNoPermission": {
1691
+ "source": "You do not have permission to edit this block.",
1692
+ "translation": ""
1693
+ },
1650
1694
  "editableCommandEdit": {
1651
1695
  "source": "Edit field \"@name\"",
1652
1696
  "translation": ""
@@ -2359,10 +2403,30 @@
2359
2403
  "source": "From library",
2360
2404
  "translation": ""
2361
2405
  },
2406
+ "libraryAddNoEditPermission": {
2407
+ "source": "You do not have permission to edit this block.",
2408
+ "translation": ""
2409
+ },
2410
+ "libraryAddNoPermission": {
2411
+ "source": "You do not have permission to create library items.",
2412
+ "translation": ""
2413
+ },
2414
+ "libraryAddNotAllowedInField": {
2415
+ "source": "Reusable blocks are not allowed in this field.",
2416
+ "translation": ""
2417
+ },
2418
+ "libraryAddNotSupported": {
2419
+ "source": "This block type cannot be made reusable.",
2420
+ "translation": ""
2421
+ },
2362
2422
  "libraryDetach": {
2363
2423
  "source": "Detach from library",
2364
2424
  "translation": ""
2365
2425
  },
2426
+ "libraryDetachNoPermission": {
2427
+ "source": "You do not have permission to detach this block.",
2428
+ "translation": ""
2429
+ },
2366
2430
  "libraryDialogDescriptionLabel": {
2367
2431
  "source": "Description",
2368
2432
  "translation": "Descrizione"
@@ -2815,6 +2879,14 @@
2815
2879
  "source": "See how your changes look like on smaller screens, such as smartphones. Click on the \"detach\" button to be able to select additional viewport sizes.",
2816
2880
  "translation": ""
2817
2881
  },
2882
+ "restrictedPermissionsAll": {
2883
+ "source": "Some actions are not available due to missing permissions.",
2884
+ "translation": ""
2885
+ },
2886
+ "restrictedPermissionsSome": {
2887
+ "source": "Some actions are restricted due to missing permissions.",
2888
+ "translation": ""
2889
+ },
2818
2890
  "revertDialogLead": {
2819
2891
  "source": "This will delete all changes and restore the currently published state. This action cannot be undone.",
2820
2892
  "translation": "Questo eliminerà tutte le modifiche e ripristinerà lo stato attualmente pubblicato. Questa azione non può essere annullata."
@@ -2847,6 +2919,10 @@
2847
2919
  "source": "The changes will be published on this date.",
2848
2920
  "translation": ""
2849
2921
  },
2922
+ "schedulerNotSupported": {
2923
+ "source": "Scheduling is not available for this block type.",
2924
+ "translation": ""
2925
+ },
2850
2926
  "searchBoxNoResultsFound": {
2851
2927
  "source": "No results found",
2852
2928
  "translation": "Nessun risultato trovato"
@@ -3179,6 +3255,18 @@
3179
3255
  "source": "Preview",
3180
3256
  "translation": ""
3181
3257
  },
3258
+ "translateEditDisabled": {
3259
+ "source": "Editing is disabled for this block type.",
3260
+ "translation": ""
3261
+ },
3262
+ "translateLibraryBlock": {
3263
+ "source": "Reusable blocks cannot be translated here.",
3264
+ "translation": ""
3265
+ },
3266
+ "translateNotTranslatable": {
3267
+ "source": "This block type is not translatable.",
3268
+ "translation": ""
3269
+ },
3182
3270
  "translationsBannerButton": {
3183
3271
  "source": "Edit source language instead",
3184
3272
  "translation": ""
@@ -1,3 +1,4 @@
1
+ export type BlockPermission = 'add' | 'delete' | 'edit';
1
2
  export interface BlockBundleDefinition {
2
3
  id: string;
3
4
  label: string;
@@ -7,6 +8,7 @@ export interface BlockBundleDefinition {
7
8
  isTranslatable?: boolean;
8
9
  hasPublishOn?: boolean;
9
10
  hasUnpublishOn?: boolean;
11
+ permissions: BlockPermission[];
10
12
  }
11
13
  export type FieldConfig = {
12
14
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "2.0.0-alpha.46",
3
+ "version": "2.0.0-alpha.47",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "keywords": [
6
6
  "cms",