document-model 1.0.9 → 1.0.10

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 (45) hide show
  1. package/dist/browser/document/types.d.ts +8 -0
  2. package/dist/browser/document/utils/base.d.ts +2 -2
  3. package/dist/browser/document-model/gen/operation/actions.d.ts +3 -2
  4. package/dist/browser/document-model/gen/operation/creators.d.ts +3 -2
  5. package/dist/browser/document-model/gen/operation/object.d.ts +2 -1
  6. package/dist/browser/document-model/gen/operation/operations.d.ts +2 -1
  7. package/dist/browser/document-model/gen/schema/types.d.ts +8 -0
  8. package/dist/browser/document-model/gen/schema/zod.d.ts +5 -1
  9. package/dist/browser/document-model/index.d.ts +1 -0
  10. package/dist/browser/document-model.cjs +1 -1
  11. package/dist/browser/document-model.js +2 -2
  12. package/dist/browser/document.cjs +1 -1
  13. package/dist/browser/document.js +2 -2
  14. package/dist/browser/index.cjs +1 -1
  15. package/dist/browser/index.js +3 -3
  16. package/dist/browser/internal/index-05592a17.js +22 -0
  17. package/dist/{node/internal/index-5b0ca13a.js → browser/internal/index-5dee4170.js} +1 -1
  18. package/dist/{node/internal/index-6a7277fe.js → browser/internal/index-a61bcd7c.js} +1 -1
  19. package/dist/browser/internal/{index-48f140bc.js → index-ea1557d4.js} +441 -373
  20. package/dist/browser/internal/{object-98a2cff6.js → object-35506f2f.js} +3 -3
  21. package/dist/browser/internal/{object-ceb8f869.js → object-70e4dae8.js} +1 -1
  22. package/dist/node/document/types.d.ts +8 -0
  23. package/dist/node/document/utils/base.d.ts +2 -2
  24. package/dist/node/document-model/gen/operation/actions.d.ts +3 -2
  25. package/dist/node/document-model/gen/operation/creators.d.ts +3 -2
  26. package/dist/node/document-model/gen/operation/object.d.ts +2 -1
  27. package/dist/node/document-model/gen/operation/operations.d.ts +2 -1
  28. package/dist/node/document-model/gen/schema/types.d.ts +8 -0
  29. package/dist/node/document-model/gen/schema/zod.d.ts +5 -1
  30. package/dist/node/document-model/index.d.ts +1 -0
  31. package/dist/node/document-model.cjs +1 -1
  32. package/dist/node/document-model.js +2 -2
  33. package/dist/node/document.cjs +1 -1
  34. package/dist/node/document.js +2 -2
  35. package/dist/node/index.cjs +1 -1
  36. package/dist/node/index.js +3 -3
  37. package/dist/node/internal/{index-dfaca09a.js → index-0b946b7d.js} +441 -373
  38. package/dist/{browser/internal/index-ff22a5bb.js → node/internal/index-14934709.js} +1 -1
  39. package/dist/{browser/internal/index-9922a4fc.js → node/internal/index-7056a501.js} +1 -1
  40. package/dist/node/internal/index-fbe65e32.js +22 -0
  41. package/dist/node/internal/{object-10abe15d.js → object-8ed23327.js} +1 -1
  42. package/dist/node/internal/{object-6f942fcb.js → object-e24dafec.js} +16 -16
  43. package/package.json +1 -1
  44. package/dist/browser/internal/index-7d7d05c8.js +0 -22
  45. package/dist/node/internal/index-2e487f63.js +0 -22
@@ -1,12 +1,12 @@
1
- var pt = Object.defineProperty;
2
- var lt = (t, e, i) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
- var pe = (t, e, i) => (lt(t, typeof e != "symbol" ? e + "" : e, i), i);
4
- import { c as dt, i as ct, a as ut, b as mt, s as Et, d as ht, l as Ot, e as St, f as s, B as l, g as gt, h as ft } from "./object-98a2cff6.js";
1
+ var dt = Object.defineProperty;
2
+ var ct = (t, e, n) => e in t ? dt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var pe = (t, e, n) => (ct(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ import { c as ut, i as mt, a as Et, b as ht, s as Ot, d as gt, l as St, e as ft, f as s, B as l, g as _t, h as It } from "./object-35506f2f.js";
5
5
  import "json-stringify-deterministic";
6
6
  import "immer";
7
7
  import "jszip";
8
8
  import { z as r } from "zod";
9
- const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
+ const Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
10
  __proto__: null
11
11
  }, Symbol.toStringTag, { value: "Module" })), le = {
12
12
  id: "powerhouse/document-model",
@@ -33,7 +33,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33
33
  template: "",
34
34
  reducer: "",
35
35
  examples: [],
36
- errors: []
36
+ errors: [],
37
+ scope: "global"
37
38
  },
38
39
  {
39
40
  name: "SetModelId",
@@ -43,7 +44,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43
44
  template: "",
44
45
  reducer: "",
45
46
  examples: [],
46
- errors: []
47
+ errors: [],
48
+ scope: "global"
47
49
  },
48
50
  {
49
51
  name: "SetModelExtension",
@@ -53,7 +55,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
53
55
  template: "",
54
56
  reducer: "",
55
57
  examples: [],
56
- errors: []
58
+ errors: [],
59
+ scope: "global"
57
60
  },
58
61
  {
59
62
  name: "SetModelDescription",
@@ -63,7 +66,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63
66
  template: "",
64
67
  reducer: "",
65
68
  examples: [],
66
- errors: []
69
+ errors: [],
70
+ scope: "global"
67
71
  },
68
72
  {
69
73
  name: "SetAuthorName",
@@ -73,7 +77,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
73
77
  template: "",
74
78
  reducer: "",
75
79
  examples: [],
76
- errors: []
80
+ errors: [],
81
+ scope: "global"
77
82
  },
78
83
  {
79
84
  name: "SetAuthorWebsite",
@@ -83,7 +88,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83
88
  template: "",
84
89
  reducer: "",
85
90
  examples: [],
86
- errors: []
91
+ errors: [],
92
+ scope: "global"
87
93
  }
88
94
  ],
89
95
  id: "",
@@ -100,7 +106,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
100
106
  template: "",
101
107
  reducer: "",
102
108
  examples: [],
103
- errors: []
109
+ errors: [],
110
+ scope: "global"
104
111
  },
105
112
  {
106
113
  name: "UpdateChangeLogItem",
@@ -110,7 +117,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
110
117
  template: "",
111
118
  reducer: "",
112
119
  examples: [],
113
- errors: []
120
+ errors: [],
121
+ scope: "global"
114
122
  },
115
123
  {
116
124
  name: "DeleteChangeLogItem",
@@ -120,7 +128,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120
128
  template: "",
121
129
  reducer: "",
122
130
  examples: [],
123
- errors: []
131
+ errors: [],
132
+ scope: "global"
124
133
  },
125
134
  {
126
135
  name: "ReorderChangeLogItems",
@@ -130,7 +139,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
130
139
  template: "",
131
140
  reducer: "",
132
141
  examples: [],
133
- errors: []
142
+ errors: [],
143
+ scope: "global"
134
144
  },
135
145
  {
136
146
  name: "ReleaseNewVersion",
@@ -140,7 +150,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
140
150
  template: "",
141
151
  reducer: "",
142
152
  examples: [],
143
- errors: []
153
+ errors: [],
154
+ scope: "global"
144
155
  }
145
156
  ],
146
157
  id: "",
@@ -157,7 +168,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
157
168
  template: "",
158
169
  reducer: "",
159
170
  examples: [],
160
- errors: []
171
+ errors: [],
172
+ scope: "global"
161
173
  },
162
174
  {
163
175
  name: "SetModuleName",
@@ -167,7 +179,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
167
179
  template: "",
168
180
  reducer: "",
169
181
  examples: [],
170
- errors: []
182
+ errors: [],
183
+ scope: "global"
171
184
  },
172
185
  {
173
186
  name: "SetModuleDescription",
@@ -177,7 +190,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
177
190
  template: "",
178
191
  reducer: "",
179
192
  examples: [],
180
- errors: []
193
+ errors: [],
194
+ scope: "global"
181
195
  },
182
196
  {
183
197
  name: "DeleteModule",
@@ -187,7 +201,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
187
201
  template: "",
188
202
  reducer: "",
189
203
  examples: [],
190
- errors: []
204
+ errors: [],
205
+ scope: "global"
191
206
  },
192
207
  {
193
208
  name: "ReorderModules",
@@ -197,7 +212,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
197
212
  template: "",
198
213
  reducer: "",
199
214
  examples: [],
200
- errors: []
215
+ errors: [],
216
+ scope: "global"
201
217
  }
202
218
  ],
203
219
  id: "",
@@ -214,7 +230,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
214
230
  template: "",
215
231
  reducer: "",
216
232
  examples: [],
217
- errors: []
233
+ errors: [],
234
+ scope: "global"
218
235
  },
219
236
  {
220
237
  name: "SetOperationErrorCode",
@@ -224,7 +241,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
224
241
  template: "",
225
242
  reducer: "",
226
243
  examples: [],
227
- errors: []
244
+ errors: [],
245
+ scope: "global"
228
246
  },
229
247
  {
230
248
  name: "SetOperationErrorName",
@@ -234,7 +252,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
234
252
  template: "",
235
253
  reducer: "",
236
254
  examples: [],
237
- errors: []
255
+ errors: [],
256
+ scope: "global"
238
257
  },
239
258
  {
240
259
  name: "SetOperationErrorDescription",
@@ -244,7 +263,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
244
263
  template: "",
245
264
  reducer: "",
246
265
  examples: [],
247
- errors: []
266
+ errors: [],
267
+ scope: "global"
248
268
  },
249
269
  {
250
270
  name: "SetOperationErrorTemplate",
@@ -254,7 +274,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
254
274
  template: "",
255
275
  reducer: "",
256
276
  examples: [],
257
- errors: []
277
+ errors: [],
278
+ scope: "global"
258
279
  },
259
280
  {
260
281
  name: "DeleteOperationError",
@@ -264,7 +285,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
264
285
  template: "",
265
286
  reducer: "",
266
287
  examples: [],
267
- errors: []
288
+ errors: [],
289
+ scope: "global"
268
290
  },
269
291
  {
270
292
  name: "ReorderOperationErrors",
@@ -274,7 +296,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
274
296
  template: "",
275
297
  reducer: "",
276
298
  examples: [],
277
- errors: []
299
+ errors: [],
300
+ scope: "global"
278
301
  }
279
302
  ],
280
303
  id: "",
@@ -291,7 +314,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
291
314
  template: "",
292
315
  reducer: "",
293
316
  examples: [],
294
- errors: []
317
+ errors: [],
318
+ scope: "global"
295
319
  },
296
320
  {
297
321
  name: "UpdateOperationExample",
@@ -301,7 +325,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
301
325
  template: "",
302
326
  reducer: "",
303
327
  examples: [],
304
- errors: []
328
+ errors: [],
329
+ scope: "global"
305
330
  },
306
331
  {
307
332
  name: "DeleteOperationExample",
@@ -311,7 +336,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
336
  template: "",
312
337
  reducer: "",
313
338
  examples: [],
314
- errors: []
339
+ errors: [],
340
+ scope: "global"
315
341
  },
316
342
  {
317
343
  name: "ReorderOperationExamples",
@@ -321,7 +347,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
321
347
  template: "",
322
348
  reducer: "",
323
349
  examples: [],
324
- errors: []
350
+ errors: [],
351
+ scope: "global"
325
352
  }
326
353
  ],
327
354
  id: "",
@@ -338,7 +365,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
338
365
  template: "",
339
366
  reducer: "",
340
367
  examples: [],
341
- errors: []
368
+ errors: [],
369
+ scope: "global"
342
370
  },
343
371
  {
344
372
  name: "SetOperationName",
@@ -348,7 +376,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
348
376
  template: "",
349
377
  reducer: "",
350
378
  examples: [],
351
- errors: []
379
+ errors: [],
380
+ scope: "global"
352
381
  },
353
382
  {
354
383
  name: "SetOperationSchema",
@@ -358,7 +387,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
358
387
  template: "",
359
388
  reducer: "",
360
389
  examples: [],
361
- errors: []
390
+ errors: [],
391
+ scope: "global"
362
392
  },
363
393
  {
364
394
  name: "SetOperationDescription",
@@ -368,7 +398,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
368
398
  template: "",
369
399
  reducer: "",
370
400
  examples: [],
371
- errors: []
401
+ errors: [],
402
+ scope: "global"
372
403
  },
373
404
  {
374
405
  name: "SetOperationTemplate",
@@ -378,7 +409,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
378
409
  template: "",
379
410
  reducer: "",
380
411
  examples: [],
381
- errors: []
412
+ errors: [],
413
+ scope: "global"
382
414
  },
383
415
  {
384
416
  name: "SetOperationReducer",
@@ -388,7 +420,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
388
420
  template: "",
389
421
  reducer: "",
390
422
  examples: [],
391
- errors: []
423
+ errors: [],
424
+ scope: "global"
392
425
  },
393
426
  {
394
427
  name: "MoveOperation",
@@ -398,7 +431,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
398
431
  template: "",
399
432
  reducer: "",
400
433
  examples: [],
401
- errors: []
434
+ errors: [],
435
+ scope: "global"
402
436
  },
403
437
  {
404
438
  name: "DeleteOperation",
@@ -408,7 +442,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
408
442
  template: "",
409
443
  reducer: "",
410
444
  examples: [],
411
- errors: []
445
+ errors: [],
446
+ scope: "global"
412
447
  },
413
448
  {
414
449
  name: "ReorderModuleOperations",
@@ -418,7 +453,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
418
453
  template: "",
419
454
  reducer: "",
420
455
  examples: [],
421
- errors: []
456
+ errors: [],
457
+ scope: "global"
422
458
  }
423
459
  ],
424
460
  id: "",
@@ -435,7 +471,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
435
471
  template: "",
436
472
  reducer: "",
437
473
  examples: [],
438
- errors: []
474
+ errors: [],
475
+ scope: "global"
439
476
  },
440
477
  {
441
478
  name: "SetInitialState",
@@ -445,7 +482,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
445
482
  template: "",
446
483
  reducer: "",
447
484
  examples: [],
448
- errors: []
485
+ errors: [],
486
+ scope: "global"
449
487
  },
450
488
  {
451
489
  name: "AddStateExample",
@@ -455,7 +493,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
455
493
  template: "",
456
494
  reducer: "",
457
495
  examples: [],
458
- errors: []
496
+ errors: [],
497
+ scope: "global"
459
498
  },
460
499
  {
461
500
  name: "UpdateStateExample",
@@ -465,7 +504,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
465
504
  template: "",
466
505
  reducer: "",
467
506
  examples: [],
468
- errors: []
507
+ errors: [],
508
+ scope: "global"
469
509
  },
470
510
  {
471
511
  name: "DeleteStateExample",
@@ -475,7 +515,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
475
515
  template: "",
476
516
  reducer: "",
477
517
  examples: [],
478
- errors: []
518
+ errors: [],
519
+ scope: "global"
479
520
  },
480
521
  {
481
522
  name: "ReorderStateExamples",
@@ -485,7 +526,8 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
485
526
  template: "",
486
527
  reducer: "",
487
528
  examples: [],
488
- errors: []
529
+ errors: [],
530
+ scope: "global"
489
531
  }
490
532
  ],
491
533
  id: "",
@@ -520,7 +562,7 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
520
562
  }
521
563
  }
522
564
  ]
523
- }, de = (t) => t != null, It = r.any().refine((t) => de(t));
565
+ }, de = (t) => t != null, bt = r.any().refine((t) => de(t));
524
566
  function f() {
525
567
  return r.object({
526
568
  __typename: r.literal("AddChangeLogItemInput").optional(),
@@ -553,7 +595,7 @@ function T() {
553
595
  operationId: r.string()
554
596
  });
555
597
  }
556
- function R() {
598
+ function b() {
557
599
  return r.object({
558
600
  description: r.string().nullish(),
559
601
  id: r.string(),
@@ -561,10 +603,11 @@ function R() {
561
603
  name: r.string(),
562
604
  reducer: r.string().nullish(),
563
605
  schema: r.string().nullish(),
564
- template: r.string().nullish()
606
+ template: r.string().nullish(),
607
+ scope: r.literal("local").or(r.literal("global")).nullish()
565
608
  });
566
609
  }
567
- function D() {
610
+ function R() {
568
611
  return r.object({
569
612
  example: r.string(),
570
613
  id: r.string(),
@@ -578,25 +621,25 @@ function ce() {
578
621
  website: r.string().nullable()
579
622
  });
580
623
  }
581
- function x() {
624
+ function A() {
582
625
  return r.object({
583
626
  __typename: r.literal("CodeExample").optional(),
584
627
  id: r.string(),
585
628
  value: r.string()
586
629
  });
587
630
  }
588
- function A() {
631
+ function D() {
589
632
  return r.object({
590
633
  __typename: r.literal("DeleteChangeLogItemInput").optional(),
591
634
  id: r.string()
592
635
  });
593
636
  }
594
- function M() {
637
+ function x() {
595
638
  return r.object({
596
639
  id: r.string()
597
640
  });
598
641
  }
599
- function b() {
642
+ function M() {
600
643
  return r.object({
601
644
  id: r.string()
602
645
  });
@@ -616,17 +659,17 @@ function P() {
616
659
  id: r.string()
617
660
  });
618
661
  }
619
- function Tt() {
662
+ function Rt() {
620
663
  return r.union([
621
664
  f(),
622
665
  _(),
623
666
  I(),
624
667
  T(),
668
+ b(),
625
669
  R(),
626
670
  D(),
627
- A(),
671
+ x(),
628
672
  M(),
629
- b(),
630
673
  N(),
631
674
  L(),
632
675
  P(),
@@ -655,13 +698,13 @@ function Tt() {
655
698
  ee(),
656
699
  te(),
657
700
  re(),
701
+ oe(),
658
702
  ne(),
659
703
  ie(),
660
- oe(),
661
704
  se()
662
705
  ]);
663
706
  }
664
- function Rt() {
707
+ function At() {
665
708
  return r.object({
666
709
  __typename: r.literal("DocumentModelState").optional(),
667
710
  author: ce(),
@@ -677,7 +720,7 @@ function ue() {
677
720
  __typename: r.literal("DocumentSpecification").optional(),
678
721
  changeLog: r.array(r.string()),
679
722
  modules: r.array(me()),
680
- state: Oe(),
723
+ state: ge(),
681
724
  version: r.number()
682
725
  });
683
726
  }
@@ -701,12 +744,13 @@ function Ee() {
701
744
  __typename: r.literal("Operation").optional(),
702
745
  description: r.string().nullable(),
703
746
  errors: r.array(he()),
704
- examples: r.array(x()),
747
+ examples: r.array(A()),
705
748
  id: r.string(),
706
749
  name: r.string().nullable(),
707
750
  reducer: r.string().nullable(),
708
751
  schema: r.string().nullable(),
709
- template: r.string().nullable()
752
+ template: r.string().nullable(),
753
+ scope: r.literal("local").or(r.literal("global"))
710
754
  });
711
755
  }
712
756
  function he() {
@@ -836,6 +880,12 @@ function Z() {
836
880
  name: r.string().nullish()
837
881
  });
838
882
  }
883
+ function Oe() {
884
+ return r.object({
885
+ id: r.string(),
886
+ scope: r.literal("global").or(r.literal("local"))
887
+ });
888
+ }
839
889
  function ee() {
840
890
  return r.object({
841
891
  id: r.string(),
@@ -854,27 +904,27 @@ function re() {
854
904
  template: r.string().nullish()
855
905
  });
856
906
  }
857
- function ne() {
907
+ function oe() {
858
908
  return r.object({
859
909
  schema: r.string()
860
910
  });
861
911
  }
862
- function Oe() {
912
+ function ge() {
863
913
  return r.object({
864
914
  __typename: r.literal("State").optional(),
865
- examples: r.array(x()),
915
+ examples: r.array(A()),
866
916
  initialValue: r.string(),
867
917
  schema: r.string()
868
918
  });
869
919
  }
870
- function ie() {
920
+ function ne() {
871
921
  return r.object({
872
922
  __typename: r.literal("UpdateChangeLogItemInput").optional(),
873
923
  id: r.string(),
874
924
  newContent: r.string()
875
925
  });
876
926
  }
877
- function oe() {
927
+ function ie() {
878
928
  return r.object({
879
929
  example: r.string(),
880
930
  id: r.string()
@@ -892,18 +942,18 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
892
942
  AddModuleInputSchema: _,
893
943
  AddOperationErrorInputSchema: I,
894
944
  AddOperationExampleInputSchema: T,
895
- AddOperationInputSchema: R,
896
- AddStateExampleInputSchema: D,
945
+ AddOperationInputSchema: b,
946
+ AddStateExampleInputSchema: R,
897
947
  AuthorSchema: ce,
898
- CodeExampleSchema: x,
899
- DeleteChangeLogItemInputSchema: A,
900
- DeleteModuleInputSchema: M,
901
- DeleteOperationErrorInputSchema: b,
948
+ CodeExampleSchema: A,
949
+ DeleteChangeLogItemInputSchema: D,
950
+ DeleteModuleInputSchema: x,
951
+ DeleteOperationErrorInputSchema: M,
902
952
  DeleteOperationExampleInputSchema: N,
903
953
  DeleteOperationInputSchema: L,
904
954
  DeleteStateExampleInputSchema: P,
905
- DocumentModelInputSchema: Tt,
906
- DocumentModelStateSchema: Rt,
955
+ DocumentModelInputSchema: Rt,
956
+ DocumentModelStateSchema: At,
907
957
  DocumentSpecificationSchema: ue,
908
958
  ModuleSchema: me,
909
959
  MoveOperationInputSchema: j,
@@ -932,13 +982,14 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
932
982
  SetOperationNameInputSchema: Z,
933
983
  SetOperationReducerInputSchema: ee,
934
984
  SetOperationSchemaInputSchema: te,
985
+ SetOperationScopeInputSchema: Oe,
935
986
  SetOperationTemplateInputSchema: re,
936
- SetStateSchemaInputSchema: ne,
937
- StateSchema: Oe,
938
- UpdateChangeLogItemInputSchema: ie,
939
- UpdateOperationExampleInputSchema: oe,
987
+ SetStateSchemaInputSchema: oe,
988
+ StateSchema: ge,
989
+ UpdateChangeLogItemInputSchema: ne,
990
+ UpdateOperationExampleInputSchema: ie,
940
991
  UpdateStateExampleInputSchema: se,
941
- definedNonNullAnySchema: It,
992
+ definedNonNullAnySchema: bt,
942
993
  isDefinedNonNullAny: de
943
994
  }, Symbol.toStringTag, { value: "Module" })), c = {
944
995
  setModelNameOperation(t, e) {
@@ -977,7 +1028,7 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
977
1028
  }
978
1029
  }, xt = (t) => {
979
1030
  const e = {};
980
- return t.forEach((i, n) => e[i] = n), (i, n) => (e[n.id] || 999999) - (e[i.id] || 999999);
1031
+ return t.forEach((n, o) => e[n] = o), (n, o) => (e[o.id] || 999999) - (e[n.id] || 999999);
981
1032
  }, h = {
982
1033
  addModuleOperation(t, e) {
983
1034
  t.specifications[t.specifications.length - 1].modules.push({
@@ -988,33 +1039,33 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
988
1039
  });
989
1040
  },
990
1041
  setModuleNameOperation(t, e) {
991
- const i = t.specifications[t.specifications.length - 1];
992
- for (let n = 0; n < i.modules.length; n++)
993
- i.modules[n].id === e.input.id && (i.modules[n].name = e.input.name || "");
1042
+ const n = t.specifications[t.specifications.length - 1];
1043
+ for (let o = 0; o < n.modules.length; o++)
1044
+ n.modules[o].id === e.input.id && (n.modules[o].name = e.input.name || "");
994
1045
  },
995
1046
  setModuleDescriptionOperation(t, e) {
996
- const i = t.specifications[t.specifications.length - 1];
997
- for (let n = 0; n < i.modules.length; n++)
998
- i.modules[n].id === e.input.id && (i.modules[n].description = e.input.description || "");
1047
+ const n = t.specifications[t.specifications.length - 1];
1048
+ for (let o = 0; o < n.modules.length; o++)
1049
+ n.modules[o].id === e.input.id && (n.modules[o].description = e.input.description || "");
999
1050
  },
1000
1051
  deleteModuleOperation(t, e) {
1001
- const i = t.specifications[t.specifications.length - 1];
1002
- i.modules = i.modules.filter(
1003
- (n) => n.id != e.input.id
1052
+ const n = t.specifications[t.specifications.length - 1];
1053
+ n.modules = n.modules.filter(
1054
+ (o) => o.id != e.input.id
1004
1055
  );
1005
1056
  },
1006
1057
  reorderModulesOperation(t, e) {
1007
1058
  t.specifications[t.specifications.length - 1].modules.sort(xt(e.input.order));
1008
1059
  }
1009
- }, At = (t) => {
1060
+ }, Mt = (t) => {
1010
1061
  const e = {};
1011
- return t.forEach((i, n) => e[i] = n), (i, n) => (e[n.id] || 999999) - (e[i.id] || 999999);
1062
+ return t.forEach((n, o) => e[n] = o), (n, o) => (e[o.id] || 999999) - (e[n.id] || 999999);
1012
1063
  }, d = {
1013
1064
  addOperationErrorOperation(t, e) {
1014
- const i = t.specifications[t.specifications.length - 1];
1015
- for (let n = 0; n < i.modules.length; n++)
1016
- for (let o = 0; o < i.modules[n].operations.length; o++)
1017
- i.modules[n].operations[o].id == e.input.operationId && i.modules[n].operations[o].errors.push({
1065
+ const n = t.specifications[t.specifications.length - 1];
1066
+ for (let o = 0; o < n.modules.length; o++)
1067
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1068
+ n.modules[o].operations[i].id == e.input.operationId && n.modules[o].operations[i].errors.push({
1018
1069
  id: e.input.id,
1019
1070
  name: e.input.errorName || "",
1020
1071
  code: e.input.errorCode || "",
@@ -1023,91 +1074,91 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1023
1074
  });
1024
1075
  },
1025
1076
  setOperationErrorCodeOperation(t, e) {
1026
- const i = t.specifications[t.specifications.length - 1];
1027
- for (let n = 0; n < i.modules.length; n++)
1028
- for (let o = 0; o < i.modules[n].operations.length; o++)
1029
- for (let a = 0; a < i.modules[n].operations[o].errors.length; a++)
1030
- i.modules[n].operations[o].errors[a].id == e.input.id && (i.modules[n].operations[o].errors[a].code = e.input.errorCode || "");
1077
+ const n = t.specifications[t.specifications.length - 1];
1078
+ for (let o = 0; o < n.modules.length; o++)
1079
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1080
+ for (let a = 0; a < n.modules[o].operations[i].errors.length; a++)
1081
+ n.modules[o].operations[i].errors[a].id == e.input.id && (n.modules[o].operations[i].errors[a].code = e.input.errorCode || "");
1031
1082
  },
1032
1083
  setOperationErrorNameOperation(t, e) {
1033
- const i = t.specifications[t.specifications.length - 1];
1034
- for (let n = 0; n < i.modules.length; n++)
1035
- for (let o = 0; o < i.modules[n].operations.length; o++)
1036
- for (let a = 0; a < i.modules[n].operations[o].errors.length; a++)
1037
- i.modules[n].operations[o].errors[a].id == e.input.id && (i.modules[n].operations[o].errors[a].name = e.input.errorName || "");
1084
+ const n = t.specifications[t.specifications.length - 1];
1085
+ for (let o = 0; o < n.modules.length; o++)
1086
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1087
+ for (let a = 0; a < n.modules[o].operations[i].errors.length; a++)
1088
+ n.modules[o].operations[i].errors[a].id == e.input.id && (n.modules[o].operations[i].errors[a].name = e.input.errorName || "");
1038
1089
  },
1039
1090
  setOperationErrorDescriptionOperation(t, e) {
1040
- const i = t.specifications[t.specifications.length - 1];
1041
- for (let n = 0; n < i.modules.length; n++)
1042
- for (let o = 0; o < i.modules[n].operations.length; o++)
1043
- for (let a = 0; a < i.modules[n].operations[o].errors.length; a++)
1044
- i.modules[n].operations[o].errors[a].id == e.input.id && (i.modules[n].operations[o].errors[a].description = e.input.errorDescription || "");
1091
+ const n = t.specifications[t.specifications.length - 1];
1092
+ for (let o = 0; o < n.modules.length; o++)
1093
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1094
+ for (let a = 0; a < n.modules[o].operations[i].errors.length; a++)
1095
+ n.modules[o].operations[i].errors[a].id == e.input.id && (n.modules[o].operations[i].errors[a].description = e.input.errorDescription || "");
1045
1096
  },
1046
1097
  setOperationErrorTemplateOperation(t, e) {
1047
- const i = t.specifications[t.specifications.length - 1];
1048
- for (let n = 0; n < i.modules.length; n++)
1049
- for (let o = 0; o < i.modules[n].operations.length; o++)
1050
- for (let a = 0; a < i.modules[n].operations[o].errors.length; a++)
1051
- i.modules[n].operations[o].errors[a].id == e.input.id && (i.modules[n].operations[o].errors[a].template = e.input.errorTemplate || "");
1098
+ const n = t.specifications[t.specifications.length - 1];
1099
+ for (let o = 0; o < n.modules.length; o++)
1100
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1101
+ for (let a = 0; a < n.modules[o].operations[i].errors.length; a++)
1102
+ n.modules[o].operations[i].errors[a].id == e.input.id && (n.modules[o].operations[i].errors[a].template = e.input.errorTemplate || "");
1052
1103
  },
1053
1104
  deleteOperationErrorOperation(t, e) {
1054
- const i = t.specifications[t.specifications.length - 1];
1055
- for (let n = 0; n < i.modules.length; n++)
1056
- for (let o = 0; o < i.modules[n].operations.length; o++)
1057
- i.modules[n].operations[o].errors = i.modules[n].operations[o].errors.filter((a) => a.id != e.input.id);
1105
+ const n = t.specifications[t.specifications.length - 1];
1106
+ for (let o = 0; o < n.modules.length; o++)
1107
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1108
+ n.modules[o].operations[i].errors = n.modules[o].operations[i].errors.filter((a) => a.id != e.input.id);
1058
1109
  },
1059
1110
  reorderOperationErrorsOperation(t, e) {
1060
- const i = t.specifications[t.specifications.length - 1];
1061
- for (let n = 0; n < i.modules.length; n++)
1062
- for (let o = 0; o < i.modules[n].operations.length; o++)
1063
- i.modules[n].operations[o].id == e.input.operationId && i.modules[n].operations[o].errors.sort(
1064
- At(e.input.order)
1111
+ const n = t.specifications[t.specifications.length - 1];
1112
+ for (let o = 0; o < n.modules.length; o++)
1113
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1114
+ n.modules[o].operations[i].id == e.input.operationId && n.modules[o].operations[i].errors.sort(
1115
+ Mt(e.input.order)
1065
1116
  );
1066
1117
  }
1067
- }, Mt = (t) => {
1118
+ }, Nt = (t) => {
1068
1119
  const e = {};
1069
- return t.forEach((i, n) => e[i] = n), (i, n) => (e[n.id] || 999999) - (e[i.id] || 999999);
1070
- }, g = {
1120
+ return t.forEach((n, o) => e[n] = o), (n, o) => (e[o.id] || 999999) - (e[n.id] || 999999);
1121
+ }, S = {
1071
1122
  addOperationExampleOperation(t, e) {
1072
- const i = t.specifications[t.specifications.length - 1];
1073
- for (let n = 0; n < i.modules.length; n++)
1074
- for (let o = 0; o < i.modules[n].operations.length; o++)
1075
- i.modules[n].operations[o].id == e.input.operationId && i.modules[n].operations[o].examples.push({
1123
+ const n = t.specifications[t.specifications.length - 1];
1124
+ for (let o = 0; o < n.modules.length; o++)
1125
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1126
+ n.modules[o].operations[i].id == e.input.operationId && n.modules[o].operations[i].examples.push({
1076
1127
  id: e.input.id,
1077
1128
  value: e.input.example
1078
1129
  });
1079
1130
  },
1080
1131
  updateOperationExampleOperation(t, e) {
1081
- const i = t.specifications[t.specifications.length - 1];
1082
- for (let n = 0; n < i.modules.length; n++)
1083
- for (let o = 0; o < i.modules[n].operations.length; o++)
1084
- for (let a = 0; a < i.modules[n].operations[o].examples.length; a++)
1085
- i.modules[n].operations[o].examples[a].id == e.input.id && (i.modules[n].operations[o].examples[a].value = e.input.example);
1132
+ const n = t.specifications[t.specifications.length - 1];
1133
+ for (let o = 0; o < n.modules.length; o++)
1134
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1135
+ for (let a = 0; a < n.modules[o].operations[i].examples.length; a++)
1136
+ n.modules[o].operations[i].examples[a].id == e.input.id && (n.modules[o].operations[i].examples[a].value = e.input.example);
1086
1137
  },
1087
1138
  deleteOperationExampleOperation(t, e) {
1088
- const i = t.specifications[t.specifications.length - 1];
1089
- for (let n = 0; n < i.modules.length; n++)
1090
- for (let o = 0; o < i.modules[n].operations.length; o++)
1091
- i.modules[n].operations[o].examples = i.modules[n].operations[o].examples.filter(
1139
+ const n = t.specifications[t.specifications.length - 1];
1140
+ for (let o = 0; o < n.modules.length; o++)
1141
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1142
+ n.modules[o].operations[i].examples = n.modules[o].operations[i].examples.filter(
1092
1143
  (a) => a.id != e.input.id
1093
1144
  );
1094
1145
  },
1095
1146
  reorderOperationExamplesOperation(t, e) {
1096
- const i = t.specifications[t.specifications.length - 1];
1097
- for (let n = 0; n < i.modules.length; n++)
1098
- for (let o = 0; o < i.modules[n].operations.length; o++)
1099
- i.modules[n].operations[o].id == e.input.operationId && i.modules[n].operations[o].examples.sort(
1100
- Mt(e.input.order)
1147
+ const n = t.specifications[t.specifications.length - 1];
1148
+ for (let o = 0; o < n.modules.length; o++)
1149
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1150
+ n.modules[o].operations[i].id == e.input.operationId && n.modules[o].operations[i].examples.sort(
1151
+ Nt(e.input.order)
1101
1152
  );
1102
1153
  }
1103
- }, bt = (t) => {
1154
+ }, Lt = (t) => {
1104
1155
  const e = {};
1105
- return t.forEach((i, n) => e[i] = n), (i, n) => (e[n.id] || 999999) - (e[i.id] || 999999);
1156
+ return t.forEach((n, o) => e[n] = o), (n, o) => (e[o.id] || 999999) - (e[n.id] || 999999);
1106
1157
  }, p = {
1107
1158
  addOperationOperation(t, e) {
1108
- const i = t.specifications[t.specifications.length - 1];
1109
- for (let n = 0; n < i.modules.length; n++)
1110
- i.modules[n].id == e.input.moduleId && i.modules[n].operations.push({
1159
+ const n = t.specifications[t.specifications.length - 1];
1160
+ for (let o = 0; o < n.modules.length; o++)
1161
+ n.modules[o].id == e.input.moduleId && n.modules[o].operations.push({
1111
1162
  id: e.input.id,
1112
1163
  name: e.input.name,
1113
1164
  description: e.input.description || "",
@@ -1115,69 +1166,76 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1115
1166
  template: e.input.template || e.input.description || "",
1116
1167
  reducer: e.input.reducer || "",
1117
1168
  errors: [],
1118
- examples: []
1169
+ examples: [],
1170
+ scope: e.input.scope || "global"
1119
1171
  });
1120
1172
  },
1121
1173
  setOperationNameOperation(t, e) {
1122
- const i = t.specifications[t.specifications.length - 1];
1123
- for (let n = 0; n < i.modules.length; n++)
1124
- for (let o = 0; o < i.modules[n].operations.length; o++)
1125
- i.modules[n].operations[o].id == e.input.id && (i.modules[n].operations[o].name = e.input.name || "");
1174
+ const n = t.specifications[t.specifications.length - 1];
1175
+ for (let o = 0; o < n.modules.length; o++)
1176
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1177
+ n.modules[o].operations[i].id == e.input.id && (n.modules[o].operations[i].name = e.input.name || "");
1178
+ },
1179
+ setOperationScopeOperation(t, e) {
1180
+ const n = t.specifications[t.specifications.length - 1];
1181
+ for (let o = 0; o < n.modules.length; o++)
1182
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1183
+ n.modules[o].operations[i].id == e.input.id && (n.modules[o].operations[i].scope = e.input.scope || "global");
1126
1184
  },
1127
1185
  setOperationSchemaOperation(t, e) {
1128
- const i = t.specifications[t.specifications.length - 1];
1129
- for (let n = 0; n < i.modules.length; n++)
1130
- for (let o = 0; o < i.modules[n].operations.length; o++)
1131
- i.modules[n].operations[o].id == e.input.id && (i.modules[n].operations[o].schema = e.input.schema || "");
1186
+ const n = t.specifications[t.specifications.length - 1];
1187
+ for (let o = 0; o < n.modules.length; o++)
1188
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1189
+ n.modules[o].operations[i].id == e.input.id && (n.modules[o].operations[i].schema = e.input.schema || "");
1132
1190
  },
1133
1191
  setOperationDescriptionOperation(t, e) {
1134
- const i = t.specifications[t.specifications.length - 1];
1135
- for (let n = 0; n < i.modules.length; n++)
1136
- for (let o = 0; o < i.modules[n].operations.length; o++)
1137
- i.modules[n].operations[o].id == e.input.id && (i.modules[n].operations[o].description = e.input.description || "");
1192
+ const n = t.specifications[t.specifications.length - 1];
1193
+ for (let o = 0; o < n.modules.length; o++)
1194
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1195
+ n.modules[o].operations[i].id == e.input.id && (n.modules[o].operations[i].description = e.input.description || "");
1138
1196
  },
1139
1197
  setOperationTemplateOperation(t, e) {
1140
- const i = t.specifications[t.specifications.length - 1];
1141
- for (let n = 0; n < i.modules.length; n++)
1142
- for (let o = 0; o < i.modules[n].operations.length; o++)
1143
- i.modules[n].operations[o].id == e.input.id && (i.modules[n].operations[o].template = e.input.template || "");
1198
+ const n = t.specifications[t.specifications.length - 1];
1199
+ for (let o = 0; o < n.modules.length; o++)
1200
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1201
+ n.modules[o].operations[i].id == e.input.id && (n.modules[o].operations[i].template = e.input.template || "");
1144
1202
  },
1145
1203
  setOperationReducerOperation(t, e) {
1146
- const i = t.specifications[t.specifications.length - 1];
1147
- for (let n = 0; n < i.modules.length; n++)
1148
- for (let o = 0; o < i.modules[n].operations.length; o++)
1149
- i.modules[n].operations[o].id == e.input.id && (i.modules[n].operations[o].reducer = e.input.reducer || "");
1204
+ const n = t.specifications[t.specifications.length - 1];
1205
+ for (let o = 0; o < n.modules.length; o++)
1206
+ for (let i = 0; i < n.modules[o].operations.length; i++)
1207
+ n.modules[o].operations[i].id == e.input.id && (n.modules[o].operations[i].reducer = e.input.reducer || "");
1150
1208
  },
1151
1209
  moveOperationOperation(t, e) {
1152
- const i = [], n = t.specifications[t.specifications.length - 1];
1153
- for (let o = 0; o < n.modules.length; o++)
1154
- n.modules[o].operations = n.modules[o].operations.filter((a) => a.id == e.input.operationId ? (i.push(a), !1) : !0);
1155
- for (let o = 0; o < n.modules.length; o++)
1156
- n.modules[o].id == e.input.newModuleId && n.modules[o].operations.push(...i);
1210
+ const n = [], o = t.specifications[t.specifications.length - 1];
1211
+ for (let i = 0; i < o.modules.length; i++)
1212
+ o.modules[i].operations = o.modules[i].operations.filter((a) => a.id == e.input.operationId ? (n.push(a), !1) : !0);
1213
+ for (let i = 0; i < o.modules.length; i++)
1214
+ o.modules[i].id == e.input.newModuleId && o.modules[i].operations.push(...n);
1157
1215
  },
1158
1216
  deleteOperationOperation(t, e) {
1159
- const i = t.specifications[t.specifications.length - 1];
1160
- for (let n = 0; n < i.modules.length; n++)
1161
- i.modules[n].operations = i.modules[n].operations.filter((o) => o.id != e.input.id);
1217
+ const n = t.specifications[t.specifications.length - 1];
1218
+ for (let o = 0; o < n.modules.length; o++)
1219
+ n.modules[o].operations = n.modules[o].operations.filter((i) => i.id != e.input.id);
1162
1220
  },
1163
1221
  reorderModuleOperationsOperation(t, e) {
1164
- const i = t.specifications[t.specifications.length - 1];
1165
- for (let n = 0; n < i.modules.length; n++)
1166
- i.modules[n].id == e.input.moduleId && i.modules[n].operations.sort(
1167
- bt(e.input.order)
1222
+ const n = t.specifications[t.specifications.length - 1];
1223
+ for (let o = 0; o < n.modules.length; o++)
1224
+ n.modules[o].id == e.input.moduleId && n.modules[o].operations.sort(
1225
+ Lt(e.input.order)
1168
1226
  );
1169
1227
  }
1170
- }, Nt = (t) => {
1228
+ }, Pt = (t) => {
1171
1229
  const e = {};
1172
- return t.forEach((i, n) => e[i] = n), (i, n) => (e[n.id] || 999999) - (e[i.id] || 999999);
1230
+ return t.forEach((n, o) => e[n] = o), (n, o) => (e[o.id] || 999999) - (e[n.id] || 999999);
1173
1231
  }, u = {
1174
1232
  setStateSchemaOperation(t, e) {
1175
- const i = t.specifications[t.specifications.length - 1];
1176
- i.state.schema = e.input.schema;
1233
+ const n = t.specifications[t.specifications.length - 1];
1234
+ n.state.schema = e.input.schema;
1177
1235
  },
1178
1236
  setInitialStateOperation(t, e) {
1179
- const i = t.specifications[t.specifications.length - 1];
1180
- i.state.initialValue = e.input.initialValue;
1237
+ const n = t.specifications[t.specifications.length - 1];
1238
+ n.state.initialValue = e.input.initialValue;
1181
1239
  },
1182
1240
  addStateExampleOperation(t, e) {
1183
1241
  t.specifications[t.specifications.length - 1].state.examples.push({
@@ -1186,21 +1244,21 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1186
1244
  });
1187
1245
  },
1188
1246
  updateStateExampleOperation(t, e) {
1189
- const i = t.specifications[t.specifications.length - 1];
1190
- for (let n = 0; n < i.state.examples.length; n++)
1191
- i.state.examples[n].id == e.input.id && (i.state.examples[n].value = e.input.newExample);
1247
+ const n = t.specifications[t.specifications.length - 1];
1248
+ for (let o = 0; o < n.state.examples.length; o++)
1249
+ n.state.examples[o].id == e.input.id && (n.state.examples[o].value = e.input.newExample);
1192
1250
  },
1193
1251
  deleteStateExampleOperation(t, e) {
1194
- const i = t.specifications[t.specifications.length - 1];
1195
- i.state.examples = i.state.examples.filter(
1196
- (n) => n.id != e.input.id
1252
+ const n = t.specifications[t.specifications.length - 1];
1253
+ n.state.examples = n.state.examples.filter(
1254
+ (o) => o.id != e.input.id
1197
1255
  );
1198
1256
  },
1199
1257
  reorderStateExamplesOperation(t, e) {
1200
- t.specifications[t.specifications.length - 1].state.examples.sort(Nt(e.input.order));
1258
+ t.specifications[t.specifications.length - 1].state.examples.sort(Pt(e.input.order));
1201
1259
  }
1202
- }, Lt = (t, e) => {
1203
- if (ct(e))
1260
+ }, jt = (t, e) => {
1261
+ if (mt(e))
1204
1262
  return t;
1205
1263
  switch (e.type) {
1206
1264
  case "SET_MODEL_NAME":
@@ -1225,10 +1283,10 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1225
1283
  f().parse(e.input), E.addChangeLogItemOperation(t, e);
1226
1284
  break;
1227
1285
  case "UPDATE_CHANGE_LOG_ITEM":
1228
- ie().parse(e.input), E.updateChangeLogItemOperation(t, e);
1286
+ ne().parse(e.input), E.updateChangeLogItemOperation(t, e);
1229
1287
  break;
1230
1288
  case "DELETE_CHANGE_LOG_ITEM":
1231
- A().parse(e.input), E.deleteChangeLogItemOperation(t, e);
1289
+ D().parse(e.input), E.deleteChangeLogItemOperation(t, e);
1232
1290
  break;
1233
1291
  case "REORDER_CHANGE_LOG_ITEMS":
1234
1292
  C().parse(e.input), E.reorderChangeLogItemsOperation(t, e);
@@ -1250,7 +1308,7 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1250
1308
  z().parse(e.input), h.setModuleDescriptionOperation(t, e);
1251
1309
  break;
1252
1310
  case "DELETE_MODULE":
1253
- M().parse(e.input), h.deleteModuleOperation(t, e);
1311
+ x().parse(e.input), h.deleteModuleOperation(t, e);
1254
1312
  break;
1255
1313
  case "REORDER_MODULES":
1256
1314
  y().parse(e.input), h.reorderModulesOperation(t, e);
@@ -1277,7 +1335,7 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1277
1335
  );
1278
1336
  break;
1279
1337
  case "DELETE_OPERATION_ERROR":
1280
- b().parse(e.input), d.deleteOperationErrorOperation(t, e);
1338
+ M().parse(e.input), d.deleteOperationErrorOperation(t, e);
1281
1339
  break;
1282
1340
  case "REORDER_OPERATION_ERRORS":
1283
1341
  w().parse(e.input), d.reorderOperationErrorsOperation(
@@ -1286,32 +1344,35 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1286
1344
  );
1287
1345
  break;
1288
1346
  case "ADD_OPERATION_EXAMPLE":
1289
- T().parse(e.input), g.addOperationExampleOperation(t, e);
1347
+ T().parse(e.input), S.addOperationExampleOperation(t, e);
1290
1348
  break;
1291
1349
  case "UPDATE_OPERATION_EXAMPLE":
1292
- oe().parse(e.input), g.updateOperationExampleOperation(
1350
+ ie().parse(e.input), S.updateOperationExampleOperation(
1293
1351
  t,
1294
1352
  e
1295
1353
  );
1296
1354
  break;
1297
1355
  case "DELETE_OPERATION_EXAMPLE":
1298
- N().parse(e.input), g.deleteOperationExampleOperation(
1356
+ N().parse(e.input), S.deleteOperationExampleOperation(
1299
1357
  t,
1300
1358
  e
1301
1359
  );
1302
1360
  break;
1303
1361
  case "REORDER_OPERATION_EXAMPLES":
1304
- U().parse(e.input), g.reorderOperationExamplesOperation(
1362
+ U().parse(e.input), S.reorderOperationExamplesOperation(
1305
1363
  t,
1306
1364
  e
1307
1365
  );
1308
1366
  break;
1309
1367
  case "ADD_OPERATION":
1310
- R().parse(e.input), p.addOperationOperation(t, e);
1368
+ b().parse(e.input), p.addOperationOperation(t, e);
1311
1369
  break;
1312
1370
  case "SET_OPERATION_NAME":
1313
1371
  Z().parse(e.input), p.setOperationNameOperation(t, e);
1314
1372
  break;
1373
+ case "SET_OPERATION_SCOPE":
1374
+ Oe().parse(e.input), p.setOperationScopeOperation(t, e);
1375
+ break;
1315
1376
  case "SET_OPERATION_SCHEMA":
1316
1377
  te().parse(e.input), p.setOperationSchemaOperation(t, e);
1317
1378
  break;
@@ -1334,13 +1395,13 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1334
1395
  k().parse(e.input), p.reorderModuleOperationsOperation(t, e);
1335
1396
  break;
1336
1397
  case "SET_STATE_SCHEMA":
1337
- ne().parse(e.input), u.setStateSchemaOperation(t, e);
1398
+ oe().parse(e.input), u.setStateSchemaOperation(t, e);
1338
1399
  break;
1339
1400
  case "SET_INITIAL_STATE":
1340
1401
  V().parse(e.input), u.setInitialStateOperation(t, e);
1341
1402
  break;
1342
1403
  case "ADD_STATE_EXAMPLE":
1343
- D().parse(e.input), u.addStateExampleOperation(t, e);
1404
+ R().parse(e.input), u.addStateExampleOperation(t, e);
1344
1405
  break;
1345
1406
  case "UPDATE_STATE_EXAMPLE":
1346
1407
  se().parse(e.input), u.updateStateExampleOperation(t, e);
@@ -1354,9 +1415,9 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1354
1415
  default:
1355
1416
  return t;
1356
1417
  }
1357
- }, S = dt(
1358
- Lt
1359
- ), Pt = {
1418
+ }, g = ut(
1419
+ jt
1420
+ ), Ct = {
1360
1421
  id: "",
1361
1422
  name: "",
1362
1423
  extension: "",
@@ -1380,396 +1441,403 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1380
1441
  }, O = {
1381
1442
  fileExtension: "phdm",
1382
1443
  createState(t) {
1383
- return { ...Pt, ...t };
1444
+ return { ...Ct, ...t };
1384
1445
  },
1385
1446
  createExtendedState(t) {
1386
- return ut(
1447
+ return Et(
1387
1448
  { ...t, documentType: "powerhouse/document-model" },
1388
1449
  O.createState
1389
1450
  );
1390
1451
  },
1391
1452
  createDocument(t) {
1392
- return mt(
1453
+ return ht(
1393
1454
  O.createExtendedState(t),
1394
1455
  O.createState
1395
1456
  );
1396
1457
  },
1397
- saveToFile(t, e, i) {
1398
- return Et(t, e, "phdm", i);
1458
+ saveToFile(t, e, n) {
1459
+ return Ot(t, e, "phdm", n);
1399
1460
  },
1400
1461
  saveToFileHandle(t, e) {
1401
- return ht(t, e);
1462
+ return gt(t, e);
1402
1463
  },
1403
1464
  loadFromFile(t) {
1404
- return Ot(t, S);
1465
+ return St(t, g);
1405
1466
  },
1406
1467
  loadFromInput(t) {
1407
- return St(t, S);
1468
+ return ft(t, g);
1408
1469
  }
1409
1470
  }, Se = (t) => s(
1410
1471
  "SET_MODEL_NAME",
1411
1472
  { ...t }
1412
- ), ge = (t) => s(
1473
+ ), fe = (t) => s(
1413
1474
  "SET_MODEL_ID",
1414
1475
  { ...t }
1415
- ), fe = (t) => s(
1476
+ ), _e = (t) => s(
1416
1477
  "SET_MODEL_EXTENSION",
1417
1478
  { ...t }
1418
- ), _e = (t) => s(
1479
+ ), Ie = (t) => s(
1419
1480
  "SET_MODEL_DESCRIPTION",
1420
1481
  { ...t }
1421
- ), Ie = (t) => s(
1482
+ ), Te = (t) => s(
1422
1483
  "SET_AUTHOR_NAME",
1423
1484
  { ...t }
1424
- ), Te = (t) => s(
1485
+ ), be = (t) => s(
1425
1486
  "SET_AUTHOR_WEBSITE",
1426
1487
  { ...t }
1427
1488
  );
1428
- class jt extends l {
1489
+ class kt extends l {
1429
1490
  setModelName(e) {
1430
1491
  return this.dispatch(Se(e));
1431
1492
  }
1432
1493
  setModelId(e) {
1433
- return this.dispatch(ge(e));
1494
+ return this.dispatch(fe(e));
1434
1495
  }
1435
1496
  setModelExtension(e) {
1436
- return this.dispatch(fe(e));
1497
+ return this.dispatch(_e(e));
1437
1498
  }
1438
1499
  setModelDescription(e) {
1439
- return this.dispatch(_e(e));
1500
+ return this.dispatch(Ie(e));
1440
1501
  }
1441
1502
  setAuthorName(e) {
1442
- return this.dispatch(Ie(e));
1503
+ return this.dispatch(Te(e));
1443
1504
  }
1444
1505
  setAuthorWebsite(e) {
1445
- return this.dispatch(Te(e));
1506
+ return this.dispatch(be(e));
1446
1507
  }
1447
1508
  }
1448
1509
  const Re = (t) => s(
1449
1510
  "ADD_CHANGE_LOG_ITEM",
1450
1511
  { ...t }
1451
- ), De = (t) => s(
1512
+ ), Ae = (t) => s(
1452
1513
  "UPDATE_CHANGE_LOG_ITEM",
1453
1514
  { ...t }
1454
- ), xe = (t) => s(
1515
+ ), De = (t) => s(
1455
1516
  "DELETE_CHANGE_LOG_ITEM",
1456
1517
  { ...t }
1457
- ), Ae = (t) => s(
1518
+ ), xe = (t) => s(
1458
1519
  "REORDER_CHANGE_LOG_ITEMS",
1459
1520
  { ...t }
1460
1521
  ), Me = () => s("RELEASE_NEW_VERSION");
1461
- class Ct extends l {
1522
+ class yt extends l {
1462
1523
  addChangeLogItem(e) {
1463
1524
  return this.dispatch(Re(e));
1464
1525
  }
1465
1526
  updateChangeLogItem(e) {
1466
- return this.dispatch(De(e));
1527
+ return this.dispatch(Ae(e));
1467
1528
  }
1468
1529
  deleteChangeLogItem(e) {
1469
- return this.dispatch(xe(e));
1530
+ return this.dispatch(De(e));
1470
1531
  }
1471
1532
  reorderChangeLogItems(e) {
1472
- return this.dispatch(Ae(e));
1533
+ return this.dispatch(xe(e));
1473
1534
  }
1474
1535
  releaseNewVersion() {
1475
1536
  return this.dispatch(Me());
1476
1537
  }
1477
1538
  }
1478
- const be = (t) => s(
1539
+ const Ne = (t) => s(
1479
1540
  "ADD_MODULE",
1480
1541
  { ...t }
1481
- ), Ne = (t) => s(
1542
+ ), Le = (t) => s(
1482
1543
  "SET_MODULE_NAME",
1483
1544
  { ...t }
1484
- ), Le = (t) => s(
1545
+ ), Pe = (t) => s(
1485
1546
  "SET_MODULE_DESCRIPTION",
1486
1547
  { ...t }
1487
- ), Pe = (t) => s(
1548
+ ), je = (t) => s(
1488
1549
  "DELETE_MODULE",
1489
1550
  { ...t }
1490
- ), je = (t) => s(
1551
+ ), Ce = (t) => s(
1491
1552
  "REORDER_MODULES",
1492
1553
  { ...t }
1493
1554
  );
1494
- class kt extends l {
1555
+ class wt extends l {
1495
1556
  addModule(e) {
1496
- return this.dispatch(be(e));
1557
+ return this.dispatch(Ne(e));
1497
1558
  }
1498
1559
  setModuleName(e) {
1499
- return this.dispatch(Ne(e));
1560
+ return this.dispatch(Le(e));
1500
1561
  }
1501
1562
  setModuleDescription(e) {
1502
- return this.dispatch(Le(e));
1563
+ return this.dispatch(Pe(e));
1503
1564
  }
1504
1565
  deleteModule(e) {
1505
- return this.dispatch(Pe(e));
1566
+ return this.dispatch(je(e));
1506
1567
  }
1507
1568
  reorderModules(e) {
1508
- return this.dispatch(je(e));
1569
+ return this.dispatch(Ce(e));
1509
1570
  }
1510
1571
  }
1511
- const Ce = (t) => s(
1572
+ const ke = (t) => s(
1512
1573
  "ADD_OPERATION_ERROR",
1513
1574
  { ...t }
1514
- ), ke = (t) => s(
1575
+ ), ye = (t) => s(
1515
1576
  "SET_OPERATION_ERROR_CODE",
1516
1577
  { ...t }
1517
- ), ye = (t) => s(
1578
+ ), we = (t) => s(
1518
1579
  "SET_OPERATION_ERROR_NAME",
1519
1580
  { ...t }
1520
- ), we = (t) => s(
1581
+ ), Ue = (t) => s(
1521
1582
  "SET_OPERATION_ERROR_DESCRIPTION",
1522
1583
  { ...t }
1523
- ), Ue = (t) => s(
1584
+ ), ve = (t) => s(
1524
1585
  "SET_OPERATION_ERROR_TEMPLATE",
1525
1586
  { ...t }
1526
- ), ve = (t) => s(
1587
+ ), Fe = (t) => s(
1527
1588
  "DELETE_OPERATION_ERROR",
1528
1589
  { ...t }
1529
- ), Fe = (t) => s(
1590
+ ), He = (t) => s(
1530
1591
  "REORDER_OPERATION_ERRORS",
1531
1592
  { ...t }
1532
1593
  );
1533
- class yt extends l {
1594
+ class Ut extends l {
1534
1595
  addOperationError(e) {
1535
- return this.dispatch(Ce(e));
1596
+ return this.dispatch(ke(e));
1536
1597
  }
1537
1598
  setOperationErrorCode(e) {
1538
- return this.dispatch(ke(e));
1599
+ return this.dispatch(ye(e));
1539
1600
  }
1540
1601
  setOperationErrorName(e) {
1541
- return this.dispatch(ye(e));
1602
+ return this.dispatch(we(e));
1542
1603
  }
1543
1604
  setOperationErrorDescription(e) {
1544
- return this.dispatch(we(e));
1605
+ return this.dispatch(Ue(e));
1545
1606
  }
1546
1607
  setOperationErrorTemplate(e) {
1547
- return this.dispatch(Ue(e));
1608
+ return this.dispatch(ve(e));
1548
1609
  }
1549
1610
  deleteOperationError(e) {
1550
- return this.dispatch(ve(e));
1611
+ return this.dispatch(Fe(e));
1551
1612
  }
1552
1613
  reorderOperationErrors(e) {
1553
- return this.dispatch(Fe(e));
1614
+ return this.dispatch(He(e));
1554
1615
  }
1555
1616
  }
1556
- const He = (t) => s(
1617
+ const Ve = (t) => s(
1557
1618
  "ADD_OPERATION_EXAMPLE",
1558
1619
  { ...t }
1559
- ), Ve = (t) => s(
1620
+ ), Xe = (t) => s(
1560
1621
  "UPDATE_OPERATION_EXAMPLE",
1561
1622
  { ...t }
1562
- ), Xe = (t) => s(
1623
+ ), Ge = (t) => s(
1563
1624
  "DELETE_OPERATION_EXAMPLE",
1564
1625
  { ...t }
1565
- ), Ge = (t) => s(
1626
+ ), We = (t) => s(
1566
1627
  "REORDER_OPERATION_EXAMPLES",
1567
1628
  { ...t }
1568
1629
  );
1569
- class wt extends l {
1630
+ class vt extends l {
1570
1631
  addOperationExample(e) {
1571
- return this.dispatch(He(e));
1632
+ return this.dispatch(Ve(e));
1572
1633
  }
1573
1634
  updateOperationExample(e) {
1574
- return this.dispatch(Ve(e));
1635
+ return this.dispatch(Xe(e));
1575
1636
  }
1576
1637
  deleteOperationExample(e) {
1577
- return this.dispatch(Xe(e));
1638
+ return this.dispatch(Ge(e));
1578
1639
  }
1579
1640
  reorderOperationExamples(e) {
1580
- return this.dispatch(Ge(e));
1641
+ return this.dispatch(We(e));
1581
1642
  }
1582
1643
  }
1583
- const We = (t) => s(
1644
+ const $e = (t) => s(
1584
1645
  "ADD_OPERATION",
1585
1646
  { ...t }
1586
- ), $e = (t) => s(
1647
+ ), ze = (t) => s(
1587
1648
  "SET_OPERATION_NAME",
1588
1649
  { ...t }
1589
- ), ze = (t) => s(
1650
+ ), Be = (t) => s(
1651
+ "SET_OPERATION_SCOPE",
1652
+ { ...t }
1653
+ ), qe = (t) => s(
1590
1654
  "SET_OPERATION_SCHEMA",
1591
1655
  { ...t }
1592
- ), Be = (t) => s(
1656
+ ), Je = (t) => s(
1593
1657
  "SET_OPERATION_DESCRIPTION",
1594
1658
  { ...t }
1595
- ), qe = (t) => s(
1659
+ ), Ke = (t) => s(
1596
1660
  "SET_OPERATION_TEMPLATE",
1597
1661
  { ...t }
1598
- ), Je = (t) => s(
1662
+ ), Qe = (t) => s(
1599
1663
  "SET_OPERATION_REDUCER",
1600
1664
  { ...t }
1601
- ), Ke = (t) => s(
1665
+ ), Ye = (t) => s(
1602
1666
  "MOVE_OPERATION",
1603
1667
  { ...t }
1604
- ), Qe = (t) => s(
1668
+ ), Ze = (t) => s(
1605
1669
  "DELETE_OPERATION",
1606
1670
  { ...t }
1607
- ), Ye = (t) => s(
1671
+ ), et = (t) => s(
1608
1672
  "REORDER_MODULE_OPERATIONS",
1609
1673
  { ...t }
1610
1674
  );
1611
- class Ut extends l {
1675
+ class Ft extends l {
1612
1676
  addOperation(e) {
1613
- return this.dispatch(We(e));
1677
+ return this.dispatch($e(e));
1614
1678
  }
1615
1679
  setOperationName(e) {
1616
- return this.dispatch($e(e));
1680
+ return this.dispatch(ze(e));
1681
+ }
1682
+ setOperationScope(e) {
1683
+ return this.dispatch(Be(e));
1617
1684
  }
1618
1685
  setOperationSchema(e) {
1619
- return this.dispatch(ze(e));
1686
+ return this.dispatch(qe(e));
1620
1687
  }
1621
1688
  setOperationDescription(e) {
1622
- return this.dispatch(Be(e));
1689
+ return this.dispatch(Je(e));
1623
1690
  }
1624
1691
  setOperationTemplate(e) {
1625
- return this.dispatch(qe(e));
1692
+ return this.dispatch(Ke(e));
1626
1693
  }
1627
1694
  setOperationReducer(e) {
1628
- return this.dispatch(Je(e));
1695
+ return this.dispatch(Qe(e));
1629
1696
  }
1630
1697
  moveOperation(e) {
1631
- return this.dispatch(Ke(e));
1698
+ return this.dispatch(Ye(e));
1632
1699
  }
1633
1700
  deleteOperation(e) {
1634
- return this.dispatch(Qe(e));
1701
+ return this.dispatch(Ze(e));
1635
1702
  }
1636
1703
  reorderModuleOperations(e) {
1637
- return this.dispatch(Ye(e));
1704
+ return this.dispatch(et(e));
1638
1705
  }
1639
1706
  }
1640
- const Ze = (t) => s(
1707
+ const tt = (t) => s(
1641
1708
  "SET_STATE_SCHEMA",
1642
1709
  { ...t }
1643
- ), et = (t) => s(
1710
+ ), rt = (t) => s(
1644
1711
  "SET_INITIAL_STATE",
1645
1712
  { ...t }
1646
- ), tt = (t) => s(
1713
+ ), ot = (t) => s(
1647
1714
  "ADD_STATE_EXAMPLE",
1648
1715
  { ...t }
1649
- ), rt = (t) => s(
1716
+ ), nt = (t) => s(
1650
1717
  "UPDATE_STATE_EXAMPLE",
1651
1718
  { ...t }
1652
- ), nt = (t) => s(
1719
+ ), it = (t) => s(
1653
1720
  "DELETE_STATE_EXAMPLE",
1654
1721
  { ...t }
1655
- ), it = (t) => s(
1722
+ ), st = (t) => s(
1656
1723
  "REORDER_STATE_EXAMPLES",
1657
1724
  { ...t }
1658
1725
  );
1659
- class vt extends l {
1726
+ class Ht extends l {
1660
1727
  setStateSchema(e) {
1661
- return this.dispatch(Ze(e));
1728
+ return this.dispatch(tt(e));
1662
1729
  }
1663
1730
  setInitialState(e) {
1664
- return this.dispatch(et(e));
1731
+ return this.dispatch(rt(e));
1665
1732
  }
1666
1733
  addStateExample(e) {
1667
- return this.dispatch(tt(e));
1734
+ return this.dispatch(ot(e));
1668
1735
  }
1669
1736
  updateStateExample(e) {
1670
- return this.dispatch(rt(e));
1737
+ return this.dispatch(nt(e));
1671
1738
  }
1672
1739
  deleteStateExample(e) {
1673
- return this.dispatch(nt(e));
1740
+ return this.dispatch(it(e));
1674
1741
  }
1675
1742
  reorderStateExamples(e) {
1676
- return this.dispatch(it(e));
1743
+ return this.dispatch(st(e));
1677
1744
  }
1678
1745
  }
1679
1746
  var m;
1680
1747
  let ae = (m = class extends l {
1681
1748
  constructor(e) {
1682
- super(S, O.createDocument(e));
1749
+ super(g, O.createDocument(e));
1683
1750
  }
1684
- saveToFile(e, i) {
1685
- return super.saveToFile(e, m.fileExtension, i);
1751
+ saveToFile(e, n) {
1752
+ return super.saveToFile(e, m.fileExtension, n);
1686
1753
  }
1687
1754
  loadFromFile(e) {
1688
1755
  return super.loadFromFile(e);
1689
1756
  }
1690
1757
  static async fromFile(e) {
1691
- const i = new this();
1692
- return await i.loadFromFile(e), i;
1758
+ const n = new this();
1759
+ return await n.loadFromFile(e), n;
1693
1760
  }
1694
1761
  }, pe(m, "fileExtension", "phdm"), m);
1695
- gt(ae, [
1696
- jt,
1697
- Ct,
1762
+ _t(ae, [
1698
1763
  kt,
1699
1764
  yt,
1700
1765
  wt,
1701
1766
  Ut,
1702
- vt
1767
+ vt,
1768
+ Ft,
1769
+ Ht
1703
1770
  ]);
1704
- const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1771
+ const Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1705
1772
  __proto__: null,
1706
1773
  addChangeLogItem: Re,
1707
- addModule: be,
1708
- addOperation: We,
1709
- addOperationError: Ce,
1710
- addOperationExample: He,
1711
- addStateExample: tt,
1712
- deleteChangeLogItem: xe,
1713
- deleteModule: Pe,
1714
- deleteOperation: Qe,
1715
- deleteOperationError: ve,
1716
- deleteOperationExample: Xe,
1717
- deleteStateExample: nt,
1718
- moveOperation: Ke,
1774
+ addModule: Ne,
1775
+ addOperation: $e,
1776
+ addOperationError: ke,
1777
+ addOperationExample: Ve,
1778
+ addStateExample: ot,
1779
+ deleteChangeLogItem: De,
1780
+ deleteModule: je,
1781
+ deleteOperation: Ze,
1782
+ deleteOperationError: Fe,
1783
+ deleteOperationExample: Ge,
1784
+ deleteStateExample: it,
1785
+ moveOperation: Ye,
1719
1786
  releaseNewVersion: Me,
1720
- reorderChangeLogItems: Ae,
1721
- reorderModuleOperations: Ye,
1722
- reorderModules: je,
1723
- reorderOperationErrors: Fe,
1724
- reorderOperationExamples: Ge,
1725
- reorderStateExamples: it,
1726
- setAuthorName: Ie,
1727
- setAuthorWebsite: Te,
1728
- setInitialState: et,
1729
- setModelDescription: _e,
1730
- setModelExtension: fe,
1731
- setModelId: ge,
1787
+ reorderChangeLogItems: xe,
1788
+ reorderModuleOperations: et,
1789
+ reorderModules: Ce,
1790
+ reorderOperationErrors: He,
1791
+ reorderOperationExamples: We,
1792
+ reorderStateExamples: st,
1793
+ setAuthorName: Te,
1794
+ setAuthorWebsite: be,
1795
+ setInitialState: rt,
1796
+ setModelDescription: Ie,
1797
+ setModelExtension: _e,
1798
+ setModelId: fe,
1732
1799
  setModelName: Se,
1733
- setModuleDescription: Le,
1734
- setModuleName: Ne,
1735
- setOperationDescription: Be,
1736
- setOperationErrorCode: ke,
1737
- setOperationErrorDescription: we,
1738
- setOperationErrorName: ye,
1739
- setOperationErrorTemplate: Ue,
1740
- setOperationName: $e,
1741
- setOperationReducer: Je,
1742
- setOperationSchema: ze,
1743
- setOperationTemplate: qe,
1744
- setStateSchema: Ze,
1745
- updateChangeLogItem: De,
1746
- updateOperationExample: Ve,
1747
- updateStateExample: rt
1748
- }, Symbol.toStringTag, { value: "Module" })), ot = ae, st = { ...O, ..._t }, at = { ...ft, ...Ft }, Ht = {
1749
- Document: ot,
1750
- reducer: S,
1751
- actions: at,
1752
- utils: st,
1800
+ setModuleDescription: Pe,
1801
+ setModuleName: Le,
1802
+ setOperationDescription: Je,
1803
+ setOperationErrorCode: ye,
1804
+ setOperationErrorDescription: Ue,
1805
+ setOperationErrorName: we,
1806
+ setOperationErrorTemplate: ve,
1807
+ setOperationName: ze,
1808
+ setOperationReducer: Qe,
1809
+ setOperationSchema: qe,
1810
+ setOperationScope: Be,
1811
+ setOperationTemplate: Ke,
1812
+ setStateSchema: tt,
1813
+ updateChangeLogItem: Ae,
1814
+ updateOperationExample: Xe,
1815
+ updateStateExample: nt
1816
+ }, Symbol.toStringTag, { value: "Module" })), at = ae, pt = { ...O, ...Tt }, lt = { ...It, ...Vt }, Xt = {
1817
+ Document: at,
1818
+ reducer: g,
1819
+ actions: lt,
1820
+ utils: pt,
1753
1821
  documentModel: le
1754
- }, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1822
+ }, Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1755
1823
  __proto__: null,
1756
- Document: ot,
1824
+ Document: at,
1757
1825
  DocumentModel: ae,
1758
- actions: at,
1826
+ actions: lt,
1759
1827
  documentModel: le,
1760
- module: Ht,
1761
- reducer: S,
1762
- utils: st,
1828
+ module: Xt,
1829
+ reducer: g,
1830
+ utils: pt,
1763
1831
  z: Dt
1764
1832
  }, Symbol.toStringTag, { value: "Module" }));
1765
1833
  export {
1766
- Bt as D,
1834
+ Jt as D,
1767
1835
  ae as a,
1768
- ot as b,
1769
- at as c,
1836
+ at as b,
1837
+ lt as c,
1770
1838
  le as d,
1771
- Ht as m,
1772
- S as r,
1773
- st as u,
1839
+ Xt as m,
1840
+ g as r,
1841
+ pt as u,
1774
1842
  Dt as z
1775
1843
  };