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

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 (79) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +23 -6
  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 +26 -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/Library/FilterSelect/index.d.vue.ts +15 -0
  52. package/dist/runtime/editor/features/media-library/Library/FilterSelect/index.vue +168 -0
  53. package/dist/runtime/editor/features/media-library/Library/FilterSelect/index.vue.d.ts +15 -0
  54. package/dist/runtime/editor/features/media-library/Library/index.vue +21 -16
  55. package/dist/runtime/editor/features/media-library/index.vue +7 -2
  56. package/dist/runtime/editor/features/multi-select/Renderer/index.vue +4 -1
  57. package/dist/runtime/editor/features/search/index.vue +7 -2
  58. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +1 -1
  59. package/dist/runtime/editor/features/selection/AddButtons/index.vue +26 -2
  60. package/dist/runtime/editor/features/selection/Renderer/index.vue +23 -5
  61. package/dist/runtime/editor/features/selection/Renderer/vertex.glsl +5 -2
  62. package/dist/runtime/editor/features/selection/index.vue +17 -5
  63. package/dist/runtime/editor/features/translations/index.vue +17 -11
  64. package/dist/runtime/editor/helpers/dropTargets/index.d.ts +1 -1
  65. package/dist/runtime/editor/helpers/dropTargets/index.js +2 -2
  66. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +4 -1
  67. package/dist/runtime/editor/plugins/ItemAction/index.vue +9 -3
  68. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +4 -1
  69. package/dist/runtime/editor/providers/keyboard.js +8 -5
  70. package/dist/runtime/editor/providers/permissions.d.ts +22 -1
  71. package/dist/runtime/editor/providers/permissions.js +99 -3
  72. package/dist/runtime/editor/providers/selection.d.ts +2 -1
  73. package/dist/runtime/editor/providers/selection.js +10 -5
  74. package/dist/runtime/editor/translations/de.json +96 -0
  75. package/dist/runtime/editor/translations/fr.json +96 -0
  76. package/dist/runtime/editor/translations/gsw_CH.json +515 -419
  77. package/dist/runtime/editor/translations/it.json +96 -0
  78. package/dist/runtime/editor/types/definitions.d.ts +2 -0
  79. 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
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": ""
@@ -2215,6 +2259,14 @@
2215
2259
  "source": "This field is required",
2216
2260
  "translation": "Questo campo è obbligatorio"
2217
2261
  },
2262
+ "filterSelectNoResults": {
2263
+ "source": "No results",
2264
+ "translation": ""
2265
+ },
2266
+ "filterSelectSearch": {
2267
+ "source": "Search...",
2268
+ "translation": ""
2269
+ },
2218
2270
  "fragmentsAddFragmentAction": {
2219
2271
  "source": "Fragment",
2220
2272
  "translation": ""
@@ -2359,10 +2411,30 @@
2359
2411
  "source": "From library",
2360
2412
  "translation": ""
2361
2413
  },
2414
+ "libraryAddNoEditPermission": {
2415
+ "source": "You do not have permission to edit this block.",
2416
+ "translation": ""
2417
+ },
2418
+ "libraryAddNoPermission": {
2419
+ "source": "You do not have permission to create library items.",
2420
+ "translation": ""
2421
+ },
2422
+ "libraryAddNotAllowedInField": {
2423
+ "source": "Reusable blocks are not allowed in this field.",
2424
+ "translation": ""
2425
+ },
2426
+ "libraryAddNotSupported": {
2427
+ "source": "This block type cannot be made reusable.",
2428
+ "translation": ""
2429
+ },
2362
2430
  "libraryDetach": {
2363
2431
  "source": "Detach from library",
2364
2432
  "translation": ""
2365
2433
  },
2434
+ "libraryDetachNoPermission": {
2435
+ "source": "You do not have permission to detach this block.",
2436
+ "translation": ""
2437
+ },
2366
2438
  "libraryDialogDescriptionLabel": {
2367
2439
  "source": "Description",
2368
2440
  "translation": "Descrizione"
@@ -2815,6 +2887,14 @@
2815
2887
  "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
2888
  "translation": ""
2817
2889
  },
2890
+ "restrictedPermissionsAll": {
2891
+ "source": "Some actions are not available due to missing permissions.",
2892
+ "translation": ""
2893
+ },
2894
+ "restrictedPermissionsSome": {
2895
+ "source": "Some actions are restricted due to missing permissions.",
2896
+ "translation": ""
2897
+ },
2818
2898
  "revertDialogLead": {
2819
2899
  "source": "This will delete all changes and restore the currently published state. This action cannot be undone.",
2820
2900
  "translation": "Questo eliminerà tutte le modifiche e ripristinerà lo stato attualmente pubblicato. Questa azione non può essere annullata."
@@ -2847,6 +2927,10 @@
2847
2927
  "source": "The changes will be published on this date.",
2848
2928
  "translation": ""
2849
2929
  },
2930
+ "schedulerNotSupported": {
2931
+ "source": "Scheduling is not available for this block type.",
2932
+ "translation": ""
2933
+ },
2850
2934
  "searchBoxNoResultsFound": {
2851
2935
  "source": "No results found",
2852
2936
  "translation": "Nessun risultato trovato"
@@ -3179,6 +3263,18 @@
3179
3263
  "source": "Preview",
3180
3264
  "translation": ""
3181
3265
  },
3266
+ "translateEditDisabled": {
3267
+ "source": "Editing is disabled for this block type.",
3268
+ "translation": ""
3269
+ },
3270
+ "translateLibraryBlock": {
3271
+ "source": "Reusable blocks cannot be translated here.",
3272
+ "translation": ""
3273
+ },
3274
+ "translateNotTranslatable": {
3275
+ "source": "This block type is not translatable.",
3276
+ "translation": ""
3277
+ },
3182
3278
  "translationsBannerButton": {
3183
3279
  "source": "Edit source language instead",
3184
3280
  "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.48",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "keywords": [
6
6
  "cms",