@supernova-studio/client 0.47.31 → 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.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- 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/dist/index.js
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(_optionalChain([group, 'access', _28 => _28.data, 'optionalAccess', _29 => _29.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
|