@supernova-studio/client 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/documentation-v2.ts +7 -7
- package/src/api/responses/elements/elements-transaction-v2.ts +3 -3
- package/src/design-system-content/documentation-hierarchy.ts +6 -6
package/dist/index.mjs
CHANGED
|
@@ -2720,7 +2720,7 @@ var DocumentationGroupDTO = DocumentationGroupStructureDTO.extend({
|
|
|
2720
2720
|
});
|
|
2721
2721
|
|
|
2722
2722
|
// src/api/dto/documentation-v2.ts
|
|
2723
|
-
var
|
|
2723
|
+
var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
|
|
2724
2724
|
data: true,
|
|
2725
2725
|
meta: true,
|
|
2726
2726
|
parentPersistentId: true,
|
|
@@ -2729,9 +2729,9 @@ var DocumentationPageStructureV2DTO = DocumentationPageV2.omit({
|
|
|
2729
2729
|
title: z128.string(),
|
|
2730
2730
|
path: z128.string()
|
|
2731
2731
|
});
|
|
2732
|
-
var
|
|
2733
|
-
var
|
|
2734
|
-
pages: z128.array(
|
|
2732
|
+
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend(DocumentationPageV2.shape.data.shape);
|
|
2733
|
+
var DTODocumentationHierarchyV2 = z128.object({
|
|
2734
|
+
pages: z128.array(DTODocumentationPageStructureV2),
|
|
2735
2735
|
groups: z128.array(DocumentationGroupStructureDTO)
|
|
2736
2736
|
});
|
|
2737
2737
|
|
|
@@ -2804,7 +2804,7 @@ function yjsToDocumentationHierarchy(doc) {
|
|
|
2804
2804
|
const groupsMap = getGroupsYMap(doc);
|
|
2805
2805
|
const pages = [];
|
|
2806
2806
|
pagesMap.forEach((page) => {
|
|
2807
|
-
pages.push(
|
|
2807
|
+
pages.push(DTODocumentationPageStructureV2.parse(page));
|
|
2808
2808
|
});
|
|
2809
2809
|
const groups = [];
|
|
2810
2810
|
groupsMap.forEach((group) => {
|
|
@@ -6993,6 +6993,9 @@ export {
|
|
|
6993
6993
|
BlockDefinitionUtils,
|
|
6994
6994
|
BlockParsingUtils,
|
|
6995
6995
|
DTOCreateDocumentationPageInput,
|
|
6996
|
+
DTODocumentationHierarchyV2,
|
|
6997
|
+
DTODocumentationPageStructureV2,
|
|
6998
|
+
DTODocumentationPageV2,
|
|
6996
6999
|
DTODocumentationTransactionInput,
|
|
6997
7000
|
DTODuplicateDocumentationPageInput,
|
|
6998
7001
|
DTOElementsTransactionInput,
|
|
@@ -7000,11 +7003,8 @@ export {
|
|
|
7000
7003
|
DesignSystemDTO,
|
|
7001
7004
|
DocumentationGroupDTO,
|
|
7002
7005
|
DocumentationGroupStructureDTO,
|
|
7003
|
-
DocumentationHierarchyV2DTO,
|
|
7004
7006
|
DocumentationPageEditorModel,
|
|
7005
|
-
DocumentationPageStructureV2DTO,
|
|
7006
7007
|
DocumentationPageV1DTO,
|
|
7007
|
-
DocumentationPageV2DTO,
|
|
7008
7008
|
GetBlockDefinitionsResponse,
|
|
7009
7009
|
PageBlockEditorModel,
|
|
7010
7010
|
PostLiveblocksAuth,
|