@supernova-studio/client 0.47.59 → 0.47.61

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.mjs CHANGED
@@ -5221,10 +5221,14 @@ var DTOPipeline = z189.object({
5221
5221
  // src/api/dto/documentation/publish.ts
5222
5222
  var DTOPublishDocumentationRequest = z190.object({
5223
5223
  environment: PublishedDocEnvironment,
5224
+ /**
5225
+ * If defined, this allows narrowing down what is published to a set of specific pages and groups
5226
+ * If undefined, everything will be published.
5227
+ */
5224
5228
  changes: z190.object({
5225
5229
  pagePersistentIds: z190.string().array(),
5226
5230
  groupPersistentIds: z190.string().array()
5227
- })
5231
+ }).optional()
5228
5232
  });
5229
5233
  var DTOPublishDocumentationResponse = z190.object({
5230
5234
  job: DTOExportJob
@@ -6013,9 +6017,15 @@ var VersionRoomBaseYDoc = class {
6013
6017
  }
6014
6018
  };
6015
6019
 
6020
+ // src/yjs/version-room/utils.ts
6021
+ function generatePageContentHash(content) {
6022
+ return generateHash(content);
6023
+ }
6024
+
6016
6025
  // src/yjs/version-room/frontend.ts
6017
6026
  var FrontendVersionRoomYDoc = class {
6018
- constructor(yDoc) {
6027
+ constructor(yDoc, debug = false) {
6028
+ this.debug = debug;
6019
6029
  __publicField(this, "yDoc");
6020
6030
  this.yDoc = yDoc;
6021
6031
  }
@@ -6168,7 +6178,12 @@ var FrontendVersionRoomYDoc = class {
6168
6178
  // Update page content hash
6169
6179
  //
6170
6180
  notifyDocumentationPageContentUpdated(pageId, content) {
6171
- const pageContentHash = generateHash(content);
6181
+ const pageContentHash = generatePageContentHash(content);
6182
+ if (this.debug) {
6183
+ console.log("Hashed:");
6184
+ console.log(JSON.stringify(content));
6185
+ console.log(`Will set page content hash: '${pageId}' : '${pageContentHash}'`);
6186
+ }
6172
6187
  new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
6173
6188
  [pageId]: pageContentHash
6174
6189
  });
@@ -10651,11 +10666,6 @@ var BackendVersionRoomYDoc = class {
10651
10666
  });
10652
10667
  }
10653
10668
  };
10654
-
10655
- // src/yjs/version-room/utils.ts
10656
- function generatePageContentHash(content) {
10657
- return generateHash(content);
10658
- }
10659
10669
  export {
10660
10670
  BackendVersionRoomYDoc,
10661
10671
  BlockDefinitionUtils,