storyblok 4.17.10 → 4.17.11

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.mjs CHANGED
@@ -86,10 +86,10 @@ const managementApiRegions = {
86
86
  };
87
87
  const appDomains = {
88
88
  eu: "app.storyblok.com",
89
- us: "app-us.storyblok.com",
90
- cn: "app.storyblokchina.cn",
91
- ca: "app-ca.storyblok.com",
92
- ap: "app-ap.storyblok.com"
89
+ us: "app.storyblok.com",
90
+ cn: "app.storyblokchina.cn/fe/editor_v2",
91
+ ca: "app.storyblok.com",
92
+ ap: "app.storyblok.com"
93
93
  };
94
94
  const regionNames = {
95
95
  eu: "Europe",
@@ -3940,10 +3940,13 @@ const fetchSpace = async (spaceId) => {
3940
3940
  };
3941
3941
  const createSpace = async (space) => {
3942
3942
  try {
3943
+ const { in_org, assign_partner, ...spaceData } = space;
3943
3944
  const client = getMapiClient();
3944
3945
  const { data } = await client.spaces.create({
3945
3946
  body: {
3946
- space
3947
+ space: spaceData,
3948
+ ...in_org && { in_org },
3949
+ ...assign_partner && { assign_partner }
3947
3950
  }
3948
3951
  });
3949
3952
  return data?.space;