@supernova-studio/client 0.54.20 → 0.54.22

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
@@ -294,7 +294,8 @@ var FeaturesSummary = z6.object({
294
294
  customDocumentationExporter: featureToggleSchema,
295
295
  protectedPages: featureToggleSchema,
296
296
  approvals: featureToggleSchema,
297
- selectivePublishing: featureToggleSchema
297
+ selectivePublishing: featureToggleSchema,
298
+ designSystemAccessModes: featureToggleSchema
298
299
  });
299
300
  var InvoiceSchema = z7.object({
300
301
  id: z7.string(),
@@ -4966,7 +4967,7 @@ var DTOPagination = z172.object({
4966
4967
  });
4967
4968
 
4968
4969
  // src/api/dto/bff/app-bootstrap-data.ts
4969
- import { z as z195 } from "zod";
4970
+ import { z as z196 } from "zod";
4970
4971
 
4971
4972
  // src/api/dto/design-systems/brand.ts
4972
4973
  import { z as z173 } from "zod";
@@ -5136,8 +5137,8 @@ var DTODesignSystemMembersUpdateResponse = z178.object({
5136
5137
  ok: z178.literal(true)
5137
5138
  });
5138
5139
  var DTODesignSystemMembersUpdatePayload = z178.object({
5139
- inviteUserIds: z178.string().array(),
5140
- removeUserIds: z178.string().array()
5140
+ inviteUserIds: z178.string().array().optional(),
5141
+ removeUserIds: z178.string().array().optional()
5141
5142
  });
5142
5143
 
5143
5144
  // src/api/dto/design-systems/version.ts
@@ -5452,47 +5453,64 @@ var DTOIntegrationsGetListResponse = z191.object({
5452
5453
  integrations: DTOIntegration.array()
5453
5454
  });
5454
5455
 
5456
+ // src/api/dto/workspaces/invitations.ts
5457
+ import { z as z192 } from "zod";
5458
+ var DTOWorkspaceInvitationInput = z192.object({
5459
+ email: z192.string().email(),
5460
+ role: WorkspaceRoleSchema
5461
+ });
5462
+ var DTOWorkspaceInvitationsListInput = z192.object({
5463
+ invites: DTOWorkspaceInvitationInput.array().max(100),
5464
+ designSystemId: z192.string().optional()
5465
+ });
5466
+
5455
5467
  // src/api/dto/workspaces/membership.ts
5456
- import { z as z194 } from "zod";
5468
+ import { z as z195 } from "zod";
5457
5469
 
5458
5470
  // src/api/dto/workspaces/workspace.ts
5459
- import { z as z193 } from "zod";
5471
+ import { z as z194 } from "zod";
5460
5472
 
5461
5473
  // src/api/dto/workspaces/npm-registry.ts
5462
- import { z as z192 } from "zod";
5474
+ import { z as z193 } from "zod";
5463
5475
  var DTONpmRegistryConfigConstants = {
5464
5476
  passwordPlaceholder: "redacted"
5465
5477
  };
5466
- var DTONpmRegistryConfig = z192.object({
5478
+ var DTONpmRegistryConfig = z193.object({
5467
5479
  // Registry basic configuration
5468
5480
  registryType: NpmRegistryType,
5469
- registryUrl: z192.string(),
5470
- customRegistryUrl: z192.string().optional(),
5481
+ registryUrl: z193.string(),
5482
+ customRegistryUrl: z193.string().optional(),
5471
5483
  // URL of Supernova NPM packages proxy
5472
- proxyUrl: z192.string(),
5484
+ proxyUrl: z193.string(),
5473
5485
  // Auth configuration
5474
5486
  authType: NpmRegistryAuthType,
5475
- accessToken: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5476
- username: z192.string().optional(),
5477
- password: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5487
+ accessToken: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5488
+ username: z193.string().optional(),
5489
+ password: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5478
5490
  // NPM package scopes for whih the proxy should be enabled
5479
- enabledScopes: z192.array(z192.string()),
5491
+ enabledScopes: z193.array(z193.string()),
5480
5492
  // True if client should bypass Supernova proxy and connect directly to the registry
5481
5493
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5482
- bypassProxy: z192.boolean()
5494
+ bypassProxy: z193.boolean()
5483
5495
  });
5484
5496
 
5485
5497
  // src/api/dto/workspaces/workspace.ts
5486
- var DTOWorkspace = z193.object({
5487
- id: z193.string(),
5498
+ var DTOWorkspace = z194.object({
5499
+ id: z194.string(),
5488
5500
  profile: WorkspaceProfile,
5489
5501
  subscription: Subscription,
5490
5502
  npmRegistry: DTONpmRegistryConfig.optional()
5491
5503
  });
5504
+ var DTOWorkspaceCreateInput = z194.object({
5505
+ name: z194.string()
5506
+ });
5507
+ var DTOWorkspaceCreateResponse = z194.object({
5508
+ workspace: DTOWorkspace
5509
+ });
5492
5510
 
5493
5511
  // src/api/dto/workspaces/membership.ts
5494
- var DTOWorkspaceRole = z194.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5495
- var DTOUserWorkspaceMembership = z194.object({
5512
+ var DTOWorkspaceRole = z195.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5513
+ var DTOUserWorkspaceMembership = z195.object({
5496
5514
  // Workspace the user is a member of
5497
5515
  workspace: DTOWorkspace,
5498
5516
  // Assigned role the user has in the workspace
@@ -5502,18 +5520,18 @@ var DTOUserWorkspaceMembership = z194.object({
5502
5520
  // when a workspace's subscription is downgraded to free tier
5503
5521
  effectiveRole: DTOWorkspaceRole
5504
5522
  });
5505
- var DTOUserWorkspaceMembershipsResponse = z194.object({
5506
- membership: z194.array(DTOUserWorkspaceMembership)
5523
+ var DTOUserWorkspaceMembershipsResponse = z195.object({
5524
+ membership: z195.array(DTOUserWorkspaceMembership)
5507
5525
  });
5508
5526
 
5509
5527
  // src/api/dto/bff/app-bootstrap-data.ts
5510
- var DTOAppBootstrapDataQuery = z195.object({
5511
- preferredWorkspaceId: z195.string().optional(),
5512
- preferredDesignSystemId: z195.string().optional(),
5513
- preferredVersionId: z195.string().optional(),
5514
- preferredBrandId: z195.string().optional()
5528
+ var DTOAppBootstrapDataQuery = z196.object({
5529
+ preferredWorkspaceId: z196.string().optional(),
5530
+ preferredDesignSystemId: z196.string().optional(),
5531
+ preferredVersionId: z196.string().optional(),
5532
+ preferredBrandId: z196.string().optional()
5515
5533
  });
5516
- var DTOAppBootstrapDataResponse = z195.object({
5534
+ var DTOAppBootstrapDataResponse = z196.object({
5517
5535
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5518
5536
  designSystem: DTODesignSystem.optional(),
5519
5537
  version: DTODesignSystemVersion.optional(),
@@ -5521,19 +5539,19 @@ var DTOAppBootstrapDataResponse = z195.object({
5521
5539
  });
5522
5540
 
5523
5541
  // src/api/dto/documentation/anchor.ts
5524
- import { z as z196 } from "zod";
5542
+ import { z as z197 } from "zod";
5525
5543
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5526
- var DTOGetDocumentationPageAnchorsResponse = z196.object({
5527
- anchors: z196.array(DTODocumentationPageAnchor)
5544
+ var DTOGetDocumentationPageAnchorsResponse = z197.object({
5545
+ anchors: z197.array(DTODocumentationPageAnchor)
5528
5546
  });
5529
5547
 
5530
5548
  // src/api/dto/documentation/approvals.ts
5531
- import { z as z197 } from "zod";
5549
+ import { z as z198 } from "zod";
5532
5550
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5533
- var DTODocumentationGroupApprovalState = z197.object({
5534
- persistentId: z197.string(),
5535
- groupId: z197.string(),
5536
- designSystemVersionId: z197.string(),
5551
+ var DTODocumentationGroupApprovalState = z198.object({
5552
+ persistentId: z198.string(),
5553
+ groupId: z198.string(),
5554
+ designSystemVersionId: z198.string(),
5537
5555
  approvalState: DocumentationPageApprovalState
5538
5556
  });
5539
5557
 
@@ -5541,68 +5559,68 @@ var DTODocumentationGroupApprovalState = z197.object({
5541
5559
  var DTOPageBlockItemV2 = PageBlockItemV2;
5542
5560
 
5543
5561
  // src/api/dto/documentation/documentation-page-snapshot.ts
5544
- import { z as z202 } from "zod";
5562
+ import { z as z203 } from "zod";
5545
5563
 
5546
5564
  // src/api/dto/elements/documentation/page-v2.ts
5547
- import { z as z201 } from "zod";
5565
+ import { z as z202 } from "zod";
5548
5566
 
5549
5567
  // src/api/dto/elements/documentation/draft-state.ts
5550
- import { z as z199 } from "zod";
5568
+ import { z as z200 } from "zod";
5551
5569
 
5552
5570
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5553
- import { z as z198 } from "zod";
5571
+ import { z as z199 } from "zod";
5554
5572
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5555
- var DTODocumentationItemConfigurationV2 = z198.object({
5556
- showSidebar: z198.boolean(),
5557
- isPrivate: z198.boolean(),
5558
- isHidden: z198.boolean(),
5573
+ var DTODocumentationItemConfigurationV2 = z199.object({
5574
+ showSidebar: z199.boolean(),
5575
+ isPrivate: z199.boolean(),
5576
+ isHidden: z199.boolean(),
5559
5577
  header: DTODocumentationItemHeaderV2
5560
5578
  });
5561
5579
 
5562
5580
  // src/api/dto/elements/documentation/draft-state.ts
5563
- var DTODocumentationDraftChangeType = z199.enum(["Created", "Updated", "Deleted"]);
5564
- var DTODocumentationDraftStateCreated = z199.object({
5565
- changeType: z199.literal(DTODocumentationDraftChangeType.enum.Created)
5566
- });
5567
- var DTODocumentationDraftStateUpdated = z199.object({
5568
- changeType: z199.literal(DTODocumentationDraftChangeType.enum.Updated),
5569
- changes: z199.object({
5570
- previousTitle: z199.string().optional(),
5581
+ var DTODocumentationDraftChangeType = z200.enum(["Created", "Updated", "Deleted"]);
5582
+ var DTODocumentationDraftStateCreated = z200.object({
5583
+ changeType: z200.literal(DTODocumentationDraftChangeType.enum.Created)
5584
+ });
5585
+ var DTODocumentationDraftStateUpdated = z200.object({
5586
+ changeType: z200.literal(DTODocumentationDraftChangeType.enum.Updated),
5587
+ changes: z200.object({
5588
+ previousTitle: z200.string().optional(),
5571
5589
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5572
- previousContentHash: z199.string().optional()
5590
+ previousContentHash: z200.string().optional()
5573
5591
  })
5574
5592
  });
5575
- var DTODocumentationDraftStateDeleted = z199.object({
5576
- changeType: z199.literal(DTODocumentationDraftChangeType.enum.Deleted),
5577
- deletedAt: z199.coerce.date(),
5578
- deletedByUserId: z199.string()
5593
+ var DTODocumentationDraftStateDeleted = z200.object({
5594
+ changeType: z200.literal(DTODocumentationDraftChangeType.enum.Deleted),
5595
+ deletedAt: z200.coerce.date(),
5596
+ deletedByUserId: z200.string()
5579
5597
  });
5580
- var DTODocumentationDraftState = z199.discriminatedUnion("changeType", [
5598
+ var DTODocumentationDraftState = z200.discriminatedUnion("changeType", [
5581
5599
  DTODocumentationDraftStateCreated,
5582
5600
  DTODocumentationDraftStateUpdated,
5583
5601
  DTODocumentationDraftStateDeleted
5584
5602
  ]);
5585
5603
 
5586
5604
  // src/api/dto/elements/documentation/metadata.ts
5587
- import { z as z200 } from "zod";
5588
- var DTODocumentationPublishMetadata = z200.object({
5589
- lastPublishedByUserId: z200.string(),
5590
- lastPublishedAt: z200.coerce.date()
5605
+ import { z as z201 } from "zod";
5606
+ var DTODocumentationPublishMetadata = z201.object({
5607
+ lastPublishedByUserId: z201.string(),
5608
+ lastPublishedAt: z201.coerce.date()
5591
5609
  });
5592
5610
 
5593
5611
  // src/api/dto/elements/documentation/page-v2.ts
5594
- var DTODocumentationPageV2 = z201.object({
5595
- id: z201.string(),
5596
- persistentId: z201.string(),
5597
- designSystemVersionId: z201.string(),
5598
- title: z201.string(),
5612
+ var DTODocumentationPageV2 = z202.object({
5613
+ id: z202.string(),
5614
+ persistentId: z202.string(),
5615
+ designSystemVersionId: z202.string(),
5616
+ title: z202.string(),
5599
5617
  configuration: DTODocumentationItemConfigurationV2,
5600
- shortPersistentId: z201.string(),
5601
- slug: z201.string().optional(),
5602
- userSlug: z201.string().optional(),
5603
- createdAt: z201.coerce.date(),
5604
- updatedAt: z201.coerce.date(),
5605
- path: z201.string(),
5618
+ shortPersistentId: z202.string(),
5619
+ slug: z202.string().optional(),
5620
+ userSlug: z202.string().optional(),
5621
+ createdAt: z202.coerce.date(),
5622
+ updatedAt: z202.coerce.date(),
5623
+ path: z202.string(),
5606
5624
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5607
5625
  draftState: DTODocumentationDraftState.optional(),
5608
5626
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5610,197 +5628,197 @@ var DTODocumentationPageV2 = z201.object({
5610
5628
  /** Defines the approval state of the documentation page */
5611
5629
  approvalState: DTODocumentationPageApprovalState.optional(),
5612
5630
  // Backward compatibility
5613
- type: z201.literal("Page")
5631
+ type: z202.literal("Page")
5614
5632
  });
5615
- var DTOCreateDocumentationPageInputV2 = z201.object({
5633
+ var DTOCreateDocumentationPageInputV2 = z202.object({
5616
5634
  // Identifier
5617
- persistentId: z201.string().uuid(),
5635
+ persistentId: z202.string().uuid(),
5618
5636
  // Page properties
5619
- title: z201.string(),
5637
+ title: z202.string(),
5620
5638
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5621
5639
  // Page placement properties
5622
- parentPersistentId: z201.string().uuid(),
5623
- afterPersistentId: z201.string().uuid().nullish()
5640
+ parentPersistentId: z202.string().uuid(),
5641
+ afterPersistentId: z202.string().uuid().nullish()
5624
5642
  });
5625
- var DTOUpdateDocumentationPageInputV2 = z201.object({
5643
+ var DTOUpdateDocumentationPageInputV2 = z202.object({
5626
5644
  // Identifier of the group to update
5627
- id: z201.string(),
5645
+ id: z202.string(),
5628
5646
  // Page properties
5629
- title: z201.string().optional(),
5647
+ title: z202.string().optional(),
5630
5648
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5631
5649
  });
5632
- var DTOMoveDocumentationPageInputV2 = z201.object({
5650
+ var DTOMoveDocumentationPageInputV2 = z202.object({
5633
5651
  // Identifier of the group to update
5634
- id: z201.string(),
5652
+ id: z202.string(),
5635
5653
  // Page placement properties
5636
- parentPersistentId: z201.string().uuid(),
5637
- afterPersistentId: z201.string().uuid().nullish()
5654
+ parentPersistentId: z202.string().uuid(),
5655
+ afterPersistentId: z202.string().uuid().nullish()
5638
5656
  });
5639
- var DTODuplicateDocumentationPageInputV2 = z201.object({
5657
+ var DTODuplicateDocumentationPageInputV2 = z202.object({
5640
5658
  // Identifier of the page to duplicate from
5641
- id: z201.string(),
5659
+ id: z202.string(),
5642
5660
  // New page persistent id
5643
- persistentId: z201.string().uuid(),
5661
+ persistentId: z202.string().uuid(),
5644
5662
  // Page placement properties
5645
- parentPersistentId: z201.string().uuid(),
5646
- afterPersistentId: z201.string().uuid().nullish()
5663
+ parentPersistentId: z202.string().uuid(),
5664
+ afterPersistentId: z202.string().uuid().nullish()
5647
5665
  });
5648
- var DTODeleteDocumentationPageInputV2 = z201.object({
5666
+ var DTODeleteDocumentationPageInputV2 = z202.object({
5649
5667
  // Identifier
5650
- id: z201.string()
5668
+ id: z202.string()
5651
5669
  });
5652
- var DTORestoreDocumentationPageInput = z201.object({
5653
- persistentId: z201.string(),
5654
- snapshotId: z201.string().optional()
5670
+ var DTORestoreDocumentationPageInput = z202.object({
5671
+ persistentId: z202.string(),
5672
+ snapshotId: z202.string().optional()
5655
5673
  });
5656
- var DTORestoreDocumentationGroupInput = z201.object({
5657
- persistentId: z201.string(),
5658
- snapshotId: z201.string().optional()
5674
+ var DTORestoreDocumentationGroupInput = z202.object({
5675
+ persistentId: z202.string(),
5676
+ snapshotId: z202.string().optional()
5659
5677
  });
5660
- var DTODocumentationPageApprovalStateChangeInput = z201.object({
5661
- persistentId: z201.string(),
5678
+ var DTODocumentationPageApprovalStateChangeInput = z202.object({
5679
+ persistentId: z202.string(),
5662
5680
  approvalState: DocumentationPageApprovalState.optional()
5663
5681
  });
5664
5682
 
5665
5683
  // src/api/dto/documentation/documentation-page-snapshot.ts
5666
- var DTODocumentationPageSnapshot = z202.object({
5667
- id: z202.string(),
5668
- designSystemVersionId: z202.string(),
5669
- createdAt: z202.string(),
5670
- updatedAt: z202.string(),
5684
+ var DTODocumentationPageSnapshot = z203.object({
5685
+ id: z203.string(),
5686
+ designSystemVersionId: z203.string(),
5687
+ createdAt: z203.string(),
5688
+ updatedAt: z203.string(),
5671
5689
  documentationPage: DTODocumentationPageV2,
5672
- pageContentHash: z202.string(),
5690
+ pageContentHash: z203.string(),
5673
5691
  reason: DesignElementSnapshotReason
5674
5692
  });
5675
5693
 
5676
5694
  // src/api/dto/documentation/link-preview.ts
5677
- import { z as z203 } from "zod";
5678
- var DTODocumentationLinkPreviewResponse = z203.object({
5695
+ import { z as z204 } from "zod";
5696
+ var DTODocumentationLinkPreviewResponse = z204.object({
5679
5697
  linkPreview: DocumentationLinkPreview
5680
5698
  });
5681
- var DTODocumentationLinkPreviewRequest = z203.object({
5682
- url: z203.string().optional(),
5683
- documentationItemPersistentId: z203.string().optional()
5699
+ var DTODocumentationLinkPreviewRequest = z204.object({
5700
+ url: z204.string().optional(),
5701
+ documentationItemPersistentId: z204.string().optional()
5684
5702
  });
5685
5703
 
5686
5704
  // src/api/dto/documentation/publish.ts
5687
- import { z as z207 } from "zod";
5705
+ import { z as z208 } from "zod";
5688
5706
 
5689
5707
  // src/api/dto/export/exporter.ts
5690
- import { z as z204 } from "zod";
5691
- var DTOExporterType = z204.enum(["documentation", "code"]);
5692
- var DTOExporterSource = z204.enum(["git", "upload"]);
5693
- var DTOExporterMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
5694
- var DTOExporter = z204.object({
5695
- id: z204.string(),
5696
- name: z204.string(),
5697
- isPrivate: z204.boolean(),
5708
+ import { z as z205 } from "zod";
5709
+ var DTOExporterType = z205.enum(["documentation", "code"]);
5710
+ var DTOExporterSource = z205.enum(["git", "upload"]);
5711
+ var DTOExporterMembershipRole = z205.enum(["Owner", "OwnerArchived", "User"]);
5712
+ var DTOExporter = z205.object({
5713
+ id: z205.string(),
5714
+ name: z205.string(),
5715
+ isPrivate: z205.boolean(),
5698
5716
  exporterType: DTOExporterType,
5699
- isDefaultDocumentationExporter: z204.boolean(),
5700
- iconURL: z204.string().optional(),
5717
+ isDefaultDocumentationExporter: z205.boolean(),
5718
+ iconURL: z205.string().optional(),
5701
5719
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5702
5720
  customBlocks: PulsarCustomBlock.array(),
5703
- blockVariants: z204.record(z204.string(), PulsarContributionVariant.array()),
5704
- usesBrands: z204.boolean(),
5705
- usesThemes: z204.boolean(),
5721
+ blockVariants: z205.record(z205.string(), PulsarContributionVariant.array()),
5722
+ usesBrands: z205.boolean(),
5723
+ usesThemes: z205.boolean(),
5706
5724
  source: DTOExporterSource,
5707
- gitUrl: z204.string().optional(),
5708
- gitBranch: z204.string().optional(),
5709
- gitDirectory: z204.string().optional()
5725
+ gitUrl: z205.string().optional(),
5726
+ gitBranch: z205.string().optional(),
5727
+ gitDirectory: z205.string().optional()
5710
5728
  });
5711
- var DTOExporterMembership = z204.object({
5712
- workspaceId: z204.string(),
5713
- exporterId: z204.string(),
5729
+ var DTOExporterMembership = z205.object({
5730
+ workspaceId: z205.string(),
5731
+ exporterId: z205.string(),
5714
5732
  role: DTOExporterMembershipRole
5715
5733
  });
5716
- var DTOExporterCreateOutput = z204.object({
5734
+ var DTOExporterCreateOutput = z205.object({
5717
5735
  exporter: DTOExporter,
5718
5736
  membership: DTOExporterMembership
5719
5737
  });
5720
- var DTOExporterGitProviderEnum = z204.enum(["github", "gitlab", "bitbucket", "azure"]);
5721
- var DTOExporterCreateInput = z204.object({
5722
- url: z204.string(),
5738
+ var DTOExporterGitProviderEnum = z205.enum(["github", "gitlab", "bitbucket", "azure"]);
5739
+ var DTOExporterCreateInput = z205.object({
5740
+ url: z205.string(),
5723
5741
  provider: DTOExporterGitProviderEnum
5724
5742
  });
5725
- var DTOExporterUpdateInput = z204.object({
5726
- url: z204.string().optional()
5743
+ var DTOExporterUpdateInput = z205.object({
5744
+ url: z205.string().optional()
5727
5745
  });
5728
5746
 
5729
5747
  // src/api/dto/export/filter.ts
5730
5748
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5731
5749
 
5732
5750
  // src/api/dto/export/job.ts
5733
- import { z as z205 } from "zod";
5734
- var DTOExportJobCreatedBy = z205.object({
5735
- userId: z205.string(),
5736
- userName: z205.string()
5751
+ import { z as z206 } from "zod";
5752
+ var DTOExportJobCreatedBy = z206.object({
5753
+ userId: z206.string(),
5754
+ userName: z206.string()
5737
5755
  });
5738
- var DTOExportJobDesignSystemPreview = z205.object({
5739
- id: z205.string(),
5756
+ var DTOExportJobDesignSystemPreview = z206.object({
5757
+ id: z206.string(),
5740
5758
  meta: ObjectMeta
5741
5759
  });
5742
- var DTOExportJobDesignSystemVersionPreview = z205.object({
5743
- id: z205.string(),
5760
+ var DTOExportJobDesignSystemVersionPreview = z206.object({
5761
+ id: z206.string(),
5744
5762
  meta: ObjectMeta,
5745
- version: z205.string(),
5746
- isReadonly: z205.boolean()
5763
+ version: z206.string(),
5764
+ isReadonly: z206.boolean()
5747
5765
  });
5748
- var DTOExportJobDestinations = z205.object({
5766
+ var DTOExportJobDestinations = z206.object({
5749
5767
  s3: ExporterDestinationS3.optional(),
5750
5768
  azure: ExporterDestinationAzure.optional(),
5751
5769
  bitbucket: ExporterDestinationBitbucket.optional(),
5752
5770
  github: ExporterDestinationGithub.optional(),
5753
5771
  gitlab: ExporterDestinationGitlab.optional(),
5754
5772
  documentation: ExporterDestinationDocs.optional(),
5755
- webhookUrl: z205.string().optional()
5773
+ webhookUrl: z206.string().optional()
5756
5774
  });
5757
5775
  var DTOExportJobResult = ExportJobResult.omit({
5758
5776
  sndocs: true
5759
5777
  }).extend({
5760
5778
  documentation: ExportJobDocsDestinationResult.optional()
5761
5779
  });
5762
- var DTOExportJob = z205.object({
5763
- id: z205.string(),
5764
- createdAt: z205.coerce.date(),
5765
- finishedAt: z205.coerce.date().optional(),
5766
- index: z205.number().optional(),
5780
+ var DTOExportJob = z206.object({
5781
+ id: z206.string(),
5782
+ createdAt: z206.coerce.date(),
5783
+ finishedAt: z206.coerce.date().optional(),
5784
+ index: z206.number().optional(),
5767
5785
  status: ExportJobStatus,
5768
- estimatedExecutionTime: z205.number().optional(),
5786
+ estimatedExecutionTime: z206.number().optional(),
5769
5787
  createdBy: DTOExportJobCreatedBy.optional(),
5770
5788
  designSystem: DTOExportJobDesignSystemPreview,
5771
5789
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5772
5790
  destinations: DTOExportJobDestinations,
5773
- exporterId: z205.string(),
5774
- scheduleId: z205.string().optional(),
5791
+ exporterId: z206.string(),
5792
+ scheduleId: z206.string().optional(),
5775
5793
  result: DTOExportJobResult.optional(),
5776
- brandPersistentId: z205.string().optional(),
5777
- themePersistentId: z205.string().optional(),
5778
- themePersistentIds: z205.string().array().optional()
5794
+ brandPersistentId: z206.string().optional(),
5795
+ themePersistentId: z206.string().optional(),
5796
+ themePersistentIds: z206.string().array().optional()
5779
5797
  });
5780
- var DTOExportJobResponse = z205.object({
5798
+ var DTOExportJobResponse = z206.object({
5781
5799
  job: DTOExportJob
5782
5800
  });
5783
5801
 
5784
5802
  // src/api/dto/export/pipeline.ts
5785
- import { z as z206 } from "zod";
5786
- var DTOPipeline = z206.object({
5787
- id: z206.string(),
5788
- name: z206.string(),
5803
+ import { z as z207 } from "zod";
5804
+ var DTOPipeline = z207.object({
5805
+ id: z207.string(),
5806
+ name: z207.string(),
5789
5807
  eventType: PipelineEventType,
5790
- isEnabled: z206.boolean(),
5791
- workspaceId: z206.string(),
5792
- designSystemId: z206.string(),
5793
- exporterId: z206.string(),
5794
- brandPersistentId: z206.string().optional(),
5795
- themePersistentId: z206.string().optional(),
5796
- themePersistentIds: z206.string().array().optional(),
5808
+ isEnabled: z207.boolean(),
5809
+ workspaceId: z207.string(),
5810
+ designSystemId: z207.string(),
5811
+ exporterId: z207.string(),
5812
+ brandPersistentId: z207.string().optional(),
5813
+ themePersistentId: z207.string().optional(),
5814
+ themePersistentIds: z207.string().array().optional(),
5797
5815
  ...ExportDestinationsMap.shape,
5798
5816
  latestJobs: DTOExportJob.array()
5799
5817
  });
5800
5818
 
5801
5819
  // src/api/dto/documentation/publish.ts
5802
5820
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5803
- var DTOPublishDocumentationRequest = z207.object({
5821
+ var DTOPublishDocumentationRequest = z208.object({
5804
5822
  environment: PublishedDocEnvironment,
5805
5823
  /**
5806
5824
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5808,42 +5826,42 @@ var DTOPublishDocumentationRequest = z207.object({
5808
5826
  */
5809
5827
  changes: DTOPublishDocumentationChanges.optional()
5810
5828
  });
5811
- var DTOPublishDocumentationResponse = z207.object({
5829
+ var DTOPublishDocumentationResponse = z208.object({
5812
5830
  job: DTOExportJob
5813
5831
  });
5814
5832
 
5815
5833
  // src/api/dto/elements/components/figma-component.ts
5816
- import { z as z208 } from "zod";
5834
+ import { z as z209 } from "zod";
5817
5835
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5818
- var DTOFigmaComponentPropertyMap = z208.record(DTOFigmaComponentProperty);
5819
- var DTOFigmaComponent = z208.object({
5820
- id: z208.string(),
5821
- persistentId: z208.string(),
5822
- designSystemVersionId: z208.string(),
5823
- brandId: z208.string(),
5824
- thumbnailUrl: z208.string().optional(),
5825
- svgUrl: z208.string().optional(),
5826
- exportProperties: z208.object({
5827
- isAsset: z208.boolean()
5836
+ var DTOFigmaComponentPropertyMap = z209.record(DTOFigmaComponentProperty);
5837
+ var DTOFigmaComponent = z209.object({
5838
+ id: z209.string(),
5839
+ persistentId: z209.string(),
5840
+ designSystemVersionId: z209.string(),
5841
+ brandId: z209.string(),
5842
+ thumbnailUrl: z209.string().optional(),
5843
+ svgUrl: z209.string().optional(),
5844
+ exportProperties: z209.object({
5845
+ isAsset: z209.boolean()
5828
5846
  }),
5829
- createdAt: z208.coerce.date(),
5830
- updatedAt: z208.coerce.date(),
5847
+ createdAt: z209.coerce.date(),
5848
+ updatedAt: z209.coerce.date(),
5831
5849
  meta: ObjectMeta,
5832
5850
  originComponent: FigmaComponentOrigin.optional(),
5833
- parentComponentPersistentId: z208.string().optional(),
5834
- childrenPersistentIds: z208.string().array().optional(),
5851
+ parentComponentPersistentId: z209.string().optional(),
5852
+ childrenPersistentIds: z209.string().array().optional(),
5835
5853
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5836
- variantPropertyValues: z208.record(z208.string()).optional()
5854
+ variantPropertyValues: z209.record(z209.string()).optional()
5837
5855
  });
5838
- var DTOFigmaComponentListResponse = z208.object({
5856
+ var DTOFigmaComponentListResponse = z209.object({
5839
5857
  components: DTOFigmaComponent.array()
5840
5858
  });
5841
5859
 
5842
5860
  // src/api/dto/elements/documentation/group-action.ts
5843
- import { z as z210 } from "zod";
5861
+ import { z as z211 } from "zod";
5844
5862
 
5845
5863
  // src/api/dto/elements/documentation/group-v2.ts
5846
- import { z as z209 } from "zod";
5864
+ import { z as z210 } from "zod";
5847
5865
  var DTODocumentationGroupV2 = ElementGroup.omit({
5848
5866
  sortOrder: true,
5849
5867
  parentPersistentId: true,
@@ -5853,13 +5871,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5853
5871
  data: true,
5854
5872
  shortPersistentId: true
5855
5873
  }).extend({
5856
- title: z209.string(),
5857
- isRoot: z209.boolean(),
5858
- childrenIds: z209.array(z209.string()),
5874
+ title: z210.string(),
5875
+ isRoot: z210.boolean(),
5876
+ childrenIds: z210.array(z210.string()),
5859
5877
  groupBehavior: DocumentationGroupBehavior,
5860
- shortPersistentId: z209.string(),
5878
+ shortPersistentId: z210.string(),
5861
5879
  configuration: DTODocumentationItemConfigurationV2,
5862
- type: z209.literal("Group"),
5880
+ type: z210.literal("Group"),
5863
5881
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5864
5882
  draftState: DTODocumentationDraftState.optional(),
5865
5883
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5867,127 +5885,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5867
5885
  //** An approval state for frontend to utilize. */
5868
5886
  approvalState: DTODocumentationGroupApprovalState.optional()
5869
5887
  });
5870
- var DTOCreateDocumentationGroupInput = z209.object({
5888
+ var DTOCreateDocumentationGroupInput = z210.object({
5871
5889
  // Identifier
5872
- persistentId: z209.string().uuid(),
5890
+ persistentId: z210.string().uuid(),
5873
5891
  // Group properties
5874
- title: z209.string(),
5892
+ title: z210.string(),
5875
5893
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5876
5894
  // Group placement properties
5877
- afterPersistentId: z209.string().uuid().nullish(),
5878
- parentPersistentId: z209.string().uuid()
5895
+ afterPersistentId: z210.string().uuid().nullish(),
5896
+ parentPersistentId: z210.string().uuid()
5879
5897
  });
5880
- var DTOUpdateDocumentationGroupInput = z209.object({
5898
+ var DTOUpdateDocumentationGroupInput = z210.object({
5881
5899
  // Identifier of the group to update
5882
- id: z209.string(),
5900
+ id: z210.string(),
5883
5901
  // Group properties
5884
- title: z209.string().optional(),
5902
+ title: z210.string().optional(),
5885
5903
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5886
5904
  });
5887
- var DTOMoveDocumentationGroupInput = z209.object({
5905
+ var DTOMoveDocumentationGroupInput = z210.object({
5888
5906
  // Identifier of the group to update
5889
- id: z209.string(),
5907
+ id: z210.string(),
5890
5908
  // Group placement properties
5891
- parentPersistentId: z209.string().uuid(),
5892
- afterPersistentId: z209.string().uuid().nullish()
5909
+ parentPersistentId: z210.string().uuid(),
5910
+ afterPersistentId: z210.string().uuid().nullish()
5893
5911
  });
5894
- var DTODuplicateDocumentationGroupInput = z209.object({
5912
+ var DTODuplicateDocumentationGroupInput = z210.object({
5895
5913
  // Identifier of the group to duplicate from
5896
- id: z209.string(),
5914
+ id: z210.string(),
5897
5915
  // New group persistent id
5898
- persistentId: z209.string().uuid(),
5916
+ persistentId: z210.string().uuid(),
5899
5917
  // Group placement properties
5900
- afterPersistentId: z209.string().uuid().nullish(),
5901
- parentPersistentId: z209.string().uuid()
5918
+ afterPersistentId: z210.string().uuid().nullish(),
5919
+ parentPersistentId: z210.string().uuid()
5902
5920
  });
5903
- var DTOCreateDocumentationTabInput = z209.object({
5921
+ var DTOCreateDocumentationTabInput = z210.object({
5904
5922
  // New group persistent id
5905
- persistentId: z209.string().uuid(),
5923
+ persistentId: z210.string().uuid(),
5906
5924
  // If this is page, we will attempt to convert it to tab
5907
5925
  // If this is tab group, we will add a new tab to it
5908
- fromItemPersistentId: z209.string(),
5909
- tabName: z209.string()
5926
+ fromItemPersistentId: z210.string(),
5927
+ tabName: z210.string()
5910
5928
  });
5911
- var DTODeleteDocumentationTabGroupInput = z209.object({
5929
+ var DTODeleteDocumentationTabGroupInput = z210.object({
5912
5930
  // Deleted group id
5913
- id: z209.string()
5931
+ id: z210.string()
5914
5932
  });
5915
- var DTODeleteDocumentationGroupInput = z209.object({
5933
+ var DTODeleteDocumentationGroupInput = z210.object({
5916
5934
  // Identifier
5917
- id: z209.string(),
5935
+ id: z210.string(),
5918
5936
  // Deletion options
5919
- deleteSubtree: z209.boolean().default(false)
5937
+ deleteSubtree: z210.boolean().default(false)
5920
5938
  });
5921
5939
 
5922
5940
  // src/api/dto/elements/documentation/group-action.ts
5923
- var SuccessPayload = z210.object({
5924
- success: z210.literal(true)
5941
+ var SuccessPayload = z211.object({
5942
+ success: z211.literal(true)
5925
5943
  });
5926
- var DTODocumentationGroupCreateActionOutputV2 = z210.object({
5927
- type: z210.literal("DocumentationGroupCreate"),
5944
+ var DTODocumentationGroupCreateActionOutputV2 = z211.object({
5945
+ type: z211.literal("DocumentationGroupCreate"),
5928
5946
  output: SuccessPayload
5929
5947
  });
5930
- var DTODocumentationTabCreateActionOutputV2 = z210.object({
5931
- type: z210.literal("DocumentationTabCreate"),
5948
+ var DTODocumentationTabCreateActionOutputV2 = z211.object({
5949
+ type: z211.literal("DocumentationTabCreate"),
5932
5950
  output: SuccessPayload
5933
5951
  });
5934
- var DTODocumentationGroupUpdateActionOutputV2 = z210.object({
5935
- type: z210.literal("DocumentationGroupUpdate"),
5952
+ var DTODocumentationGroupUpdateActionOutputV2 = z211.object({
5953
+ type: z211.literal("DocumentationGroupUpdate"),
5936
5954
  output: SuccessPayload
5937
5955
  });
5938
- var DTODocumentationGroupMoveActionOutputV2 = z210.object({
5939
- type: z210.literal("DocumentationGroupMove"),
5956
+ var DTODocumentationGroupMoveActionOutputV2 = z211.object({
5957
+ type: z211.literal("DocumentationGroupMove"),
5940
5958
  output: SuccessPayload
5941
5959
  });
5942
- var DTODocumentationGroupDuplicateActionOutputV2 = z210.object({
5943
- type: z210.literal("DocumentationGroupDuplicate"),
5960
+ var DTODocumentationGroupDuplicateActionOutputV2 = z211.object({
5961
+ type: z211.literal("DocumentationGroupDuplicate"),
5944
5962
  output: SuccessPayload
5945
5963
  });
5946
- var DTODocumentationGroupDeleteActionOutputV2 = z210.object({
5947
- type: z210.literal("DocumentationGroupDelete"),
5964
+ var DTODocumentationGroupDeleteActionOutputV2 = z211.object({
5965
+ type: z211.literal("DocumentationGroupDelete"),
5948
5966
  output: SuccessPayload
5949
5967
  });
5950
- var DTODocumentationTabGroupDeleteActionOutputV2 = z210.object({
5951
- type: z210.literal("DocumentationTabGroupDelete"),
5968
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z211.object({
5969
+ type: z211.literal("DocumentationTabGroupDelete"),
5952
5970
  output: SuccessPayload
5953
5971
  });
5954
- var DTODocumentationGroupCreateActionInputV2 = z210.object({
5955
- type: z210.literal("DocumentationGroupCreate"),
5972
+ var DTODocumentationGroupCreateActionInputV2 = z211.object({
5973
+ type: z211.literal("DocumentationGroupCreate"),
5956
5974
  input: DTOCreateDocumentationGroupInput
5957
5975
  });
5958
- var DTODocumentationTabCreateActionInputV2 = z210.object({
5959
- type: z210.literal("DocumentationTabCreate"),
5976
+ var DTODocumentationTabCreateActionInputV2 = z211.object({
5977
+ type: z211.literal("DocumentationTabCreate"),
5960
5978
  input: DTOCreateDocumentationTabInput
5961
5979
  });
5962
- var DTODocumentationGroupUpdateActionInputV2 = z210.object({
5963
- type: z210.literal("DocumentationGroupUpdate"),
5980
+ var DTODocumentationGroupUpdateActionInputV2 = z211.object({
5981
+ type: z211.literal("DocumentationGroupUpdate"),
5964
5982
  input: DTOUpdateDocumentationGroupInput
5965
5983
  });
5966
- var DTODocumentationGroupMoveActionInputV2 = z210.object({
5967
- type: z210.literal("DocumentationGroupMove"),
5984
+ var DTODocumentationGroupMoveActionInputV2 = z211.object({
5985
+ type: z211.literal("DocumentationGroupMove"),
5968
5986
  input: DTOMoveDocumentationGroupInput
5969
5987
  });
5970
- var DTODocumentationGroupDuplicateActionInputV2 = z210.object({
5971
- type: z210.literal("DocumentationGroupDuplicate"),
5988
+ var DTODocumentationGroupDuplicateActionInputV2 = z211.object({
5989
+ type: z211.literal("DocumentationGroupDuplicate"),
5972
5990
  input: DTODuplicateDocumentationGroupInput
5973
5991
  });
5974
- var DTODocumentationGroupDeleteActionInputV2 = z210.object({
5975
- type: z210.literal("DocumentationGroupDelete"),
5992
+ var DTODocumentationGroupDeleteActionInputV2 = z211.object({
5993
+ type: z211.literal("DocumentationGroupDelete"),
5976
5994
  input: DTODeleteDocumentationGroupInput
5977
5995
  });
5978
- var DTODocumentationTabGroupDeleteActionInputV2 = z210.object({
5979
- type: z210.literal("DocumentationTabGroupDelete"),
5996
+ var DTODocumentationTabGroupDeleteActionInputV2 = z211.object({
5997
+ type: z211.literal("DocumentationTabGroupDelete"),
5980
5998
  input: DTODeleteDocumentationTabGroupInput
5981
5999
  });
5982
6000
 
5983
6001
  // src/api/dto/elements/documentation/group-v1.ts
5984
- import { z as z212 } from "zod";
6002
+ import { z as z213 } from "zod";
5985
6003
 
5986
6004
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5987
- import { z as z211 } from "zod";
5988
- var DocumentationColorV1 = z211.object({
5989
- aliasTo: z211.string().optional(),
5990
- value: z211.string().optional()
6005
+ import { z as z212 } from "zod";
6006
+ var DocumentationColorV1 = z212.object({
6007
+ aliasTo: z212.string().optional(),
6008
+ value: z212.string().optional()
5991
6009
  });
5992
6010
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5993
6011
  foregroundColor: true,
@@ -5996,10 +6014,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5996
6014
  foregroundColor: DocumentationColorV1.optional(),
5997
6015
  backgroundColor: DocumentationColorV1.optional()
5998
6016
  });
5999
- var DTODocumentationItemConfigurationV1 = z211.object({
6000
- showSidebar: z211.boolean(),
6001
- isPrivate: z211.boolean(),
6002
- isHidden: z211.boolean(),
6017
+ var DTODocumentationItemConfigurationV1 = z212.object({
6018
+ showSidebar: z212.boolean(),
6019
+ isPrivate: z212.boolean(),
6020
+ isHidden: z212.boolean(),
6003
6021
  header: DTODocumentationItemHeaderV1
6004
6022
  });
6005
6023
 
@@ -6013,27 +6031,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6013
6031
  data: true,
6014
6032
  shortPersistentId: true
6015
6033
  }).extend({
6016
- title: z212.string(),
6017
- isRoot: z212.boolean(),
6018
- childrenIds: z212.array(z212.string()),
6034
+ title: z213.string(),
6035
+ isRoot: z213.boolean(),
6036
+ childrenIds: z213.array(z213.string()),
6019
6037
  groupBehavior: DocumentationGroupBehavior,
6020
- shortPersistentId: z212.string(),
6021
- type: z212.literal("Group")
6038
+ shortPersistentId: z213.string(),
6039
+ type: z213.literal("Group")
6022
6040
  });
6023
6041
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6024
6042
  configuration: DTODocumentationItemConfigurationV1
6025
6043
  });
6026
6044
 
6027
6045
  // src/api/dto/elements/documentation/hierarchy.ts
6028
- import { z as z213 } from "zod";
6029
- var DTODocumentationHierarchyV2 = z213.object({
6030
- pages: z213.array(
6046
+ import { z as z214 } from "zod";
6047
+ var DTODocumentationHierarchyV2 = z214.object({
6048
+ pages: z214.array(
6031
6049
  DTODocumentationPageV2.extend({
6032
6050
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6033
6051
  draftState: DTODocumentationDraftState.optional()
6034
6052
  })
6035
6053
  ),
6036
- groups: z213.array(
6054
+ groups: z214.array(
6037
6055
  DTODocumentationGroupV2.extend({
6038
6056
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6039
6057
  draftState: DTODocumentationDraftState.optional()
@@ -6042,84 +6060,84 @@ var DTODocumentationHierarchyV2 = z213.object({
6042
6060
  });
6043
6061
 
6044
6062
  // src/api/dto/elements/documentation/page-actions-v2.ts
6045
- import { z as z214 } from "zod";
6046
- var SuccessPayload2 = z214.object({
6047
- success: z214.literal(true)
6063
+ import { z as z215 } from "zod";
6064
+ var SuccessPayload2 = z215.object({
6065
+ success: z215.literal(true)
6048
6066
  });
6049
- var DTODocumentationPageCreateActionOutputV2 = z214.object({
6050
- type: z214.literal("DocumentationPageCreate"),
6067
+ var DTODocumentationPageCreateActionOutputV2 = z215.object({
6068
+ type: z215.literal("DocumentationPageCreate"),
6051
6069
  output: SuccessPayload2
6052
6070
  });
6053
- var DTODocumentationPageUpdateActionOutputV2 = z214.object({
6054
- type: z214.literal("DocumentationPageUpdate"),
6071
+ var DTODocumentationPageUpdateActionOutputV2 = z215.object({
6072
+ type: z215.literal("DocumentationPageUpdate"),
6055
6073
  output: SuccessPayload2
6056
6074
  });
6057
- var DTODocumentationPageMoveActionOutputV2 = z214.object({
6058
- type: z214.literal("DocumentationPageMove"),
6075
+ var DTODocumentationPageMoveActionOutputV2 = z215.object({
6076
+ type: z215.literal("DocumentationPageMove"),
6059
6077
  output: SuccessPayload2
6060
6078
  });
6061
- var DTODocumentationPageDuplicateActionOutputV2 = z214.object({
6062
- type: z214.literal("DocumentationPageDuplicate"),
6079
+ var DTODocumentationPageDuplicateActionOutputV2 = z215.object({
6080
+ type: z215.literal("DocumentationPageDuplicate"),
6063
6081
  output: SuccessPayload2
6064
6082
  });
6065
- var DTODocumentationPageDeleteActionOutputV2 = z214.object({
6066
- type: z214.literal("DocumentationPageDelete"),
6083
+ var DTODocumentationPageDeleteActionOutputV2 = z215.object({
6084
+ type: z215.literal("DocumentationPageDelete"),
6067
6085
  output: SuccessPayload2
6068
6086
  });
6069
- var DTODocumentationPageRestoreActionOutput = z214.object({
6070
- type: z214.literal("DocumentationPageRestore"),
6087
+ var DTODocumentationPageRestoreActionOutput = z215.object({
6088
+ type: z215.literal("DocumentationPageRestore"),
6071
6089
  output: SuccessPayload2
6072
6090
  });
6073
- var DTODocumentationGroupRestoreActionOutput = z214.object({
6074
- type: z214.literal("DocumentationGroupRestore"),
6091
+ var DTODocumentationGroupRestoreActionOutput = z215.object({
6092
+ type: z215.literal("DocumentationGroupRestore"),
6075
6093
  output: SuccessPayload2
6076
6094
  });
6077
- var DTODocumentationPageApprovalStateChangeActionOutput = z214.object({
6078
- type: z214.literal("DocumentationPageApprovalStateChange"),
6095
+ var DTODocumentationPageApprovalStateChangeActionOutput = z215.object({
6096
+ type: z215.literal("DocumentationPageApprovalStateChange"),
6079
6097
  output: SuccessPayload2
6080
6098
  });
6081
- var DTODocumentationPageCreateActionInputV2 = z214.object({
6082
- type: z214.literal("DocumentationPageCreate"),
6099
+ var DTODocumentationPageCreateActionInputV2 = z215.object({
6100
+ type: z215.literal("DocumentationPageCreate"),
6083
6101
  input: DTOCreateDocumentationPageInputV2
6084
6102
  });
6085
- var DTODocumentationPageUpdateActionInputV2 = z214.object({
6086
- type: z214.literal("DocumentationPageUpdate"),
6103
+ var DTODocumentationPageUpdateActionInputV2 = z215.object({
6104
+ type: z215.literal("DocumentationPageUpdate"),
6087
6105
  input: DTOUpdateDocumentationPageInputV2
6088
6106
  });
6089
- var DTODocumentationPageMoveActionInputV2 = z214.object({
6090
- type: z214.literal("DocumentationPageMove"),
6107
+ var DTODocumentationPageMoveActionInputV2 = z215.object({
6108
+ type: z215.literal("DocumentationPageMove"),
6091
6109
  input: DTOMoveDocumentationPageInputV2
6092
6110
  });
6093
- var DTODocumentationPageDuplicateActionInputV2 = z214.object({
6094
- type: z214.literal("DocumentationPageDuplicate"),
6111
+ var DTODocumentationPageDuplicateActionInputV2 = z215.object({
6112
+ type: z215.literal("DocumentationPageDuplicate"),
6095
6113
  input: DTODuplicateDocumentationPageInputV2
6096
6114
  });
6097
- var DTODocumentationPageDeleteActionInputV2 = z214.object({
6098
- type: z214.literal("DocumentationPageDelete"),
6115
+ var DTODocumentationPageDeleteActionInputV2 = z215.object({
6116
+ type: z215.literal("DocumentationPageDelete"),
6099
6117
  input: DTODeleteDocumentationPageInputV2
6100
6118
  });
6101
- var DTODocumentationPageRestoreActionInput = z214.object({
6102
- type: z214.literal("DocumentationPageRestore"),
6119
+ var DTODocumentationPageRestoreActionInput = z215.object({
6120
+ type: z215.literal("DocumentationPageRestore"),
6103
6121
  input: DTORestoreDocumentationPageInput
6104
6122
  });
6105
- var DTODocumentationGroupRestoreActionInput = z214.object({
6106
- type: z214.literal("DocumentationGroupRestore"),
6123
+ var DTODocumentationGroupRestoreActionInput = z215.object({
6124
+ type: z215.literal("DocumentationGroupRestore"),
6107
6125
  input: DTORestoreDocumentationGroupInput
6108
6126
  });
6109
- var DTODocumentationPageApprovalStateChangeActionInput = z214.object({
6110
- type: z214.literal("DocumentationPageApprovalStateChange"),
6127
+ var DTODocumentationPageApprovalStateChangeActionInput = z215.object({
6128
+ type: z215.literal("DocumentationPageApprovalStateChange"),
6111
6129
  input: DTODocumentationPageApprovalStateChangeInput
6112
6130
  });
6113
6131
 
6114
6132
  // src/api/dto/elements/documentation/page-content.ts
6115
- import { z as z215 } from "zod";
6133
+ import { z as z216 } from "zod";
6116
6134
  var DTODocumentationPageContent = DocumentationPageContent;
6117
- var DTODocumentationPageContentGetResponse = z215.object({
6135
+ var DTODocumentationPageContentGetResponse = z216.object({
6118
6136
  pageContent: DTODocumentationPageContent
6119
6137
  });
6120
6138
 
6121
6139
  // src/api/dto/elements/documentation/page-v1.ts
6122
- import { z as z216 } from "zod";
6140
+ import { z as z217 } from "zod";
6123
6141
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6124
6142
  data: true,
6125
6143
  meta: true,
@@ -6127,32 +6145,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6127
6145
  sortOrder: true
6128
6146
  }).extend({
6129
6147
  configuration: DTODocumentationItemConfigurationV1,
6130
- blocks: z216.array(PageBlockV1),
6131
- title: z216.string(),
6132
- path: z216.string()
6148
+ blocks: z217.array(PageBlockV1),
6149
+ title: z217.string(),
6150
+ path: z217.string()
6133
6151
  });
6134
6152
 
6135
6153
  // src/api/dto/elements/figma-nodes/figma-node.ts
6136
- import { z as z217 } from "zod";
6154
+ import { z as z218 } from "zod";
6137
6155
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6138
- var DTOFigmaNodeOrigin = z217.object({
6139
- sourceId: z217.string(),
6140
- fileId: z217.string().optional(),
6141
- parentName: z217.string().optional()
6156
+ var DTOFigmaNodeOrigin = z218.object({
6157
+ sourceId: z218.string(),
6158
+ fileId: z218.string().optional(),
6159
+ parentName: z218.string().optional()
6142
6160
  });
6143
- var DTOFigmaNodeData = z217.object({
6161
+ var DTOFigmaNodeData = z218.object({
6144
6162
  // Id of the node in the Figma file
6145
- figmaNodeId: z217.string(),
6163
+ figmaNodeId: z218.string(),
6146
6164
  // Validity
6147
- isValid: z217.boolean(),
6165
+ isValid: z218.boolean(),
6148
6166
  // Asset data
6149
- assetId: z217.string(),
6150
- assetUrl: z217.string(),
6167
+ assetId: z218.string(),
6168
+ assetUrl: z218.string(),
6151
6169
  assetFormat: DTOFigmaNodeRenderFormat,
6152
6170
  // Asset metadata
6153
- assetScale: z217.number(),
6154
- assetWidth: z217.number().optional(),
6155
- assetHeight: z217.number().optional()
6171
+ assetScale: z218.number(),
6172
+ assetWidth: z218.number().optional(),
6173
+ assetHeight: z218.number().optional()
6156
6174
  });
6157
6175
  var DTOFigmaNode = FigmaNodeReference.omit({
6158
6176
  data: true,
@@ -6161,15 +6179,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6161
6179
  data: DTOFigmaNodeData,
6162
6180
  origin: DTOFigmaNodeOrigin
6163
6181
  });
6164
- var DTOFigmaNodeRenderInput = z217.object({
6182
+ var DTOFigmaNodeRenderInput = z218.object({
6165
6183
  /**
6166
6184
  * Id of a design system's data source representing a linked Figma file
6167
6185
  */
6168
- sourceId: z217.string(),
6186
+ sourceId: z218.string(),
6169
6187
  /**
6170
6188
  * Id of a node within the Figma file
6171
6189
  */
6172
- figmaFileNodeId: z217.string(),
6190
+ figmaFileNodeId: z218.string(),
6173
6191
  /**
6174
6192
  * Format in which the node must be rendered, png by default.
6175
6193
  */
@@ -6177,97 +6195,97 @@ var DTOFigmaNodeRenderInput = z217.object({
6177
6195
  });
6178
6196
 
6179
6197
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6180
- import { z as z218 } from "zod";
6181
- var DTOFigmaNodeRenderActionOutput = z218.object({
6182
- type: z218.literal("FigmaNodeRender"),
6183
- figmaNodes: z218.array(DTOFigmaNode)
6198
+ import { z as z219 } from "zod";
6199
+ var DTOFigmaNodeRenderActionOutput = z219.object({
6200
+ type: z219.literal("FigmaNodeRender"),
6201
+ figmaNodes: z219.array(DTOFigmaNode)
6184
6202
  });
6185
- var DTOFigmaNodeRenderActionInput = z218.object({
6186
- type: z218.literal("FigmaNodeRender"),
6203
+ var DTOFigmaNodeRenderActionInput = z219.object({
6204
+ type: z219.literal("FigmaNodeRender"),
6187
6205
  input: DTOFigmaNodeRenderInput.array()
6188
6206
  });
6189
6207
 
6190
6208
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6191
- import { z as z220 } from "zod";
6209
+ import { z as z221 } from "zod";
6192
6210
 
6193
6211
  // src/api/dto/elements/properties/property-definitions.ts
6194
- import { z as z219 } from "zod";
6212
+ import { z as z220 } from "zod";
6195
6213
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6196
- var DTOElementPropertyDefinition = z219.object({
6197
- id: z219.string(),
6198
- designSystemVersionId: z219.string(),
6214
+ var DTOElementPropertyDefinition = z220.object({
6215
+ id: z220.string(),
6216
+ designSystemVersionId: z220.string(),
6199
6217
  meta: ObjectMeta,
6200
- persistentId: z219.string(),
6218
+ persistentId: z220.string(),
6201
6219
  type: ElementPropertyTypeSchema,
6202
6220
  targetElementType: ElementPropertyTargetType,
6203
- codeName: z219.string().regex(CODE_NAME_REGEX2),
6204
- options: z219.array(ElementPropertyDefinitionOption).optional(),
6221
+ codeName: z220.string().regex(CODE_NAME_REGEX2),
6222
+ options: z220.array(ElementPropertyDefinitionOption).optional(),
6205
6223
  linkElementType: ElementPropertyLinkType.optional()
6206
6224
  });
6207
- var DTOElementPropertyDefinitionsGetResponse = z219.object({
6208
- definitions: z219.array(DTOElementPropertyDefinition)
6225
+ var DTOElementPropertyDefinitionsGetResponse = z220.object({
6226
+ definitions: z220.array(DTOElementPropertyDefinition)
6209
6227
  });
6210
6228
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6211
6229
  id: true,
6212
6230
  designSystemVersionId: true
6213
6231
  });
6214
- var DTOUpdateElementPropertyDefinitionInputV2 = z219.object({
6215
- id: z219.string(),
6216
- name: z219.string().optional(),
6217
- description: z219.string().optional(),
6218
- codeName: z219.string().regex(CODE_NAME_REGEX2).optional(),
6219
- options: z219.array(ElementPropertyDefinitionOption).optional()
6232
+ var DTOUpdateElementPropertyDefinitionInputV2 = z220.object({
6233
+ id: z220.string(),
6234
+ name: z220.string().optional(),
6235
+ description: z220.string().optional(),
6236
+ codeName: z220.string().regex(CODE_NAME_REGEX2).optional(),
6237
+ options: z220.array(ElementPropertyDefinitionOption).optional()
6220
6238
  });
6221
- var DTODeleteElementPropertyDefinitionInputV2 = z219.object({
6222
- id: z219.string()
6239
+ var DTODeleteElementPropertyDefinitionInputV2 = z220.object({
6240
+ id: z220.string()
6223
6241
  });
6224
6242
 
6225
6243
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6226
- var SuccessPayload3 = z220.object({
6227
- success: z220.literal(true)
6244
+ var SuccessPayload3 = z221.object({
6245
+ success: z221.literal(true)
6228
6246
  });
6229
- var DTOPropertyDefinitionCreateActionOutputV2 = z220.object({
6230
- type: z220.literal("PropertyDefinitionCreate"),
6247
+ var DTOPropertyDefinitionCreateActionOutputV2 = z221.object({
6248
+ type: z221.literal("PropertyDefinitionCreate"),
6231
6249
  definition: DTOElementPropertyDefinition
6232
6250
  });
6233
- var DTOPropertyDefinitionUpdateActionOutputV2 = z220.object({
6234
- type: z220.literal("PropertyDefinitionUpdate"),
6251
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z221.object({
6252
+ type: z221.literal("PropertyDefinitionUpdate"),
6235
6253
  definition: DTOElementPropertyDefinition
6236
6254
  });
6237
- var DTOPropertyDefinitionDeleteActionOutputV2 = z220.object({
6238
- type: z220.literal("PropertyDefinitionDelete"),
6255
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z221.object({
6256
+ type: z221.literal("PropertyDefinitionDelete"),
6239
6257
  output: SuccessPayload3
6240
6258
  });
6241
- var DTOPropertyDefinitionCreateActionInputV2 = z220.object({
6242
- type: z220.literal("PropertyDefinitionCreate"),
6259
+ var DTOPropertyDefinitionCreateActionInputV2 = z221.object({
6260
+ type: z221.literal("PropertyDefinitionCreate"),
6243
6261
  input: DTOCreateElementPropertyDefinitionInputV2
6244
6262
  });
6245
- var DTOPropertyDefinitionUpdateActionInputV2 = z220.object({
6246
- type: z220.literal("PropertyDefinitionUpdate"),
6263
+ var DTOPropertyDefinitionUpdateActionInputV2 = z221.object({
6264
+ type: z221.literal("PropertyDefinitionUpdate"),
6247
6265
  input: DTOUpdateElementPropertyDefinitionInputV2
6248
6266
  });
6249
- var DTOPropertyDefinitionDeleteActionInputV2 = z220.object({
6250
- type: z220.literal("PropertyDefinitionDelete"),
6267
+ var DTOPropertyDefinitionDeleteActionInputV2 = z221.object({
6268
+ type: z221.literal("PropertyDefinitionDelete"),
6251
6269
  input: DTODeleteElementPropertyDefinitionInputV2
6252
6270
  });
6253
6271
 
6254
6272
  // src/api/dto/elements/properties/property-values.ts
6255
- import { z as z221 } from "zod";
6256
- var DTOElementPropertyValue = z221.object({
6257
- id: z221.string(),
6258
- designSystemVersionId: z221.string(),
6259
- definitionId: z221.string(),
6260
- targetElementId: z221.string(),
6261
- value: z221.union([z221.string(), z221.number(), z221.boolean()]).optional(),
6262
- valuePreview: z221.string().optional()
6273
+ import { z as z222 } from "zod";
6274
+ var DTOElementPropertyValue = z222.object({
6275
+ id: z222.string(),
6276
+ designSystemVersionId: z222.string(),
6277
+ definitionId: z222.string(),
6278
+ targetElementId: z222.string(),
6279
+ value: z222.union([z222.string(), z222.number(), z222.boolean()]).optional(),
6280
+ valuePreview: z222.string().optional()
6263
6281
  });
6264
- var DTOElementPropertyValuesGetResponse = z221.object({
6265
- values: z221.array(DTOElementPropertyValue)
6282
+ var DTOElementPropertyValuesGetResponse = z222.object({
6283
+ values: z222.array(DTOElementPropertyValue)
6266
6284
  });
6267
6285
 
6268
6286
  // src/api/dto/elements/elements-action-v2.ts
6269
- import { z as z222 } from "zod";
6270
- var DTOElementActionOutput = z222.discriminatedUnion("type", [
6287
+ import { z as z223 } from "zod";
6288
+ var DTOElementActionOutput = z223.discriminatedUnion("type", [
6271
6289
  // Documentation pages
6272
6290
  DTODocumentationPageCreateActionOutputV2,
6273
6291
  DTODocumentationPageUpdateActionOutputV2,
@@ -6294,7 +6312,7 @@ var DTOElementActionOutput = z222.discriminatedUnion("type", [
6294
6312
  // Approvals
6295
6313
  DTODocumentationPageApprovalStateChangeActionOutput
6296
6314
  ]);
6297
- var DTOElementActionInput = z222.discriminatedUnion("type", [
6315
+ var DTOElementActionInput = z223.discriminatedUnion("type", [
6298
6316
  // Documentation pages
6299
6317
  DTODocumentationPageCreateActionInputV2,
6300
6318
  DTODocumentationPageUpdateActionInputV2,
@@ -6323,62 +6341,208 @@ var DTOElementActionInput = z222.discriminatedUnion("type", [
6323
6341
  ]);
6324
6342
 
6325
6343
  // src/api/dto/elements/get-elements-v2.ts
6326
- import { z as z223 } from "zod";
6327
- var DTOElementsGetTypeFilter = z223.enum(["FigmaNode"]);
6328
- var DTOElementsGetQuerySchema = z223.object({
6329
- types: z223.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6344
+ import { z as z224 } from "zod";
6345
+ var DTOElementsGetTypeFilter = z224.enum(["FigmaNode"]);
6346
+ var DTOElementsGetQuerySchema = z224.object({
6347
+ types: z224.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6330
6348
  });
6331
- var DTOElementsGetOutput = z223.object({
6332
- figmaNodes: z223.array(DTOFigmaNode).optional()
6349
+ var DTOElementsGetOutput = z224.object({
6350
+ figmaNodes: z224.array(DTOFigmaNode).optional()
6333
6351
  });
6334
6352
 
6335
6353
  // src/api/dto/figma-components/assets/download.ts
6336
- import { z as z224 } from "zod";
6337
- var DTOAssetRenderConfiguration = z224.object({
6338
- prefix: z224.string().optional(),
6339
- suffix: z224.string().optional(),
6340
- scale: z224.enum(["x1", "x2", "x3", "x4"]),
6341
- format: z224.enum(["png", "pdf", "svg"])
6342
- });
6343
- var DTORenderedAssetFile = z224.object({
6344
- assetId: z224.string(),
6345
- fileName: z224.string(),
6346
- sourceUrl: z224.string(),
6354
+ import { z as z225 } from "zod";
6355
+ var DTOAssetRenderConfiguration = z225.object({
6356
+ prefix: z225.string().optional(),
6357
+ suffix: z225.string().optional(),
6358
+ scale: z225.enum(["x1", "x2", "x3", "x4"]),
6359
+ format: z225.enum(["png", "pdf", "svg"])
6360
+ });
6361
+ var DTORenderedAssetFile = z225.object({
6362
+ assetId: z225.string(),
6363
+ fileName: z225.string(),
6364
+ sourceUrl: z225.string(),
6347
6365
  settings: DTOAssetRenderConfiguration,
6348
- originalName: z224.string()
6366
+ originalName: z225.string()
6349
6367
  });
6350
- var DTODownloadAssetsRequest = z224.object({
6351
- persistentIds: z224.array(z224.string().uuid()).optional(),
6368
+ var DTODownloadAssetsRequest = z225.object({
6369
+ persistentIds: z225.array(z225.string().uuid()).optional(),
6352
6370
  settings: DTOAssetRenderConfiguration.array()
6353
6371
  });
6354
- var DTODownloadAssetsResponse = z224.object({
6372
+ var DTODownloadAssetsResponse = z225.object({
6355
6373
  items: DTORenderedAssetFile.array()
6356
6374
  });
6357
6375
 
6358
6376
  // src/api/dto/liveblocks/auth-response.ts
6359
- import { z as z225 } from "zod";
6360
- var DTOLiveblocksAuthResponse = z225.object({
6361
- token: z225.string()
6377
+ import { z as z226 } from "zod";
6378
+ var DTOLiveblocksAuthResponse = z226.object({
6379
+ token: z226.string()
6362
6380
  });
6363
6381
 
6364
6382
  // src/api/dto/users/update.ts
6365
- import { z as z226 } from "zod";
6366
- var DTOUserProfileUpdateResponse = z226.object({
6383
+ import { z as z227 } from "zod";
6384
+ var DTOUserProfileUpdateResponse = z227.object({
6367
6385
  user: User
6368
6386
  });
6369
6387
 
6370
6388
  // src/api/dto/users/user.ts
6371
- import { z as z227 } from "zod";
6372
- var DTOUserProfile = z227.object({
6373
- name: z227.string(),
6374
- nickname: z227.string().optional(),
6375
- avatar: z227.string().optional()
6376
- });
6377
- var DTOUser = z227.object({
6378
- id: z227.string(),
6379
- email: z227.string(),
6389
+ import { z as z228 } from "zod";
6390
+ var DTOUserProfile = z228.object({
6391
+ name: z228.string(),
6392
+ nickname: z228.string().optional(),
6393
+ avatar: z228.string().optional()
6394
+ });
6395
+ var DTOUser = z228.object({
6396
+ id: z228.string(),
6397
+ email: z228.string(),
6380
6398
  profile: DTOUserProfile
6381
6399
  });
6400
+ var DTOUserGetResponse = z228.object({
6401
+ user: DTOUser
6402
+ });
6403
+
6404
+ // src/api/endpoints/design-systems.ts
6405
+ import { z as z229 } from "zod";
6406
+ var DesignSystemsEndpoint = class {
6407
+ constructor(requestExecutor) {
6408
+ this.requestExecutor = requestExecutor;
6409
+ }
6410
+ create(body) {
6411
+ return this.requestExecutor.json("/design-systems", DTODesignSystemCreateResponse, { method: "POST", body });
6412
+ }
6413
+ list(wsId) {
6414
+ return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6415
+ }
6416
+ get(dsId) {
6417
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any());
6418
+ }
6419
+ delete(dsId) {
6420
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any(), { method: "DELETE" });
6421
+ }
6422
+ editMembers(dsId, body) {
6423
+ return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
6424
+ method: "POST",
6425
+ body
6426
+ });
6427
+ }
6428
+ };
6429
+
6430
+ // src/api/endpoints/users.ts
6431
+ var UsersEndpoint = class {
6432
+ constructor(requestExecutor) {
6433
+ this.requestExecutor = requestExecutor;
6434
+ }
6435
+ getMe() {
6436
+ return this.requestExecutor.json("/users/me", DTOUserGetResponse);
6437
+ }
6438
+ };
6439
+
6440
+ // src/api/endpoints/workspaces.ts
6441
+ import { z as z230 } from "zod";
6442
+ var WorkspacesEndpoint = class {
6443
+ constructor(requestExecutor) {
6444
+ this.requestExecutor = requestExecutor;
6445
+ }
6446
+ create(body) {
6447
+ return this.requestExecutor.json("/workspaces", DTOWorkspaceCreateResponse, {
6448
+ method: "POST",
6449
+ body: {
6450
+ ...body,
6451
+ product: "free",
6452
+ priceId: "yearly"
6453
+ }
6454
+ });
6455
+ }
6456
+ delete(workspaceId) {
6457
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z230.any(), { method: "DELETE" });
6458
+ }
6459
+ invite(workspaceId, body) {
6460
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z230.any(), { method: "POST", body });
6461
+ }
6462
+ };
6463
+
6464
+ // src/api/transport/request-executor-error.ts
6465
+ var RequestExecutorError = class _RequestExecutorError extends Error {
6466
+ constructor(type, message, cause) {
6467
+ super(`${type}: ${message}`, { cause });
6468
+ __publicField(this, "type");
6469
+ this.type = type;
6470
+ }
6471
+ static serverError(endpoint, status, bodyText) {
6472
+ return new _RequestExecutorError("ServerError", `Endpoint ${endpoint} returned ${status}
6473
+ ${bodyText}`);
6474
+ }
6475
+ static responseParsingError(endpoint, cause) {
6476
+ return new _RequestExecutorError("ResponseParsingError", `Endpoint ${endpoint} returned incompatible JSON`, cause);
6477
+ }
6478
+ };
6479
+
6480
+ // src/api/transport/request-executor.ts
6481
+ import fetch from "node-fetch";
6482
+ import { z as z231 } from "zod";
6483
+ var ResponseWrapper = z231.object({
6484
+ result: z231.record(z231.any())
6485
+ });
6486
+ var RequestExecutor = class {
6487
+ constructor(testServerConfig) {
6488
+ __publicField(this, "testServerConfig");
6489
+ this.testServerConfig = testServerConfig;
6490
+ }
6491
+ async json(path, schema, requestInit = {}) {
6492
+ const defaultHeaders = {
6493
+ Accept: "application/json"
6494
+ };
6495
+ if (requestInit.body)
6496
+ defaultHeaders["Content-Type"] = "application/json";
6497
+ if (this.testServerConfig.accessToken) {
6498
+ defaultHeaders["Authorization"] = `Bearer ${this.testServerConfig.accessToken}`;
6499
+ }
6500
+ let body;
6501
+ if (requestInit.body && typeof requestInit.body === "object")
6502
+ body = JSON.stringify(requestInit.body);
6503
+ const response = await fetch(this.fullUrl(path), {
6504
+ ...requestInit,
6505
+ headers: {
6506
+ ...requestInit.headers,
6507
+ ...defaultHeaders
6508
+ },
6509
+ body
6510
+ });
6511
+ const endpoint = `${requestInit.method ?? "GET"} ${path}`;
6512
+ if (!response.ok) {
6513
+ const bodyString = await response.text();
6514
+ throw RequestExecutorError.serverError(endpoint, response.status, bodyString);
6515
+ }
6516
+ const wrapperParseResult = ResponseWrapper.safeParse(await response.json());
6517
+ if (!wrapperParseResult.success) {
6518
+ throw RequestExecutorError.responseParsingError(endpoint, wrapperParseResult.error);
6519
+ }
6520
+ const responseParseResult = schema.safeParse(wrapperParseResult.data.result);
6521
+ if (!responseParseResult.success) {
6522
+ throw RequestExecutorError.responseParsingError(endpoint, responseParseResult.error);
6523
+ }
6524
+ return responseParseResult.data;
6525
+ }
6526
+ fullUrl(path) {
6527
+ return `https://${this.testServerConfig.host}/api/v2${path}`;
6528
+ }
6529
+ };
6530
+
6531
+ // src/api/client.ts
6532
+ var SupernovaApiClient = class {
6533
+ constructor(config) {
6534
+ __publicField(this, "users");
6535
+ __publicField(this, "workspaces");
6536
+ __publicField(this, "designSystems");
6537
+ const requestExecutor = new RequestExecutor({
6538
+ host: config.host,
6539
+ accessToken: config.accessToken
6540
+ });
6541
+ this.users = new UsersEndpoint(requestExecutor);
6542
+ this.workspaces = new WorkspacesEndpoint(requestExecutor);
6543
+ this.designSystems = new DesignSystemsEndpoint(requestExecutor);
6544
+ }
6545
+ };
6382
6546
 
6383
6547
  // src/utils/hash.ts
6384
6548
  function hash(input) {
@@ -6439,7 +6603,7 @@ function generateHash(input, debug = false) {
6439
6603
  }
6440
6604
 
6441
6605
  // src/yjs/design-system-content/documentation-hierarchy.ts
6442
- import { z as z228 } from "zod";
6606
+ import { z as z232 } from "zod";
6443
6607
 
6444
6608
  // src/yjs/version-room/base.ts
6445
6609
  var VersionRoomBaseYDoc = class {
@@ -6968,24 +7132,24 @@ var FrontendVersionRoomYDoc = class {
6968
7132
  };
6969
7133
 
6970
7134
  // src/yjs/design-system-content/documentation-hierarchy.ts
6971
- var DocumentationHierarchySettings = z228.object({
6972
- routingVersion: z228.string(),
6973
- isDraftFeatureAdopted: z228.boolean(),
6974
- isApprovalFeatureEnabled: z228.boolean(),
6975
- approvalRequiredForPublishing: z228.boolean()
7135
+ var DocumentationHierarchySettings = z232.object({
7136
+ routingVersion: z232.string(),
7137
+ isDraftFeatureAdopted: z232.boolean(),
7138
+ isApprovalFeatureEnabled: z232.boolean(),
7139
+ approvalRequiredForPublishing: z232.boolean()
6976
7140
  });
6977
7141
  function yjsToDocumentationHierarchy(doc) {
6978
7142
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6979
7143
  }
6980
7144
 
6981
7145
  // src/yjs/design-system-content/item-configuration.ts
6982
- import { z as z229 } from "zod";
6983
- var DTODocumentationPageRoomHeaderData = z229.object({
6984
- title: z229.string(),
7146
+ import { z as z233 } from "zod";
7147
+ var DTODocumentationPageRoomHeaderData = z233.object({
7148
+ title: z233.string(),
6985
7149
  configuration: DTODocumentationItemConfigurationV2
6986
7150
  });
6987
- var DTODocumentationPageRoomHeaderDataUpdate = z229.object({
6988
- title: z229.string().optional(),
7151
+ var DTODocumentationPageRoomHeaderDataUpdate = z233.object({
7152
+ title: z233.string().optional(),
6989
7153
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6990
7154
  });
6991
7155
  function itemConfigurationToYjs(yDoc, item) {
@@ -7036,7 +7200,7 @@ function yjsToItemConfiguration(yDoc) {
7036
7200
  header: rawHeader
7037
7201
  };
7038
7202
  return {
7039
- title: z229.string().parse(title),
7203
+ title: z233.string().parse(title),
7040
7204
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7041
7205
  };
7042
7206
  }
@@ -7046,9 +7210,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7046
7210
  var PageSectionEditorModel = PageSectionEditorModelV2;
7047
7211
 
7048
7212
  // src/yjs/docs-editor/model/page.ts
7049
- import { z as z230 } from "zod";
7050
- var DocumentationPageEditorModel = z230.object({
7051
- blocks: z230.array(DocumentationPageContentItem)
7213
+ import { z as z234 } from "zod";
7214
+ var DocumentationPageEditorModel = z234.object({
7215
+ blocks: z234.array(DocumentationPageContentItem)
7052
7216
  });
7053
7217
 
7054
7218
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -8783,10 +8947,7 @@ var blocks = [
8783
8947
  },
8784
8948
  behavior: {
8785
8949
  dataType: "Item",
8786
- items: {
8787
- numberOfItems: 1,
8788
- allowLinks: false
8789
- }
8950
+ items: { numberOfItems: 1, allowLinks: false }
8790
8951
  },
8791
8952
  editorOptions: {
8792
8953
  onboarding: {
@@ -8844,10 +9005,7 @@ var blocks = [
8844
9005
  },
8845
9006
  behavior: {
8846
9007
  dataType: "Item",
8847
- items: {
8848
- numberOfItems: 1,
8849
- allowLinks: false
8850
- }
9008
+ items: { numberOfItems: 1, allowLinks: false }
8851
9009
  },
8852
9010
  editorOptions: {
8853
9011
  onboarding: {
@@ -8864,26 +9022,21 @@ var blocks = [
8864
9022
  },
8865
9023
  {
8866
9024
  id: "io.supernova.block.ordered-list",
8867
- name: "Ordered list",
8868
- description: "A list with numbers",
9025
+ name: "Numbered list",
9026
+ description: "An ordered list with numbers",
8869
9027
  category: "Text",
8870
9028
  icon: "https://cdn-assets.supernova.io/blocks/icons/list-ordered.svg",
8871
- searchKeywords: ["ol"],
9029
+ searchKeywords: ["ol", "ordered"],
8872
9030
  item: {
8873
9031
  properties: [
8874
9032
  {
8875
9033
  id: "text",
8876
9034
  name: "Text",
8877
9035
  type: "MultiRichText",
8878
- options: {
8879
- multiRichTextStyle: "OL"
8880
- }
9036
+ options: { multiRichTextStyle: "OL" }
8881
9037
  }
8882
9038
  ],
8883
- appearance: {
8884
- isBordered: true,
8885
- hasBackground: false
8886
- },
9039
+ appearance: { isBordered: true, hasBackground: false },
8887
9040
  variants: [
8888
9041
  {
8889
9042
  id: "default",
@@ -8902,13 +9055,7 @@ var blocks = [
8902
9055
  ],
8903
9056
  defaultVariantKey: "default"
8904
9057
  },
8905
- behavior: {
8906
- dataType: "Item",
8907
- items: {
8908
- numberOfItems: 1,
8909
- allowLinks: false
8910
- }
8911
- },
9058
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8912
9059
  editorOptions: {
8913
9060
  onboarding: {
8914
9061
  helpText: "Display a sequence of numbers or letters to indicate order.",
@@ -8924,7 +9071,7 @@ var blocks = [
8924
9071
  },
8925
9072
  {
8926
9073
  id: "io.supernova.block.unordered-list",
8927
- name: "Bullet list",
9074
+ name: "Bulleted list",
8928
9075
  description: "A list with bullet points",
8929
9076
  category: "Text",
8930
9077
  icon: "https://cdn-assets.supernova.io/blocks/icons/list-unordered.svg",
@@ -8935,15 +9082,10 @@ var blocks = [
8935
9082
  id: "text",
8936
9083
  name: "Text",
8937
9084
  type: "MultiRichText",
8938
- options: {
8939
- multiRichTextStyle: "UL"
8940
- }
9085
+ options: { multiRichTextStyle: "UL" }
8941
9086
  }
8942
9087
  ],
8943
- appearance: {
8944
- isBordered: true,
8945
- hasBackground: false
8946
- },
9088
+ appearance: { isBordered: true, hasBackground: false },
8947
9089
  variants: [
8948
9090
  {
8949
9091
  id: "default",
@@ -8962,13 +9104,7 @@ var blocks = [
8962
9104
  ],
8963
9105
  defaultVariantKey: "default"
8964
9106
  },
8965
- behavior: {
8966
- dataType: "Item",
8967
- items: {
8968
- numberOfItems: 1,
8969
- allowLinks: false
8970
- }
8971
- },
9107
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8972
9108
  editorOptions: {
8973
9109
  onboarding: {
8974
9110
  helpText: "A list of items displayed with bullet points without a specific sequence.",
@@ -8983,50 +9119,176 @@ var blocks = [
8983
9119
  }
8984
9120
  },
8985
9121
  {
8986
- id: "io.supernova.block.divider",
8987
- name: "Divider",
8988
- description: "A section divider",
8989
- category: "Layout",
8990
- icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
8991
- searchKeywords: ["hr", "line", "rule", "separator"],
9122
+ id: "io.supernova.block.do-dont-guidelines",
9123
+ name: "Guidelines",
9124
+ description: "Document your Do's and Don'ts.",
9125
+ category: "Guidelines",
9126
+ icon: "https://cdn-assets.supernova.io/blocks/icons/guidelines.svg",
9127
+ searchKeywords: ["do", "dont", "caution", "rules"],
8992
9128
  item: {
8993
9129
  properties: [
8994
9130
  {
8995
- id: "divider",
8996
- name: "Divider",
8997
- type: "Divider",
8998
- options: {}
9131
+ id: "block.do-dont-guidelines.property.image",
9132
+ name: "Image",
9133
+ type: "Image",
9134
+ options: { allowCaption: true }
9135
+ },
9136
+ {
9137
+ id: "block.do-dont-guidelines.property.type",
9138
+ name: "Type",
9139
+ type: "SingleSelect",
9140
+ options: {
9141
+ defaultChoice: "do",
9142
+ choices: [
9143
+ { value: "do", name: "Do", color: "Green", icon: "CheckCircle" },
9144
+ { value: "dont", name: "Don't", color: "Red", icon: "CrossCircle" },
9145
+ { value: "caution", name: "Caution", color: "Orange", icon: "Alert" }
9146
+ ],
9147
+ singleSelectStyle: "ToggleButton"
9148
+ }
9149
+ },
9150
+ {
9151
+ id: "block.do-dont-guidelines.property.description",
9152
+ name: "Description",
9153
+ type: "RichTextEditor",
9154
+ options: {
9155
+ allowedInlineStyles: ["Bold", "Italic", "Strikethrough", "UL", "OL", "Link", "InlineCode"],
9156
+ placeholder: "Add description"
9157
+ }
8999
9158
  }
9000
9159
  ],
9001
- appearance: {
9002
- isBordered: true,
9003
- hasBackground: false
9004
- },
9160
+ appearance: { isBordered: true, hasBackground: false },
9005
9161
  variants: [
9006
9162
  {
9007
- id: "default",
9008
- name: "Default",
9163
+ id: "simple",
9164
+ name: "Simple",
9165
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-simple.svg",
9166
+ description: "With a minimalist badge at the top, this design is great for content guidelines.",
9009
9167
  layout: {
9010
9168
  type: "Column",
9011
- children: ["divider"],
9169
+ children: [
9170
+ "block.do-dont-guidelines.property.type",
9171
+ "block.do-dont-guidelines.property.image",
9172
+ "block.do-dont-guidelines.property.description"
9173
+ ],
9012
9174
  columnAlign: "Start",
9013
9175
  columnResizing: "Fill",
9014
9176
  gap: "Medium"
9015
9177
  },
9016
- maxColumns: 1,
9017
- defaultColumns: 1,
9178
+ maxColumns: 3,
9179
+ defaultColumns: 2,
9018
9180
  appearance: {}
9019
- }
9020
- ],
9021
- defaultVariantKey: "default"
9022
- },
9023
- behavior: {
9024
- dataType: "Item",
9025
- items: {
9026
- numberOfItems: 1,
9027
- allowLinks: false
9028
- }
9029
- },
9181
+ },
9182
+ {
9183
+ id: "prominent",
9184
+ name: "Prominent",
9185
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-prominent.svg",
9186
+ description: "Recommended when you need guidelines that need to stand out.",
9187
+ layout: {
9188
+ type: "Column",
9189
+ children: [
9190
+ "block.do-dont-guidelines.property.type",
9191
+ "block.do-dont-guidelines.property.image",
9192
+ "block.do-dont-guidelines.property.description"
9193
+ ],
9194
+ columnAlign: "Start",
9195
+ columnResizing: "Fill",
9196
+ gap: "Medium"
9197
+ },
9198
+ maxColumns: 3,
9199
+ defaultColumns: 1,
9200
+ appearance: { isEditorPresentationDifferent: true }
9201
+ },
9202
+ {
9203
+ id: "contained",
9204
+ name: "Contained",
9205
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-contained.svg",
9206
+ description: "Perfect for component guidelines with spacious images.",
9207
+ layout: {
9208
+ type: "Column",
9209
+ children: [
9210
+ "block.do-dont-guidelines.property.type",
9211
+ "block.do-dont-guidelines.property.image",
9212
+ "block.do-dont-guidelines.property.description"
9213
+ ],
9214
+ columnAlign: "Start",
9215
+ columnResizing: "Fill",
9216
+ gap: "Medium"
9217
+ },
9218
+ maxColumns: 3,
9219
+ defaultColumns: 1,
9220
+ appearance: { isEditorPresentationDifferent: true }
9221
+ },
9222
+ {
9223
+ id: "side-border",
9224
+ name: "Side border",
9225
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-side-border.svg",
9226
+ description: "The side border makes this variant well-suited for longer text guidelines.",
9227
+ layout: {
9228
+ type: "Column",
9229
+ children: [
9230
+ "block.do-dont-guidelines.property.type",
9231
+ "block.do-dont-guidelines.property.image",
9232
+ "block.do-dont-guidelines.property.description"
9233
+ ],
9234
+ columnAlign: "Start",
9235
+ columnResizing: "Fill",
9236
+ gap: "Medium"
9237
+ },
9238
+ maxColumns: 3,
9239
+ defaultColumns: 1,
9240
+ appearance: { isEditorPresentationDifferent: true }
9241
+ }
9242
+ ],
9243
+ defaultVariantKey: "simple"
9244
+ },
9245
+ behavior: {
9246
+ dataType: "Item",
9247
+ items: { numberOfItems: -1, allowLinks: false, newItemLabel: "Add guideline" }
9248
+ },
9249
+ editorOptions: {
9250
+ onboarding: {
9251
+ helpText: "Use link block to document your Do/Don't guidelines for your components and patterns.",
9252
+ documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
9253
+ },
9254
+ newItemLabel: "Add guideline"
9255
+ },
9256
+ appearance: {
9257
+ isBordered: true,
9258
+ hasBackground: false,
9259
+ isEditorPresentationDifferent: false,
9260
+ showBlockHeaderInEditor: false
9261
+ }
9262
+ },
9263
+ {
9264
+ id: "io.supernova.block.divider",
9265
+ name: "Divider",
9266
+ description: "A section divider",
9267
+ category: "Layout",
9268
+ icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
9269
+ searchKeywords: ["hr", "line", "rule", "separator"],
9270
+ item: {
9271
+ properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
9272
+ appearance: { isBordered: true, hasBackground: false },
9273
+ variants: [
9274
+ {
9275
+ id: "default",
9276
+ name: "Default",
9277
+ layout: {
9278
+ type: "Column",
9279
+ children: ["divider"],
9280
+ columnAlign: "Start",
9281
+ columnResizing: "Fill",
9282
+ gap: "Medium"
9283
+ },
9284
+ maxColumns: 1,
9285
+ defaultColumns: 1,
9286
+ appearance: {}
9287
+ }
9288
+ ],
9289
+ defaultVariantKey: "default"
9290
+ },
9291
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9030
9292
  editorOptions: {
9031
9293
  onboarding: {
9032
9294
  helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
@@ -9053,27 +9315,15 @@ var blocks = [
9053
9315
  id: "text",
9054
9316
  name: "Text",
9055
9317
  type: "RichText",
9056
- options: {
9057
- placeholder: "Write a quote...",
9058
- richTextStyle: "Quote"
9059
- }
9318
+ options: { placeholder: "Write a quote...", richTextStyle: "Quote" }
9060
9319
  }
9061
9320
  ],
9062
- appearance: {
9063
- isBordered: true,
9064
- hasBackground: false
9065
- },
9321
+ appearance: { isBordered: true, hasBackground: false },
9066
9322
  variants: [
9067
9323
  {
9068
9324
  id: "default",
9069
9325
  name: "Default",
9070
- layout: {
9071
- type: "Column",
9072
- children: ["text"],
9073
- columnAlign: "Start",
9074
- columnResizing: "Fill",
9075
- gap: "Medium"
9076
- },
9326
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9077
9327
  maxColumns: 1,
9078
9328
  defaultColumns: 1,
9079
9329
  appearance: {}
@@ -9081,13 +9331,7 @@ var blocks = [
9081
9331
  ],
9082
9332
  defaultVariantKey: "default"
9083
9333
  },
9084
- behavior: {
9085
- dataType: "Item",
9086
- items: {
9087
- numberOfItems: 1,
9088
- allowLinks: false
9089
- }
9090
- },
9334
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9091
9335
  editorOptions: {
9092
9336
  onboarding: {
9093
9337
  helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
@@ -9114,27 +9358,15 @@ var blocks = [
9114
9358
  id: "text",
9115
9359
  name: "Text",
9116
9360
  type: "RichText",
9117
- options: {
9118
- placeholder: "Highlight some information...",
9119
- richTextStyle: "Callout"
9120
- }
9361
+ options: { placeholder: "Highlight some information...", richTextStyle: "Callout" }
9121
9362
  }
9122
9363
  ],
9123
- appearance: {
9124
- isBordered: true,
9125
- hasBackground: false
9126
- },
9364
+ appearance: { isBordered: true, hasBackground: false },
9127
9365
  variants: [
9128
9366
  {
9129
9367
  id: "default",
9130
9368
  name: "Default",
9131
- layout: {
9132
- type: "Column",
9133
- children: ["text"],
9134
- columnAlign: "Start",
9135
- columnResizing: "Fill",
9136
- gap: "Medium"
9137
- },
9369
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9138
9370
  maxColumns: 1,
9139
9371
  defaultColumns: 1,
9140
9372
  appearance: {}
@@ -9142,13 +9374,7 @@ var blocks = [
9142
9374
  ],
9143
9375
  defaultVariantKey: "default"
9144
9376
  },
9145
- behavior: {
9146
- dataType: "Item",
9147
- items: {
9148
- numberOfItems: 1,
9149
- allowLinks: false
9150
- }
9151
- },
9377
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9152
9378
  editorOptions: {
9153
9379
  onboarding: {
9154
9380
  helpText: "Use to highlight a section of text.",
@@ -9175,26 +9401,15 @@ var blocks = [
9175
9401
  id: "image",
9176
9402
  name: "Image",
9177
9403
  type: "Image",
9178
- options: {
9179
- allowCaption: true
9180
- }
9404
+ options: { allowCaption: true }
9181
9405
  }
9182
9406
  ],
9183
- appearance: {
9184
- isBordered: true,
9185
- hasBackground: false
9186
- },
9407
+ appearance: { isBordered: true, hasBackground: false },
9187
9408
  variants: [
9188
9409
  {
9189
9410
  id: "default",
9190
9411
  name: "Default",
9191
- layout: {
9192
- type: "Column",
9193
- children: ["image"],
9194
- columnAlign: "Start",
9195
- columnResizing: "Fill",
9196
- gap: "Medium"
9197
- },
9412
+ layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9198
9413
  maxColumns: 1,
9199
9414
  defaultColumns: 1,
9200
9415
  appearance: {}
@@ -9202,13 +9417,7 @@ var blocks = [
9202
9417
  ],
9203
9418
  defaultVariantKey: "default"
9204
9419
  },
9205
- behavior: {
9206
- dataType: "Item",
9207
- items: {
9208
- numberOfItems: 1,
9209
- allowLinks: false
9210
- }
9211
- },
9420
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9212
9421
  editorOptions: {
9213
9422
  onboarding: {
9214
9423
  helpText: "Use to display an image or Figma image.",
@@ -9235,48 +9444,27 @@ var blocks = [
9235
9444
  id: "block.links.property.image",
9236
9445
  name: "Image",
9237
9446
  type: "Image",
9238
- options: {
9239
- aspectRatio: "Landscape",
9240
- allowCaption: false
9241
- },
9447
+ options: { aspectRatio: "Landscape", allowCaption: false },
9242
9448
  variantOptions: {
9243
- iconOnTop: {
9244
- width: "Icon",
9245
- aspectRatio: "Square"
9246
- },
9247
- imageOnLeft: {
9248
- width: "Medium"
9249
- },
9250
- iconOnLeft: {
9251
- width: "Icon",
9252
- aspectRatio: "Square"
9253
- }
9449
+ iconOnTop: { width: "Icon", aspectRatio: "Square" },
9450
+ imageOnLeft: { width: "Medium" },
9451
+ iconOnLeft: { width: "Icon", aspectRatio: "Square" }
9254
9452
  }
9255
9453
  },
9256
9454
  {
9257
9455
  id: "block.links.property.title",
9258
9456
  name: "Title",
9259
9457
  type: "Text",
9260
- options: {
9261
- textStyle: "Title5",
9262
- placeholder: "Add title"
9263
- }
9458
+ options: { textStyle: "Title5", placeholder: "Add title", allowLineBreaks: false }
9264
9459
  },
9265
9460
  {
9266
9461
  id: "block.links.property.description",
9267
9462
  name: "Short description",
9268
9463
  type: "Text",
9269
- options: {
9270
- textStyle: "Default",
9271
- color: "NeutralFaded",
9272
- placeholder: "Add description"
9273
- }
9464
+ options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" }
9274
9465
  }
9275
9466
  ],
9276
- appearance: {
9277
- isBordered: true,
9278
- hasBackground: false
9279
- },
9467
+ appearance: { isBordered: true, hasBackground: false },
9280
9468
  variants: [
9281
9469
  {
9282
9470
  id: "imageOnTop",
@@ -9373,11 +9561,7 @@ var blocks = [
9373
9561
  },
9374
9562
  behavior: {
9375
9563
  dataType: "Item",
9376
- items: {
9377
- numberOfItems: -1,
9378
- allowLinks: true,
9379
- newItemLabel: "Add shortcut"
9380
- }
9564
+ items: { numberOfItems: -1, allowLinks: true, newItemLabel: "Add shortcut" }
9381
9565
  },
9382
9566
  editorOptions: {
9383
9567
  onboarding: {
@@ -9414,21 +9598,12 @@ var blocks = [
9414
9598
  }
9415
9599
  }
9416
9600
  ],
9417
- appearance: {
9418
- isBordered: true,
9419
- hasBackground: false
9420
- },
9601
+ appearance: { isBordered: true, hasBackground: false },
9421
9602
  variants: [
9422
9603
  {
9423
9604
  id: "default",
9424
9605
  name: "Default",
9425
- layout: {
9426
- type: "Column",
9427
- children: ["embed"],
9428
- columnAlign: "Start",
9429
- columnResizing: "Fill",
9430
- gap: "Medium"
9431
- },
9606
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9432
9607
  maxColumns: 1,
9433
9608
  defaultColumns: 1,
9434
9609
  appearance: {}
@@ -9436,13 +9611,7 @@ var blocks = [
9436
9611
  ],
9437
9612
  defaultVariantKey: "default"
9438
9613
  },
9439
- behavior: {
9440
- dataType: "Item",
9441
- items: {
9442
- numberOfItems: 1,
9443
- allowLinks: false
9444
- }
9445
- },
9614
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9446
9615
  editorOptions: {
9447
9616
  onboarding: {
9448
9617
  helpText: "Embed a Figma canvas or prototype to your documentation.",
@@ -9469,28 +9638,15 @@ var blocks = [
9469
9638
  id: "embed",
9470
9639
  name: "Storybook URL",
9471
9640
  type: "Storybook",
9472
- options: {
9473
- allowCaption: true,
9474
- allowResize: true,
9475
- defaultHeight: 400
9476
- }
9641
+ options: { allowCaption: true, allowResize: true, defaultHeight: 400 }
9477
9642
  }
9478
9643
  ],
9479
- appearance: {
9480
- isBordered: true,
9481
- hasBackground: false
9482
- },
9644
+ appearance: { isBordered: true, hasBackground: false },
9483
9645
  variants: [
9484
9646
  {
9485
9647
  id: "default",
9486
9648
  name: "Default",
9487
- layout: {
9488
- type: "Column",
9489
- children: ["embed"],
9490
- columnAlign: "Start",
9491
- columnResizing: "Fill",
9492
- gap: "Medium"
9493
- },
9649
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9494
9650
  maxColumns: 1,
9495
9651
  defaultColumns: 1,
9496
9652
  appearance: {}
@@ -9498,13 +9654,7 @@ var blocks = [
9498
9654
  ],
9499
9655
  defaultVariantKey: "default"
9500
9656
  },
9501
- behavior: {
9502
- dataType: "Item",
9503
- items: {
9504
- numberOfItems: 1,
9505
- allowLinks: false
9506
- }
9507
- },
9657
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9508
9658
  editorOptions: {
9509
9659
  onboarding: {
9510
9660
  helpText: "Embed a Storybook story to your documentation.",
@@ -9539,21 +9689,12 @@ var blocks = [
9539
9689
  }
9540
9690
  }
9541
9691
  ],
9542
- appearance: {
9543
- isBordered: true,
9544
- hasBackground: false
9545
- },
9692
+ appearance: { isBordered: true, hasBackground: false },
9546
9693
  variants: [
9547
9694
  {
9548
9695
  id: "default",
9549
9696
  name: "Default",
9550
- layout: {
9551
- type: "Column",
9552
- children: ["embed"],
9553
- columnAlign: "Start",
9554
- columnResizing: "Fill",
9555
- gap: "Medium"
9556
- },
9697
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9557
9698
  maxColumns: 1,
9558
9699
  defaultColumns: 1,
9559
9700
  appearance: {}
@@ -9561,13 +9702,7 @@ var blocks = [
9561
9702
  ],
9562
9703
  defaultVariantKey: "default"
9563
9704
  },
9564
- behavior: {
9565
- dataType: "Item",
9566
- items: {
9567
- numberOfItems: 1,
9568
- allowLinks: false
9569
- }
9570
- },
9705
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9571
9706
  editorOptions: {
9572
9707
  onboarding: {
9573
9708
  helpText: "Embed a YouTube video to your documentation.",
@@ -9595,55 +9730,40 @@ var blocks = [
9595
9730
  name: "Lottie URL",
9596
9731
  type: "URL",
9597
9732
  description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
9598
- options: {
9599
- urlValidationRegex: "^(http|https)://.*.(json|lottie)$"
9600
- }
9733
+ options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" }
9601
9734
  },
9602
9735
  {
9603
9736
  id: "height",
9604
9737
  name: "Height",
9605
9738
  type: "Number",
9606
- options: {
9607
- defaultValue: 270
9608
- }
9739
+ options: { defaultValue: 270 }
9609
9740
  },
9610
9741
  {
9611
9742
  id: "width",
9612
9743
  name: "Width",
9613
9744
  type: "Number",
9614
- options: {
9615
- defaultValue: 400
9616
- }
9745
+ options: { defaultValue: 400 }
9617
9746
  },
9618
9747
  {
9619
9748
  id: "autoplay",
9620
9749
  name: "Autoplay",
9621
9750
  type: "Boolean",
9622
- options: {
9623
- defaultValue: true
9624
- }
9751
+ options: { defaultValue: true }
9625
9752
  },
9626
9753
  {
9627
9754
  id: "loop",
9628
9755
  name: "Loop",
9629
9756
  type: "Boolean",
9630
- options: {
9631
- defaultValue: true
9632
- }
9757
+ options: { defaultValue: true }
9633
9758
  },
9634
9759
  {
9635
9760
  id: "playerControls",
9636
9761
  name: "Show player controls",
9637
9762
  type: "Boolean",
9638
- options: {
9639
- defaultValue: true
9640
- }
9763
+ options: { defaultValue: true }
9641
9764
  }
9642
9765
  ],
9643
- appearance: {
9644
- isBordered: true,
9645
- hasBackground: false
9646
- },
9766
+ appearance: { isBordered: true, hasBackground: false },
9647
9767
  variants: [
9648
9768
  {
9649
9769
  id: "default",
@@ -9664,13 +9784,7 @@ var blocks = [
9664
9784
  ],
9665
9785
  defaultVariantKey: "default"
9666
9786
  },
9667
- behavior: {
9668
- dataType: "Item",
9669
- items: {
9670
- numberOfItems: 1,
9671
- allowLinks: false
9672
- }
9673
- },
9787
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9674
9788
  editorOptions: {
9675
9789
  onboarding: {
9676
9790
  helpText: "Embed a Lottie animation to your documentation.",
@@ -9705,10 +9819,7 @@ var blocks = [
9705
9819
  }
9706
9820
  }
9707
9821
  ],
9708
- appearance: {
9709
- isBordered: true,
9710
- hasBackground: false
9711
- },
9822
+ appearance: { isBordered: true, hasBackground: false },
9712
9823
  variants: [
9713
9824
  {
9714
9825
  id: "default",
@@ -9727,13 +9838,7 @@ var blocks = [
9727
9838
  ],
9728
9839
  defaultVariantKey: "default"
9729
9840
  },
9730
- behavior: {
9731
- dataType: "Item",
9732
- items: {
9733
- numberOfItems: 1,
9734
- allowLinks: false
9735
- }
9736
- },
9841
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9737
9842
  editorOptions: {
9738
9843
  onboarding: {
9739
9844
  helpText: "Embed any page to your documentation as an iframe.",
@@ -9760,15 +9865,10 @@ var blocks = [
9760
9865
  id: "markdownUrl",
9761
9866
  name: "Markdown URL",
9762
9867
  type: "Markdown",
9763
- options: {
9764
- urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$"
9765
- }
9868
+ options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" }
9766
9869
  }
9767
9870
  ],
9768
- appearance: {
9769
- isBordered: true,
9770
- hasBackground: false
9771
- },
9871
+ appearance: { isBordered: true, hasBackground: false },
9772
9872
  variants: [
9773
9873
  {
9774
9874
  id: "plain",
@@ -9818,13 +9918,7 @@ var blocks = [
9818
9918
  ],
9819
9919
  defaultVariantKey: "plain"
9820
9920
  },
9821
- behavior: {
9822
- dataType: "Item",
9823
- items: {
9824
- numberOfItems: 1,
9825
- allowLinks: false
9826
- }
9827
- },
9921
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9828
9922
  editorOptions: {
9829
9923
  onboarding: {
9830
9924
  helpText: "Render any markdown file directly inside of your documentation.",
@@ -9846,29 +9940,13 @@ var blocks = [
9846
9940
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
9847
9941
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
9848
9942
  item: {
9849
- properties: [
9850
- {
9851
- id: "table",
9852
- name: "Table",
9853
- type: "Table",
9854
- options: {}
9855
- }
9856
- ],
9857
- appearance: {
9858
- isBordered: true,
9859
- hasBackground: false
9860
- },
9943
+ properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
9944
+ appearance: { isBordered: true, hasBackground: false },
9861
9945
  variants: [
9862
9946
  {
9863
9947
  id: "default",
9864
9948
  name: "Default",
9865
- layout: {
9866
- type: "Column",
9867
- children: ["table"],
9868
- columnAlign: "Start",
9869
- columnResizing: "Fill",
9870
- gap: "Medium"
9871
- },
9949
+ layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9872
9950
  maxColumns: 1,
9873
9951
  defaultColumns: 1,
9874
9952
  appearance: {}
@@ -9876,13 +9954,7 @@ var blocks = [
9876
9954
  ],
9877
9955
  defaultVariantKey: "default"
9878
9956
  },
9879
- behavior: {
9880
- dataType: "Item",
9881
- items: {
9882
- numberOfItems: 1,
9883
- allowLinks: false
9884
- }
9885
- },
9957
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9886
9958
  editorOptions: {
9887
9959
  onboarding: {
9888
9960
  helpText: "Use for displaying data in a tabular format.",
@@ -9919,34 +9991,17 @@ var blocks = [
9919
9991
  id: "tokens",
9920
9992
  name: "Tokens",
9921
9993
  type: "Token",
9922
- options: {
9923
- renderLayoutAs: "List",
9924
- defaultTheme: "none",
9925
- defaultValuePreview: "Split"
9926
- },
9927
- variantOptions: {
9928
- grid: {
9929
- renderLayoutAs: "Grid"
9930
- }
9931
- }
9994
+ options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
9995
+ variantOptions: { grid: { renderLayoutAs: "Grid" } }
9932
9996
  }
9933
9997
  ],
9934
- appearance: {
9935
- isBordered: true,
9936
- hasBackground: false
9937
- },
9998
+ appearance: { isBordered: true, hasBackground: false },
9938
9999
  variants: [
9939
10000
  {
9940
10001
  id: "table",
9941
10002
  name: "Table",
9942
10003
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
9943
- layout: {
9944
- type: "Column",
9945
- children: ["tokens"],
9946
- columnAlign: "Start",
9947
- columnResizing: "Fill",
9948
- gap: "Medium"
9949
- },
10004
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9950
10005
  maxColumns: 1,
9951
10006
  defaultColumns: 1,
9952
10007
  appearance: {}
@@ -9955,13 +10010,7 @@ var blocks = [
9955
10010
  id: "grid",
9956
10011
  name: "Grid",
9957
10012
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
9958
- layout: {
9959
- type: "Column",
9960
- children: ["tokens"],
9961
- columnAlign: "Start",
9962
- columnResizing: "Fill",
9963
- gap: "Medium"
9964
- },
10013
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9965
10014
  maxColumns: 4,
9966
10015
  defaultColumns: 1,
9967
10016
  appearance: {}
@@ -9969,13 +10018,7 @@ var blocks = [
9969
10018
  ],
9970
10019
  defaultVariantKey: "table"
9971
10020
  },
9972
- behavior: {
9973
- dataType: "Token",
9974
- entities: {
9975
- selectionType: "EntityAndGroup",
9976
- maxSelected: 0
9977
- }
9978
- },
10021
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9979
10022
  editorOptions: {
9980
10023
  onboarding: {
9981
10024
  helpText: "Show a group of design tokens. Automatically display all subgroups too.",
@@ -10002,50 +10045,26 @@ var blocks = [
10002
10045
  id: "tokens",
10003
10046
  name: "Tokens",
10004
10047
  type: "Token",
10005
- options: {
10006
- allowedTypes: ["Color"],
10007
- allowPropertySelection: false,
10008
- allowThemeSelection: true
10009
- }
10048
+ options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true }
10010
10049
  }
10011
10050
  ],
10012
- appearance: {
10013
- isBordered: true,
10014
- hasBackground: false
10015
- },
10051
+ appearance: { isBordered: true, hasBackground: false },
10016
10052
  variants: [
10017
10053
  {
10018
10054
  id: "default",
10019
10055
  name: "Default",
10020
10056
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
10021
- layout: {
10022
- type: "Column",
10023
- children: ["tokens"],
10024
- columnAlign: "Start",
10025
- columnResizing: "Fill",
10026
- gap: "Medium"
10027
- },
10057
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10028
10058
  maxColumns: 2,
10029
10059
  defaultColumns: 1,
10030
- appearance: {
10031
- isEditorPresentationDifferent: true
10032
- }
10060
+ appearance: { isEditorPresentationDifferent: true }
10033
10061
  }
10034
10062
  ],
10035
10063
  defaultVariantKey: "default"
10036
10064
  },
10037
- behavior: {
10038
- dataType: "Token",
10039
- entities: {
10040
- selectionType: "EntityAndGroup",
10041
- maxSelected: 0
10042
- }
10043
- },
10065
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
10044
10066
  editorOptions: {
10045
- onboarding: {
10046
- helpText: "The best way to display colors",
10047
- documentationLink: "https://learn.supernova.io"
10048
- }
10067
+ onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" }
10049
10068
  },
10050
10069
  appearance: {
10051
10070
  isBordered: true,
@@ -10067,46 +10086,25 @@ var blocks = [
10067
10086
  id: "tokens",
10068
10087
  name: "Tokens",
10069
10088
  type: "Token",
10070
- options: {
10071
- allowedTypes: ["Color"],
10072
- allowPropertySelection: false,
10073
- allowThemeSelection: false
10074
- }
10089
+ options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false }
10075
10090
  }
10076
10091
  ],
10077
- appearance: {
10078
- isBordered: true,
10079
- hasBackground: false
10080
- },
10092
+ appearance: { isBordered: true, hasBackground: false },
10081
10093
  variants: [
10082
10094
  {
10083
10095
  id: "default",
10084
10096
  name: "Default",
10085
10097
  image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
10086
10098
  description: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
10087
- layout: {
10088
- type: "Column",
10089
- children: ["tokens"],
10090
- columnAlign: "Start",
10091
- columnResizing: "Fill",
10092
- gap: "Medium"
10093
- },
10099
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10094
10100
  maxColumns: 1,
10095
10101
  defaultColumns: 1,
10096
- appearance: {
10097
- isEditorPresentationDifferent: true
10098
- }
10102
+ appearance: { isEditorPresentationDifferent: true }
10099
10103
  }
10100
10104
  ],
10101
10105
  defaultVariantKey: "default"
10102
10106
  },
10103
- behavior: {
10104
- dataType: "Token",
10105
- entities: {
10106
- selectionType: "EntityAndGroup",
10107
- maxSelected: 0
10108
- }
10109
- },
10107
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
10110
10108
  editorOptions: {
10111
10109
  onboarding: {
10112
10110
  helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
@@ -10128,29 +10126,13 @@ var blocks = [
10128
10126
  icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
10129
10127
  searchKeywords: ["code"],
10130
10128
  item: {
10131
- properties: [
10132
- {
10133
- id: "code",
10134
- name: "Code",
10135
- type: "Code",
10136
- options: {}
10137
- }
10138
- ],
10139
- appearance: {
10140
- isBordered: true,
10141
- hasBackground: false
10142
- },
10129
+ properties: [{ id: "code", name: "Code", type: "Code", options: {} }],
10130
+ appearance: { isBordered: true, hasBackground: false },
10143
10131
  variants: [
10144
10132
  {
10145
10133
  id: "default",
10146
10134
  name: "Default",
10147
- layout: {
10148
- type: "Column",
10149
- children: ["code"],
10150
- columnAlign: "Start",
10151
- columnResizing: "Fill",
10152
- gap: "Medium"
10153
- },
10135
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10154
10136
  maxColumns: 1,
10155
10137
  defaultColumns: 1,
10156
10138
  appearance: {}
@@ -10158,18 +10140,8 @@ var blocks = [
10158
10140
  ],
10159
10141
  defaultVariantKey: "default"
10160
10142
  },
10161
- behavior: {
10162
- dataType: "Item",
10163
- items: {
10164
- numberOfItems: 1,
10165
- allowLinks: false
10166
- }
10167
- },
10168
- editorOptions: {
10169
- onboarding: {
10170
- helpText: "Code descriptor."
10171
- }
10172
- },
10143
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
10144
+ editorOptions: { onboarding: { helpText: "Code descriptor." } },
10173
10145
  appearance: {
10174
10146
  isBordered: false,
10175
10147
  hasBackground: false,
@@ -10190,39 +10162,22 @@ var blocks = [
10190
10162
  id: "code",
10191
10163
  name: "Code",
10192
10164
  type: "CodeSandbox",
10193
- options: {
10194
- renderLayoutAs: "PreviewOnTop"
10195
- },
10165
+ options: { renderLayoutAs: "PreviewOnTop" },
10196
10166
  variantOptions: {
10197
- codeTop: {
10198
- renderLayoutAs: "PreviewOnBottom"
10199
- },
10200
- codeLeft: {
10201
- renderLayoutAs: "PreviewOnRight"
10202
- },
10203
- codeRight: {
10204
- renderLayoutAs: "PreviewOnLeft"
10205
- }
10167
+ codeTop: { renderLayoutAs: "PreviewOnBottom" },
10168
+ codeLeft: { renderLayoutAs: "PreviewOnRight" },
10169
+ codeRight: { renderLayoutAs: "PreviewOnLeft" }
10206
10170
  }
10207
10171
  }
10208
10172
  ],
10209
- appearance: {
10210
- isBordered: true,
10211
- hasBackground: false
10212
- },
10173
+ appearance: { isBordered: true, hasBackground: false },
10213
10174
  variants: [
10214
10175
  {
10215
10176
  id: "codeBottom",
10216
10177
  name: "Full width, code bottom",
10217
10178
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
10218
10179
  description: "Full-width block of code, with a preview on top.",
10219
- layout: {
10220
- type: "Column",
10221
- children: ["code"],
10222
- columnAlign: "Start",
10223
- columnResizing: "Fill",
10224
- gap: "Medium"
10225
- },
10180
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10226
10181
  maxColumns: 1,
10227
10182
  defaultColumns: 1,
10228
10183
  appearance: {}
@@ -10232,13 +10187,7 @@ var blocks = [
10232
10187
  name: "Full width, code top",
10233
10188
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
10234
10189
  description: "Full-width block of code, with a preview on bottom.",
10235
- layout: {
10236
- type: "Column",
10237
- children: ["code"],
10238
- columnAlign: "Start",
10239
- columnResizing: "Fill",
10240
- gap: "Medium"
10241
- },
10190
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10242
10191
  maxColumns: 1,
10243
10192
  defaultColumns: 1,
10244
10193
  appearance: {}
@@ -10248,13 +10197,7 @@ var blocks = [
10248
10197
  name: "Side by side, code left",
10249
10198
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
10250
10199
  description: "Side-by-side preview and code, with code on the left.",
10251
- layout: {
10252
- type: "Column",
10253
- children: ["code"],
10254
- columnAlign: "Start",
10255
- columnResizing: "Fill",
10256
- gap: "Medium"
10257
- },
10200
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10258
10201
  maxColumns: 1,
10259
10202
  defaultColumns: 1,
10260
10203
  appearance: {}
@@ -10264,13 +10207,7 @@ var blocks = [
10264
10207
  name: "Side by side, code right",
10265
10208
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
10266
10209
  description: "Side-by-side preview and code, with code on the right.",
10267
- layout: {
10268
- type: "Column",
10269
- children: ["code"],
10270
- columnAlign: "Start",
10271
- columnResizing: "Fill",
10272
- gap: "Medium"
10273
- },
10210
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10274
10211
  maxColumns: 1,
10275
10212
  defaultColumns: 1,
10276
10213
  appearance: {}
@@ -10278,13 +10215,7 @@ var blocks = [
10278
10215
  ],
10279
10216
  defaultVariantKey: "codeBottom"
10280
10217
  },
10281
- behavior: {
10282
- dataType: "Item",
10283
- items: {
10284
- numberOfItems: 1,
10285
- allowLinks: false
10286
- }
10287
- },
10218
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
10288
10219
  editorOptions: {
10289
10220
  onboarding: {
10290
10221
  helpText: "Display rendered code example",
@@ -10306,31 +10237,15 @@ var blocks = [
10306
10237
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
10307
10238
  searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
10308
10239
  item: {
10309
- properties: [
10310
- {
10311
- id: "assets",
10312
- name: "Assets",
10313
- type: "Asset",
10314
- options: {}
10315
- }
10316
- ],
10317
- appearance: {
10318
- isBordered: true,
10319
- hasBackground: false
10320
- },
10240
+ properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
10241
+ appearance: { isBordered: true, hasBackground: false },
10321
10242
  variants: [
10322
10243
  {
10323
10244
  id: "default",
10324
10245
  name: "Simple grid",
10325
10246
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
10326
10247
  description: "A simple grid of assets. Both the title and description are displayed below the preview.",
10327
- layout: {
10328
- type: "Column",
10329
- children: ["assets"],
10330
- columnAlign: "Start",
10331
- columnResizing: "Fill",
10332
- gap: "Medium"
10333
- },
10248
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10334
10249
  maxColumns: 8,
10335
10250
  defaultColumns: 1,
10336
10251
  appearance: {}
@@ -10340,47 +10255,25 @@ var blocks = [
10340
10255
  name: "Square grid",
10341
10256
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
10342
10257
  description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
10343
- layout: {
10344
- type: "Column",
10345
- children: ["assets"],
10346
- columnAlign: "Start",
10347
- columnResizing: "Fill",
10348
- gap: "Medium"
10349
- },
10258
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10350
10259
  maxColumns: 8,
10351
10260
  defaultColumns: 1,
10352
- appearance: {
10353
- isEditorPresentationDifferent: true
10354
- }
10261
+ appearance: { isEditorPresentationDifferent: true }
10355
10262
  },
10356
10263
  {
10357
10264
  id: "borderless-grid",
10358
10265
  name: "Borderless grid",
10359
10266
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
10360
10267
  description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
10361
- layout: {
10362
- type: "Column",
10363
- children: ["assets"],
10364
- columnAlign: "Start",
10365
- columnResizing: "Fill",
10366
- gap: "Medium"
10367
- },
10268
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10368
10269
  maxColumns: 8,
10369
10270
  defaultColumns: 1,
10370
- appearance: {
10371
- isEditorPresentationDifferent: true
10372
- }
10271
+ appearance: { isEditorPresentationDifferent: true }
10373
10272
  }
10374
10273
  ],
10375
10274
  defaultVariantKey: "default"
10376
10275
  },
10377
- behavior: {
10378
- dataType: "Asset",
10379
- entities: {
10380
- selectionType: "EntityAndGroup",
10381
- maxSelected: 0
10382
- }
10383
- },
10276
+ behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
10384
10277
  editorOptions: {
10385
10278
  onboarding: {
10386
10279
  helpText: "Display a grid of icons or illustrations.",
@@ -10410,10 +10303,7 @@ var blocks = [
10410
10303
  options: {}
10411
10304
  }
10412
10305
  ],
10413
- appearance: {
10414
- isBordered: true,
10415
- hasBackground: false
10416
- },
10306
+ appearance: { isBordered: true, hasBackground: false },
10417
10307
  variants: [
10418
10308
  {
10419
10309
  id: "bordered",
@@ -10450,13 +10340,7 @@ var blocks = [
10450
10340
  ],
10451
10341
  defaultVariantKey: "bordered"
10452
10342
  },
10453
- behavior: {
10454
- dataType: "FigmaNode",
10455
- entities: {
10456
- selectionType: "Entity",
10457
- maxSelected: 0
10458
- }
10459
- },
10343
+ behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
10460
10344
  editorOptions: {
10461
10345
  onboarding: {
10462
10346
  helpText: "Generate images from Figma layers",
@@ -10479,23 +10363,14 @@ var blocks = [
10479
10363
  searchKeywords: ["version", "changelog", "history"],
10480
10364
  item: {
10481
10365
  properties: [],
10482
- appearance: {
10483
- isBordered: true,
10484
- hasBackground: false
10485
- },
10366
+ appearance: { isBordered: true, hasBackground: false },
10486
10367
  variants: [
10487
10368
  {
10488
10369
  id: "default",
10489
10370
  name: "Default",
10490
10371
  image: "https://cdn-assets.supernova.io/blocks/variants/release-notes-2.svg",
10491
10372
  description: "Show formatted release notes from all previously released versions.",
10492
- layout: {
10493
- type: "Column",
10494
- children: [],
10495
- columnAlign: "Start",
10496
- columnResizing: "Fill",
10497
- gap: "Medium"
10498
- },
10373
+ layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
10499
10374
  maxColumns: 1,
10500
10375
  defaultColumns: 1,
10501
10376
  appearance: {}
@@ -10503,13 +10378,7 @@ var blocks = [
10503
10378
  ],
10504
10379
  defaultVariantKey: "default"
10505
10380
  },
10506
- behavior: {
10507
- dataType: "Item",
10508
- items: {
10509
- numberOfItems: 1,
10510
- allowLinks: false
10511
- }
10512
- },
10381
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
10513
10382
  editorOptions: {
10514
10383
  onboarding: {
10515
10384
  helpText: "Show formatted release notes from all previously released versions."
@@ -10535,31 +10404,22 @@ var blocks = [
10535
10404
  id: "components",
10536
10405
  name: "Components",
10537
10406
  type: "Component",
10538
- options: {
10539
- renderLayoutAs: "List"
10540
- }
10407
+ options: { renderLayoutAs: "List" }
10541
10408
  },
10542
10409
  {
10543
10410
  id: "title",
10544
10411
  name: "Title",
10545
10412
  type: "Text",
10546
- options: {
10547
- defaultValue: "Component checklist"
10548
- }
10413
+ options: { defaultValue: "Component checklist" }
10549
10414
  },
10550
10415
  {
10551
10416
  id: "showDescription",
10552
10417
  name: "Show description",
10553
10418
  type: "Boolean",
10554
- options: {
10555
- defaultValue: true
10556
- }
10419
+ options: { defaultValue: true }
10557
10420
  }
10558
10421
  ],
10559
- appearance: {
10560
- isBordered: true,
10561
- hasBackground: false
10562
- },
10422
+ appearance: { isBordered: true, hasBackground: false },
10563
10423
  variants: [
10564
10424
  {
10565
10425
  id: "default",
@@ -10574,20 +10434,12 @@ var blocks = [
10574
10434
  },
10575
10435
  maxColumns: 1,
10576
10436
  defaultColumns: 1,
10577
- appearance: {
10578
- isEditorPresentationDifferent: true
10579
- }
10437
+ appearance: { isEditorPresentationDifferent: true }
10580
10438
  }
10581
10439
  ],
10582
10440
  defaultVariantKey: "default"
10583
10441
  },
10584
- behavior: {
10585
- dataType: "Component",
10586
- entities: {
10587
- selectionType: "Entity",
10588
- maxSelected: 1
10589
- }
10590
- },
10442
+ behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
10591
10443
  editorOptions: {
10592
10444
  onboarding: {
10593
10445
  helpText: "Highlight specific component properties",
@@ -10614,23 +10466,16 @@ var blocks = [
10614
10466
  id: "components",
10615
10467
  name: "Components",
10616
10468
  type: "Component",
10617
- options: {
10618
- renderLayoutAs: "Table"
10619
- }
10469
+ options: { renderLayoutAs: "Table" }
10620
10470
  },
10621
10471
  {
10622
10472
  id: "showLastUpdatedColumn",
10623
10473
  name: "Show last updated column",
10624
10474
  type: "Boolean",
10625
- options: {
10626
- defaultValue: true
10627
- }
10475
+ options: { defaultValue: true }
10628
10476
  }
10629
10477
  ],
10630
- appearance: {
10631
- isBordered: true,
10632
- hasBackground: false
10633
- },
10478
+ appearance: { isBordered: true, hasBackground: false },
10634
10479
  variants: [
10635
10480
  {
10636
10481
  id: "default",
@@ -10645,20 +10490,12 @@ var blocks = [
10645
10490
  },
10646
10491
  maxColumns: 1,
10647
10492
  defaultColumns: 1,
10648
- appearance: {
10649
- isEditorPresentationDifferent: true
10650
- }
10493
+ appearance: { isEditorPresentationDifferent: true }
10651
10494
  }
10652
10495
  ],
10653
10496
  defaultVariantKey: "default"
10654
10497
  },
10655
- behavior: {
10656
- dataType: "Component",
10657
- entities: {
10658
- selectionType: "Group",
10659
- maxSelected: 1
10660
- }
10661
- },
10498
+ behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
10662
10499
  editorOptions: {
10663
10500
  onboarding: {
10664
10501
  helpText: "Show an overview of all your components",
@@ -10685,15 +10522,10 @@ var blocks = [
10685
10522
  id: "components",
10686
10523
  name: "Components",
10687
10524
  type: "Component",
10688
- options: {
10689
- renderLayoutAs: "List"
10690
- }
10525
+ options: { renderLayoutAs: "List" }
10691
10526
  }
10692
10527
  ],
10693
- appearance: {
10694
- isBordered: true,
10695
- hasBackground: false
10696
- },
10528
+ appearance: { isBordered: true, hasBackground: false },
10697
10529
  variants: [
10698
10530
  {
10699
10531
  id: "default",
@@ -10708,20 +10540,12 @@ var blocks = [
10708
10540
  },
10709
10541
  maxColumns: 1,
10710
10542
  defaultColumns: 1,
10711
- appearance: {
10712
- isEditorPresentationDifferent: true
10713
- }
10543
+ appearance: { isEditorPresentationDifferent: true }
10714
10544
  }
10715
10545
  ],
10716
10546
  defaultVariantKey: "default"
10717
10547
  },
10718
- behavior: {
10719
- dataType: "Component",
10720
- entities: {
10721
- selectionType: "Entity",
10722
- maxSelected: 1
10723
- }
10724
- },
10548
+ behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
10725
10549
  editorOptions: {
10726
10550
  onboarding: {
10727
10551
  helpText: "Show component health and additional attributes",
@@ -10734,185 +10558,12 @@ var blocks = [
10734
10558
  isEditorPresentationDifferent: false,
10735
10559
  showBlockHeaderInEditor: false
10736
10560
  }
10737
- },
10738
- {
10739
- id: "io.supernova.block.do-dont-guidelines",
10740
- name: "Guidelines",
10741
- description: "Do/Don't rules and best practices.",
10742
- category: "Guidelines",
10743
- icon: "https://cdn-assets.supernova.io/blocks/icons/guidelines.svg",
10744
- searchKeywords: ["dont", "caution", "rules"],
10745
- item: {
10746
- properties: [
10747
- {
10748
- id: "block.do-dont-guidelines.property.image",
10749
- name: "Image",
10750
- type: "Image",
10751
- options: {
10752
- allowCaption: false
10753
- }
10754
- },
10755
- {
10756
- id: "block.do-dont-guidelines.property.type",
10757
- name: "Type",
10758
- type: "SingleSelect",
10759
- options: {
10760
- defaultChoice: "do",
10761
- choices: [
10762
- {
10763
- value: "do",
10764
- name: "Do",
10765
- color: "Green",
10766
- icon: "CheckCircle"
10767
- },
10768
- {
10769
- value: "dont",
10770
- name: "Don't",
10771
- color: "Red",
10772
- icon: "CrossCircle"
10773
- },
10774
- {
10775
- value: "caution",
10776
- name: "Caution",
10777
- color: "Orange",
10778
- icon: "Alert"
10779
- }
10780
- ],
10781
- singleSelectStyle: "ToggleButton"
10782
- }
10783
- },
10784
- {
10785
- id: "block.do-dont-guidelines.property.description",
10786
- name: "Description",
10787
- type: "RichTextEditor",
10788
- options: {
10789
- allowedInlineStyles: ["Bold", "Italic", "Strikethrough", "UL", "OL", "Link", "InlineCode"],
10790
- allowMultiline: true,
10791
- placeholder: "Add description"
10792
- }
10793
- }
10794
- ],
10795
- appearance: {
10796
- isBordered: true,
10797
- hasBackground: false
10798
- },
10799
- variants: [
10800
- {
10801
- id: "simple",
10802
- name: "Simple",
10803
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-simple.svg",
10804
- description: "With a minimalist badge at the top, this design is great for content guidelines.",
10805
- layout: {
10806
- type: "Column",
10807
- children: [
10808
- "block.do-dont-guidelines.property.type",
10809
- "block.do-dont-guidelines.property.image",
10810
- "block.do-dont-guidelines.property.description"
10811
- ],
10812
- columnAlign: "Start",
10813
- columnResizing: "Fill",
10814
- gap: "Medium"
10815
- },
10816
- maxColumns: 3,
10817
- defaultColumns: 2,
10818
- appearance: {}
10819
- },
10820
- {
10821
- id: "prominent",
10822
- name: "Prominent",
10823
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-prominent.svg",
10824
- description: "Recommended when you need guidelines that need to stand out.",
10825
- layout: {
10826
- type: "Column",
10827
- children: [
10828
- "block.do-dont-guidelines.property.type",
10829
- "block.do-dont-guidelines.property.image",
10830
- "block.do-dont-guidelines.property.description"
10831
- ],
10832
- columnAlign: "Start",
10833
- columnResizing: "Fill",
10834
- gap: "Medium"
10835
- },
10836
- maxColumns: 3,
10837
- defaultColumns: 1,
10838
- appearance: {
10839
- isEditorPresentationDifferent: true
10840
- }
10841
- },
10842
- {
10843
- id: "contained",
10844
- name: "Contained",
10845
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-contained.svg",
10846
- description: "Perfect for component guidelines with spacious images.",
10847
- layout: {
10848
- type: "Column",
10849
- children: [
10850
- "block.do-dont-guidelines.property.type",
10851
- "block.do-dont-guidelines.property.image",
10852
- "block.do-dont-guidelines.property.description"
10853
- ],
10854
- columnAlign: "Start",
10855
- columnResizing: "Fill",
10856
- gap: "Medium"
10857
- },
10858
- maxColumns: 3,
10859
- defaultColumns: 1,
10860
- appearance: {
10861
- isEditorPresentationDifferent: true
10862
- }
10863
- },
10864
- {
10865
- id: "side-border",
10866
- name: "Side border",
10867
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-side-border.svg",
10868
- description: "The side border makes this variant well-suited for longer text guidelines.",
10869
- layout: {
10870
- type: "Column",
10871
- children: [
10872
- "block.do-dont-guidelines.property.type",
10873
- "block.do-dont-guidelines.property.image",
10874
- "block.do-dont-guidelines.property.description"
10875
- ],
10876
- columnAlign: "Start",
10877
- columnResizing: "Fill",
10878
- gap: "Medium"
10879
- },
10880
- maxColumns: 3,
10881
- defaultColumns: 1,
10882
- appearance: {
10883
- isEditorPresentationDifferent: true
10884
- }
10885
- }
10886
- ],
10887
- defaultVariantKey: "simple"
10888
- },
10889
- behavior: {
10890
- dataType: "Item",
10891
- items: {
10892
- numberOfItems: -1,
10893
- allowLinks: false,
10894
- newItemLabel: "Add guideline"
10895
- }
10896
- },
10897
- editorOptions: {
10898
- onboarding: {
10899
- helpText: "Use link block to document your Do/Don't guidelines for your components and patterns.",
10900
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
10901
- },
10902
- newItemLabel: "Add guideline"
10903
- },
10904
- appearance: {
10905
- isBordered: true,
10906
- hasBackground: false,
10907
- isEditorPresentationDifferent: false,
10908
- showBlockHeaderInEditor: false
10909
- }
10910
10561
  }
10911
10562
  ];
10912
10563
 
10913
10564
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10914
10565
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10915
- import { z as z231 } from "zod";
10566
+ import { z as z235 } from "zod";
10916
10567
  function yDocToPage(yDoc, definitions) {
10917
10568
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10918
10569
  }
@@ -10992,7 +10643,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10992
10643
  return null;
10993
10644
  return {
10994
10645
  id,
10995
- title: getProsemirrorAttribute(prosemirrorNode, "title", z231.string()) ?? "",
10646
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z235.string()) ?? "",
10996
10647
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10997
10648
  };
10998
10649
  }
@@ -11027,7 +10678,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11027
10678
  });
11028
10679
  }
11029
10680
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11030
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z231.string());
10681
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z235.string());
11031
10682
  if (!definitionId) {
11032
10683
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11033
10684
  return [];
@@ -11069,7 +10720,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11069
10720
  if (!id)
11070
10721
  return null;
11071
10722
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11072
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z231.string().optional()));
10723
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z235.string().optional()));
11073
10724
  return {
11074
10725
  id,
11075
10726
  type: "Block",
@@ -11197,10 +10848,10 @@ function parseRichTextAttribute(mark) {
11197
10848
  return null;
11198
10849
  }
11199
10850
  function parseProsemirrorLink(mark) {
11200
- const href = getProsemirrorAttribute(mark, "href", z231.string().optional());
10851
+ const href = getProsemirrorAttribute(mark, "href", z235.string().optional());
11201
10852
  if (!href)
11202
10853
  return null;
11203
- const target = getProsemirrorAttribute(mark, "target", z231.string().optional());
10854
+ const target = getProsemirrorAttribute(mark, "target", z235.string().optional());
11204
10855
  const openInNewTab = target === "_blank";
11205
10856
  if (href.startsWith("@")) {
11206
10857
  return {
@@ -11219,10 +10870,10 @@ function parseProsemirrorLink(mark) {
11219
10870
  }
11220
10871
  }
11221
10872
  function parseProsemirrorCommentHighlight(mark) {
11222
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z231.string().optional());
10873
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z235.string().optional());
11223
10874
  if (!highlightId)
11224
10875
  return null;
11225
- const isResolved = getProsemirrorAttribute(mark, "resolved", z231.boolean().optional()) ?? false;
10876
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z235.boolean().optional()) ?? false;
11226
10877
  return {
11227
10878
  type: "Comment",
11228
10879
  commentHighlightId: highlightId,
@@ -11234,7 +10885,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11234
10885
  if (!id)
11235
10886
  return null;
11236
10887
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11237
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z231.boolean().optional()) !== false;
10888
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z235.boolean().optional()) !== false;
11238
10889
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11239
10890
  if (!tableChild) {
11240
10891
  return emptyTable(id, variantId, 0);
@@ -11281,9 +10932,9 @@ function parseAsTableCell(prosemirrorNode) {
11281
10932
  const id = getProsemirrorBlockId(prosemirrorNode);
11282
10933
  if (!id)
11283
10934
  return null;
11284
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z231.string().optional());
10935
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z235.string().optional());
11285
10936
  let columnWidth;
11286
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z231.array(z231.number()).optional());
10937
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z235.array(z235.number()).optional());
11287
10938
  if (columnWidthArray) {
11288
10939
  columnWidth = roundDimension(columnWidthArray[0]);
11289
10940
  }
@@ -11321,7 +10972,7 @@ function parseAsTableNode(prosemirrorNode) {
11321
10972
  value: parseRichText(prosemirrorNode.content ?? [])
11322
10973
  };
11323
10974
  case "image":
11324
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z231.string());
10975
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z235.string());
11325
10976
  if (!items)
11326
10977
  return null;
11327
10978
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11441,7 +11092,7 @@ function definitionExpectsPlaceholderItem(definition) {
11441
11092
  );
11442
11093
  }
11443
11094
  function parseBlockItems(prosemirrorNode, definition) {
11444
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z231.string());
11095
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z235.string());
11445
11096
  if (!itemsString)
11446
11097
  return null;
11447
11098
  const itemsJson = JSON.parse(itemsString);
@@ -11453,18 +11104,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11453
11104
  }
11454
11105
  function parseAppearance(prosemirrorNode) {
11455
11106
  let appearance = {};
11456
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z231.string().optional());
11107
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z235.string().optional());
11457
11108
  if (rawAppearanceString) {
11458
11109
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11459
11110
  if (parsedAppearance.success) {
11460
11111
  appearance = parsedAppearance.data;
11461
11112
  }
11462
11113
  }
11463
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z231.number().optional());
11114
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z235.number().optional());
11464
11115
  if (columns) {
11465
11116
  appearance.numberOfColumns = columns;
11466
11117
  }
11467
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z231.string().optional());
11118
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z235.string().optional());
11468
11119
  if (backgroundColor) {
11469
11120
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11470
11121
  if (parsedColor.success) {
@@ -11559,13 +11210,13 @@ function valueSchemaForPropertyType(type) {
11559
11210
  }
11560
11211
  }
11561
11212
  function getProsemirrorBlockId(prosemirrorNode) {
11562
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z231.string());
11213
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z235.string());
11563
11214
  if (!id)
11564
11215
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11565
11216
  return id;
11566
11217
  }
11567
11218
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11568
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z231.string()));
11219
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z235.string()));
11569
11220
  }
11570
11221
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11571
11222
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11812,6 +11463,7 @@ export {
11812
11463
  DTOUpdateUserNotificationSettingsPayload,
11813
11464
  DTOUpdateVersionInput,
11814
11465
  DTOUser,
11466
+ DTOUserGetResponse,
11815
11467
  DTOUserNotificationSettingsResponse,
11816
11468
  DTOUserProfile,
11817
11469
  DTOUserProfileUpdatePayload,
@@ -11819,10 +11471,15 @@ export {
11819
11471
  DTOUserWorkspaceMembership,
11820
11472
  DTOUserWorkspaceMembershipsResponse,
11821
11473
  DTOWorkspace,
11474
+ DTOWorkspaceCreateInput,
11475
+ DTOWorkspaceCreateResponse,
11822
11476
  DTOWorkspaceIntegrationGetGitObjectsInput,
11823
11477
  DTOWorkspaceIntegrationOauthInput,
11824
11478
  DTOWorkspaceIntegrationPATInput,
11479
+ DTOWorkspaceInvitationInput,
11480
+ DTOWorkspaceInvitationsListInput,
11825
11481
  DTOWorkspaceRole,
11482
+ DesignSystemsEndpoint,
11826
11483
  DocumentationHierarchySettings,
11827
11484
  DocumentationPageEditorModel,
11828
11485
  DocumentationPageV1DTO,
@@ -11832,9 +11489,14 @@ export {
11832
11489
  ObjectMeta2 as ObjectMeta,
11833
11490
  PageBlockEditorModel,
11834
11491
  PageSectionEditorModel,
11492
+ RequestExecutor,
11493
+ RequestExecutorError,
11494
+ SupernovaApiClient,
11495
+ UsersEndpoint,
11835
11496
  VersionRoomBaseYDoc,
11836
11497
  VersionSQSPayload,
11837
11498
  WorkspaceConfigurationPayload,
11499
+ WorkspacesEndpoint,
11838
11500
  applyPrivacyConfigurationToNestedItems,
11839
11501
  blockToProsemirrorNode,
11840
11502
  buildDocPagePublishPaths,