@uniformdev/canvas 19.214.1-alpha.35 → 19.214.1-alpha.37

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/index.esm.js CHANGED
@@ -805,6 +805,9 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
805
805
  }
806
806
  async upsertContentType(body, opts = {}) {
807
807
  const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
808
+ if (typeof body.contentType.slugSettings === "object" && body.contentType.slugSettings !== null && Object.keys(body.contentType.slugSettings).length === 0) {
809
+ delete body.contentType.slugSettings;
810
+ }
808
811
  await this.apiClient(fetchUri, {
809
812
  method: "PUT",
810
813
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
package/dist/index.js CHANGED
@@ -965,6 +965,9 @@ var _ContentClient = class _ContentClient extends import_api4.ApiClient {
965
965
  }
966
966
  async upsertContentType(body, opts = {}) {
967
967
  const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
968
+ if (typeof body.contentType.slugSettings === "object" && body.contentType.slugSettings !== null && Object.keys(body.contentType.slugSettings).length === 0) {
969
+ delete body.contentType.slugSettings;
970
+ }
968
971
  await this.apiClient(fetchUri, {
969
972
  method: "PUT",
970
973
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
package/dist/index.mjs CHANGED
@@ -805,6 +805,9 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
805
805
  }
806
806
  async upsertContentType(body, opts = {}) {
807
807
  const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
808
+ if (typeof body.contentType.slugSettings === "object" && body.contentType.slugSettings !== null && Object.keys(body.contentType.slugSettings).length === 0) {
809
+ delete body.contentType.slugSettings;
810
+ }
808
811
  await this.apiClient(fetchUri, {
809
812
  method: "PUT",
810
813
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.214.1-alpha.35+6fc698bf99",
3
+ "version": "19.214.1-alpha.37+a5e3049327",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -38,9 +38,9 @@
38
38
  "p-throttle": "5.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/assets": "19.214.1-alpha.35+6fc698bf99",
42
- "@uniformdev/context": "19.214.1-alpha.35+6fc698bf99",
43
- "@uniformdev/richtext": "19.214.1-alpha.35+6fc698bf99",
41
+ "@uniformdev/assets": "19.214.1-alpha.37+a5e3049327",
42
+ "@uniformdev/context": "19.214.1-alpha.37+a5e3049327",
43
+ "@uniformdev/richtext": "19.214.1-alpha.37+a5e3049327",
44
44
  "immer": "10.1.1"
45
45
  },
46
46
  "files": [
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "6fc698bf99ac7e8387e41b522af3582d0c8ab57e"
52
+ "gitHead": "a5e3049327e1d7e0bb0fb4e0c9a74dd4b9487c54"
53
53
  }