apostrophe 3.35.0 → 3.36.0

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## 3.36.0 (2022-12-22)
5
+
6
+ ### Adds
7
+
8
+ * `shortcut` option for piece modules, allowing easy re-mapping of the manager command shortcut per module.
9
+
10
+ ### Fixes
11
+
12
+ * Ensure there are no conflicting command shortcuts for the core modules.
13
+
4
14
  ## 3.35.0 (2022-12-21)
5
15
 
6
16
  ### Adds
@@ -98,7 +98,7 @@ module.exports = {
98
98
  action: 'edit',
99
99
  type: self.__meta.name
100
100
  },
101
- shortcut: `G,${self.apos.task.getReq().t(self.options.label).slice(0, 1)}`
101
+ shortcut: self.options.shortcut ?? `G,${self.apos.task.getReq().t(self.options.label).slice(0, 1)}`
102
102
  },
103
103
  [`${self.__meta.name}:create-new`]: {
104
104
  type: 'item',
@@ -6,7 +6,8 @@ module.exports = {
6
6
  quickCreate: false,
7
7
  autopublish: true,
8
8
  editRole: 'editor',
9
- publishRole: 'editor'
9
+ publishRole: 'editor',
10
+ shortcut: 'G,g'
10
11
  },
11
12
  fields: {
12
13
  remove: [ 'visibility' ]
@@ -6,7 +6,8 @@ module.exports = {
6
6
  quickCreate: false,
7
7
  autopublish: true,
8
8
  editRole: 'editor',
9
- publishRole: 'editor'
9
+ publishRole: 'editor',
10
+ shortcut: 'G,o'
10
11
  },
11
12
  fields: {
12
13
  remove: [ 'visibility' ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apostrophe",
3
- "version": "3.35.0",
3
+ "version": "3.36.0",
4
4
  "description": "The Apostrophe Content Management System.",
5
5
  "main": "index.js",
6
6
  "scripts": {