@supernova-studio/client 1.0.7 → 1.2.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.js CHANGED
@@ -7281,7 +7281,7 @@ var DTOFrameNodeStructureListResponse = _zod.z.object({
7281
7281
 
7282
7282
  // src/api/dto/elements/properties/property-definitions.ts
7283
7283
 
7284
- var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
7284
+ var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
7285
7285
  var DTOElementPropertyDefinitionOption = _zod.z.object({
7286
7286
  id: _zod.z.string(),
7287
7287
  name: _zod.z.string(),
@@ -8849,7 +8849,7 @@ function computeDocsHierarchy(input, options = {}) {
8849
8849
  const includeDeletedContent = _nullishCoalesce(options.includeDeletedContent, () => ( false));
8850
8850
  const debug = _nullishCoalesce(options.debug, () => ( false));
8851
8851
  const { pages, groups, pageSnapshots, groupSnapshots, settings, pageContentHashes, approvals, pageLiveblockRoomIds } = input;
8852
- if (includeDeletedContent) {
8852
+ if (settings.isDraftFeatureAdopted && includeDeletedContent) {
8853
8853
  pages.push(...getDeletedPages(pages, pageSnapshots));
8854
8854
  groups.push(...getDeletedGroups(groups, groupSnapshots));
8855
8855
  }