@powerhousedao/shared 6.0.0-dev.170 → 6.0.0-dev.172

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.
@@ -3224,6 +3224,7 @@ const documentModelStateReducer = (state, action) => {
3224
3224
  const documentModelReducer = createReducer(documentModelStateReducer);
3225
3225
  //#endregion
3226
3226
  //#region document-model/files.ts
3227
+ const NON_DOMAIN_SCOPES = new Set(["auth", "document"]);
3227
3228
  function createZip(document) {
3228
3229
  const zip = new JSZip();
3229
3230
  const header = document.header;
@@ -3283,7 +3284,10 @@ async function loadFromZip(zip, reducer, options) {
3283
3284
  const errorMessages = operationsError.map((err) => err.message);
3284
3285
  throw new Error(errorMessages.join("\n"));
3285
3286
  }
3286
- return replayDocument(initialState, clearedOperations, reducer, header, void 0, {}, options);
3287
+ return {
3288
+ ...replayDocument(initialState, Object.fromEntries(Object.entries(clearedOperations).filter(([scope]) => !NON_DOMAIN_SCOPES.has(scope))), reducer, header, void 0, {}, options),
3289
+ operations: clearedOperations
3290
+ };
3287
3291
  }
3288
3292
  async function baseLoadFromInput(input, reducer, options) {
3289
3293
  const zip = new JSZip();