@webbio/strapi-plugin-page-builder 0.11.11-platform → 0.11.13-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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webbio/strapi-plugin-page-builder",
3
- "version": "0.11.11-platform",
3
+ "version": "0.11.13-platform",
4
4
  "description": "This is the description of the plugin.",
5
5
  "scripts": {
6
6
  "develop": "tsc -p tsconfig.server.json -w",
@@ -7,7 +7,6 @@ const page_by_path_1 = __importDefault(require("./graphql/page-by-path"));
7
7
  const page_type_1 = __importDefault(require("./graphql/page-type"));
8
8
  const pages_by_uid_1 = __importDefault(require("./graphql/pages-by-uid"));
9
9
  exports.default = async ({ strapi }) => {
10
- var _a, _b;
11
10
  strapi.customFields.register({
12
11
  name: 'filtered-select',
13
12
  plugin: 'page-builder',
@@ -18,6 +17,6 @@ exports.default = async ({ strapi }) => {
18
17
  extensionService.use((0, page_by_path_1.default)(strapi));
19
18
  extensionService.use((0, pages_by_uid_1.default)(strapi));
20
19
  extensionService.shadowCRUD('api::page.page').disableActions(['find', 'findOne']);
21
- await ((_b = (_a = strapi.services) === null || _a === void 0 ? void 0 : _a['plugin::page-builder.builder']) === null || _b === void 0 ? void 0 : _b.buildContentTypes());
20
+ await strapi.service('plugin::page-builder.builder').buildContentTypes();
22
21
  await strapi.service('plugin::page-builder.private-content').enablePrivateContent();
23
22
  };
@@ -16,11 +16,6 @@
16
16
  },
17
17
  "domain": {
18
18
  "type": "string"
19
- },
20
- "platformEmails": {
21
- "type": "component",
22
- "repeatable": false,
23
- "component": "internal.platform-email"
24
19
  }
25
20
  }
26
21
  }
@@ -8,7 +8,7 @@ const page_1 = require("./page");
8
8
  exports.default = {
9
9
  async enablePrivateContent() {
10
10
  var _a, _b;
11
- if (this.isPrivateContentEnabled) {
11
+ if (this.isPrivateContentEnabled()) {
12
12
  await ((_b = (_a = strapi.services) === null || _a === void 0 ? void 0 : _a['plugin::page-builder.builder']) === null || _b === void 0 ? void 0 : _b.buildComponents());
13
13
  (0, user_1.extendUser)();
14
14
  (0, user_1.extendControllers)();
@@ -10,6 +10,11 @@ const extendPlatform = () => {
10
10
  type: 'boolean',
11
11
  required: false,
12
12
  default: false
13
+ },
14
+ platformEmails: {
15
+ type: 'component',
16
+ repeatable: false,
17
+ component: 'internal.platform-email'
13
18
  }
14
19
  };
15
20
  delete platformContentType.attributes.username;