@supernova-studio/client 0.49.2 → 0.51.0

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
@@ -293,7 +293,8 @@ var FeaturesSummary = z6.object({
293
293
  workspacePaidSeats: featureLimitedSchema,
294
294
  workspaceViewers: featureLimitedSchema,
295
295
  customDocumentationExporter: featureToggleSchema,
296
- protectedPages: featureToggleSchema
296
+ protectedPages: featureToggleSchema,
297
+ approvals: featureToggleSchema
297
298
  });
298
299
  var InvoiceSchema = z7.object({
299
300
  id: z7.string(),
@@ -3635,6 +3636,7 @@ var DesignSystem = z118.object({
3635
3636
  basePrefixes: z118.array(z118.string()),
3636
3637
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3637
3638
  isApprovalFeatureEnabled: z118.boolean(),
3639
+ approvalRequiredForPublishing: z118.boolean(),
3638
3640
  createdAt: z118.coerce.date(),
3639
3641
  updatedAt: z118.coerce.date()
3640
3642
  });
@@ -6328,9 +6330,9 @@ var VersionRoomBaseYDoc = class {
6328
6330
  }
6329
6331
  updateDocumentationInternalSettings(settings) {
6330
6332
  const map = this.internalSettingsYMap;
6331
- map.set("routingVersion", settings.routingVersion);
6332
- map.set("isDraftFeatureAdopted", settings.isDraftFeatureAdopted);
6333
- map.set("isApprovalFeatureEnabled", settings.isApprovalFeatureEnabled);
6333
+ map.set("routingVersion", settings.routingVersion ?? map.get("routingVersion"));
6334
+ map.set("isDraftFeatureAdopted", settings.isDraftFeatureAdopted ?? map.get("isDraftFeatureAdopted"));
6335
+ map.set("isApprovalFeatureEnabled", settings.isApprovalFeatureEnabled ?? map.get("isApprovalFeatureEnabled"));
6334
6336
  }
6335
6337
  get internalSettingsYMap() {
6336
6338
  return this.yDoc.getMap("documentationInternalSettings");