@supernova-studio/client 0.48.30 → 0.48.32

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.d.mts CHANGED
@@ -37878,10 +37878,10 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
37878
37878
  name?: string | undefined;
37879
37879
  description?: string | undefined;
37880
37880
  } | undefined;
37881
+ isPublic?: boolean | undefined;
37881
37882
  docExporterId?: string | undefined;
37882
37883
  docUserSlug?: string | undefined;
37883
37884
  docSlugDeprecated?: string | undefined;
37884
- isPublic?: boolean | undefined;
37885
37885
  isMultibrand?: boolean | undefined;
37886
37886
  basePrefixes?: string[] | undefined;
37887
37887
  designSystemSwitcher?: {
@@ -37895,10 +37895,10 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
37895
37895
  name?: string | undefined;
37896
37896
  description?: string | undefined;
37897
37897
  } | undefined;
37898
+ isPublic?: boolean | undefined;
37898
37899
  docExporterId?: string | null | undefined;
37899
37900
  docUserSlug?: string | null | undefined;
37900
37901
  docSlugDeprecated?: string | undefined;
37901
- isPublic?: boolean | undefined;
37902
37902
  isMultibrand?: boolean | undefined;
37903
37903
  basePrefixes?: string[] | undefined;
37904
37904
  designSystemSwitcher?: {
package/dist/index.d.ts CHANGED
@@ -37878,10 +37878,10 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
37878
37878
  name?: string | undefined;
37879
37879
  description?: string | undefined;
37880
37880
  } | undefined;
37881
+ isPublic?: boolean | undefined;
37881
37882
  docExporterId?: string | undefined;
37882
37883
  docUserSlug?: string | undefined;
37883
37884
  docSlugDeprecated?: string | undefined;
37884
- isPublic?: boolean | undefined;
37885
37885
  isMultibrand?: boolean | undefined;
37886
37886
  basePrefixes?: string[] | undefined;
37887
37887
  designSystemSwitcher?: {
@@ -37895,10 +37895,10 @@ declare const DTODesignSystemUpdateInput: z.ZodObject<z.objectUtil.extendShape<O
37895
37895
  name?: string | undefined;
37896
37896
  description?: string | undefined;
37897
37897
  } | undefined;
37898
+ isPublic?: boolean | undefined;
37898
37899
  docExporterId?: string | null | undefined;
37899
37900
  docUserSlug?: string | null | undefined;
37900
37901
  docSlugDeprecated?: string | undefined;
37901
- isPublic?: boolean | undefined;
37902
37902
  isMultibrand?: boolean | undefined;
37903
37903
  basePrefixes?: string[] | undefined;
37904
37904
  designSystemSwitcher?: {
package/dist/index.js CHANGED
@@ -122,6 +122,7 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
122
122
 
123
123
 
124
124
 
125
+
125
126
 
126
127
 
127
128
  var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
@@ -3410,6 +3411,19 @@ var DocumentationPage = _zod.z.object({
3410
3411
  createdAt: _zod.z.coerce.date(),
3411
3412
  updatedAt: _zod.z.coerce.date()
3412
3413
  });
3414
+ var DocumentationSettings = _zod.z.object({
3415
+ // Basic
3416
+ designSystemVersionId: _zod.z.string(),
3417
+ createdAt: _zod.z.coerce.date(),
3418
+ updatedAt: _zod.z.coerce.date(),
3419
+ // Configuration
3420
+ isTabbedLayoutEnabled: _zod.z.boolean(),
3421
+ storybookEmbedErrorMessage: _zod.z.string().optional(),
3422
+ renderCodePackageJson: _zod.z.string().optional(),
3423
+ selectedBrandPersistentId: _zod.z.string().optional(),
3424
+ serveDefaultVersionOnly: _zod.z.boolean(),
3425
+ isPublic: _zod.z.boolean()
3426
+ });
3413
3427
  var DocumentationComment = _zod.z.object({
3414
3428
  id: _zod.z.string(),
3415
3429
  authorId: _zod.z.string(),
@@ -6385,6 +6399,19 @@ function removeCommentSpansFromPage(content, definitions) {
6385
6399
  value: multiRichTextValue.value.map(removeCommentSpans)
6386
6400
  };
6387
6401
  }
6402
+ if (prop.type === "Table") {
6403
+ const tableValue = value;
6404
+ tableValue.value.forEach((r) => {
6405
+ r.cells.forEach((c) => {
6406
+ c.nodes.forEach((n) => {
6407
+ if (n.type === "RichText") {
6408
+ n.value = removeCommentSpans(n.value);
6409
+ }
6410
+ });
6411
+ });
6412
+ });
6413
+ return tableValue;
6414
+ }
6388
6415
  return value;
6389
6416
  });
6390
6417
  return content;