@supernova-studio/client 1.0.0-alpha.19 → 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.d.mts +67 -66
- package/dist/index.d.ts +67 -66
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -97308,72 +97308,6 @@ declare const DTOEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
97308
97308
|
}>]>;
|
|
97309
97309
|
type DTOEvent = z.infer<typeof DTOEvent>;
|
|
97310
97310
|
|
|
97311
|
-
type HierarchyObserver = (hierarchy: DTODocumentationHierarchyV2) => void;
|
|
97312
|
-
type SettingsObserver = (settings: DTODocumentationSettings) => void;
|
|
97313
|
-
type TransactionExecutor = (trx: DTOElementActionInput) => Promise<void>;
|
|
97314
|
-
type TransactionIdGenerator = () => string;
|
|
97315
|
-
type Action = DTOElementActionInputOfType<SupportedActionType>;
|
|
97316
|
-
type InputAction = OmitStrict<Action, "tId">;
|
|
97317
|
-
declare class DocsStructureRepository {
|
|
97318
|
-
private designSystemVersionId;
|
|
97319
|
-
private readonly yDoc;
|
|
97320
|
-
private readonly yObserver;
|
|
97321
|
-
private _yState;
|
|
97322
|
-
private _currentHierarchy;
|
|
97323
|
-
private _currentSettings;
|
|
97324
|
-
private localActions;
|
|
97325
|
-
private readonly actionQueue;
|
|
97326
|
-
private readonly hierarchyObservers;
|
|
97327
|
-
private readonly settingsObservers;
|
|
97328
|
-
private readonly initCallbacks;
|
|
97329
|
-
private readonly transactionIdGenerator;
|
|
97330
|
-
constructor(config: {
|
|
97331
|
-
designSystemVersionId: string;
|
|
97332
|
-
yDoc: Y.Doc;
|
|
97333
|
-
transactionExecutor: TransactionExecutor;
|
|
97334
|
-
transactionIdGenerator: TransactionIdGenerator;
|
|
97335
|
-
});
|
|
97336
|
-
get isInitialized(): boolean;
|
|
97337
|
-
onInitialized(): Promise<void>;
|
|
97338
|
-
addHierarchyObserver(observer: HierarchyObserver): void;
|
|
97339
|
-
removeHierarchyObserver(observer: HierarchyObserver): void;
|
|
97340
|
-
addSettingsObserver(observer: SettingsObserver): void;
|
|
97341
|
-
removeSettingsObserver(observer: SettingsObserver): void;
|
|
97342
|
-
dispose(): void;
|
|
97343
|
-
get currentHierarchy(): DTODocumentationHierarchyV2;
|
|
97344
|
-
executeAction(action: InputAction): void;
|
|
97345
|
-
executeActionPromise(action: InputAction): Promise<void>;
|
|
97346
|
-
private refreshState;
|
|
97347
|
-
private refreshSettings;
|
|
97348
|
-
private refreshHierarchy;
|
|
97349
|
-
private calculateHierarchy;
|
|
97350
|
-
private onYUpdate;
|
|
97351
|
-
}
|
|
97352
|
-
|
|
97353
|
-
declare enum ParsedFigmaFileURLError {
|
|
97354
|
-
InvalidUrl = "InvalidUrl",
|
|
97355
|
-
InvalidFigmaFileId = "InvalidFigmaFileId"
|
|
97356
|
-
}
|
|
97357
|
-
type ParsedFigmaFileURL = {
|
|
97358
|
-
status: "Success";
|
|
97359
|
-
fileId: string;
|
|
97360
|
-
fileName: string | null;
|
|
97361
|
-
nodeId: string | null;
|
|
97362
|
-
nodeType: string | null;
|
|
97363
|
-
} | {
|
|
97364
|
-
status: "Error";
|
|
97365
|
-
error: ParsedFigmaFileURLError;
|
|
97366
|
-
};
|
|
97367
|
-
declare const FigmaUtils: {
|
|
97368
|
-
tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL;
|
|
97369
|
-
};
|
|
97370
|
-
|
|
97371
|
-
declare function generateHash(input: object | string, debug?: boolean): string;
|
|
97372
|
-
|
|
97373
|
-
type CompatibleValue = number | string | boolean | undefined;
|
|
97374
|
-
type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
|
|
97375
|
-
declare function serializeQuery(query: QueryObject): URLSearchParams;
|
|
97376
|
-
|
|
97377
97311
|
declare const PageBlockEditorModel: z.ZodObject<{
|
|
97378
97312
|
id: z.ZodString;
|
|
97379
97313
|
type: z.ZodLiteral<"Block">;
|
|
@@ -99264,4 +99198,71 @@ declare class FrontendVersionRoomYDoc {
|
|
|
99264
99198
|
|
|
99265
99199
|
declare function generatePageContentHash(content: DocumentationPageEditorModel, definitions: PageBlockDefinition[], debug?: boolean): string;
|
|
99266
99200
|
|
|
99201
|
+
type HierarchyObserver = (hierarchy: DTODocumentationHierarchyV2) => void;
|
|
99202
|
+
type SettingsObserver = (settings: DTODocumentationSettings) => void;
|
|
99203
|
+
type TransactionExecutor = (trx: DTOElementActionInput) => Promise<void>;
|
|
99204
|
+
type TransactionIdGenerator = () => string;
|
|
99205
|
+
type Action = DTOElementActionInputOfType<SupportedActionType>;
|
|
99206
|
+
type InputAction = OmitStrict<Action, "tId">;
|
|
99207
|
+
declare class DocsStructureRepository {
|
|
99208
|
+
private designSystemVersionId;
|
|
99209
|
+
private readonly yDoc;
|
|
99210
|
+
private readonly yObserver;
|
|
99211
|
+
private _yState;
|
|
99212
|
+
private _currentHierarchy;
|
|
99213
|
+
private _currentSettings;
|
|
99214
|
+
private localActions;
|
|
99215
|
+
private readonly actionQueue;
|
|
99216
|
+
private readonly hierarchyObservers;
|
|
99217
|
+
private readonly settingsObservers;
|
|
99218
|
+
private readonly initCallbacks;
|
|
99219
|
+
private readonly transactionIdGenerator;
|
|
99220
|
+
constructor(config: {
|
|
99221
|
+
designSystemVersionId: string;
|
|
99222
|
+
yDoc: Y.Doc;
|
|
99223
|
+
transactionExecutor: TransactionExecutor;
|
|
99224
|
+
transactionIdGenerator: TransactionIdGenerator;
|
|
99225
|
+
});
|
|
99226
|
+
get isInitialized(): boolean;
|
|
99227
|
+
onInitialized(): Promise<void>;
|
|
99228
|
+
addHierarchyObserver(observer: HierarchyObserver): void;
|
|
99229
|
+
removeHierarchyObserver(observer: HierarchyObserver): void;
|
|
99230
|
+
addSettingsObserver(observer: SettingsObserver): void;
|
|
99231
|
+
removeSettingsObserver(observer: SettingsObserver): void;
|
|
99232
|
+
dispose(): void;
|
|
99233
|
+
get currentHierarchy(): DTODocumentationHierarchyV2;
|
|
99234
|
+
executeAction(action: InputAction): void;
|
|
99235
|
+
executeActionPromise(action: InputAction): Promise<void>;
|
|
99236
|
+
notifyPageContentUpdated(pagePersistentId: string, content: DocumentationPageEditorModel, definitions: DTOPageBlockDefinition[]): void;
|
|
99237
|
+
private refreshState;
|
|
99238
|
+
private refreshSettings;
|
|
99239
|
+
private refreshHierarchy;
|
|
99240
|
+
private calculateHierarchy;
|
|
99241
|
+
private onYUpdate;
|
|
99242
|
+
}
|
|
99243
|
+
|
|
99244
|
+
declare enum ParsedFigmaFileURLError {
|
|
99245
|
+
InvalidUrl = "InvalidUrl",
|
|
99246
|
+
InvalidFigmaFileId = "InvalidFigmaFileId"
|
|
99247
|
+
}
|
|
99248
|
+
type ParsedFigmaFileURL = {
|
|
99249
|
+
status: "Success";
|
|
99250
|
+
fileId: string;
|
|
99251
|
+
fileName: string | null;
|
|
99252
|
+
nodeId: string | null;
|
|
99253
|
+
nodeType: string | null;
|
|
99254
|
+
} | {
|
|
99255
|
+
status: "Error";
|
|
99256
|
+
error: ParsedFigmaFileURLError;
|
|
99257
|
+
};
|
|
99258
|
+
declare const FigmaUtils: {
|
|
99259
|
+
tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL;
|
|
99260
|
+
};
|
|
99261
|
+
|
|
99262
|
+
declare function generateHash(input: object | string, debug?: boolean): string;
|
|
99263
|
+
|
|
99264
|
+
type CompatibleValue = number | string | boolean | undefined;
|
|
99265
|
+
type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
|
|
99266
|
+
declare function serializeQuery(query: QueryObject): URLSearchParams;
|
|
99267
|
+
|
|
99267
99268
|
export { BackendVersionRoomYDoc, BlockDefinitionUtils, BlockParsingUtils, BrandsEndpoint, CodegenEndpoint, Collection, DTOAppBootstrapDataQuery, DTOAppBootstrapDataResponse, DTOAssetRenderConfiguration, DTOAuthenticatedUser, DTOAuthenticatedUserProfile, DTOAuthenticatedUserResponse, DTOBffFigmaImportRequestBody, DTOBffImportRequestBody, DTOBffUploadImportRequestBody, DTOBrand, DTOBrandCreatePayload, DTOBrandCreateResponse, DTOBrandGetResponse, DTOBrandUpdatePayload, DTOBrandsListResponse, DTOColorTokenInlineData, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTOCreateVersionInput, DTODataSource, DTODataSourceFigma, DTODataSourceFigmaCloud, DTODataSourceFigmaCreatePayload, DTODataSourceFigmaImportPayload, DTODataSourceFigmaScope, DTODataSourceFigmaVariablesPlugin, DTODataSourceResponse, DTODataSourceTokenStudio, DTODataSourcesListResponse, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemComponent, DTODesignSystemComponentCreateInput, DTODesignSystemComponentListResponse, DTODesignSystemComponentResponse, DTODesignSystemContactsResponse, DTODesignSystemCreateInput, DTODesignSystemInvitation, DTODesignSystemMember, DTODesignSystemMemberListResponse, DTODesignSystemMembersUpdatePayload, DTODesignSystemMembersUpdateResponse, DTODesignSystemResponse, DTODesignSystemRole, DTODesignSystemUpdateAccessModeInput, DTODesignSystemUpdateInput, DTODesignSystemVersion, DTODesignSystemVersionCreationResponse, DTODesignSystemVersionGetResponse, DTODesignSystemVersionJobStatusResponse, DTODesignSystemVersionJobsResponse, DTODesignSystemVersionRoom, DTODesignSystemVersionRoomResponse, DTODesignSystemVersionStats, DTODesignSystemVersionStatsQuery, DTODesignSystemVersionsListResponse, DTODesignSystemsListResponse, DTODesignToken, DTODesignTokenCreatePayload, DTODesignTokenGroup, DTODesignTokenGroupCreatePayload, DTODesignTokenGroupListResponse, DTODesignTokenGroupResponse, DTODesignTokenListResponse, DTODesignTokenResponse, DTODiffCountBase, DTODocumentationDraftChangeType, DTODocumentationDraftState, DTODocumentationDraftStateCreated, DTODocumentationDraftStateDeleted, DTODocumentationDraftStateUpdated, DTODocumentationGroupApprovalState, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupRestoreActionInput, DTODocumentationGroupRestoreActionOutput, DTODocumentationGroupStructureV1, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV1, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationItemConfigurationV1, DTODocumentationItemConfigurationV2, DTODocumentationItemHeaderV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageAnchor, DTODocumentationPageApprovalState, DTODocumentationPageApprovalStateChangeActionInput, DTODocumentationPageApprovalStateChangeActionOutput, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageContent, DTODocumentationPageContentGetResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRestoreActionInput, DTODocumentationPageRestoreActionOutput, DTODocumentationPageRoom, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageRoomResponse, DTODocumentationPageSnapshot, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationPublishMetadata, DTODocumentationPublishTypeQueryParams, DTODocumentationSettings, DTODocumentationStructure, DTODocumentationStructureGroupItem, DTODocumentationStructureItem, DTODocumentationStructurePageItem, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODownloadAssetsRequest, DTODownloadAssetsResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, type DTOElementActionInputOfType, DTOElementActionOutput, DTOElementPropertyDefinition, DTOElementPropertyDefinitionCreatePayload, DTOElementPropertyDefinitionListResponse, DTOElementPropertyDefinitionOption, DTOElementPropertyDefinitionResponse, DTOElementPropertyDefinitionUpdatePayload, DTOElementPropertyValue, DTOElementPropertyValueListResponse, DTOElementPropertyValueResponse, DTOElementPropertyValueUpsertPaylod, DTOElementView, DTOElementViewBasePropertyColumn, DTOElementViewColumn, DTOElementViewColumnSharedAttributes, DTOElementViewPropertyDefinitionColumn, DTOElementViewThemeColumn, DTOElementViewsListResponse, DTOElementsGetOutput, DTOElementsGetOutputV2, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOEvent, DTOEventDataSourcesImported, DTOEventFigmaNodesRendered, DTOExportJob, DTOExportJobCreatedBy, DTOExportJobDesignSystemPreview, DTOExportJobDesignSystemVersionPreview, DTOExportJobDestinations, DTOExportJobResponse, DTOExportJobResponseLegacy, DTOExportJobResult, DTOExportJobsListFilter, DTOExporter, DTOExporterCreateInput, DTOExporterGitProviderEnum, DTOExporterListQuery, DTOExporterListResponse, DTOExporterMembership, DTOExporterMembershipRole, DTOExporterPropertyDefinition, DTOExporterPropertyDefinitionArray, DTOExporterPropertyDefinitionBoolean, DTOExporterPropertyDefinitionEnum, DTOExporterPropertyDefinitionEnumOption, DTOExporterPropertyDefinitionNumber, DTOExporterPropertyDefinitionObject, DTOExporterPropertyDefinitionString, DTOExporterPropertyDefinitionValue, DTOExporterPropertyDefinitionValueMap, DTOExporterPropertyDefinitionsResponse, DTOExporterPropertyType, DTOExporterResponse, DTOExporterSource, DTOExporterType, DTOExporterUpdateInput, DTOFigmaComponent, DTOFigmaComponentBooleanProperty, DTOFigmaComponentGroup, DTOFigmaComponentGroupListResponse, DTOFigmaComponentInstanceSwapProperty, DTOFigmaComponentListResponse, DTOFigmaComponentProperty, DTOFigmaComponentPropertyMap, DTOFigmaComponentTextProperty, DTOFigmaComponentVariantProperty, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeDataV2, DTOFigmaNodeOrigin, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderAsyncActionInput, DTOFigmaNodeRenderAsyncActionOutput, DTOFigmaNodeRenderFormat, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeRenderUrlInput, DTOFigmaNodeRerenderInput, DTOFigmaNodeV2, DTOFrameNodeStructure, DTOFrameNodeStructureListResponse, DTOGetBlockDefinitionsOutput, DTOGetDocumentationPageAnchorsResponse, DTOGitBranch, DTOGitOrganization, DTOGitProject, DTOGitRepository, DTOImportJob, DTOImportJobResponse, DTOIntegration, DTOIntegrationCredentials, DTOIntegrationOAuthGetResponse, DTOIntegrationPostResponse, DTOIntegrationsGetListResponse, DTOLiveblocksAuthRequest, DTOLiveblocksAuthResponse, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTONpmRegistryConfigConstants, DTOObjectMeta, DTOPageBlockColorV2, DTOPageBlockDefinition, DTOPageBlockDefinitionBehavior, DTOPageBlockDefinitionItem, DTOPageBlockDefinitionLayout, DTOPageBlockDefinitionProperty, DTOPageBlockDefinitionVariant, DTOPageBlockItemV2, DTOPageRedirect, DTOPageRedirectCreateBody, DTOPageRedirectDeleteResponse, DTOPageRedirectListResponse, DTOPageRedirectResponse, DTOPageRedirectUpdateBody, DTOPagination, DTOPipeline, DTOPipelineCreateBody, DTOPipelineListQuery, DTOPipelineListResponse, DTOPipelineResponse, DTOPipelineTriggerBody, DTOPipelineUpdateBody, type DTOPropertyDefinitionBase, DTOPublishDocumentationChanges, DTOPublishDocumentationRequest, DTOPublishDocumentationResponse, DTORenderedAssetFile, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOTheme, DTOThemeCreatePayload, DTOThemeListResponse, DTOThemeOverride, DTOThemeOverrideCreatePayload, DTOThemeResponse, DTOTokenCollection, DTOTokenCollectionsListReponse, DTOTransferOwnershipPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateUserNotificationSettingsPayload, DTOUpdateVersionInput, DTOUser, DTOUserGetResponse, DTOUserNotificationSettingsResponse, DTOUserOnboarding, DTOUserOnboardingDepartment, DTOUserOnboardingJobLevel, DTOUserProfile, DTOUserProfileUpdate, DTOUserProfileUpdatePayload, DTOUserProfileUpdateResponse, DTOUserSource, DTOUserTheme, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceCreateInput, DTOWorkspaceIntegrationGetGitObjectsInput, DTOWorkspaceIntegrationOauthInput, DTOWorkspaceIntegrationPATInput, DTOWorkspaceInvitationInput, DTOWorkspaceInvitationUpdateResponse, DTOWorkspaceInvitationsListInput, DTOWorkspaceInvitationsResponse, DTOWorkspaceInviteUpdate, DTOWorkspaceMember, DTOWorkspaceMembersListResponse, DTOWorkspaceProfile, DTOWorkspaceResponse, DTOWorkspaceRole, DesignSystemBffEndpoint, DesignSystemComponentEndpoint, DesignSystemContactsEndpoint, DesignSystemMembersEndpoint, DesignSystemSourcesEndpoint, DesignSystemVersionsEndpoint, DesignSystemsEndpoint, DimensionsVariableScopeType, DocsStructureRepository, DocumentationEndpoint, DocumentationHierarchySettings, DocumentationPageEditorModel, DocumentationPageV1DTO, ElementPropertyDefinitionsEndpoint, ElementPropertyValuesEndpoint, ElementsActionEndpoint, ElementsEndpoint, ExporterJobsEndpoint, ExportersEndpoint, FigmaComponentGroupsEndpoint, FigmaComponentsEndpoint, FigmaFrameStructuresEndpoint, FigmaUtils, FormattedCollections, FrontendVersionRoomYDoc, ImportJobsEndpoint, type ListItemNode, type ListNode, ListTreeBuilder, LiveblocksEndpoint, NpmRegistryInput, ObjectMeta, OverridesEndpoint, PageBlockEditorModel, PageSectionEditorModel, ParsedFigmaFileURLError, PipelinesEndpoint, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, RGB, RGBA, type RequestEexecutorServerErrorCode, RequestExecutor, type RequestExecutorConfig, RequestExecutorError, type RequestExecutorErrorType, type RequestExecutorJSONRequest, ResolvedVariableType, StringVariableScopeType, SupernovaApiClient, ThemesEndpoint, TokenCollectionsEndpoint, TokenGroupsEndpoint, TokensEndpoint, UsersEndpoint, Variable, VariableAlias, VariableMode, VariableValue, VariablesMapping, VersionRoomBaseYDoc, type VersionRoomBaseYDocState, type VersionRoomDocsPage, type VersionRoomDocsPageGroup, VersionSQSPayload, VersionStatsEndpoint, WorkspaceConfigurationPayload, WorkspaceInvitationsEndpoint, WorkspaceMembersEndpoint, WorkspacesEndpoint, applyPrivacyConfigurationToNestedItems, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, computeDocsHierarchy, documentationItemConfigurationToDTOV1, documentationItemConfigurationToDTOV2, documentationPageToDTOV2, documentationPagesFixedConfigurationToDTOV1, documentationPagesFixedConfigurationToDTOV2, documentationPagesToDTOV1, documentationPagesToDTOV2, elementGroupsToDocumentationGroupDTOV1, elementGroupsToDocumentationGroupDTOV2, elementGroupsToDocumentationGroupFixedConfigurationDTOV1, elementGroupsToDocumentationGroupFixedConfigurationDTOV2, elementGroupsToDocumentationGroupStructureDTOV1, generateHash, generatePageContentHash, getDtoDefaultItemConfigurationV1, getDtoDefaultItemConfigurationV2, getMockPageBlockDefinitions, gitBranchToDto, gitOrganizationToDto, gitProjectToDto, gitRepositoryToDto, innerEditorProsemirrorSchema, integrationCredentialToDto, integrationToDto, itemConfigurationToYjs, mainEditorProsemirrorSchema, pageToProsemirrorDoc, pageToYDoc, pageToYXmlFragment, pipelineToDto, prosemirrorDocToPage, prosemirrorDocToRichTextPropertyValue, prosemirrorNodeToSection, prosemirrorNodesToBlocks, richTextPropertyValueToProsemirror, serializeAsCustomBlock, serializeQuery, shallowProsemirrorNodeToBlock, validateDesignSystemVersion, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|
package/dist/index.d.ts
CHANGED
|
@@ -97308,72 +97308,6 @@ declare const DTOEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
97308
97308
|
}>]>;
|
|
97309
97309
|
type DTOEvent = z.infer<typeof DTOEvent>;
|
|
97310
97310
|
|
|
97311
|
-
type HierarchyObserver = (hierarchy: DTODocumentationHierarchyV2) => void;
|
|
97312
|
-
type SettingsObserver = (settings: DTODocumentationSettings) => void;
|
|
97313
|
-
type TransactionExecutor = (trx: DTOElementActionInput) => Promise<void>;
|
|
97314
|
-
type TransactionIdGenerator = () => string;
|
|
97315
|
-
type Action = DTOElementActionInputOfType<SupportedActionType>;
|
|
97316
|
-
type InputAction = OmitStrict<Action, "tId">;
|
|
97317
|
-
declare class DocsStructureRepository {
|
|
97318
|
-
private designSystemVersionId;
|
|
97319
|
-
private readonly yDoc;
|
|
97320
|
-
private readonly yObserver;
|
|
97321
|
-
private _yState;
|
|
97322
|
-
private _currentHierarchy;
|
|
97323
|
-
private _currentSettings;
|
|
97324
|
-
private localActions;
|
|
97325
|
-
private readonly actionQueue;
|
|
97326
|
-
private readonly hierarchyObservers;
|
|
97327
|
-
private readonly settingsObservers;
|
|
97328
|
-
private readonly initCallbacks;
|
|
97329
|
-
private readonly transactionIdGenerator;
|
|
97330
|
-
constructor(config: {
|
|
97331
|
-
designSystemVersionId: string;
|
|
97332
|
-
yDoc: Y.Doc;
|
|
97333
|
-
transactionExecutor: TransactionExecutor;
|
|
97334
|
-
transactionIdGenerator: TransactionIdGenerator;
|
|
97335
|
-
});
|
|
97336
|
-
get isInitialized(): boolean;
|
|
97337
|
-
onInitialized(): Promise<void>;
|
|
97338
|
-
addHierarchyObserver(observer: HierarchyObserver): void;
|
|
97339
|
-
removeHierarchyObserver(observer: HierarchyObserver): void;
|
|
97340
|
-
addSettingsObserver(observer: SettingsObserver): void;
|
|
97341
|
-
removeSettingsObserver(observer: SettingsObserver): void;
|
|
97342
|
-
dispose(): void;
|
|
97343
|
-
get currentHierarchy(): DTODocumentationHierarchyV2;
|
|
97344
|
-
executeAction(action: InputAction): void;
|
|
97345
|
-
executeActionPromise(action: InputAction): Promise<void>;
|
|
97346
|
-
private refreshState;
|
|
97347
|
-
private refreshSettings;
|
|
97348
|
-
private refreshHierarchy;
|
|
97349
|
-
private calculateHierarchy;
|
|
97350
|
-
private onYUpdate;
|
|
97351
|
-
}
|
|
97352
|
-
|
|
97353
|
-
declare enum ParsedFigmaFileURLError {
|
|
97354
|
-
InvalidUrl = "InvalidUrl",
|
|
97355
|
-
InvalidFigmaFileId = "InvalidFigmaFileId"
|
|
97356
|
-
}
|
|
97357
|
-
type ParsedFigmaFileURL = {
|
|
97358
|
-
status: "Success";
|
|
97359
|
-
fileId: string;
|
|
97360
|
-
fileName: string | null;
|
|
97361
|
-
nodeId: string | null;
|
|
97362
|
-
nodeType: string | null;
|
|
97363
|
-
} | {
|
|
97364
|
-
status: "Error";
|
|
97365
|
-
error: ParsedFigmaFileURLError;
|
|
97366
|
-
};
|
|
97367
|
-
declare const FigmaUtils: {
|
|
97368
|
-
tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL;
|
|
97369
|
-
};
|
|
97370
|
-
|
|
97371
|
-
declare function generateHash(input: object | string, debug?: boolean): string;
|
|
97372
|
-
|
|
97373
|
-
type CompatibleValue = number | string | boolean | undefined;
|
|
97374
|
-
type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
|
|
97375
|
-
declare function serializeQuery(query: QueryObject): URLSearchParams;
|
|
97376
|
-
|
|
97377
97311
|
declare const PageBlockEditorModel: z.ZodObject<{
|
|
97378
97312
|
id: z.ZodString;
|
|
97379
97313
|
type: z.ZodLiteral<"Block">;
|
|
@@ -99264,4 +99198,71 @@ declare class FrontendVersionRoomYDoc {
|
|
|
99264
99198
|
|
|
99265
99199
|
declare function generatePageContentHash(content: DocumentationPageEditorModel, definitions: PageBlockDefinition[], debug?: boolean): string;
|
|
99266
99200
|
|
|
99201
|
+
type HierarchyObserver = (hierarchy: DTODocumentationHierarchyV2) => void;
|
|
99202
|
+
type SettingsObserver = (settings: DTODocumentationSettings) => void;
|
|
99203
|
+
type TransactionExecutor = (trx: DTOElementActionInput) => Promise<void>;
|
|
99204
|
+
type TransactionIdGenerator = () => string;
|
|
99205
|
+
type Action = DTOElementActionInputOfType<SupportedActionType>;
|
|
99206
|
+
type InputAction = OmitStrict<Action, "tId">;
|
|
99207
|
+
declare class DocsStructureRepository {
|
|
99208
|
+
private designSystemVersionId;
|
|
99209
|
+
private readonly yDoc;
|
|
99210
|
+
private readonly yObserver;
|
|
99211
|
+
private _yState;
|
|
99212
|
+
private _currentHierarchy;
|
|
99213
|
+
private _currentSettings;
|
|
99214
|
+
private localActions;
|
|
99215
|
+
private readonly actionQueue;
|
|
99216
|
+
private readonly hierarchyObservers;
|
|
99217
|
+
private readonly settingsObservers;
|
|
99218
|
+
private readonly initCallbacks;
|
|
99219
|
+
private readonly transactionIdGenerator;
|
|
99220
|
+
constructor(config: {
|
|
99221
|
+
designSystemVersionId: string;
|
|
99222
|
+
yDoc: Y.Doc;
|
|
99223
|
+
transactionExecutor: TransactionExecutor;
|
|
99224
|
+
transactionIdGenerator: TransactionIdGenerator;
|
|
99225
|
+
});
|
|
99226
|
+
get isInitialized(): boolean;
|
|
99227
|
+
onInitialized(): Promise<void>;
|
|
99228
|
+
addHierarchyObserver(observer: HierarchyObserver): void;
|
|
99229
|
+
removeHierarchyObserver(observer: HierarchyObserver): void;
|
|
99230
|
+
addSettingsObserver(observer: SettingsObserver): void;
|
|
99231
|
+
removeSettingsObserver(observer: SettingsObserver): void;
|
|
99232
|
+
dispose(): void;
|
|
99233
|
+
get currentHierarchy(): DTODocumentationHierarchyV2;
|
|
99234
|
+
executeAction(action: InputAction): void;
|
|
99235
|
+
executeActionPromise(action: InputAction): Promise<void>;
|
|
99236
|
+
notifyPageContentUpdated(pagePersistentId: string, content: DocumentationPageEditorModel, definitions: DTOPageBlockDefinition[]): void;
|
|
99237
|
+
private refreshState;
|
|
99238
|
+
private refreshSettings;
|
|
99239
|
+
private refreshHierarchy;
|
|
99240
|
+
private calculateHierarchy;
|
|
99241
|
+
private onYUpdate;
|
|
99242
|
+
}
|
|
99243
|
+
|
|
99244
|
+
declare enum ParsedFigmaFileURLError {
|
|
99245
|
+
InvalidUrl = "InvalidUrl",
|
|
99246
|
+
InvalidFigmaFileId = "InvalidFigmaFileId"
|
|
99247
|
+
}
|
|
99248
|
+
type ParsedFigmaFileURL = {
|
|
99249
|
+
status: "Success";
|
|
99250
|
+
fileId: string;
|
|
99251
|
+
fileName: string | null;
|
|
99252
|
+
nodeId: string | null;
|
|
99253
|
+
nodeType: string | null;
|
|
99254
|
+
} | {
|
|
99255
|
+
status: "Error";
|
|
99256
|
+
error: ParsedFigmaFileURLError;
|
|
99257
|
+
};
|
|
99258
|
+
declare const FigmaUtils: {
|
|
99259
|
+
tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL;
|
|
99260
|
+
};
|
|
99261
|
+
|
|
99262
|
+
declare function generateHash(input: object | string, debug?: boolean): string;
|
|
99263
|
+
|
|
99264
|
+
type CompatibleValue = number | string | boolean | undefined;
|
|
99265
|
+
type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
|
|
99266
|
+
declare function serializeQuery(query: QueryObject): URLSearchParams;
|
|
99267
|
+
|
|
99267
99268
|
export { BackendVersionRoomYDoc, BlockDefinitionUtils, BlockParsingUtils, BrandsEndpoint, CodegenEndpoint, Collection, DTOAppBootstrapDataQuery, DTOAppBootstrapDataResponse, DTOAssetRenderConfiguration, DTOAuthenticatedUser, DTOAuthenticatedUserProfile, DTOAuthenticatedUserResponse, DTOBffFigmaImportRequestBody, DTOBffImportRequestBody, DTOBffUploadImportRequestBody, DTOBrand, DTOBrandCreatePayload, DTOBrandCreateResponse, DTOBrandGetResponse, DTOBrandUpdatePayload, DTOBrandsListResponse, DTOColorTokenInlineData, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTOCreateVersionInput, DTODataSource, DTODataSourceFigma, DTODataSourceFigmaCloud, DTODataSourceFigmaCreatePayload, DTODataSourceFigmaImportPayload, DTODataSourceFigmaScope, DTODataSourceFigmaVariablesPlugin, DTODataSourceResponse, DTODataSourceTokenStudio, DTODataSourcesListResponse, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemComponent, DTODesignSystemComponentCreateInput, DTODesignSystemComponentListResponse, DTODesignSystemComponentResponse, DTODesignSystemContactsResponse, DTODesignSystemCreateInput, DTODesignSystemInvitation, DTODesignSystemMember, DTODesignSystemMemberListResponse, DTODesignSystemMembersUpdatePayload, DTODesignSystemMembersUpdateResponse, DTODesignSystemResponse, DTODesignSystemRole, DTODesignSystemUpdateAccessModeInput, DTODesignSystemUpdateInput, DTODesignSystemVersion, DTODesignSystemVersionCreationResponse, DTODesignSystemVersionGetResponse, DTODesignSystemVersionJobStatusResponse, DTODesignSystemVersionJobsResponse, DTODesignSystemVersionRoom, DTODesignSystemVersionRoomResponse, DTODesignSystemVersionStats, DTODesignSystemVersionStatsQuery, DTODesignSystemVersionsListResponse, DTODesignSystemsListResponse, DTODesignToken, DTODesignTokenCreatePayload, DTODesignTokenGroup, DTODesignTokenGroupCreatePayload, DTODesignTokenGroupListResponse, DTODesignTokenGroupResponse, DTODesignTokenListResponse, DTODesignTokenResponse, DTODiffCountBase, DTODocumentationDraftChangeType, DTODocumentationDraftState, DTODocumentationDraftStateCreated, DTODocumentationDraftStateDeleted, DTODocumentationDraftStateUpdated, DTODocumentationGroupApprovalState, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupRestoreActionInput, DTODocumentationGroupRestoreActionOutput, DTODocumentationGroupStructureV1, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV1, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationItemConfigurationV1, DTODocumentationItemConfigurationV2, DTODocumentationItemHeaderV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageAnchor, DTODocumentationPageApprovalState, DTODocumentationPageApprovalStateChangeActionInput, DTODocumentationPageApprovalStateChangeActionOutput, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageContent, DTODocumentationPageContentGetResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRestoreActionInput, DTODocumentationPageRestoreActionOutput, DTODocumentationPageRoom, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageRoomResponse, DTODocumentationPageSnapshot, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationPublishMetadata, DTODocumentationPublishTypeQueryParams, DTODocumentationSettings, DTODocumentationStructure, DTODocumentationStructureGroupItem, DTODocumentationStructureItem, DTODocumentationStructurePageItem, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODownloadAssetsRequest, DTODownloadAssetsResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, type DTOElementActionInputOfType, DTOElementActionOutput, DTOElementPropertyDefinition, DTOElementPropertyDefinitionCreatePayload, DTOElementPropertyDefinitionListResponse, DTOElementPropertyDefinitionOption, DTOElementPropertyDefinitionResponse, DTOElementPropertyDefinitionUpdatePayload, DTOElementPropertyValue, DTOElementPropertyValueListResponse, DTOElementPropertyValueResponse, DTOElementPropertyValueUpsertPaylod, DTOElementView, DTOElementViewBasePropertyColumn, DTOElementViewColumn, DTOElementViewColumnSharedAttributes, DTOElementViewPropertyDefinitionColumn, DTOElementViewThemeColumn, DTOElementViewsListResponse, DTOElementsGetOutput, DTOElementsGetOutputV2, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOEvent, DTOEventDataSourcesImported, DTOEventFigmaNodesRendered, DTOExportJob, DTOExportJobCreatedBy, DTOExportJobDesignSystemPreview, DTOExportJobDesignSystemVersionPreview, DTOExportJobDestinations, DTOExportJobResponse, DTOExportJobResponseLegacy, DTOExportJobResult, DTOExportJobsListFilter, DTOExporter, DTOExporterCreateInput, DTOExporterGitProviderEnum, DTOExporterListQuery, DTOExporterListResponse, DTOExporterMembership, DTOExporterMembershipRole, DTOExporterPropertyDefinition, DTOExporterPropertyDefinitionArray, DTOExporterPropertyDefinitionBoolean, DTOExporterPropertyDefinitionEnum, DTOExporterPropertyDefinitionEnumOption, DTOExporterPropertyDefinitionNumber, DTOExporterPropertyDefinitionObject, DTOExporterPropertyDefinitionString, DTOExporterPropertyDefinitionValue, DTOExporterPropertyDefinitionValueMap, DTOExporterPropertyDefinitionsResponse, DTOExporterPropertyType, DTOExporterResponse, DTOExporterSource, DTOExporterType, DTOExporterUpdateInput, DTOFigmaComponent, DTOFigmaComponentBooleanProperty, DTOFigmaComponentGroup, DTOFigmaComponentGroupListResponse, DTOFigmaComponentInstanceSwapProperty, DTOFigmaComponentListResponse, DTOFigmaComponentProperty, DTOFigmaComponentPropertyMap, DTOFigmaComponentTextProperty, DTOFigmaComponentVariantProperty, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeDataV2, DTOFigmaNodeOrigin, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderAsyncActionInput, DTOFigmaNodeRenderAsyncActionOutput, DTOFigmaNodeRenderFormat, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeRenderUrlInput, DTOFigmaNodeRerenderInput, DTOFigmaNodeV2, DTOFrameNodeStructure, DTOFrameNodeStructureListResponse, DTOGetBlockDefinitionsOutput, DTOGetDocumentationPageAnchorsResponse, DTOGitBranch, DTOGitOrganization, DTOGitProject, DTOGitRepository, DTOImportJob, DTOImportJobResponse, DTOIntegration, DTOIntegrationCredentials, DTOIntegrationOAuthGetResponse, DTOIntegrationPostResponse, DTOIntegrationsGetListResponse, DTOLiveblocksAuthRequest, DTOLiveblocksAuthResponse, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTONpmRegistryConfigConstants, DTOObjectMeta, DTOPageBlockColorV2, DTOPageBlockDefinition, DTOPageBlockDefinitionBehavior, DTOPageBlockDefinitionItem, DTOPageBlockDefinitionLayout, DTOPageBlockDefinitionProperty, DTOPageBlockDefinitionVariant, DTOPageBlockItemV2, DTOPageRedirect, DTOPageRedirectCreateBody, DTOPageRedirectDeleteResponse, DTOPageRedirectListResponse, DTOPageRedirectResponse, DTOPageRedirectUpdateBody, DTOPagination, DTOPipeline, DTOPipelineCreateBody, DTOPipelineListQuery, DTOPipelineListResponse, DTOPipelineResponse, DTOPipelineTriggerBody, DTOPipelineUpdateBody, type DTOPropertyDefinitionBase, DTOPublishDocumentationChanges, DTOPublishDocumentationRequest, DTOPublishDocumentationResponse, DTORenderedAssetFile, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOTheme, DTOThemeCreatePayload, DTOThemeListResponse, DTOThemeOverride, DTOThemeOverrideCreatePayload, DTOThemeResponse, DTOTokenCollection, DTOTokenCollectionsListReponse, DTOTransferOwnershipPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateUserNotificationSettingsPayload, DTOUpdateVersionInput, DTOUser, DTOUserGetResponse, DTOUserNotificationSettingsResponse, DTOUserOnboarding, DTOUserOnboardingDepartment, DTOUserOnboardingJobLevel, DTOUserProfile, DTOUserProfileUpdate, DTOUserProfileUpdatePayload, DTOUserProfileUpdateResponse, DTOUserSource, DTOUserTheme, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceCreateInput, DTOWorkspaceIntegrationGetGitObjectsInput, DTOWorkspaceIntegrationOauthInput, DTOWorkspaceIntegrationPATInput, DTOWorkspaceInvitationInput, DTOWorkspaceInvitationUpdateResponse, DTOWorkspaceInvitationsListInput, DTOWorkspaceInvitationsResponse, DTOWorkspaceInviteUpdate, DTOWorkspaceMember, DTOWorkspaceMembersListResponse, DTOWorkspaceProfile, DTOWorkspaceResponse, DTOWorkspaceRole, DesignSystemBffEndpoint, DesignSystemComponentEndpoint, DesignSystemContactsEndpoint, DesignSystemMembersEndpoint, DesignSystemSourcesEndpoint, DesignSystemVersionsEndpoint, DesignSystemsEndpoint, DimensionsVariableScopeType, DocsStructureRepository, DocumentationEndpoint, DocumentationHierarchySettings, DocumentationPageEditorModel, DocumentationPageV1DTO, ElementPropertyDefinitionsEndpoint, ElementPropertyValuesEndpoint, ElementsActionEndpoint, ElementsEndpoint, ExporterJobsEndpoint, ExportersEndpoint, FigmaComponentGroupsEndpoint, FigmaComponentsEndpoint, FigmaFrameStructuresEndpoint, FigmaUtils, FormattedCollections, FrontendVersionRoomYDoc, ImportJobsEndpoint, type ListItemNode, type ListNode, ListTreeBuilder, LiveblocksEndpoint, NpmRegistryInput, ObjectMeta, OverridesEndpoint, PageBlockEditorModel, PageSectionEditorModel, ParsedFigmaFileURLError, PipelinesEndpoint, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, RGB, RGBA, type RequestEexecutorServerErrorCode, RequestExecutor, type RequestExecutorConfig, RequestExecutorError, type RequestExecutorErrorType, type RequestExecutorJSONRequest, ResolvedVariableType, StringVariableScopeType, SupernovaApiClient, ThemesEndpoint, TokenCollectionsEndpoint, TokenGroupsEndpoint, TokensEndpoint, UsersEndpoint, Variable, VariableAlias, VariableMode, VariableValue, VariablesMapping, VersionRoomBaseYDoc, type VersionRoomBaseYDocState, type VersionRoomDocsPage, type VersionRoomDocsPageGroup, VersionSQSPayload, VersionStatsEndpoint, WorkspaceConfigurationPayload, WorkspaceInvitationsEndpoint, WorkspaceMembersEndpoint, WorkspacesEndpoint, applyPrivacyConfigurationToNestedItems, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, computeDocsHierarchy, documentationItemConfigurationToDTOV1, documentationItemConfigurationToDTOV2, documentationPageToDTOV2, documentationPagesFixedConfigurationToDTOV1, documentationPagesFixedConfigurationToDTOV2, documentationPagesToDTOV1, documentationPagesToDTOV2, elementGroupsToDocumentationGroupDTOV1, elementGroupsToDocumentationGroupDTOV2, elementGroupsToDocumentationGroupFixedConfigurationDTOV1, elementGroupsToDocumentationGroupFixedConfigurationDTOV2, elementGroupsToDocumentationGroupStructureDTOV1, generateHash, generatePageContentHash, getDtoDefaultItemConfigurationV1, getDtoDefaultItemConfigurationV2, getMockPageBlockDefinitions, gitBranchToDto, gitOrganizationToDto, gitProjectToDto, gitRepositoryToDto, innerEditorProsemirrorSchema, integrationCredentialToDto, integrationToDto, itemConfigurationToYjs, mainEditorProsemirrorSchema, pageToProsemirrorDoc, pageToYDoc, pageToYXmlFragment, pipelineToDto, prosemirrorDocToPage, prosemirrorDocToRichTextPropertyValue, prosemirrorNodeToSection, prosemirrorNodesToBlocks, richTextPropertyValueToProsemirror, serializeAsCustomBlock, serializeQuery, shallowProsemirrorNodeToBlock, validateDesignSystemVersion, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|
package/dist/index.js
CHANGED
|
@@ -13663,6 +13663,12 @@ var DocsStructureRepository = class {
|
|
|
13663
13663
|
this.refreshHierarchy();
|
|
13664
13664
|
return this.actionQueue.enqueue(fullAction);
|
|
13665
13665
|
}
|
|
13666
|
+
notifyPageContentUpdated(pagePersistentId, content, definitions) {
|
|
13667
|
+
const pageContentHash = generatePageContentHash(content, definitions);
|
|
13668
|
+
new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
|
|
13669
|
+
[pagePersistentId]: pageContentHash
|
|
13670
|
+
});
|
|
13671
|
+
}
|
|
13666
13672
|
//
|
|
13667
13673
|
// Reactions
|
|
13668
13674
|
//
|