@supernova-studio/client 1.0.0-alpha.2 → 1.0.0-alpha.20

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.js CHANGED
@@ -46,6 +46,7 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
46
46
 
47
47
 
48
48
 
49
+
49
50
 
50
51
 
51
52
  var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
@@ -127,6 +128,8 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
127
128
 
128
129
 
129
130
 
131
+
132
+
130
133
 
131
134
 
132
135
 
@@ -477,6 +480,63 @@ var PulsarCustomBlock = _zod.z.object({
477
480
  mode: nullishToOptional(_zod.z.enum(["array", "block"])),
478
481
  properties: nullishToOptional(_zod.z.array(PulsarBaseProperty)).transform((v) => _nullishCoalesce(v, () => ( [])))
479
482
  });
483
+ var PrimitiveValue = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
484
+ var ArrayValue = _zod.z.array(_zod.z.string());
485
+ var ObjectValue = _zod.z.record(_zod.z.string());
486
+ var ExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
487
+ var ExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
488
+ var PropertyDefinitionBase = _zod.z.object({
489
+ key: _zod.z.string(),
490
+ title: _zod.z.string(),
491
+ description: _zod.z.string(),
492
+ category: _zod.z.string().optional(),
493
+ dependsOn: _zod.z.record(_zod.z.boolean()).optional()
494
+ });
495
+ var ExporterPropertyDefinitionEnumOption = _zod.z.object({
496
+ label: _zod.z.string(),
497
+ description: _zod.z.string()
498
+ });
499
+ var ExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
500
+ type: _zod.z.literal(ExporterPropertyType.Enum.Enum),
501
+ options: _zod.z.record(ExporterPropertyDefinitionEnumOption),
502
+ default: _zod.z.string()
503
+ });
504
+ var ExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
505
+ type: _zod.z.literal(ExporterPropertyType.Enum.Boolean),
506
+ default: _zod.z.boolean()
507
+ });
508
+ var ExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
509
+ type: _zod.z.literal(ExporterPropertyType.Enum.String),
510
+ default: _zod.z.string()
511
+ });
512
+ var ExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
513
+ type: _zod.z.literal(ExporterPropertyType.Enum.Number),
514
+ default: _zod.z.number()
515
+ });
516
+ var ExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
517
+ type: _zod.z.literal(ExporterPropertyType.Enum.Array),
518
+ default: ArrayValue
519
+ });
520
+ var ExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
521
+ type: _zod.z.literal(ExporterPropertyType.Enum.Object),
522
+ default: ObjectValue,
523
+ allowedKeys: _zod.z.object({
524
+ options: _zod.z.string().array(),
525
+ type: _zod.z.string()
526
+ }).optional(),
527
+ allowedValues: _zod.z.object({
528
+ type: _zod.z.string()
529
+ }).optional()
530
+ });
531
+ var ExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
532
+ ExporterPropertyDefinitionEnum,
533
+ ExporterPropertyDefinitionBoolean,
534
+ ExporterPropertyDefinitionString,
535
+ ExporterPropertyDefinitionNumber,
536
+ ExporterPropertyDefinitionArray,
537
+ ExporterPropertyDefinitionObject
538
+ ]);
539
+ var ExporterPropertyDefinitionValueMap = _zod.z.record(ExporterPropertyDefinitionValue);
480
540
  var ExporterType = _zod.z.enum(["code", "documentation"]);
481
541
  var ExporterSource = _zod.z.enum(["git", "upload"]);
482
542
  var ExporterTag = _zod.z.string();
@@ -494,6 +554,7 @@ var ExporterPulsarDetails = _zod.z.object({
494
554
  configurationProperties: nullishToOptional(_zod.z.array(PulsarContributionConfigurationProperty)).default([]),
495
555
  customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
496
556
  blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
557
+ properties: nullishToOptional(ExporterPropertyDefinition.array()),
497
558
  usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
498
559
  usesThemes: nullishToOptional(_zod.z.boolean()).default(false),
499
560
  usesLocale: nullishToOptional(_zod.z.boolean()).default(false)
@@ -512,7 +573,8 @@ var Exporter = _zod.z.object({
512
573
  isPrivate: _zod.z.boolean(),
513
574
  details: ExporterDetails,
514
575
  exporterType: nullishToOptional(ExporterType).default("code"),
515
- storagePath: nullishToOptional(_zod.z.string()).default("")
576
+ storagePath: nullishToOptional(_zod.z.string()).default(""),
577
+ properties: nullishToOptional(ExporterPropertyDefinition.array())
516
578
  });
517
579
  var AssetDynamoRecord = _zod.z.object({
518
580
  path: _zod.z.string(),
@@ -838,6 +900,12 @@ function areShallowObjectsEqual(lhs, rhs) {
838
900
  }
839
901
  return true;
840
902
  }
903
+ function recordToMap(record) {
904
+ const map = /* @__PURE__ */ new Map();
905
+ for (const [k, v] of Object.entries(record))
906
+ map.set(k, v);
907
+ return map;
908
+ }
841
909
  var ContentLoadInstruction = _zod.z.object({
842
910
  from: _zod.z.string(),
843
911
  to: _zod.z.string(),
@@ -1709,6 +1777,7 @@ var PageBlockCodeLanguage = _zod.z.enum([
1709
1777
  ]);
1710
1778
  var PageBlockAlignment = _zod.z.enum(["Left", "Center", "Stretch", "Right"]);
1711
1779
  var PageBlockThemeType = _zod.z.enum(["Override", "Comparison"]);
1780
+ var PageBlockTokenNameFormat = _zod.z.enum(["Name", "GroupAndName", "FullPath", "CustomProperty"]);
1712
1781
  var PageBlockAssetType = _zod.z.enum(["image", "figmaFrame"]);
1713
1782
  var PageBlockTilesAlignment = _zod.z.enum(["Center", "FrameHeight"]);
1714
1783
  var PageBlockTilesLayout = _zod.z.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
@@ -1783,6 +1852,7 @@ var PageBlockFigmaFrameProperties = _zod.z.object({
1783
1852
  })
1784
1853
  ),
1785
1854
  alignment: PageBlockTilesAlignment,
1855
+ previewContainerHeight: nullishToOptional(_zod.z.number()),
1786
1856
  layout: PageBlockTilesLayout,
1787
1857
  backgroundColor: nullishToOptional(ColorTokenInlineData),
1788
1858
  showTitles: _zod.z.boolean()
@@ -1814,8 +1884,17 @@ var PageBlockFigmaComponentBlockConfig = _zod.z.object({
1814
1884
  showPropertyList: nullishToOptional(_zod.z.boolean()),
1815
1885
  previewOrderIds: nullishToOptional(_zod.z.array(_zod.z.string())),
1816
1886
  previewContainerSize: nullishToOptional(_zod.z.enum(["Centered", "NaturalHeight"])),
1887
+ previewContainerHeight: nullishToOptional(_zod.z.number()),
1817
1888
  backgroundColor: nullishToOptional(ColorTokenInlineData)
1818
1889
  });
1890
+ var PageBlockTokenBlockConfig = _zod.z.object({
1891
+ tokenNameFormat: nullishToOptional(PageBlockTokenNameFormat),
1892
+ tokenNameCustomPropertyId: nullishToOptional(_zod.z.string())
1893
+ });
1894
+ var PageBlockAssetBlockConfig = _zod.z.object({
1895
+ showSearch: nullishToOptional(_zod.z.boolean()),
1896
+ showAssetDescription: nullishToOptional(_zod.z.boolean())
1897
+ });
1819
1898
  var PageBlockSelectedFigmaComponent = _zod.z.object({
1820
1899
  figmaComponentId: _zod.z.string(),
1821
1900
  selectedComponentProperties: _zod.z.string().array()
@@ -1846,7 +1925,9 @@ var PageBlockGuideline = _zod.z.object({
1846
1925
  type: _zod.z.string(),
1847
1926
  imageAlt: nullishToOptional(_zod.z.string()),
1848
1927
  imageCaption: nullishToOptional(_zod.z.string()),
1849
- imageAlignment: nullishToOptional(PageBlockAlignment)
1928
+ imageAlignment: nullishToOptional(PageBlockAlignment),
1929
+ openLightbox: nullishToOptional(_zod.z.boolean()),
1930
+ isBordered: nullishToOptional(_zod.z.boolean())
1850
1931
  });
1851
1932
  var PageBlockBaseV1 = _zod.z.object({
1852
1933
  persistentId: _zod.z.string(),
@@ -1873,6 +1954,8 @@ var PageBlockBaseV1 = _zod.z.object({
1873
1954
  asset: nullishToOptional(PageBlockAsset),
1874
1955
  alignment: nullishToOptional(PageBlockAlignment),
1875
1956
  imageAlt: nullishToOptional(_zod.z.string()),
1957
+ openLightbox: nullishToOptional(_zod.z.boolean()),
1958
+ isBordered: nullishToOptional(_zod.z.boolean()),
1876
1959
  // Shortcuts block
1877
1960
  shortcuts: nullishToOptional(_zod.z.array(PageBlockShortcut)),
1878
1961
  // Guidelines
@@ -1894,10 +1977,13 @@ var PageBlockBaseV1 = _zod.z.object({
1894
1977
  // Tables
1895
1978
  tableProperties: nullishToOptional(PageBlockTableProperties),
1896
1979
  columnId: nullishToOptional(_zod.z.string()),
1897
- // Token spreadsheet
1980
+ // Design tokens
1898
1981
  theme: nullishToOptional(PageBlockTheme),
1899
1982
  swatches: nullishToOptional(PageBlockSwatch.array()),
1900
1983
  blacklistedElementProperties: nullishToOptional(_zod.z.array(_zod.z.string())),
1984
+ tokenBlockConfig: nullishToOptional(PageBlockTokenBlockConfig),
1985
+ // (Vector) assets
1986
+ assetBlockConfig: nullishToOptional(PageBlockAssetBlockConfig),
1901
1987
  // Figma components
1902
1988
  figmaComponentsBlockConfig: nullishToOptional(PageBlockFigmaComponentBlockConfig),
1903
1989
  selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
@@ -2195,7 +2281,6 @@ var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
2195
2281
  var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
2196
2282
  var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
2197
2283
  var PageBlockThemeDisplayMode = _zod.z.enum(["Split", "Override"]);
2198
- var PageBlockTokenNameFormat = _zod.z.enum(["Name", "GroupAndName", "FullPath", "CustomProperty"]);
2199
2284
  var PageBlockTokenValueFormat = _zod.z.enum(["ResolvedValue", "ReferenceName", "NoValue"]);
2200
2285
  var PageBlockImageResourceReference = _zod.z.object({
2201
2286
  resourceId: _zod.z.string(),
@@ -2444,7 +2529,9 @@ var PageBlockItemTableImageNode = _zod.z.object({
2444
2529
  caption: PageBlockItemImageValue.shape.caption,
2445
2530
  alt: PageBlockItemImageValue.shape.alt,
2446
2531
  value: PageBlockItemImageValue.shape.value,
2447
- alignment: PageBlockItemImageValue.shape.alignment
2532
+ alignment: PageBlockItemImageValue.shape.alignment,
2533
+ openLightbox: PageBlockItemImageValue.shape.openLightbox,
2534
+ isBordered: PageBlockItemImageValue.shape.isBordered
2448
2535
  });
2449
2536
  var PageBlockItemTableNode = _zod.z.discriminatedUnion("type", [
2450
2537
  PageBlockItemTableRichTextNode,
@@ -2628,23 +2715,33 @@ var FigmaFileStructureElementData = _zod.z.object({
2628
2715
  assetsInFile: FigmaFileStructureStatistics
2629
2716
  })
2630
2717
  });
2718
+ var FigmaNodeRenderState = _zod.z.enum(["InProgress", "Success", "Failed"]);
2631
2719
  var FigmaNodeRenderFormat = _zod.z.enum(["Png", "Svg"]);
2632
- var FigmaNodeReferenceData = _zod.z.object({
2633
- structureElementId: _zod.z.string(),
2634
- nodeId: _zod.z.string(),
2635
- fileId: _zod.z.string().optional(),
2636
- valid: _zod.z.boolean(),
2637
- format: FigmaNodeRenderFormat.default("Png"),
2638
- // Asset data
2639
- assetId: _zod.z.string().optional(),
2640
- assetScale: _zod.z.number().optional(),
2641
- assetWidth: _zod.z.number().optional(),
2642
- assetHeight: _zod.z.number().optional(),
2643
- assetUrl: _zod.z.string().optional(),
2644
- assetOriginKey: _zod.z.string().optional()
2720
+ var FigmaNodeRenderErrorType = _zod.z.enum(["MissingIntegration", "NodeNotFound", "RenderError"]);
2721
+ var FigmaNodeRelinkData = _zod.z.object({
2722
+ fileId: _zod.z.string()
2645
2723
  });
2646
- var FigmaNodeReferenceElementData = _zod.z.object({
2647
- value: FigmaNodeReferenceData
2724
+ var FigmaNodeRenderedImage = _zod.z.object({
2725
+ resourceId: _zod.z.string(),
2726
+ format: FigmaNodeRenderFormat,
2727
+ scale: nullishToOptional(_zod.z.number()),
2728
+ width: nullishToOptional(_zod.z.number()),
2729
+ height: nullishToOptional(_zod.z.number()),
2730
+ url: nullishToOptional(_zod.z.string()),
2731
+ originKey: nullishToOptional(_zod.z.string())
2732
+ });
2733
+ var FigmaNodeRenderError = _zod.z.object({
2734
+ type: FigmaNodeRenderErrorType
2735
+ });
2736
+ var FigmaNodeReferenceData = _zod.z.object({
2737
+ sceneNodeId: _zod.z.string(),
2738
+ format: FigmaNodeRenderFormat,
2739
+ scale: nullishToOptional(_zod.z.number()),
2740
+ renderState: FigmaNodeRenderState,
2741
+ renderedImage: FigmaNodeRenderedImage.optional(),
2742
+ renderError: FigmaNodeRenderError.optional(),
2743
+ hasSource: _zod.z.boolean(),
2744
+ relinkData: FigmaNodeRelinkData.optional()
2648
2745
  });
2649
2746
  var FontFamilyValue = _zod.z.string();
2650
2747
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
@@ -2729,6 +2826,7 @@ var ShadowLayerValue = _zod.z.object({
2729
2826
  type: ShadowType
2730
2827
  });
2731
2828
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
2829
+ var ShadowValue = _zod.z.array(ShadowTokenDataBase);
2732
2830
  var ShadowTokenData = tokenAliasOrValue(_zod.z.array(ShadowTokenDataBase));
2733
2831
  var SizeUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
2734
2832
  var SizeValue = _zod.z.object({
@@ -3246,10 +3344,16 @@ var FigmaImportBaseContext = _zod.z.object({
3246
3344
  */
3247
3345
  importWarnings: _zod.z.record(ImportWarning.array()).default({})
3248
3346
  });
3347
+ var FeatureFlagsKeepAliases = _zod.z.object({
3348
+ isTypographyPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
3349
+ isGradientPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
3350
+ isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
3351
+ isNonCompatibleTypeChangesEnabled: _zod.z.boolean().default(false)
3352
+ });
3249
3353
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
3250
3354
  sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
3251
3355
  shadowOpacityOptional: _zod.z.boolean().default(false),
3252
- typographyPropsKeepAliases: _zod.z.boolean().default(false)
3356
+ featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
3253
3357
  });
3254
3358
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
3255
3359
  importMetadata: DataSourceFigmaImportMetadata
@@ -3602,6 +3706,14 @@ var DocumentationPage = _zod.z.object({
3602
3706
  createdAt: _zod.z.coerce.date(),
3603
3707
  updatedAt: _zod.z.coerce.date()
3604
3708
  });
3709
+ var PageRedirect = _zod.z.object({
3710
+ id: _zod.z.string(),
3711
+ pagePersistentId: _zod.z.string(),
3712
+ path: _zod.z.string(),
3713
+ createdAt: _zod.z.coerce.date(),
3714
+ updatedAt: _zod.z.coerce.date(),
3715
+ designSystemId: _zod.z.string()
3716
+ });
3605
3717
  var DocumentationSettings = _zod.z.object({
3606
3718
  // Basic
3607
3719
  designSystemVersionId: _zod.z.string(),
@@ -3668,6 +3780,11 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
3668
3780
  function pickLatestGroupSnapshots(snapshots) {
3669
3781
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
3670
3782
  }
3783
+ var FigmaNodeRendererPayload = _zod.z.object({
3784
+ designSystemId: _zod.z.string(),
3785
+ versionId: _zod.z.string(),
3786
+ figmaNodePersistentIds: _zod.z.string().array()
3787
+ });
3671
3788
  var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
3672
3789
  var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3673
3790
  var NpmRegistryBasicAuthConfig = _zod.z.object({
@@ -3836,6 +3953,16 @@ var UserNotificationSettings = _zod.z.object({
3836
3953
  });
3837
3954
  var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3838
3955
  var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3956
+ var UserTheme = _zod.z.object({
3957
+ preset: _zod.z.enum(["Custom", "Default", "HighContrast", "DefaultDark", "HighContrastDark", "SpaceBlue", "DarkGrey"]).optional(),
3958
+ backgroundColor: _zod.z.string().optional(),
3959
+ accentColor: _zod.z.string().optional(),
3960
+ contrast: _zod.z.number().min(16).max(100).optional(),
3961
+ isSecondaryEnabled: _zod.z.boolean().optional(),
3962
+ secondaryBackgroundColor: _zod.z.string().optional(),
3963
+ secondaryContrast: _zod.z.number().min(16).max(100).optional(),
3964
+ isEditorWhite: _zod.z.boolean().optional()
3965
+ });
3839
3966
  var UserOnboarding = _zod.z.object({
3840
3967
  companyName: _zod.z.string().optional(),
3841
3968
  numberOfPeopleInOrg: _zod.z.string().optional(),
@@ -3854,7 +3981,8 @@ var UserProfile = _zod.z.object({
3854
3981
  name: _zod.z.string(),
3855
3982
  avatar: _zod.z.string().optional(),
3856
3983
  nickname: _zod.z.string().optional(),
3857
- onboarding: UserOnboarding.optional()
3984
+ onboarding: UserOnboarding.optional(),
3985
+ theme: UserTheme.optional()
3858
3986
  });
3859
3987
  var UserProfileUpdate = UserProfile.partial().omit({
3860
3988
  avatar: true
@@ -4224,6 +4352,7 @@ var Pipeline = _zod.z.object({
4224
4352
  brandPersistentId: _zod.z.string().optional(),
4225
4353
  themePersistentId: _zod.z.string().optional(),
4226
4354
  themePersistentIds: _zod.z.string().array().optional(),
4355
+ exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
4227
4356
  // Destinations
4228
4357
  ...ExportDestinationsMap.shape
4229
4358
  });
@@ -4254,7 +4383,8 @@ var DesignSystemVersionRoomInitialState = _zod.z.object({
4254
4383
  pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
4255
4384
  groupSnapshots: _zod.z.array(ElementGroupSnapshot),
4256
4385
  pageApprovals: _zod.z.array(DocumentationPageApproval),
4257
- internalSettings: DesignSystemVersionRoomInternalSettings
4386
+ internalSettings: DesignSystemVersionRoomInternalSettings,
4387
+ pageHashes: _zod.z.record(_zod.z.string()).optional()
4258
4388
  });
4259
4389
  var DesignSystemVersionRoomUpdate = _zod.z.object({
4260
4390
  pages: _zod.z.array(DocumentationPageV2),
@@ -4267,7 +4397,8 @@ var DesignSystemVersionRoomUpdate = _zod.z.object({
4267
4397
  groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
4268
4398
  pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string()),
4269
4399
  pageApprovals: _zod.z.array(DocumentationPageApproval),
4270
- pageApprovalIdsToDelete: _zod.z.array(_zod.z.string())
4400
+ pageApprovalIdsToDelete: _zod.z.array(_zod.z.string()),
4401
+ executedTransactionIds: _zod.z.array(_zod.z.string())
4271
4402
  });
4272
4403
  var DocumentationPageRoom = Entity.extend({
4273
4404
  designSystemVersionId: _zod.z.string(),
@@ -4300,7 +4431,8 @@ var RestoredDocumentationGroup = _zod.z.object({
4300
4431
  parent: ElementGroup
4301
4432
  });
4302
4433
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4303
- RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4434
+ RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
4435
+ RoomTypeEnum2["DocumentationPage"] = "doc-page";
4304
4436
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4305
4437
  RoomTypeEnum2["Workspace"] = "workspace";
4306
4438
  return RoomTypeEnum2;
@@ -4531,7 +4663,8 @@ var ExportJobContext = _zod.z.object({
4531
4663
  });
4532
4664
  var ExportJobExporterConfiguration = _zod.z.object({
4533
4665
  exporterPackageUrl: _zod.z.string(),
4534
- exporterPropertyValues: ExporterPropertyValue.array()
4666
+ exporterPropertyValues: ExporterPropertyValue.array(),
4667
+ exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
4535
4668
  });
4536
4669
  var ExporterFunctionPayload = _zod.z.object({
4537
4670
  exportJobId: _zod.z.string(),
@@ -4596,6 +4729,7 @@ var ExportJob = _zod.z.object({
4596
4729
  status: ExportJobStatus,
4597
4730
  result: ExportJobResult.optional(),
4598
4731
  createdByUserId: _zod.z.string().optional(),
4732
+ exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
4599
4733
  // Destinations
4600
4734
  ...ExportDestinationsMap.shape
4601
4735
  });
@@ -4624,7 +4758,10 @@ var FlaggedFeature = _zod.z.enum([
4624
4758
  "ShadowOpacityOptional",
4625
4759
  "DisableImporter",
4626
4760
  "VariablesOrder",
4627
- "TypographyPropsKeepAliases"
4761
+ "TypographyPropsKeepAliases",
4762
+ "GradientPropsKeepAliases",
4763
+ "ShadowPropsKeepAliases",
4764
+ "NonCompatibleTypeChanges"
4628
4765
  ]);
4629
4766
  var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
4630
4767
  var FeatureFlag = _zod.z.object({
@@ -5037,25 +5174,26 @@ function documentationPageToDTOV1(page, pagePathMap) {
5037
5174
  }
5038
5175
 
5039
5176
  // src/api/conversion/documentation/documentation-page-v2-to-dto.ts
5040
- function documentationPageToDTOV2(page, groups, routingVersion) {
5177
+ function documentationPageToDTOV2(page, groups, routingVersion, pageLiveblocksRoomIdMap) {
5041
5178
  const pathsMap = buildDocPagePublishPaths(groups, [page], routingVersion);
5042
- return _documentationPageToDTOV2(page, pathsMap);
5179
+ return _documentationPageToDTOV2(page, pathsMap, pageLiveblocksRoomIdMap);
5043
5180
  }
5044
- function documentationPagesToDTOV2(pages, groups, routingVersion) {
5181
+ function documentationPagesToDTOV2(pages, groups, routingVersion, pageLiveblocksRoomIdMap) {
5045
5182
  const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
5046
- return pages.map((page) => _documentationPageToDTOV2(page, pathsMap));
5183
+ return pages.map((page) => _documentationPageToDTOV2(page, pathsMap, pageLiveblocksRoomIdMap));
5047
5184
  }
5048
- function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
5185
+ function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion, pageLiveblocksRoomIdMap) {
5049
5186
  const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
5050
5187
  const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
5051
- return fixedPages.map((page) => _documentationPageToDTOV2(page, pathsMap));
5188
+ return fixedPages.map((page) => _documentationPageToDTOV2(page, pathsMap, pageLiveblocksRoomIdMap));
5052
5189
  }
5053
- function _documentationPageToDTOV2(page, pagePathMap) {
5190
+ function _documentationPageToDTOV2(page, pagePathMap, pageLiveblocksRoomIdMap) {
5054
5191
  let path = pagePathMap.get(page.persistentId);
5055
5192
  if (!path)
5056
5193
  throw new Error(`Path for page ${page.persistentId} was not calculated`);
5057
5194
  if (path.startsWith("/"))
5058
5195
  path = path.substring(1);
5196
+ const liveblocksRoomId = pageLiveblocksRoomIdMap.get(page.persistentId);
5059
5197
  return {
5060
5198
  id: "to_be_removed",
5061
5199
  designSystemVersionId: page.designSystemVersionId,
@@ -5068,7 +5206,8 @@ function _documentationPageToDTOV2(page, pagePathMap) {
5068
5206
  createdAt: page.createdAt,
5069
5207
  updatedAt: page.updatedAt,
5070
5208
  path,
5071
- type: "Page"
5209
+ type: "Page",
5210
+ ...liveblocksRoomId && { liveblocksRoomId }
5072
5211
  };
5073
5212
  }
5074
5213
 
@@ -5091,6 +5230,7 @@ function pipelineToDto(pipeline) {
5091
5230
  destinationGithub: pipeline.destinationGithub,
5092
5231
  destinationGitlab: pipeline.destinationGitlab,
5093
5232
  destinationS3: pipeline.destinationS3,
5233
+ exporterConfigurationProperties: pipeline.exporterConfigurationProperties,
5094
5234
  webhookUrl: pipeline.webhookUrl,
5095
5235
  latestJobs: []
5096
5236
  };
@@ -5255,6 +5395,7 @@ var DTOUserProfileUpdate = UserProfileUpdate;
5255
5395
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5256
5396
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5257
5397
  var DTOUserSource = UserSource;
5398
+ var DTOUserTheme = UserTheme;
5258
5399
  var DTOUserOnboarding = _zod.z.object({
5259
5400
  companyName: _zod.z.string().optional(),
5260
5401
  numberOfPeopleInOrg: _zod.z.string().optional(),
@@ -5268,7 +5409,8 @@ var DTOUserOnboarding = _zod.z.object({
5268
5409
  isPageDraftOnboardingFinished: _zod.z.boolean().optional()
5269
5410
  });
5270
5411
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5271
- onboarding: DTOUserOnboarding.optional()
5412
+ onboarding: DTOUserOnboarding.optional(),
5413
+ theme: DTOUserTheme.optional()
5272
5414
  });
5273
5415
  var DTOAuthenticatedUser = DTOUser.extend({
5274
5416
  profile: DTOAuthenticatedUserProfile,
@@ -5607,6 +5749,28 @@ var DTOBffImportRequestBody = _zod.z.discriminatedUnion("type", [
5607
5749
  DTOBffUploadImportRequestBody
5608
5750
  ]);
5609
5751
 
5752
+ // src/api/dto/design-systems/redirects.ts
5753
+
5754
+ var DTOPageRedirectCreateBody = _zod.z.object({
5755
+ pagePersistentId: _zod.z.string(),
5756
+ path: _zod.z.string()
5757
+ });
5758
+ var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
5759
+ var DTOPageRedirect = _zod.z.object({
5760
+ id: _zod.z.string(),
5761
+ pagePersistentId: _zod.z.string(),
5762
+ path: _zod.z.string()
5763
+ });
5764
+ var DTOPageRedirectListResponse = _zod.z.object({
5765
+ redirects: DTOPageRedirect.array()
5766
+ });
5767
+ var DTOPageRedirectResponse = _zod.z.object({
5768
+ redirect: DTOPageRedirect
5769
+ });
5770
+ var DTOPageRedirectDeleteResponse = _zod.z.object({
5771
+ success: _zod.z.boolean()
5772
+ });
5773
+
5610
5774
  // src/api/dto/design-systems/stats.ts
5611
5775
 
5612
5776
  var DTODesignSystemVersionStats = _zod.z.object({
@@ -5623,6 +5787,15 @@ var DTODesignSystemVersionStatsQuery = _zod.z.object({
5623
5787
  brandId: _zod.z.string().optional()
5624
5788
  });
5625
5789
 
5790
+ // src/api/dto/design-systems/version-room.ts
5791
+
5792
+ var DTODesignSystemVersionRoom = _zod.z.object({
5793
+ id: _zod.z.string()
5794
+ });
5795
+ var DTODesignSystemVersionRoomResponse = _zod.z.object({
5796
+ room: DTODesignSystemVersionRoom
5797
+ });
5798
+
5626
5799
  // src/api/dto/design-systems/version.ts
5627
5800
 
5628
5801
 
@@ -5699,45 +5872,52 @@ var DTODocumentationPublishTypeQueryParams = _zod.z.object({
5699
5872
 
5700
5873
  // src/api/dto/export/exporter-property.ts
5701
5874
 
5702
- var PrimitiveValue = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
5703
- var ArrayValue = _zod.z.array(_zod.z.string());
5704
- var ObjectValue = _zod.z.record(_zod.z.string());
5705
- var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
5875
+ var PrimitiveValue2 = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
5876
+ var ArrayValue2 = _zod.z.array(_zod.z.string());
5877
+ var ObjectValue2 = _zod.z.record(_zod.z.string());
5878
+ var DTOExporterPropertyDefinitionValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
5706
5879
  var DTOExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
5707
- var PropertyDefinitionBase = _zod.z.object({
5880
+ var PropertyDefinitionBase2 = _zod.z.object({
5708
5881
  key: _zod.z.string(),
5709
5882
  title: _zod.z.string(),
5883
+ description: _zod.z.string(),
5884
+ category: _zod.z.string().optional(),
5885
+ dependsOn: _zod.z.record(_zod.z.boolean()).optional()
5886
+ });
5887
+ var DTOExporterPropertyDefinitionEnumOption = _zod.z.object({
5888
+ label: _zod.z.string(),
5710
5889
  description: _zod.z.string()
5711
5890
  });
5712
- var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
5891
+ var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
5713
5892
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Enum),
5714
- options: _zod.z.string().array(),
5893
+ options: _zod.z.record(DTOExporterPropertyDefinitionEnumOption),
5715
5894
  default: _zod.z.string()
5716
5895
  });
5717
- var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
5896
+ var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
5718
5897
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Boolean),
5719
5898
  default: _zod.z.boolean()
5720
5899
  });
5721
- var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
5900
+ var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
5722
5901
  type: _zod.z.literal(DTOExporterPropertyType.Enum.String),
5723
5902
  default: _zod.z.string()
5724
5903
  });
5725
- var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
5904
+ var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
5726
5905
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Number),
5727
5906
  default: _zod.z.number()
5728
5907
  });
5729
- var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
5908
+ var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
5730
5909
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Array),
5731
- default: ArrayValue
5910
+ default: ArrayValue2
5732
5911
  });
5733
- var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
5912
+ var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
5734
5913
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Object),
5735
- default: ObjectValue,
5914
+ default: ObjectValue2,
5736
5915
  allowedKeys: _zod.z.object({
5737
- options: _zod.z.string().array()
5916
+ options: _zod.z.string().array(),
5917
+ type: _zod.z.string()
5738
5918
  }).optional(),
5739
5919
  allowedValues: _zod.z.object({
5740
- options: _zod.z.string().array()
5920
+ type: _zod.z.string()
5741
5921
  }).optional()
5742
5922
  });
5743
5923
  var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
@@ -5763,7 +5943,7 @@ var DTOPipelineCreateBody = _zod.z.object({
5763
5943
  brandPersistentId: _zod.z.string().optional(),
5764
5944
  themePersistentId: _zod.z.string().optional(),
5765
5945
  themePersistentIds: _zod.z.string().array().optional(),
5766
- exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
5946
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
5767
5947
  destination: PipelineDestinationType.optional(),
5768
5948
  gitQuery: GitObjectsQuery,
5769
5949
  destinations: _zod.z.object({
@@ -5776,8 +5956,26 @@ var DTOPipelineCreateBody = _zod.z.object({
5776
5956
  webhookUrl: _zod.z.string().nullish()
5777
5957
  })
5778
5958
  });
5779
- var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5780
- id: _zod.z.string()
5959
+ var DTOPipelineUpdateBody = _zod.z.object({
5960
+ exporterId: _zod.z.string().optional(),
5961
+ name: _zod.z.string().optional(),
5962
+ isEnabled: _zod.z.boolean().optional(),
5963
+ eventType: PipelineEventType.optional(),
5964
+ brandPersistentId: _zod.z.string().optional(),
5965
+ themePersistentId: _zod.z.string().optional(),
5966
+ themePersistentIds: _zod.z.string().array().optional(),
5967
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
5968
+ destination: PipelineDestinationType.optional(),
5969
+ gitQuery: GitObjectsQuery.optional(),
5970
+ destinations: _zod.z.object({
5971
+ s3: ExporterDestinationS3.nullish(),
5972
+ azure: ExporterDestinationAzure.nullish(),
5973
+ bitbucket: ExporterDestinationBitbucket.nullish(),
5974
+ github: ExporterDestinationGithub.nullish(),
5975
+ gitlab: ExporterDestinationGitlab.nullish(),
5976
+ documentation: ExporterDestinationDocs.nullish(),
5977
+ webhookUrl: _zod.z.string().nullish()
5978
+ }).optional()
5781
5979
  });
5782
5980
  var DTOPipelineTriggerBody = _zod.z.object({
5783
5981
  designSystemVersionId: _zod.z.string()
@@ -6260,6 +6458,8 @@ var DTODocumentationPageV2 = _zod.z.object({
6260
6458
  publishMetadata: DTODocumentationPublishMetadata.optional(),
6261
6459
  /** Defines the approval state of the documentation page */
6262
6460
  approvalState: DTODocumentationPageApprovalState.optional(),
6461
+ /** Id of the page document room */
6462
+ liveblocksRoomId: _zod.z.string().optional(),
6263
6463
  // Backward compatibility
6264
6464
  type: _zod.z.literal("Page")
6265
6465
  });
@@ -6368,7 +6568,7 @@ var DTOExporterMembership = _zod.z.object({
6368
6568
  exporterId: _zod.z.string(),
6369
6569
  role: DTOExporterMembershipRole
6370
6570
  });
6371
- var DTOExporterCreateOutput = _zod.z.object({
6571
+ var DTOExporterResponse = _zod.z.object({
6372
6572
  exporter: DTOExporter,
6373
6573
  membership: DTOExporterMembership
6374
6574
  });
@@ -6435,11 +6635,17 @@ var DTOExportJob = _zod.z.object({
6435
6635
  brandPersistentId: _zod.z.string().optional(),
6436
6636
  themePersistentId: _zod.z.string().optional(),
6437
6637
  themePersistentIds: _zod.z.string().array().optional(),
6438
- exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
6638
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional()
6439
6639
  });
6440
6640
  var DTOExportJobResponse = _zod.z.object({
6441
6641
  job: DTOExportJob
6442
6642
  });
6643
+ var DTOExportJobResponseLegacy = _zod.z.object({
6644
+ job: _zod.z.object({
6645
+ id: _zod.z.string(),
6646
+ status: ExportJobStatus
6647
+ })
6648
+ });
6443
6649
 
6444
6650
  // src/api/dto/export/pipeline.ts
6445
6651
 
@@ -6459,7 +6665,7 @@ var DTOPipeline = _zod.z.object({
6459
6665
  brandPersistentId: _zod.z.string().optional(),
6460
6666
  themePersistentId: _zod.z.string().optional(),
6461
6667
  themePersistentIds: _zod.z.string().array().optional(),
6462
- exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
6668
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
6463
6669
  ...ExportDestinationsMap.shape,
6464
6670
  latestJobs: DTOExportJob.array()
6465
6671
  });
@@ -6484,6 +6690,15 @@ var DTOPublishDocumentationResponse = _zod.z.object({
6484
6690
  job: DTOExportJob
6485
6691
  });
6486
6692
 
6693
+ // src/api/dto/documentation/room.ts
6694
+
6695
+ var DTODocumentationPageRoom = _zod.z.object({
6696
+ id: _zod.z.string()
6697
+ });
6698
+ var DTODocumentationPageRoomResponse = _zod.z.object({
6699
+ room: DTODocumentationPageRoom
6700
+ });
6701
+
6487
6702
  // src/api/dto/elements/components/figma-component-group.ts
6488
6703
 
6489
6704
  var DTOFigmaComponentGroup = _zod2.default.object({
@@ -6725,7 +6940,9 @@ var DTODocumentationHierarchyV2 = _zod.z.object({
6725
6940
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6726
6941
  draftState: DTODocumentationDraftState.optional()
6727
6942
  })
6728
- )
6943
+ ),
6944
+ /** True if the documentation was already published, false otherwise. */
6945
+ hasPublishedDocumentationContent: _zod.z.boolean()
6729
6946
  });
6730
6947
 
6731
6948
  // src/api/dto/elements/documentation/page-actions-v2.ts
@@ -6819,6 +7036,14 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6819
7036
  path: _zod.z.string()
6820
7037
  });
6821
7038
 
7039
+ // src/api/dto/elements/documentation/settings.ts
7040
+
7041
+ var DTODocumentationSettings = _zod.z.object({
7042
+ isDraftFeatureAdopted: _zod.z.boolean(),
7043
+ isApprovalsFeatureEnabled: _zod.z.boolean(),
7044
+ isApprovalRequiredForPublishing: _zod.z.boolean()
7045
+ });
7046
+
6822
7047
  // src/api/dto/elements/documentation/structure.ts
6823
7048
 
6824
7049
  var DTODocumentationStructureItemType = _zod.z.enum(["Group", "Page"]);
@@ -6850,6 +7075,9 @@ var DTODocumentationStructure = _zod.z.object({
6850
7075
  items: _zod.z.array(DTODocumentationStructureItem)
6851
7076
  });
6852
7077
 
7078
+ // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7079
+
7080
+
6853
7081
  // src/api/dto/elements/figma-nodes/figma-node.ts
6854
7082
 
6855
7083
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
@@ -6858,32 +7086,15 @@ var DTOFigmaNodeOrigin = _zod.z.object({
6858
7086
  fileId: _zod.z.string().optional(),
6859
7087
  parentName: _zod.z.string().optional()
6860
7088
  });
6861
- var DTOFigmaNodeData = _zod.z.object({
6862
- // Id of the node in the Figma file
6863
- figmaNodeId: _zod.z.string(),
6864
- // Validity
6865
- isValid: _zod.z.boolean(),
6866
- // Asset data
6867
- assetId: _zod.z.string(),
6868
- assetUrl: _zod.z.string(),
6869
- assetFormat: DTOFigmaNodeRenderFormat,
6870
- // Asset metadata
6871
- assetScale: _zod.z.number(),
6872
- assetWidth: _zod.z.number().optional(),
6873
- assetHeight: _zod.z.number().optional()
6874
- });
6875
- var DTOFigmaNode = FigmaNodeReference.omit({
6876
- data: true,
6877
- origin: true
6878
- }).extend({
6879
- data: DTOFigmaNodeData,
6880
- origin: DTOFigmaNodeOrigin
6881
- });
6882
7089
  var DTOFigmaNodeRenderInputBase = _zod.z.object({
6883
7090
  /**
6884
7091
  * Format in which the node must be rendered, png by default.
6885
7092
  */
6886
- format: FigmaNodeRenderFormat.default("Png")
7093
+ format: FigmaNodeRenderFormat.default("Png"),
7094
+ /**
7095
+ * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
7096
+ */
7097
+ scale: _zod.z.number().optional()
6887
7098
  });
6888
7099
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
6889
7100
  inputType: _zod.z.literal("NodeId").optional().transform((v) => _nullishCoalesce(v, () => ( "NodeId"))),
@@ -6901,22 +7112,84 @@ var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
6901
7112
  /**
6902
7113
  * Id of a design system's data source representing a linked Figma file
6903
7114
  */
6904
- figmaNodeUrl: _zod.z.string()
7115
+ figmaNodeUrl: _zod.z.string(),
7116
+ /**
7117
+ * Brand persistent id to use in case a source has to be created for this render
7118
+ */
7119
+ brandPersistentId: _zod.z.string()
7120
+ });
7121
+ var DTOFigmaNodeRerenderInput = _zod.z.object({
7122
+ inputType: _zod.z.literal("Rerender"),
7123
+ /**
7124
+ * Persistent ID of an existing Figma node
7125
+ */
7126
+ figmaNodePersistentId: _zod.z.string()
6905
7127
  });
6906
7128
  var DTOFigmaNodeRenderInput = _zod.z.discriminatedUnion("inputType", [
6907
7129
  DTOFigmaNodeRenderIdInput,
6908
- DTOFigmaNodeRenderUrlInput
7130
+ DTOFigmaNodeRenderUrlInput,
7131
+ DTOFigmaNodeRerenderInput
6909
7132
  ]);
6910
7133
 
7134
+ // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7135
+ var DTOFigmaNodeData = _zod.z.object({
7136
+ // Id of the node in the Figma file
7137
+ figmaNodeId: _zod.z.string(),
7138
+ // Validity
7139
+ isValid: _zod.z.boolean(),
7140
+ // Asset data
7141
+ assetId: _zod.z.string(),
7142
+ assetUrl: _zod.z.string(),
7143
+ assetFormat: DTOFigmaNodeRenderFormat,
7144
+ // Asset metadata
7145
+ assetScale: _zod.z.number(),
7146
+ assetWidth: _zod.z.number().optional(),
7147
+ assetHeight: _zod.z.number().optional()
7148
+ });
7149
+ var DTOFigmaNode = FigmaNodeReference.omit({
7150
+ data: true,
7151
+ origin: true
7152
+ }).extend({
7153
+ data: DTOFigmaNodeData,
7154
+ origin: DTOFigmaNodeOrigin
7155
+ });
7156
+
7157
+ // src/api/dto/elements/figma-nodes/figma-node-v2.ts
7158
+
7159
+ var DTOFigmaNodeDataV2 = _zod.z.object({
7160
+ sceneNodeId: _zod.z.string(),
7161
+ format: FigmaNodeRenderFormat,
7162
+ scale: _zod.z.number().optional(),
7163
+ renderState: FigmaNodeRenderState,
7164
+ renderedImage: FigmaNodeRenderedImage.optional(),
7165
+ renderError: FigmaNodeRenderError.optional(),
7166
+ hasSource: _zod.z.boolean()
7167
+ });
7168
+ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7169
+ data: true,
7170
+ origin: true
7171
+ }).extend({
7172
+ data: DTOFigmaNodeDataV2,
7173
+ origin: DTOFigmaNodeOrigin
7174
+ });
7175
+
6911
7176
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6912
7177
 
6913
7178
  var DTOFigmaNodeRenderActionOutput = _zod.z.object({
6914
7179
  type: _zod.z.literal("FigmaNodeRender"),
6915
7180
  figmaNodes: _zod.z.array(DTOFigmaNode)
6916
7181
  });
7182
+ var DTOFigmaNodeRenderAsyncActionOutput = _zod.z.object({
7183
+ type: _zod.z.literal("FigmaNodeRenderAsync"),
7184
+ figmaNodes: _zod.z.array(DTOFigmaNodeV2)
7185
+ });
6917
7186
  var DTOFigmaNodeRenderActionInput = _zod.z.object({
6918
7187
  type: _zod.z.literal("FigmaNodeRender"),
6919
- input: DTOFigmaNodeRenderInput.array()
7188
+ input: DTOFigmaNodeRenderIdInput.array()
7189
+ });
7190
+ var DTOFigmaNodeRenderAsyncActionInput = _zod.z.object({
7191
+ type: _zod.z.literal("FigmaNodeRenderAsync"),
7192
+ nodes: DTOFigmaNodeRenderInput.array()
6920
7193
  });
6921
7194
 
6922
7195
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
@@ -7016,6 +7289,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
7016
7289
  DTODocumentationTabGroupDeleteActionOutputV2,
7017
7290
  // Figma frames
7018
7291
  DTOFigmaNodeRenderActionOutput,
7292
+ DTOFigmaNodeRenderAsyncActionOutput,
7019
7293
  // Restore
7020
7294
  DTODocumentationPageRestoreActionOutput,
7021
7295
  DTODocumentationGroupRestoreActionOutput,
@@ -7039,22 +7313,31 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
7039
7313
  DTODocumentationTabGroupDeleteActionInputV2,
7040
7314
  // Figma frames
7041
7315
  DTOFigmaNodeRenderActionInput,
7316
+ DTOFigmaNodeRenderAsyncActionInput,
7042
7317
  // Restore
7043
7318
  DTODocumentationPageRestoreActionInput,
7044
7319
  DTODocumentationGroupRestoreActionInput,
7045
7320
  // Approval
7046
7321
  DTODocumentationPageApprovalStateChangeActionInput
7047
- ]);
7322
+ ]).and(
7323
+ _zod.z.object({
7324
+ tId: _zod.z.string().optional()
7325
+ })
7326
+ );
7048
7327
 
7049
7328
  // src/api/dto/elements/get-elements-v2.ts
7050
7329
 
7051
7330
  var DTOElementsGetTypeFilter = _zod.z.enum(["FigmaNode"]);
7052
7331
  var DTOElementsGetQuerySchema = _zod.z.object({
7053
- types: _zod.z.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
7332
+ types: _zod.z.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7333
+ responseVersion: _zod.z.coerce.number().default(1)
7054
7334
  });
7055
7335
  var DTOElementsGetOutput = _zod.z.object({
7056
7336
  figmaNodes: _zod.z.array(DTOFigmaNode).optional()
7057
7337
  });
7338
+ var DTOElementsGetOutputV2 = _zod.z.object({
7339
+ figmaNodes: _zod.z.array(DTOFigmaNodeV2).optional()
7340
+ });
7058
7341
 
7059
7342
  // src/api/dto/figma-components/assets/download.ts
7060
7343
 
@@ -7126,23 +7409,32 @@ var DTOThemeCreatePayload = _zod.z.object({
7126
7409
 
7127
7410
  // src/utils/figma.ts
7128
7411
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
7129
- var nodeIdRegex = /^d+-d+$/;
7412
+ var nodeIdRegex = /^\d+-\d+$/;
7130
7413
  var nodeTypeRegex = /^[0-9a-zA-Z]^/;
7414
+ var ParsedFigmaFileURLError = /* @__PURE__ */ ((ParsedFigmaFileURLError2) => {
7415
+ ParsedFigmaFileURLError2["InvalidUrl"] = "InvalidUrl";
7416
+ ParsedFigmaFileURLError2["InvalidFigmaFileId"] = "InvalidFigmaFileId";
7417
+ return ParsedFigmaFileURLError2;
7418
+ })(ParsedFigmaFileURLError || {});
7131
7419
  var FigmaUtils = {
7132
7420
  tryParseFigmaFileURL(urlString) {
7133
- if (!URL.canParse(urlString))
7134
- return null;
7421
+ if (!URL.canParse(urlString)) {
7422
+ return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
7423
+ }
7135
7424
  const url = new URL(urlString);
7136
- if (!url.hostname.endsWith("figma.com"))
7137
- return null;
7425
+ if (!url.hostname.endsWith("figma.com")) {
7426
+ return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
7427
+ }
7138
7428
  const pathSegments = url.pathname.split("/");
7139
- if (pathSegments[0] !== "design" && pathSegments[0] !== "file")
7140
- return null;
7141
- const fileId = pathSegments[1];
7142
- if (!fileId || !fileId.match(figmaFileIdRegex))
7143
- return null;
7429
+ if (pathSegments[1] !== "design" && pathSegments[1] !== "file") {
7430
+ return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
7431
+ }
7432
+ const fileId = pathSegments[2];
7433
+ if (!fileId || !fileId.match(figmaFileIdRegex)) {
7434
+ return { status: "Error", error: "InvalidFigmaFileId" /* InvalidFigmaFileId */ };
7435
+ }
7144
7436
  let fileName = null;
7145
- const rawFileName = pathSegments[2];
7437
+ const rawFileName = pathSegments[3];
7146
7438
  if (rawFileName) {
7147
7439
  fileName = rawFileName.replaceAll("-", " ");
7148
7440
  }
@@ -7156,7 +7448,7 @@ var FigmaUtils = {
7156
7448
  if (nodeTypeRaw && nodeTypeRaw.match(nodeTypeRegex)) {
7157
7449
  nodeType = nodeTypeRaw;
7158
7450
  }
7159
- return { fileId, fileName, nodeId, nodeType };
7451
+ return { status: "Success", fileId, fileName, nodeId, nodeType };
7160
7452
  }
7161
7453
  };
7162
7454
 
@@ -7237,11 +7529,34 @@ var ExportersEndpoint = class {
7237
7529
  constructor(requestExecutor) {
7238
7530
  this.requestExecutor = requestExecutor;
7239
7531
  }
7532
+ add(workspaceId, body) {
7533
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterResponse, {
7534
+ body,
7535
+ method: "POST"
7536
+ });
7537
+ }
7240
7538
  list(workspaceId, query) {
7241
7539
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
7242
7540
  query: serializeQuery(query)
7243
7541
  });
7244
7542
  }
7543
+ get(workspaceId, exporterId) {
7544
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters/${exporterId}`, DTOExporterResponse);
7545
+ }
7546
+ };
7547
+
7548
+ // src/api/endpoints/codegen/jobs.ts
7549
+
7550
+ var ExporterJobsEndpoint = class {
7551
+ constructor(requestExecutor) {
7552
+ this.requestExecutor = requestExecutor;
7553
+ }
7554
+ list(workspaceId) {
7555
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, _zod.z.any());
7556
+ }
7557
+ get(workspaceId, jobId) {
7558
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
7559
+ }
7245
7560
  };
7246
7561
 
7247
7562
  // src/api/endpoints/codegen/pipelines.ts
@@ -7263,6 +7578,12 @@ var PipelinesEndpoint = class {
7263
7578
  method: "POST"
7264
7579
  });
7265
7580
  }
7581
+ update(designSystemId, pipelineId, payload) {
7582
+ return this.requestExecutor.json(`/design-systems/${designSystemId}/pipelines/${pipelineId}`, DTOPipelineResponse, {
7583
+ body: payload,
7584
+ method: "PUT"
7585
+ });
7586
+ }
7266
7587
  trigger(workspaceId, pipelineId, payload) {
7267
7588
  return this.requestExecutor.json(
7268
7589
  `/codegen/workspaces/${workspaceId}/pipelines/${pipelineId}/trigger`,
@@ -7281,8 +7602,10 @@ var CodegenEndpoint = class {
7281
7602
  this.requestExecutor = requestExecutor;
7282
7603
  __publicField(this, "exporters");
7283
7604
  __publicField(this, "pipelines");
7605
+ __publicField(this, "jobs");
7284
7606
  this.pipelines = new PipelinesEndpoint(requestExecutor);
7285
7607
  this.exporters = new ExportersEndpoint(requestExecutor);
7608
+ this.jobs = new ExporterJobsEndpoint(requestExecutor);
7286
7609
  }
7287
7610
  };
7288
7611
 
@@ -7332,8 +7655,8 @@ var DocumentationEndpoint = class {
7332
7655
  constructor(requestExecutor) {
7333
7656
  this.requestExecutor = requestExecutor;
7334
7657
  }
7335
- getStructure(designSystemId, versionId) {
7336
- return this.requestExecutor.json(
7658
+ async getStructure(designSystemId, versionId) {
7659
+ return await this.requestExecutor.json(
7337
7660
  `/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
7338
7661
  DTODocumentationStructure
7339
7662
  );
@@ -7341,10 +7664,13 @@ var DocumentationEndpoint = class {
7341
7664
  async getDocStructure(dsId, vId) {
7342
7665
  return await this.requestExecutor.json(
7343
7666
  `/design-systems/${dsId}/versions/${vId}/documentation/structure`,
7344
- DTODocumentationStructure,
7345
- {
7346
- method: "GET"
7347
- }
7667
+ DTODocumentationStructure
7668
+ );
7669
+ }
7670
+ async getPageRoom(dsId, vId, pageId) {
7671
+ return await this.requestExecutor.json(
7672
+ `/design-systems/${dsId}/versions/${vId}/documentation/pages/${pageId}/room`,
7673
+ DTODocumentationPageRoomResponse
7348
7674
  );
7349
7675
  }
7350
7676
  };
@@ -7398,6 +7724,9 @@ var ElementsActionEndpoint = class {
7398
7724
  async renderNodes(dsId, vId, input) {
7399
7725
  return this.action(dsId, vId, { type: "FigmaNodeRender", input });
7400
7726
  }
7727
+ async renderNodesAsync(dsId, vId, nodes) {
7728
+ return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
7729
+ }
7401
7730
  async action(dsId, vId, input) {
7402
7731
  return this.requestExecutor.json(
7403
7732
  `/design-systems/${dsId}/versions/${vId}/elements-action`,
@@ -7415,11 +7744,20 @@ var ElementsEndpoint = class {
7415
7744
  constructor(requestExecutor) {
7416
7745
  this.requestExecutor = requestExecutor;
7417
7746
  }
7418
- getElements(dsId, vId, query) {
7747
+ getElementsV1(dsId, vId, query) {
7419
7748
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
7420
7749
  query: serializeQuery(query)
7421
7750
  });
7422
7751
  }
7752
+ getElementsV2(dsId, vId, query) {
7753
+ const fullQuery = {
7754
+ ...query,
7755
+ responseVersion: 2
7756
+ };
7757
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutputV2, {
7758
+ query: serializeQuery(fullQuery)
7759
+ });
7760
+ }
7423
7761
  };
7424
7762
 
7425
7763
  // src/api/endpoints/design-system/versions/figma-component-groups.ts
@@ -7702,6 +8040,12 @@ var DesignSystemVersionsEndpoint = class {
7702
8040
  DTODesignSystemVersionJobStatusResponse
7703
8041
  );
7704
8042
  }
8043
+ room(dsId, vId) {
8044
+ return this.requestExecutor.json(
8045
+ `/design-systems/${dsId}/versions/${vId}/room`,
8046
+ DTODesignSystemVersionRoomResponse
8047
+ );
8048
+ }
7705
8049
  };
7706
8050
 
7707
8051
  // src/api/endpoints/design-system/bff.ts
@@ -7908,6 +8252,19 @@ var WorkspacesEndpoint = class {
7908
8252
  }
7909
8253
  };
7910
8254
 
8255
+ // src/api/endpoints/liveblocks.ts
8256
+ var LiveblocksEndpoint = class {
8257
+ constructor(requestExecutor) {
8258
+ this.requestExecutor = requestExecutor;
8259
+ }
8260
+ auth(body) {
8261
+ return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
8262
+ method: "POST",
8263
+ body
8264
+ });
8265
+ }
8266
+ };
8267
+
7911
8268
  // src/api/endpoints/users.ts
7912
8269
  var UsersEndpoint = class {
7913
8270
  constructor(requestExecutor) {
@@ -8050,6 +8407,7 @@ var SupernovaApiClient = class {
8050
8407
  __publicField(this, "workspaces");
8051
8408
  __publicField(this, "designSystems");
8052
8409
  __publicField(this, "codegen");
8410
+ __publicField(this, "liveblocks");
8053
8411
  const requestExecutor = new RequestExecutor({
8054
8412
  host: config.host,
8055
8413
  accessToken: config.accessToken
@@ -8058,9 +8416,31 @@ var SupernovaApiClient = class {
8058
8416
  this.workspaces = new WorkspacesEndpoint(requestExecutor);
8059
8417
  this.designSystems = new DesignSystemsEndpoint(requestExecutor);
8060
8418
  this.codegen = new CodegenEndpoint(requestExecutor);
8419
+ this.liveblocks = new LiveblocksEndpoint(requestExecutor);
8061
8420
  }
8062
8421
  };
8063
8422
 
8423
+ // src/events/design-system.ts
8424
+
8425
+ var DTOEventFigmaNodesRendered = _zod.z.object({
8426
+ type: _zod.z.literal("DesignSystem.FigmaNodesRendered"),
8427
+ designSystemId: _zod.z.string(),
8428
+ versionId: _zod.z.string(),
8429
+ figmaNodePersistentIds: _zod.z.string().array()
8430
+ });
8431
+ var DTOEventDataSourcesImported = _zod.z.object({
8432
+ type: _zod.z.literal("DesignSystem.ImportJobFinished"),
8433
+ designSystemId: _zod.z.string(),
8434
+ versionId: _zod.z.string(),
8435
+ importJobId: _zod.z.string(),
8436
+ dataSourceType: DataSourceRemoteType,
8437
+ dataSourceIds: _zod.z.string().array()
8438
+ });
8439
+
8440
+ // src/events/event.ts
8441
+
8442
+ var DTOEvent = _zod.z.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
8443
+
8064
8444
  // src/sync/docs-structure-repo.ts
8065
8445
  var _pqueue = require('p-queue'); var _pqueue2 = _interopRequireDefault(_pqueue);
8066
8446
 
@@ -8074,14 +8454,19 @@ var VersionRoomBaseYDoc = class {
8074
8454
  this.yDoc = yDoc;
8075
8455
  }
8076
8456
  getState() {
8457
+ const groups = this.getGroups();
8458
+ const isLoaded = !!groups.length;
8077
8459
  return {
8460
+ isLoaded,
8461
+ groups,
8462
+ pages: this.getPages(),
8078
8463
  approvals: this.getApprovals(),
8079
- groups: this.getGroups(),
8080
8464
  groupSnapshots: this.getGroupSnapshots(),
8081
8465
  pageContentHashes: this.getDocumentationPageContentHashes(),
8082
- pages: this.getPages(),
8083
8466
  pageSnapshots: this.getPageSnapshots(),
8084
- settings: this.getDocumentationInternalSettings()
8467
+ settings: this.getDocumentationInternalSettings(),
8468
+ pageLiveblockRoomIds: this.getDocumentationPageLiveblocksRoomIds(),
8469
+ executedTransactionIds: this.getExecutedTransactionIds()
8085
8470
  };
8086
8471
  }
8087
8472
  //
@@ -8213,6 +8598,18 @@ var VersionRoomBaseYDoc = class {
8213
8598
  });
8214
8599
  return result;
8215
8600
  }
8601
+ getDocumentationPageLiveblocksRoomIds() {
8602
+ const map = this.documentationPageLiveblocksRoomIdsYMap;
8603
+ const result = {};
8604
+ map.forEach((hash2, key) => {
8605
+ if (typeof hash2 === "string")
8606
+ result[key] = hash2;
8607
+ });
8608
+ return result;
8609
+ }
8610
+ get documentationPageLiveblocksRoomIdsYMap() {
8611
+ return this.yDoc.getMap("documentationPageLiveblocksRoomIds");
8612
+ }
8216
8613
  updateDocumentationPageContentHashes(hashes) {
8217
8614
  const map = this.documentationPageContentHashesYMap;
8218
8615
  Object.entries(hashes).forEach(([key, hash2]) => map.set(key, hash2));
@@ -8220,7 +8617,9 @@ var VersionRoomBaseYDoc = class {
8220
8617
  get documentationPageContentHashesYMap() {
8221
8618
  return this.yDoc.getMap("documentationPageHashes");
8222
8619
  }
8620
+ //
8223
8621
  // Approval states
8622
+ //
8224
8623
  updateApprovalStates(updates) {
8225
8624
  this.setObjects(this.documentationPageApprovalsMap, updates);
8226
8625
  }
@@ -8233,21 +8632,47 @@ var VersionRoomBaseYDoc = class {
8233
8632
  get documentationPageApprovalsMap() {
8234
8633
  return this.yDoc.getMap("documentationPageApprovals");
8235
8634
  }
8635
+ //
8636
+ // Executed transactions
8637
+ //
8638
+ updateExecutedTransactionIds(transactionIds) {
8639
+ transactionIds = Array.from(new Set(transactionIds));
8640
+ if (!transactionIds.length)
8641
+ return;
8642
+ const array = this.executedTransactionIdsArray;
8643
+ array.push(transactionIds);
8644
+ if (array.length > 100) {
8645
+ array.delete(0, array.length - 100);
8646
+ }
8647
+ }
8648
+ getExecutedTransactionIds() {
8649
+ const array = this.executedTransactionIdsArray;
8650
+ const transactionIds = [];
8651
+ array.forEach((e) => typeof e === "string" && transactionIds.push(e));
8652
+ return transactionIds;
8653
+ }
8654
+ get executedTransactionIdsArray() {
8655
+ return this.yDoc.getArray("executedTransactionIds");
8656
+ }
8236
8657
  };
8237
8658
 
8238
8659
  // src/yjs/version-room/compute-dto.ts
8239
8660
  function computeDocsHierarchy(input, options = {}) {
8240
8661
  const includeDeletedContent = _nullishCoalesce(options.includeDeletedContent, () => ( false));
8241
8662
  const debug = _nullishCoalesce(options.debug, () => ( false));
8242
- const { pages, groups, pageSnapshots, groupSnapshots, settings, pageContentHashes, approvals } = input;
8663
+ const { pages, groups, pageSnapshots, groupSnapshots, settings, pageContentHashes, approvals, pageLiveblockRoomIds } = input;
8243
8664
  if (includeDeletedContent) {
8244
8665
  pages.push(...getDeletedPages(pages, pageSnapshots));
8245
8666
  groups.push(...getDeletedGroups(groups, groupSnapshots));
8246
8667
  }
8247
- const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
8668
+ const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion, recordToMap(pageLiveblockRoomIds));
8248
8669
  const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
8670
+ const hasPublishedPages = pageSnapshots.some((s) => s.reason === "Publish");
8671
+ const hasPublishedGroups = groupSnapshots.some((s) => s.reason === "Publish");
8672
+ const hasPublishedDocumentationContent = hasPublishedPages || hasPublishedGroups;
8249
8673
  if (!settings.isDraftFeatureAdopted) {
8250
8674
  return {
8675
+ hasPublishedDocumentationContent,
8251
8676
  pages: pageDTOs,
8252
8677
  groups: groupDTOs
8253
8678
  };
@@ -8277,6 +8702,7 @@ function computeDocsHierarchy(input, options = {}) {
8277
8702
  approvalState && (g.approvalState = approvalState);
8278
8703
  });
8279
8704
  return {
8705
+ hasPublishedDocumentationContent,
8280
8706
  pages: pageDTOs,
8281
8707
  groups: groupDTOs
8282
8708
  };
@@ -11709,49 +12135,87 @@ var blocks = [
11709
12135
  },
11710
12136
  {
11711
12137
  id: "io.supernova.block.assets",
11712
- name: "Assets",
12138
+ name: "Vector assets",
11713
12139
  description: "Display icons or illustrations",
11714
12140
  category: "Assets",
11715
12141
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
11716
- searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
12142
+ searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "vectors"],
11717
12143
  item: {
11718
- properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
11719
- appearance: { isBordered: true, hasBackground: false },
12144
+ properties: [
12145
+ {
12146
+ id: "assets",
12147
+ name: "Assets",
12148
+ type: "Asset",
12149
+ options: {}
12150
+ }
12151
+ ],
12152
+ appearance: {
12153
+ isBordered: true,
12154
+ hasBackground: false
12155
+ },
11720
12156
  variants: [
11721
12157
  {
11722
12158
  id: "default",
11723
12159
  name: "Simple grid",
11724
12160
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
11725
- description: "A simple grid of assets. Both the title and description are displayed below the preview.",
11726
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
12161
+ description: "A simple grid. Both the title and description are displayed below the preview.",
12162
+ layout: {
12163
+ type: "Column",
12164
+ children: ["assets"],
12165
+ columnAlign: "Start",
12166
+ columnResizing: "Fill",
12167
+ gap: "Medium"
12168
+ },
11727
12169
  maxColumns: 8,
11728
- defaultColumns: 1,
12170
+ defaultColumns: 4,
11729
12171
  appearance: {}
11730
12172
  },
11731
12173
  {
11732
12174
  id: "square-grid",
11733
12175
  name: "Square grid",
11734
12176
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
11735
- description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
11736
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
12177
+ description: "Bordered square grid tailored for displaying icon assets.",
12178
+ layout: {
12179
+ type: "Column",
12180
+ children: ["assets"],
12181
+ columnAlign: "Start",
12182
+ columnResizing: "Fill",
12183
+ gap: "Medium"
12184
+ },
11737
12185
  maxColumns: 8,
11738
- defaultColumns: 1,
11739
- appearance: { isEditorPresentationDifferent: true }
12186
+ defaultColumns: 4,
12187
+ appearance: {
12188
+ isEditorPresentationDifferent: true
12189
+ }
11740
12190
  },
11741
12191
  {
11742
12192
  id: "borderless-grid",
11743
12193
  name: "Borderless grid",
11744
12194
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
11745
- description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
11746
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
12195
+ description: "Borderless grid, perfect for displaying vector assets of the same height.",
12196
+ layout: {
12197
+ type: "Column",
12198
+ children: ["assets"],
12199
+ columnAlign: "Start",
12200
+ columnResizing: "Fill",
12201
+ gap: "Medium"
12202
+ },
11747
12203
  maxColumns: 8,
11748
- defaultColumns: 1,
11749
- appearance: { isEditorPresentationDifferent: true }
12204
+ defaultColumns: 4,
12205
+ appearance: {
12206
+ isEditorPresentationDifferent: true
12207
+ }
11750
12208
  }
11751
12209
  ],
11752
12210
  defaultVariantKey: "default"
11753
12211
  },
11754
- behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
12212
+ behavior: {
12213
+ dataType: "Asset",
12214
+ entities: {
12215
+ selectionType: "EntityAndGroup",
12216
+ maxSelected: 0
12217
+ }
12218
+ },
11755
12219
  editorOptions: {
11756
12220
  onboarding: {
11757
12221
  helpText: "Display a grid of icons or illustrations.",
@@ -12885,6 +13349,7 @@ var BackendVersionRoomYDoc = class {
12885
13349
  transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
12886
13350
  transaction.pageApprovals && yDoc.updateApprovalStates(transaction.pageApprovals);
12887
13351
  transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
13352
+ transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
12888
13353
  });
12889
13354
  }
12890
13355
  getDocumentationPageContentHashes() {
@@ -12896,135 +13361,373 @@ var BackendVersionRoomYDoc = class {
12896
13361
  }
12897
13362
  };
12898
13363
 
12899
- // src/sync/local-state.ts
12900
- var LocalStorage = class {
12901
- constructor() {
12902
- __publicField(this, "pages", /* @__PURE__ */ new Map());
12903
- __publicField(this, "groups", /* @__PURE__ */ new Map());
13364
+ // src/sync/local-action-executor.ts
13365
+ function applyActionsLocally(versionId, remoteState, trx) {
13366
+ const actionExecutor = new LocalDocsElementActionExecutor(versionId, remoteState);
13367
+ actionExecutor.applyTransactions(trx);
13368
+ return actionExecutor.localState;
13369
+ }
13370
+ var LocalDocsElementActionExecutor = class {
13371
+ constructor(designSystemVersionId, remoteState) {
13372
+ __publicField(this, "designSystemVersionId");
13373
+ __publicField(this, "pages");
13374
+ __publicField(this, "groups");
13375
+ this.designSystemVersionId = designSystemVersionId;
13376
+ this.pages = mapByUnique(remoteState.pages, (p) => p.persistentId);
13377
+ this.groups = mapByUnique(remoteState.groups, (p) => p.persistentId);
13378
+ }
13379
+ get localState() {
13380
+ return {
13381
+ pages: Array.from(this.pages.values()),
13382
+ groups: Array.from(this.groups.values())
13383
+ };
12904
13384
  }
12905
- addPage(page) {
12906
- if (this.pages.has(page.persistentId)) {
12907
- throw new Error(`Page with id ${page.persistentId} already exists`);
13385
+ applyTransactions(trx) {
13386
+ trx.forEach((trx2) => this.applyTransaction(trx2));
13387
+ }
13388
+ applyTransaction(trx) {
13389
+ switch (trx.type) {
13390
+ case "DocumentationGroupCreate":
13391
+ return this.documentationGroupCreate(trx);
13392
+ case "DocumentationGroupUpdate":
13393
+ return this.documentationGroupUpdate(trx);
13394
+ case "DocumentationGroupDelete":
13395
+ return this.documentationGroupDelete(trx);
13396
+ case "DocumentationGroupMove":
13397
+ return this.documentationGroupMove(trx);
13398
+ case "DocumentationGroupDuplicate":
13399
+ case "DocumentationGroupRestore":
13400
+ throw new Error(`Transaction type ${trx.type} is not yet implemented`);
13401
+ case "DocumentationPageCreate":
13402
+ return this.documentationPageCreate(trx);
13403
+ case "DocumentationPageUpdate":
13404
+ return this.documentationPageUpdate(trx);
13405
+ case "DocumentationPageMove":
13406
+ return this.documentationPageMove(trx);
13407
+ case "DocumentationPageDelete":
13408
+ return this.documentationPageDelete(trx);
13409
+ case "DocumentationPageApprovalStateChange":
13410
+ case "DocumentationPageDuplicate":
13411
+ case "DocumentationPageRestore":
13412
+ throw new Error(`Transaction type ${trx.type} is not yet implemented`);
13413
+ case "DocumentationTabCreate":
13414
+ case "DocumentationTabGroupDelete":
13415
+ throw new Error(`Transaction type ${trx.type} is not yet implemented`);
13416
+ case "FigmaNodeRender":
13417
+ case "FigmaNodeRenderAsync":
13418
+ throw new Error(`Transaction type ${trx.type} is not a documentation element action`);
13419
+ }
13420
+ }
13421
+ //
13422
+ // Pages
13423
+ //
13424
+ documentationPageCreate(trx) {
13425
+ const { input } = trx;
13426
+ if (this.pages.has(input.persistentId)) {
13427
+ return;
13428
+ }
13429
+ if (!this.groups.has(input.parentPersistentId)) {
13430
+ throw new Error(`Cannot create page: parent persistent id ${input.parentPersistentId} was not found`);
12908
13431
  }
12909
- this.pages.set(page.persistentId, page);
13432
+ const localPage = {
13433
+ createdAt: /* @__PURE__ */ new Date(),
13434
+ parentPersistentId: input.parentPersistentId,
13435
+ persistentId: input.persistentId,
13436
+ shortPersistentId: generateShortPersistentId(),
13437
+ slug: slugify(input.title),
13438
+ meta: { name: input.title },
13439
+ updatedAt: /* @__PURE__ */ new Date(),
13440
+ data: {
13441
+ // TODO Artem: move somewhere reusable
13442
+ configuration: input.configuration ? { ...defaultDocumentationItemConfigurationV2, ...input.configuration } : input.configuration
13443
+ },
13444
+ sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
13445
+ designSystemVersionId: this.designSystemVersionId
13446
+ };
13447
+ this.pages.set(localPage.persistentId, localPage);
12910
13448
  }
12911
- getPage(persistentId) {
12912
- const page = this.pages.get(persistentId);
12913
- if (!page) {
12914
- throw new Error(`Page with id ${persistentId} doesn't exist`);
13449
+ documentationPageUpdate(trx) {
13450
+ const { input } = trx;
13451
+ const existingPage = this.pages.get(input.id);
13452
+ if (!existingPage) {
13453
+ throw new Error(`Cannot update page: page id ${input.id} was not found`);
12915
13454
  }
12916
- return page;
13455
+ const localPage = {
13456
+ ...existingPage,
13457
+ userSlug: void 0,
13458
+ meta: {
13459
+ ...existingPage.meta,
13460
+ name: _nullishCoalesce(input.title, () => ( existingPage.meta.name))
13461
+ },
13462
+ data: {
13463
+ // TODO Artem: move somewhere reusable
13464
+ configuration: input.configuration ? { ..._nullishCoalesce(existingPage.data.configuration, () => ( defaultDocumentationItemConfigurationV2)), ...input.configuration } : existingPage.data.configuration
13465
+ }
13466
+ };
13467
+ this.pages.set(localPage.persistentId, localPage);
12917
13468
  }
12918
- getAllPages() {
12919
- return Array.from(this.pages.values());
13469
+ documentationPageMove(trx) {
13470
+ const { input } = trx;
13471
+ if (!this.groups.has(input.parentPersistentId)) {
13472
+ throw new Error(`Cannot move page: page parent id ${input.parentPersistentId} was not found`);
13473
+ }
13474
+ const existingPage = this.pages.get(input.id);
13475
+ if (!existingPage) {
13476
+ throw new Error(`Cannot update page: page id ${input.id} was not found`);
13477
+ }
13478
+ const localPage = {
13479
+ ...existingPage,
13480
+ userSlug: void 0,
13481
+ sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
13482
+ parentPersistentId: input.parentPersistentId
13483
+ };
13484
+ this.pages.set(localPage.persistentId, localPage);
12920
13485
  }
12921
- removePage(persistentId) {
12922
- this.pages.delete(persistentId);
13486
+ documentationPageDelete(trx) {
13487
+ const { input } = trx;
13488
+ if (!this.pages.delete(trx.input.id)) {
13489
+ throw new Error(`Cannot delete page: page id ${input.id} was not found`);
13490
+ }
13491
+ }
13492
+ //
13493
+ // Group
13494
+ //
13495
+ documentationGroupCreate(trx) {
13496
+ const { input } = trx;
13497
+ if (this.groups.has(input.persistentId)) {
13498
+ return;
13499
+ }
13500
+ const localGroup = {
13501
+ parentPersistentId: input.parentPersistentId,
13502
+ persistentId: input.persistentId,
13503
+ shortPersistentId: generateShortPersistentId(),
13504
+ slug: slugify(input.title),
13505
+ meta: { name: input.title },
13506
+ createdAt: /* @__PURE__ */ new Date(),
13507
+ updatedAt: /* @__PURE__ */ new Date(),
13508
+ data: {
13509
+ // TODO Artem: move somewhere reusable
13510
+ configuration: input.configuration ? { ...defaultDocumentationItemConfigurationV2, ...input.configuration } : input.configuration
13511
+ },
13512
+ sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
13513
+ designSystemVersionId: this.designSystemVersionId
13514
+ };
13515
+ this.groups.set(localGroup.persistentId, localGroup);
13516
+ }
13517
+ documentationGroupUpdate(trx) {
13518
+ const { input } = trx;
13519
+ const existingGroup = this.groups.get(input.id);
13520
+ if (!existingGroup) {
13521
+ throw new Error(`Cannot update group: group id ${input.id} was not found`);
13522
+ }
13523
+ const localGroup = {
13524
+ ...existingGroup,
13525
+ userSlug: void 0,
13526
+ meta: {
13527
+ ...existingGroup.meta,
13528
+ name: _nullishCoalesce(input.title, () => ( existingGroup.meta.name))
13529
+ },
13530
+ data: {
13531
+ // TODO Artem: move somewhere reusable
13532
+ configuration: input.configuration ? {
13533
+ ..._nullishCoalesce(_optionalChain([existingGroup, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.configuration]), () => ( defaultDocumentationItemConfigurationV2)),
13534
+ ...input.configuration
13535
+ } : _optionalChain([existingGroup, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.configuration])
13536
+ }
13537
+ };
13538
+ this.groups.set(localGroup.persistentId, localGroup);
13539
+ }
13540
+ documentationGroupMove(trx) {
13541
+ const { input } = trx;
13542
+ if (!this.groups.has(input.parentPersistentId)) {
13543
+ throw new Error(`Cannot move group: group parent id ${input.parentPersistentId} was not found`);
13544
+ }
13545
+ const existingGroup = this.groups.get(input.id);
13546
+ if (!existingGroup) {
13547
+ throw new Error(`Cannot update group: group id ${input.id} was not found`);
13548
+ }
13549
+ const localGroup = {
13550
+ ...existingGroup,
13551
+ userSlug: void 0,
13552
+ sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
13553
+ parentPersistentId: input.parentPersistentId
13554
+ };
13555
+ this.groups.set(localGroup.persistentId, localGroup);
13556
+ }
13557
+ documentationGroupDelete(trx) {
13558
+ const { input } = trx;
13559
+ if (!this.groups.delete(trx.input.id)) {
13560
+ throw new Error(`Cannot delete group: group id ${input.id} was not found`);
13561
+ }
13562
+ }
13563
+ //
13564
+ // Utils
13565
+ //
13566
+ calculateSortOrder(parentPersistentId, afterPersistentId) {
13567
+ const sortOrderStep = Math.pow(2, 16);
13568
+ const neighbours = [
13569
+ ...Array.from(this.pages.values()).filter((p) => p.parentPersistentId === parentPersistentId),
13570
+ ...Array.from(this.groups.values()).filter((g) => g.parentPersistentId === parentPersistentId)
13571
+ ];
13572
+ if (!neighbours.length)
13573
+ return 0;
13574
+ neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
13575
+ if (afterPersistentId === null)
13576
+ return neighbours[0].sortOrder - sortOrderStep;
13577
+ if (!afterPersistentId)
13578
+ return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
13579
+ const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
13580
+ if (index < 0 || index === neighbours.length - 1) {
13581
+ return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
13582
+ }
13583
+ const left = neighbours[index].sortOrder;
13584
+ const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _90 => _90[index + 1], 'optionalAccess', _91 => _91.sortOrder]), () => ( left + sortOrderStep * 2));
13585
+ return (right + left) / 2;
12923
13586
  }
12924
13587
  };
12925
13588
 
12926
13589
  // src/sync/docs-structure-repo.ts
12927
- var DocsStructureRepo = class {
12928
- };
12929
13590
  var DocsStructureRepository = class {
12930
- constructor(yDoc, transactionExecutor) {
12931
- __publicField(this, "localState", new LocalStorage());
13591
+ constructor(config) {
13592
+ __publicField(this, "designSystemVersionId");
12932
13593
  __publicField(this, "yDoc");
12933
13594
  __publicField(this, "yObserver");
12934
- __publicField(this, "yState");
12935
- __publicField(this, "trxQueue");
13595
+ __publicField(this, "_yState");
13596
+ __publicField(this, "_currentHierarchy");
13597
+ __publicField(this, "_currentSettings");
13598
+ __publicField(this, "localActions", []);
13599
+ __publicField(this, "actionQueue");
12936
13600
  __publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
12937
- this.yDoc = yDoc;
12938
- this.yState = new VersionRoomBaseYDoc(this.yDoc).getState();
12939
- this.yObserver = yDoc.on("update", () => this.onYUpdate());
12940
- this.trxQueue = new TransactionQueue(transactionExecutor);
13601
+ __publicField(this, "settingsObservers", /* @__PURE__ */ new Set());
13602
+ __publicField(this, "initCallbacks", /* @__PURE__ */ new Set());
13603
+ __publicField(this, "transactionIdGenerator");
13604
+ this.designSystemVersionId = config.designSystemVersionId;
13605
+ this.yDoc = config.yDoc;
13606
+ this.yObserver = this.yDoc.on("update", () => this.onYUpdate());
13607
+ this.onYUpdate();
13608
+ this.actionQueue = new TransactionQueue(config.transactionExecutor);
13609
+ this.transactionIdGenerator = config.transactionIdGenerator;
12941
13610
  }
12942
13611
  //
12943
13612
  // Lifecycle
12944
13613
  //
13614
+ get isInitialized() {
13615
+ return !!this._currentHierarchy;
13616
+ }
13617
+ onInitialized() {
13618
+ if (this.isInitialized)
13619
+ return Promise.resolve();
13620
+ return new Promise((resolve) => {
13621
+ this.initCallbacks.add(resolve);
13622
+ });
13623
+ }
12945
13624
  addHierarchyObserver(observer) {
12946
13625
  this.hierarchyObservers.add(observer);
13626
+ if (this._currentHierarchy)
13627
+ observer(this._currentHierarchy);
12947
13628
  }
12948
13629
  removeHierarchyObserver(observer) {
12949
13630
  this.hierarchyObservers.delete(observer);
12950
13631
  }
13632
+ addSettingsObserver(observer) {
13633
+ this.settingsObservers.add(observer);
13634
+ if (this._currentSettings)
13635
+ observer(this._currentSettings);
13636
+ }
13637
+ removeSettingsObserver(observer) {
13638
+ this.settingsObservers.delete(observer);
13639
+ }
12951
13640
  dispose() {
12952
13641
  this.yDoc.off("update", this.yObserver);
12953
13642
  this.hierarchyObservers.clear();
12954
- this.trxQueue.clear();
13643
+ this.actionQueue.clear();
13644
+ }
13645
+ //
13646
+ // Accessors
13647
+ //
13648
+ get currentHierarchy() {
13649
+ const hierarchy = this._currentHierarchy;
13650
+ if (!hierarchy)
13651
+ throw new Error(`Hierarchy cannot be accessed while it's still loading`);
13652
+ return hierarchy;
12955
13653
  }
12956
13654
  //
12957
13655
  // Actions
12958
13656
  //
12959
- createPage(input) {
12960
- void this.createPage(input);
13657
+ executeAction(action) {
13658
+ void this.executeActionPromise(action);
12961
13659
  }
12962
- createPagePromise(input) {
12963
- this.localState.addPage({
12964
- createdAt: /* @__PURE__ */ new Date(),
12965
- parentPersistentId: input.parentPersistentId,
12966
- persistentId: input.persistentId,
12967
- shortPersistentId: generateShortPersistentId(),
12968
- slug: slugify(input.title),
12969
- meta: { name: input.title },
12970
- updatedAt: /* @__PURE__ */ new Date(),
12971
- data: { configuration: input.configuration },
12972
- sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
12973
- designSystemVersionId: ""
12974
- });
12975
- const promise = this.trxQueue.enqueue({
12976
- type: "DocumentationPageCreate",
12977
- input: {
12978
- persistentId: input.persistentId,
12979
- parentPersistentId: input.parentPersistentId,
12980
- title: input.title,
12981
- afterPersistentId: input.afterPersistentId,
12982
- configuration: input.configuration
12983
- }
13660
+ executeActionPromise(action) {
13661
+ const fullAction = { ...action, tId: this.transactionIdGenerator() };
13662
+ this.localActions.push(fullAction);
13663
+ this.refreshHierarchy();
13664
+ return this.actionQueue.enqueue(fullAction);
13665
+ }
13666
+ notifyPageContentUpdated(pagePersistentId, content, definitions) {
13667
+ const pageContentHash = generatePageContentHash(content, definitions);
13668
+ new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
13669
+ [pagePersistentId]: pageContentHash
12984
13670
  });
12985
- this.recalculateHierarchy();
12986
- return promise;
12987
13671
  }
12988
13672
  //
12989
13673
  // Reactions
12990
13674
  //
12991
- recalculateHierarchy() {
12992
- const hierarchy = computeDocsHierarchy({
12993
- approvals: this.yState.approvals,
12994
- groups: this.yState.groups,
12995
- groupSnapshots: this.yState.groupSnapshots,
12996
- pageContentHashes: this.yState.pageContentHashes,
12997
- pages: [...this.yState.pages, ...this.localState.getAllPages()],
12998
- pageSnapshots: this.yState.pageSnapshots,
12999
- settings: this.yState.settings
13000
- });
13675
+ refreshState() {
13676
+ this.refreshHierarchy();
13677
+ this.refreshSettings();
13678
+ }
13679
+ refreshSettings() {
13680
+ const yState = this._yState;
13681
+ if (!yState)
13682
+ return;
13683
+ const newSettings = {
13684
+ isApprovalRequiredForPublishing: yState.settings.approvalRequiredForPublishing,
13685
+ isApprovalsFeatureEnabled: yState.settings.isApprovalFeatureEnabled,
13686
+ isDraftFeatureAdopted: yState.settings.isDraftFeatureAdopted
13687
+ };
13688
+ if (!this._currentSettings || newSettings.isApprovalRequiredForPublishing !== this._currentSettings.isApprovalRequiredForPublishing || newSettings.isApprovalsFeatureEnabled !== this._currentSettings.isApprovalsFeatureEnabled || newSettings.isDraftFeatureAdopted !== this._currentSettings.isDraftFeatureAdopted) {
13689
+ this._currentSettings = newSettings;
13690
+ this.settingsObservers.forEach((o) => o(newSettings));
13691
+ }
13692
+ }
13693
+ refreshHierarchy() {
13694
+ const yState = this._yState;
13695
+ if (!yState)
13696
+ return;
13697
+ const hierarchy = this.calculateHierarchy(yState);
13698
+ if (!hierarchy)
13699
+ return;
13700
+ this._currentHierarchy = hierarchy;
13001
13701
  this.hierarchyObservers.forEach((o) => o(hierarchy));
13002
13702
  }
13003
- onYUpdate() {
13004
- this.yState = new VersionRoomBaseYDoc(this.yDoc).getState();
13005
- this.recalculateHierarchy();
13703
+ calculateHierarchy(yState) {
13704
+ const executedTransactionIds = new Set(yState.executedTransactionIds);
13705
+ const localActions = this.localActions.filter((a) => a.tId && !executedTransactionIds.has(a.tId));
13706
+ this.localActions = localActions;
13707
+ const { pages, groups } = applyActionsLocally(this.designSystemVersionId, yState, localActions);
13708
+ const hierarchy = computeDocsHierarchy(
13709
+ {
13710
+ pages,
13711
+ groups,
13712
+ approvals: yState.approvals,
13713
+ groupSnapshots: yState.groupSnapshots,
13714
+ pageContentHashes: yState.pageContentHashes,
13715
+ pageSnapshots: yState.pageSnapshots,
13716
+ settings: yState.settings,
13717
+ pageLiveblockRoomIds: yState.pageLiveblockRoomIds
13718
+ },
13719
+ { includeDeletedContent: true }
13720
+ );
13721
+ return hierarchy;
13006
13722
  }
13007
- //
13008
- // Utils
13009
- //
13010
- calculateSortOrder(parentPersistentId, afterPersistentId) {
13011
- const sortOrderStep = Math.pow(2, 16);
13012
- const neighbours = [
13013
- ...this.yState.pages.filter((p) => p.parentPersistentId === parentPersistentId),
13014
- ...this.yState.groups.filter((g) => g.parentPersistentId === parentPersistentId)
13015
- ];
13016
- if (!neighbours.length)
13017
- return 0;
13018
- neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
13019
- if (!afterPersistentId)
13020
- return neighbours[0].sortOrder - sortOrderStep;
13021
- const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
13022
- if (index < 0 || index === neighbours.length - 1) {
13023
- return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
13723
+ onYUpdate() {
13724
+ const newState = new VersionRoomBaseYDoc(this.yDoc).getState();
13725
+ if (newState.groups.length) {
13726
+ this._yState = newState;
13727
+ this.refreshState();
13728
+ this.initCallbacks.forEach((f) => f());
13729
+ this.initCallbacks.clear();
13024
13730
  }
13025
- const left = neighbours[index].sortOrder;
13026
- const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _86 => _86[index + 1], 'optionalAccess', _87 => _87.sortOrder]), () => ( left + sortOrderStep * 2));
13027
- return (right + left) / 2;
13028
13731
  }
13029
13732
  };
13030
13733
  var TransactionQueue = class {
@@ -13439,5 +14142,31 @@ var TransactionQueue = class {
13439
14142
 
13440
14143
 
13441
14144
 
13442
- exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepo = DocsStructureRepo; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LocalStorage = LocalStorage; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
14145
+
14146
+
14147
+
14148
+
14149
+
14150
+
14151
+
14152
+
14153
+
14154
+
14155
+
14156
+
14157
+
14158
+
14159
+
14160
+
14161
+
14162
+
14163
+
14164
+
14165
+
14166
+
14167
+
14168
+
14169
+
14170
+
14171
+ exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionRoom = DTODesignSystemVersionRoom; exports.DTODesignSystemVersionRoomResponse = DTODesignSystemVersionRoomResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationSettings = DTODocumentationSettings; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetOutputV2 = DTOElementsGetOutputV2; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOEvent = DTOEvent; exports.DTOEventDataSourcesImported = DTOEventDataSourcesImported; exports.DTOEventFigmaNodesRendered = DTOEventFigmaNodesRendered; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResponseLegacy = DTOExportJobResponseLegacy; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionEnumOption = DTOExporterPropertyDefinitionEnumOption; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterResponse = DTOExporterResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeDataV2 = DTOFigmaNodeDataV2; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderAsyncActionInput = DTOFigmaNodeRenderAsyncActionInput; exports.DTOFigmaNodeRenderAsyncActionOutput = DTOFigmaNodeRenderAsyncActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderIdInput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderUrlInput; exports.DTOFigmaNodeRerenderInput = DTOFigmaNodeRerenderInput; exports.DTOFigmaNodeV2 = DTOFigmaNodeV2; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPageRedirect = DTOPageRedirect; exports.DTOPageRedirectCreateBody = DTOPageRedirectCreateBody; exports.DTOPageRedirectDeleteResponse = DTOPageRedirectDeleteResponse; exports.DTOPageRedirectListResponse = DTOPageRedirectListResponse; exports.DTOPageRedirectResponse = DTOPageRedirectResponse; exports.DTOPageRedirectUpdateBody = DTOPageRedirectUpdateBody; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserTheme = DTOUserTheme; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExporterJobsEndpoint = ExporterJobsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.ParsedFigmaFileURLError = ParsedFigmaFileURLError; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
13443
14172
  //# sourceMappingURL=index.js.map