apostrophe 4.11.0 → 4.11.2

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,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.11.2 (2024-12-29)
4
+
5
+ ### Fixes
6
+
7
+ * Fixes a bug where images in Media manager are not selectable (click on an image does nothing) in both default and relationship mode.
8
+
9
+ ## 4.11.1 (2024-12-18)
10
+
11
+ ### Fixes
12
+
13
+ * Corrected a unit test that relies on the sitemap module, as it now makes explicit that the project level `baseUrl` must be set for a successful experience, and the module level `baseUrl` was set earlier. No other changes.
14
+
3
15
  ## 4.11.0 (2024-12-18)
4
16
 
5
17
  ### Adds
@@ -10,8 +10,8 @@
10
10
  @create-placeholder="$emit('create-placeholder', $event)"
11
11
  />
12
12
  <div
13
- v-for="item in items"
14
- :key="idFor(item)"
13
+ v-for="item in itemsWithKeys"
14
+ :key="item.__key"
15
15
  class="apos-media-manager-display__cell"
16
16
  :class="{'apos-is-selected': checked.includes(item._id)}"
17
17
  :style="getCellStyles(item)"
@@ -162,6 +162,12 @@ export default {
162
162
  : val
163
163
  );
164
164
  }
165
+ },
166
+ itemsWithKeys() {
167
+ return this.items.map((item) => ({
168
+ ...item,
169
+ __key: this.idFor(item)
170
+ }));
165
171
  }
166
172
  },
167
173
  watch: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apostrophe",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "The Apostrophe Content Management System.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,16 +1,13 @@
1
1
  export default {
2
2
  root: import.meta,
3
3
  shortName: 'esm-project',
4
+ baseUrl: 'http://localhost:3000',
4
5
  modules: {
5
6
  '@apostrophecms/express': {
6
7
  options: {
7
8
  address: '127.0.0.1'
8
9
  }
9
10
  },
10
- '@apostrophecms/sitemap': {
11
- options: {
12
- baseUrl: 'http://localhost:3000'
13
- }
14
- }
11
+ '@apostrophecms/sitemap': {}
15
12
  }
16
13
  };
@@ -1,16 +1,13 @@
1
1
  module.exports = {
2
2
  root: module,
3
3
  shortName: 'workspaces-project',
4
+ baseUrl: 'http://localhost:3000',
4
5
  modules: {
5
6
  '@apostrophecms/express': {
6
7
  options: {
7
8
  address: '127.0.0.1'
8
9
  }
9
10
  },
10
- '@apostrophecms/sitemap': {
11
- options: {
12
- baseUrl: 'http://localhost:3000'
13
- }
14
- }
11
+ '@apostrophecms/sitemap': {}
15
12
  }
16
13
  };