@supernova-studio/client 0.47.30 → 0.47.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +190 -190
- package/dist/index.d.ts +190 -190
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +5 -1
- package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +5 -2
- package/src/api/dto/elements/documentation/group-v2.ts +1 -1
- package/src/api/dto/elements/documentation/page-v2.ts +1 -2
package/dist/index.mjs
CHANGED
|
@@ -4322,9 +4322,12 @@ function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages)
|
|
|
4322
4322
|
const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
|
|
4323
4323
|
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
4324
4324
|
return fixedGroups.map((group) => {
|
|
4325
|
+
const configuration = documentationItemConfigurationToDTOV1(group.data?.configuration);
|
|
4325
4326
|
return {
|
|
4326
4327
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
4327
|
-
|
|
4328
|
+
// backward compatibility with custom doc exporters, anyway these groups will not be shown, so we can adjust title
|
|
4329
|
+
title: configuration.isHidden && !group.meta.name.startsWith("_") ? "_" + group.meta.name : group.meta.name,
|
|
4330
|
+
configuration
|
|
4328
4331
|
};
|
|
4329
4332
|
});
|
|
4330
4333
|
}
|
|
@@ -4380,16 +4383,18 @@ function documentationPageToDTOV1(page, pagePathMap) {
|
|
|
4380
4383
|
throw SupernovaException.conflict(`Path for page ${page.id} was not calculated`);
|
|
4381
4384
|
if (path.startsWith("/"))
|
|
4382
4385
|
path = path.substring(1);
|
|
4386
|
+
const configuration = documentationItemConfigurationToDTOV1(page.data.configuration);
|
|
4383
4387
|
return {
|
|
4384
4388
|
id: page.id,
|
|
4385
4389
|
designSystemVersionId: page.designSystemVersionId,
|
|
4386
4390
|
persistentId: page.persistentId,
|
|
4387
4391
|
shortPersistentId: page.shortPersistentId,
|
|
4388
|
-
|
|
4392
|
+
// backward compatibility with custom doc exporters, anyway these pages will not be shown, so we can adjust title
|
|
4393
|
+
title: configuration.isHidden && !page.meta.name.startsWith("_") ? "_" + page.meta.name : page.meta.name,
|
|
4389
4394
|
blocks: page.data.blocks,
|
|
4390
4395
|
slug: page.slug,
|
|
4391
4396
|
userSlug: page.userSlug,
|
|
4392
|
-
configuration
|
|
4397
|
+
configuration,
|
|
4393
4398
|
createdAt: page.createdAt,
|
|
4394
4399
|
updatedAt: page.updatedAt,
|
|
4395
4400
|
path
|
|
@@ -4899,7 +4904,7 @@ var DTOCreateDocumentationGroupInput = z173.object({
|
|
|
4899
4904
|
persistentId: z173.string().uuid(),
|
|
4900
4905
|
// Group properties
|
|
4901
4906
|
title: z173.string(),
|
|
4902
|
-
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4907
|
+
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
4903
4908
|
// Group placement properties
|
|
4904
4909
|
afterPersistentId: z173.string().uuid().nullish(),
|
|
4905
4910
|
parentPersistentId: z173.string().uuid()
|
|
@@ -5077,7 +5082,7 @@ var DTOCreateDocumentationPageInputV2 = z177.object({
|
|
|
5077
5082
|
persistentId: z177.string().uuid(),
|
|
5078
5083
|
// Page properties
|
|
5079
5084
|
title: z177.string(),
|
|
5080
|
-
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
5085
|
+
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5081
5086
|
// Page placement properties
|
|
5082
5087
|
parentPersistentId: z177.string().uuid(),
|
|
5083
5088
|
afterPersistentId: z177.string().uuid().nullish()
|