document-model 1.0.15 → 1.0.17

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.
Files changed (57) hide show
  1. package/dist/browser/document/actions/creators.d.ts +1 -1
  2. package/dist/browser/document/actions/index.d.ts +8 -8
  3. package/dist/browser/document/object.d.ts +123 -99
  4. package/dist/browser/document/reducer.d.ts +1 -1
  5. package/dist/browser/document/schema/types.d.ts +5 -0
  6. package/dist/browser/document/schema/zod.d.ts +39 -0
  7. package/dist/browser/document/types.d.ts +41 -31
  8. package/dist/browser/document/utils/base.d.ts +6 -6
  9. package/dist/browser/document/utils/file.d.ts +2 -2
  10. package/dist/browser/document-model/gen/object.d.ts +1 -1
  11. package/dist/browser/document-model/gen/reducer.d.ts +1 -1
  12. package/dist/browser/document-model/gen/schema/types.d.ts +13 -3
  13. package/dist/browser/document-model/gen/schema/zod.d.ts +20 -1
  14. package/dist/browser/document-model/index.d.ts +9 -9
  15. package/dist/browser/document-model.cjs +1 -1
  16. package/dist/browser/document-model.js +2 -2
  17. package/dist/browser/document.cjs +1 -1
  18. package/dist/browser/document.js +2 -2
  19. package/dist/browser/index.cjs +1 -1
  20. package/dist/browser/index.js +3 -3
  21. package/dist/browser/internal/index-01030c3f.js +22 -0
  22. package/dist/{node/internal/index-c9d178be.js → browser/internal/index-2aee8ea9.js} +1 -1
  23. package/dist/browser/internal/{index-8142b58e.js → index-5f1909ad.js} +513 -435
  24. package/dist/{node/internal/index-0b0cb8c2.js → browser/internal/index-a1282d5c.js} +1 -1
  25. package/dist/browser/internal/object-24df9d92.js +6 -0
  26. package/dist/browser/internal/{object-4ec03a36.js → object-7e8eaff4.js} +777 -731
  27. package/dist/node/document/actions/creators.d.ts +1 -1
  28. package/dist/node/document/actions/index.d.ts +8 -8
  29. package/dist/node/document/object.d.ts +123 -99
  30. package/dist/node/document/reducer.d.ts +1 -1
  31. package/dist/node/document/schema/types.d.ts +5 -0
  32. package/dist/node/document/schema/zod.d.ts +39 -0
  33. package/dist/node/document/types.d.ts +41 -31
  34. package/dist/node/document/utils/base.d.ts +6 -6
  35. package/dist/node/document/utils/file.d.ts +2 -2
  36. package/dist/node/document-model/gen/object.d.ts +1 -1
  37. package/dist/node/document-model/gen/reducer.d.ts +1 -1
  38. package/dist/node/document-model/gen/schema/types.d.ts +13 -3
  39. package/dist/node/document-model/gen/schema/zod.d.ts +20 -1
  40. package/dist/node/document-model/index.d.ts +9 -9
  41. package/dist/node/document-model.cjs +1 -1
  42. package/dist/node/document-model.js +2 -2
  43. package/dist/node/document.cjs +1 -1
  44. package/dist/node/document.js +2 -2
  45. package/dist/node/index.cjs +1 -1
  46. package/dist/node/index.js +3 -3
  47. package/dist/node/internal/{index-0c87fbed.js → index-0db636da.js} +513 -435
  48. package/dist/{browser/internal/index-cb990484.js → node/internal/index-2d4783d9.js} +1 -1
  49. package/dist/{browser/internal/index-9f1cf811.js → node/internal/index-5ef0c6b0.js} +1 -1
  50. package/dist/node/internal/index-cddc9dfd.js +22 -0
  51. package/dist/node/internal/object-21f3d2ee.js +1 -0
  52. package/dist/node/internal/{object-89d9b82f.js → object-c32ea0a0.js} +400 -356
  53. package/package.json +3 -3
  54. package/dist/browser/internal/index-cbe39f72.js +0 -22
  55. package/dist/browser/internal/object-5f03095e.js +0 -6
  56. package/dist/node/internal/index-63db4708.js +0 -22
  57. package/dist/node/internal/object-397a9b23.js +0 -1
@@ -31,8 +31,8 @@ export declare const saveToFileHandle: (document: Document, input: FileSystemFil
31
31
  * @returns A promise that resolves to the document state after applying all the operations.
32
32
  * @throws An error if the initial state or the operations history is not found in the ZIP file.
33
33
  */
34
- export declare const loadFromFile: <S, A extends Action>(path: string, reducer: Reducer<S, A>) => Promise<Document<S, A>>;
35
- export declare const loadFromInput: <S, A extends Action>(input: FileInput, reducer: Reducer<S, A>) => Promise<Document<S, A>>;
34
+ export declare const loadFromFile: <S, A extends Action, L>(path: string, reducer: Reducer<S, A, L>) => Promise<Document<S, A, L>>;
35
+ export declare const loadFromInput: <S, A extends Action, L>(input: FileInput, reducer: Reducer<S, A, L>) => Promise<Document<S, A, L>>;
36
36
  /**
37
37
  * Fetches an attachment from a URL and returns its base64-encoded data and MIME type.
38
38
  * @param url - The URL of the attachment to fetch.
@@ -20,7 +20,7 @@ interface DocumentModel extends DocumentModel_Header, DocumentModel_Versioning,
20
20
  }
21
21
  declare class DocumentModel extends BaseDocument<DocumentModelState, DocumentModelAction> {
22
22
  static fileExtension: string;
23
- constructor(initialState?: Partial<ExtendedState<Partial<DocumentModelState>>>, dispatch?: SignalDispatch);
23
+ constructor(initialState?: Partial<ExtendedState<Partial<DocumentModelState>, unknown>>, dispatch?: SignalDispatch);
24
24
  saveToFile(path: string, name?: string): Promise<string>;
25
25
  loadFromFile(path: string): Promise<void>;
26
26
  static fromFile(path: string): Promise<DocumentModel>;
@@ -1,3 +1,3 @@
1
1
  import { DocumentModelState } from './schema';
2
2
  import { DocumentModelAction } from './actions';
3
- export declare const reducer: import("../../document/types").Reducer<DocumentModelState, DocumentModelAction>;
3
+ export declare const reducer: import("../../document/types").Reducer<DocumentModelState, DocumentModelAction, unknown>;
@@ -1,4 +1,4 @@
1
- import { OperationScope } from "../../../document";
1
+ import { OperationScope } from '../../../document';
2
2
  export type Maybe<T> = T | null;
3
3
  export type InputMaybe<T> = T | null | undefined;
4
4
  export type Exact<T extends {
@@ -78,6 +78,7 @@ export type AddOperationInput = {
78
78
  scope?: InputMaybe<OperationScope>;
79
79
  };
80
80
  export type AddStateExampleInput = {
81
+ scope: Scalars['String']['input'];
81
82
  example: Scalars['String']['input'];
82
83
  id: Scalars['ID']['input'];
83
84
  insertBefore?: InputMaybe<Scalars['ID']['input']>;
@@ -109,6 +110,7 @@ export type DeleteOperationInput = {
109
110
  id: Scalars['ID']['input'];
110
111
  };
111
112
  export type DeleteStateExampleInput = {
113
+ scope: Scalars['String']['input'];
112
114
  id: Scalars['ID']['input'];
113
115
  };
114
116
  export type DocumentModelInput = AddChangeLogItemInput | AddModuleInput | AddOperationErrorInput | AddOperationExampleInput | AddOperationInput | AddStateExampleInput | DeleteChangeLogItemInput | DeleteModuleInput | DeleteOperationErrorInput | DeleteOperationExampleInput | DeleteOperationInput | DeleteStateExampleInput | MoveOperationInput | ReorderChangeLogItemsInput | ReorderModuleOperationsInput | ReorderModulesInput | ReorderOperationErrorsInput | ReorderOperationExamplesInput | ReorderStateExamplesInput | SetAuthorNameInput | SetAuthorWebsiteInput | SetInitialStateInput | SetModelDescriptionInput | SetModelExtensionInput | SetModelIdInput | SetModelNameInput | SetModuleDescriptionInput | SetModuleNameInput | SetOperationDescriptionInput | SetOperationErrorCodeInput | SetOperationErrorDescriptionInput | SetOperationErrorNameInput | SetOperationErrorTemplateInput | SetOperationNameInput | SetOperationReducerInput | SetOperationSchemaInput | SetOperationTemplateInput | SetStateSchemaInput | UpdateChangeLogItemInput | UpdateOperationExampleInput | UpdateStateExampleInput;
@@ -121,12 +123,16 @@ export type DocumentModelState = {
121
123
  name: Scalars['String']['output'];
122
124
  specifications: Array<DocumentSpecification>;
123
125
  };
124
- export type DocumentModelMeta = unknown;
126
+ export type ScopeState = {
127
+ global: State;
128
+ local: State;
129
+ };
130
+ export type DocumentModelLocalState = Record<string, never>;
125
131
  export type DocumentSpecification = {
126
132
  __typename?: 'DocumentSpecification';
127
133
  changeLog: Array<Scalars['String']['output']>;
128
134
  modules: Array<Module>;
129
- state: State;
135
+ state: ScopeState;
130
136
  version: Scalars['Int']['output'];
131
137
  };
132
138
  export type Module = {
@@ -348,6 +354,7 @@ export type ReorderOperationExamplesInput = {
348
354
  order: Array<Scalars['ID']['input']>;
349
355
  };
350
356
  export type ReorderStateExamplesInput = {
357
+ scope: Scalars['String']['input'];
351
358
  order: Array<Scalars['ID']['input']>;
352
359
  };
353
360
  export type SetAuthorNameInput = {
@@ -357,6 +364,7 @@ export type SetAuthorWebsiteInput = {
357
364
  authorWebsite: Scalars['String']['input'];
358
365
  };
359
366
  export type SetInitialStateInput = {
367
+ scope: Scalars['String']['input'];
360
368
  initialValue: Scalars['String']['input'];
361
369
  };
362
370
  export type SetModelDescriptionInput = {
@@ -420,6 +428,7 @@ export type SetOperationTemplateInput = {
420
428
  template?: InputMaybe<Scalars['String']['input']>;
421
429
  };
422
430
  export type SetStateSchemaInput = {
431
+ scope: Scalars['String']['input'];
423
432
  schema: Scalars['String']['input'];
424
433
  };
425
434
  export type State = {
@@ -438,6 +447,7 @@ export type UpdateOperationExampleInput = {
438
447
  id: Scalars['ID']['input'];
439
448
  };
440
449
  export type UpdateStateExampleInput = {
450
+ scope: Scalars['String']['input'];
441
451
  id: Scalars['ID']['input'];
442
452
  newExample: Scalars['String']['input'];
443
453
  };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { AddChangeLogItemInput, AddModuleInput, AddOperationErrorInput, AddOperationExampleInput, AddOperationInput, AddStateExampleInput, Author, CodeExample, DeleteChangeLogItemInput, DeleteModuleInput, DeleteOperationErrorInput, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleInput, DocumentModelState, DocumentSpecification, Module, MoveOperationInput, Operation, OperationError, ReorderChangeLogItemsInput, ReorderModuleOperationsInput, ReorderModulesInput, ReorderOperationErrorsInput, ReorderOperationExamplesInput, ReorderStateExamplesInput, SetAuthorNameInput, SetAuthorWebsiteInput, SetInitialStateInput, SetModelDescriptionInput, SetModelExtensionInput, SetModelIdInput, SetModelNameInput, SetModuleDescriptionInput, SetModuleNameInput, SetOperationDescriptionInput, SetOperationErrorCodeInput, SetOperationErrorDescriptionInput, SetOperationErrorNameInput, SetOperationErrorTemplateInput, SetOperationNameInput, SetOperationReducerInput, SetOperationSchemaInput, SetOperationScopeInput, SetOperationTemplateInput, SetStateSchemaInput, State, UpdateChangeLogItemInput, UpdateOperationExampleInput, UpdateStateExampleInput } from '.';
2
+ import { AddChangeLogItemInput, AddModuleInput, AddOperationErrorInput, AddOperationExampleInput, AddOperationInput, AddStateExampleInput, Author, CodeExample, DeleteChangeLogItemInput, DeleteModuleInput, DeleteOperationErrorInput, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleInput, DocumentModelState, DocumentSpecification, Module, MoveOperationInput, Operation, OperationError, ReorderChangeLogItemsInput, ReorderModuleOperationsInput, ReorderModulesInput, ReorderOperationErrorsInput, ReorderOperationExamplesInput, ReorderStateExamplesInput, ScopeState, SetAuthorNameInput, SetAuthorWebsiteInput, SetInitialStateInput, SetModelDescriptionInput, SetModelExtensionInput, SetModelIdInput, SetModelNameInput, SetModuleDescriptionInput, SetModuleNameInput, SetOperationDescriptionInput, SetOperationErrorCodeInput, SetOperationErrorDescriptionInput, SetOperationErrorNameInput, SetOperationErrorTemplateInput, SetOperationNameInput, SetOperationReducerInput, SetOperationSchemaInput, SetOperationScopeInput, SetOperationTemplateInput, SetStateSchemaInput, State, UpdateChangeLogItemInput, UpdateOperationExampleInput, UpdateStateExampleInput } from '.';
3
3
  type Properties<T> = Required<{
4
4
  [K in keyof T]: z.ZodType<T[K], any, T[K]>;
5
5
  }>;
@@ -108,16 +108,19 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
108
108
  template?: import("./types").InputMaybe<string>;
109
109
  scope?: import("./types").InputMaybe<import("../../../document").OperationScope>;
110
110
  }>, z.ZodObject<Required<{
111
+ scope: z.ZodType<string, any, string>;
111
112
  example: z.ZodType<string, any, string>;
112
113
  id: z.ZodType<string, any, string>;
113
114
  insertBefore?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
114
115
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
115
116
  id: string;
116
117
  example: string;
118
+ scope: string;
117
119
  insertBefore?: import("./types").InputMaybe<string>;
118
120
  }, {
119
121
  id: string;
120
122
  example: string;
123
+ scope: string;
121
124
  insertBefore?: import("./types").InputMaybe<string>;
122
125
  }>, z.ZodObject<Required<{
123
126
  __typename?: z.ZodType<"DeleteChangeLogItemInput" | undefined, any, "DeleteChangeLogItemInput" | undefined> | undefined;
@@ -153,11 +156,14 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
153
156
  }, {
154
157
  id: string;
155
158
  }>, z.ZodObject<Required<{
159
+ scope: z.ZodType<string, any, string>;
156
160
  id: z.ZodType<string, any, string>;
157
161
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
158
162
  id: string;
163
+ scope: string;
159
164
  }, {
160
165
  id: string;
166
+ scope: string;
161
167
  }>, z.ZodObject<Required<{
162
168
  newModuleId: z.ZodType<string, any, string>;
163
169
  operationId: z.ZodType<string, any, string>;
@@ -210,10 +216,13 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
210
216
  operationId: string;
211
217
  order: string[];
212
218
  }>, z.ZodObject<Required<{
219
+ scope: z.ZodType<string, any, string>;
213
220
  order: z.ZodType<string[], any, string[]>;
214
221
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
222
+ scope: string;
215
223
  order: string[];
216
224
  }, {
225
+ scope: string;
217
226
  order: string[];
218
227
  }>, z.ZodObject<Required<{
219
228
  authorName: z.ZodType<string, any, string>;
@@ -228,10 +237,13 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
228
237
  }, {
229
238
  authorWebsite: string;
230
239
  }>, z.ZodObject<Required<{
240
+ scope: z.ZodType<string, any, string>;
231
241
  initialValue: z.ZodType<string, any, string>;
232
242
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
243
+ scope: string;
233
244
  initialValue: string;
234
245
  }, {
246
+ scope: string;
235
247
  initialValue: string;
236
248
  }>, z.ZodObject<Required<{
237
249
  description: z.ZodType<string, any, string>;
@@ -357,11 +369,14 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
357
369
  id: string;
358
370
  template?: import("./types").InputMaybe<string>;
359
371
  }>, z.ZodObject<Required<{
372
+ scope: z.ZodType<string, any, string>;
360
373
  schema: z.ZodType<string, any, string>;
361
374
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
362
375
  schema: string;
376
+ scope: string;
363
377
  }, {
364
378
  schema: string;
379
+ scope: string;
365
380
  }>, z.ZodObject<Required<{
366
381
  __typename?: z.ZodType<"UpdateChangeLogItemInput" | undefined, any, "UpdateChangeLogItemInput" | undefined> | undefined;
367
382
  id: z.ZodType<string, any, string>;
@@ -384,13 +399,16 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
384
399
  id: string;
385
400
  example: string;
386
401
  }>, z.ZodObject<Required<{
402
+ scope: z.ZodType<string, any, string>;
387
403
  id: z.ZodType<string, any, string>;
388
404
  newExample: z.ZodType<string, any, string>;
389
405
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
390
406
  id: string;
407
+ scope: string;
391
408
  newExample: string;
392
409
  }, {
393
410
  id: string;
411
+ scope: string;
394
412
  newExample: string;
395
413
  }>]>;
396
414
  export declare function DocumentModelStateSchema(): z.ZodObject<Properties<DocumentModelState>>;
@@ -426,6 +444,7 @@ export declare function SetOperationSchemaInputSchema(): z.ZodObject<Properties<
426
444
  export declare function SetOperationTemplateInputSchema(): z.ZodObject<Properties<SetOperationTemplateInput>>;
427
445
  export declare function SetStateSchemaInputSchema(): z.ZodObject<Properties<SetStateSchemaInput>>;
428
446
  export declare function StateSchema(): z.ZodObject<Properties<State>>;
447
+ export declare function ScopeStateSchema(): z.ZodObject<Properties<ScopeState>>;
429
448
  export declare function UpdateChangeLogItemInputSchema(): z.ZodObject<Properties<UpdateChangeLogItemInput>>;
430
449
  export declare function UpdateOperationExampleInputSchema(): z.ZodObject<Properties<UpdateOperationExampleInput>>;
431
450
  export declare function UpdateStateExampleInputSchema(): z.ZodObject<Properties<UpdateStateExampleInput>>;
@@ -10,13 +10,13 @@ import { DocumentModelAction, DocumentModelState } from './gen/types';
10
10
  declare const Document: typeof DocumentModel;
11
11
  declare const utils: {
12
12
  fileExtension: string;
13
- createState: (state?: Partial<DocumentModelState> | undefined) => DocumentModelState;
14
- createExtendedState: (extendedState?: Partial<import("../document").ExtendedState<Partial<DocumentModelState>>> | undefined, createState?: ((state?: Partial<DocumentModelState> | undefined) => DocumentModelState) | undefined) => import("../document").ExtendedState<DocumentModelState>;
15
- createDocument: (document?: Partial<import("../document").ExtendedState<Partial<DocumentModelState>>> | undefined, createState?: ((state?: Partial<DocumentModelState> | undefined) => DocumentModelState) | undefined) => import("../document").Document<DocumentModelState, DocumentModelAction>;
16
- loadFromFile: (path: string) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction>>;
17
- loadFromInput: (input: import("../document").FileInput) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction>>;
18
- saveToFile: (document: import("../document").Document<DocumentModelState, DocumentModelAction>, path: string, name?: string | undefined) => Promise<string>;
19
- saveToFileHandle: (document: import("../document").Document<DocumentModelState, DocumentModelAction>, input: FileSystemFileHandle) => Promise<void>;
13
+ createState: import("../document").CreateState<DocumentModelState, unknown>;
14
+ createExtendedState: (extendedState?: Partial<import("../document").ExtendedState<import("../document").PartialState<DocumentModelState>, unknown>> | undefined, createState?: import("../document").CreateState<DocumentModelState, unknown> | undefined) => import("../document").ExtendedState<DocumentModelState, unknown>;
15
+ createDocument: (document?: Partial<import("../document").ExtendedState<import("../document").PartialState<DocumentModelState>, unknown>> | undefined, createState?: import("../document").CreateState<DocumentModelState, unknown> | undefined) => import("../document").Document<DocumentModelState, DocumentModelAction, unknown>;
16
+ loadFromFile: (path: string) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction, unknown>>;
17
+ loadFromInput: (input: import("../document").FileInput) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction, unknown>>;
18
+ saveToFile: (document: import("../document").Document<DocumentModelState, DocumentModelAction, unknown>, path: string, name?: string | undefined) => Promise<string>;
19
+ saveToFileHandle: (document: import("../document").Document<DocumentModelState, DocumentModelAction, unknown>, input: FileSystemFileHandle) => Promise<void>;
20
20
  };
21
21
  declare const actions: {
22
22
  setModelName: (input: import("./gen").SetModelNameInput) => import("./gen").SetModelNameAction;
@@ -66,9 +66,9 @@ declare const actions: {
66
66
  undo: (count?: number) => import("../document").UndoAction;
67
67
  redo: (count?: number) => import("../document").RedoAction;
68
68
  prune: (start?: number | undefined, end?: number | undefined) => import("../document").PruneAction;
69
- loadState: (state: Pick<import("../document").ExtendedState, "name" | "state">, operations: number) => import("../document").LoadStateAction;
69
+ loadState: <S, T>(state: Pick<import("../document").ExtendedState<S, T>, "name" | "state">, operations: number) => import("../document").LoadStateAction;
70
70
  };
71
- export declare const module: _DocumentModel<DocumentModelState, DocumentModelAction, DocumentModel>;
71
+ export declare const module: _DocumentModel<DocumentModelState, DocumentModelAction, unknown, DocumentModel>;
72
72
  export * from './custom/utils';
73
73
  export * from './gen/types';
74
74
  export { DocumentModel, Document, reducer, actions, utils, documentModel };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./internal/object-397a9b23.js");require("json-stringify-deterministic");require("immer");require("crypto");require("fs");require("https");require("path");require("jszip");const e=require("./internal/index-63db4708.js");require("zod");exports.Document=e.Document;exports.DocumentModel=e.DocumentModel$1;exports.actions=e.actions;exports.documentModel=e.documentModel;exports.module=e.module;exports.reducer=e.reducer;exports.utils=e.utils;exports.z=e.zod;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./internal/object-21f3d2ee.js");require("json-stringify-deterministic");require("immer");require("crypto");require("fs");require("https");require("path");require("jszip");const e=require("./internal/index-cddc9dfd.js");require("zod");exports.Document=e.Document;exports.DocumentModel=e.DocumentModel$1;exports.actions=e.actions;exports.documentModel=e.documentModel;exports.module=e.module;exports.reducer=e.reducer;exports.utils=e.utils;exports.z=e.zod;
@@ -1,4 +1,4 @@
1
- import "./internal/object-89d9b82f.js";
1
+ import "./internal/object-c32ea0a0.js";
2
2
  import "json-stringify-deterministic";
3
3
  import "immer";
4
4
  import "crypto";
@@ -6,7 +6,7 @@ import "fs";
6
6
  import "https";
7
7
  import "path";
8
8
  import "jszip";
9
- import { b as d, a as l, c as n, d as D, m as M, r as b, u as f, z as x } from "./internal/index-0c87fbed.js";
9
+ import { b as d, a as l, c as n, d as D, m as M, r as b, u as f, z as x } from "./internal/index-0db636da.js";
10
10
  import "zod";
11
11
  export {
12
12
  d as Document,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./internal/object-397a9b23.js"),r=require("./internal/index-c9d178be.js");require("json-stringify-deterministic");require("immer");require("jszip");require("crypto");require("fs");require("https");require("path");require("zod");exports.BaseDocument=e.BaseDocument;exports.actions=e.BaseActions;exports.applyMixins=e.applyMixins;exports.baseReducer=e.baseReducer;exports.z=e.zod;exports.utils=r.index;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./internal/object-21f3d2ee.js"),r=require("./internal/index-2d4783d9.js");require("json-stringify-deterministic");require("immer");require("jszip");require("crypto");require("fs");require("https");require("path");require("zod");exports.BaseDocument=e.BaseDocument;exports.actions=e.BaseActions;exports.applyMixins=e.applyMixins;exports.baseReducer=e.baseReducer;exports.z=e.zod;exports.utils=r.index;
@@ -1,5 +1,5 @@
1
- import { B as n, h as u, g as x, p as f, z as l } from "./internal/object-89d9b82f.js";
2
- import { i as b } from "./internal/index-0b0cb8c2.js";
1
+ import { B as n, h as u, g as x, p as f, z as l } from "./internal/object-c32ea0a0.js";
2
+ import { i as b } from "./internal/index-5ef0c6b0.js";
3
3
  import "json-stringify-deterministic";
4
4
  import "immer";
5
5
  import "jszip";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./internal/index-c9d178be.js"),o=require("./internal/index-63db4708.js");require("./internal/object-397a9b23.js");require("json-stringify-deterministic");require("immer");require("jszip");require("crypto");require("fs");require("https");require("path");require("zod");const u={"powerhouse/document":e.Document,"powerhouse/document-model":o.DocumentModel},r={Document:e.Document,DocumentModel:o.DocumentModel};exports.Document=e.Document;exports.DocumentModel=o.DocumentModel;exports.DocumentModels=u;exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./internal/index-2d4783d9.js"),o=require("./internal/index-cddc9dfd.js");require("./internal/object-21f3d2ee.js");require("json-stringify-deterministic");require("immer");require("jszip");require("crypto");require("fs");require("https");require("path");require("zod");const u={"powerhouse/document":e.Document,"powerhouse/document-model":o.DocumentModel},r={Document:e.Document,DocumentModel:o.DocumentModel};exports.Document=e.Document;exports.DocumentModel=o.DocumentModel;exports.DocumentModels=u;exports.default=r;
@@ -1,6 +1,6 @@
1
- import { D as o } from "./internal/index-0b0cb8c2.js";
2
- import { D as t } from "./internal/index-0c87fbed.js";
3
- import "./internal/object-89d9b82f.js";
1
+ import { D as o } from "./internal/index-5ef0c6b0.js";
2
+ import { D as t } from "./internal/index-0db636da.js";
3
+ import "./internal/object-c32ea0a0.js";
4
4
  import "json-stringify-deterministic";
5
5
  import "immer";
6
6
  import "jszip";