@webbio/strapi-plugin-page-builder 0.15.5-platform → 0.16.0-platform

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webbio/strapi-plugin-page-builder",
3
- "version": "0.15.5-platform",
3
+ "version": "0.16.0-platform",
4
4
  "description": "This is the description of the plugin.",
5
5
  "scripts": {
6
6
  "develop": "tsc -p tsconfig.server.json -w",
@@ -23,12 +23,12 @@
23
23
  "@aws-sdk/client-ses": "^3.485.0",
24
24
  "@mantine/hooks": "^7.2.2",
25
25
  "@sindresorhus/slugify": "^2.2.1",
26
- "@strapi/design-system": "^1.11.0",
27
- "@strapi/helper-plugin": "^4.15.0",
28
- "@strapi/icons": "^1.11.0",
26
+ "@strapi/design-system": "^1.19.0",
27
+ "@strapi/helper-plugin": "^4.25.4",
28
+ "@strapi/icons": "^1.19.0",
29
29
  "@strapi/provider-email-amazon-ses": "^4.16.2",
30
- "@strapi/typescript-utils": "^4.15.0",
31
- "@strapi/utils": "^4.15.0",
30
+ "@strapi/typescript-utils": "^4.25.4",
31
+ "@strapi/utils": "^4.25.4",
32
32
  "add": "^2.0.6",
33
33
  "aws-sdk": "^2.1528.0",
34
34
  "fuse.js": "^7.0.0",
@@ -48,8 +48,8 @@
48
48
  "typescript": "5.1.6"
49
49
  },
50
50
  "peerDependencies": {
51
- "@strapi/strapi": "^4.15.0",
52
- "@webbio/strapi-plugin-slug": "^3.3.1",
51
+ "@strapi/strapi": "^4.25.4",
52
+ "@webbio/strapi-plugin-slug": "^3.3.2",
53
53
  "react": "^17.0.0 || ^18.0.0",
54
54
  "react-dom": "^17.0.0 || ^18.0.0",
55
55
  "react-router-dom": "^5.3.4",
@@ -102,11 +102,18 @@ export default async ({ strapi }: { strapi: Strapi }) => {
102
102
  }
103
103
 
104
104
  return {
105
- $and: [
105
+ $or: [
106
106
  {
107
107
  'platform.id': {
108
108
  $eq: platform.id
109
109
  }
110
+ },
111
+ {
112
+ // This is a fix for not showing data after saving. After an update, no platform is returned for the page, so the permission system thinks the user has no access.
113
+ // All pages have a platform, so this fix won't break anything 🙏
114
+ 'platform.id': {
115
+ $eq: null
116
+ }
110
117
  }
111
118
  ]
112
119
  };