@powerhousedao/powerhouse-vetra-packages 6.2.2-dev.7 → 6.2.2-dev.71

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 (103) hide show
  1. package/dist/browser/assets/{entry-Cvoo4_c9.js → entry-D9kxNMhQ.js} +3 -2
  2. package/dist/browser/assets/{projection-entry-DVec8YRh.js → projection-entry-CuhmOECW.js} +4 -4
  3. package/dist/browser/{linting-Dn6pXRkK.js → button-CuO8Gh3v.js} +20 -6
  4. package/dist/browser/button-CuO8Gh3v.js.map +1 -0
  5. package/dist/browser/{connect-KEU-HR3o.js → connect-BQ3NfcJz.js} +916 -200
  6. package/dist/browser/connect-BQ3NfcJz.js.map +1 -0
  7. package/dist/browser/{dist-CXoKspdx.js → dist-B4FWbuEM.js} +10 -2
  8. package/dist/browser/{dist-CXoKspdx.js.map → dist-B4FWbuEM.js.map} +1 -1
  9. package/dist/{node/dist-BeZaEP6S.mjs → browser/dist-BAJ5nRDl.js} +21 -2
  10. package/dist/browser/{dist-D8H48e8N.js.map → dist-BAJ5nRDl.js.map} +1 -1
  11. package/dist/browser/{dist-D5ra2aRj.js → dist-Ha_NNo7z.js} +1987 -1451
  12. package/dist/browser/dist-Ha_NNo7z.js.map +1 -0
  13. package/dist/browser/{document-drive-IdFV1QXL.js → document-drive-BgXuuZ9v.js} +1184 -122
  14. package/dist/browser/document-drive-BgXuuZ9v.js.map +1 -0
  15. package/dist/browser/document-models/index.js +1 -1
  16. package/dist/browser/{documents-D4ek7Ubv.js → documents-J_l59mSV.js} +5 -604
  17. package/dist/browser/documents-J_l59mSV.js.map +1 -0
  18. package/dist/browser/editor-DHPXrcLc.js +25 -0
  19. package/dist/browser/editor-DHPXrcLc.js.map +1 -0
  20. package/dist/browser/{editor-DiZF3ao3.js → editor-XuCmPGuB.js} +671 -236
  21. package/dist/browser/editor-XuCmPGuB.js.map +1 -0
  22. package/dist/browser/editors/document-model-editor/module.js +1 -1
  23. package/dist/browser/editors/generic-drive-explorer/index.js +5 -5
  24. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  25. package/dist/{node/folder-view-Cy-QxsDg.mjs → browser/folder-view-CuDz6ylG.js} +73 -46
  26. package/dist/browser/folder-view-CuDz6ylG.js.map +1 -0
  27. package/dist/browser/{graphql-editor-ZLRO_8Ce.js → graphql-editor-DSVq4B4o.js} +8 -7
  28. package/dist/browser/{graphql-editor-ZLRO_8Ce.js.map → graphql-editor-DSVq4B4o.js.map} +1 -1
  29. package/dist/browser/{hooks-CORHBNHb.js → hooks-KKcNp2X0.js} +2 -2
  30. package/dist/browser/{hooks-CORHBNHb.js.map → hooks-KKcNp2X0.js.map} +1 -1
  31. package/dist/browser/index.js +378 -9
  32. package/dist/browser/index.js.map +1 -1
  33. package/dist/browser/{json-editor-DBuZ6gN7.js → json-editor-CKhR3Fvh.js} +4 -4
  34. package/dist/browser/{json-editor-DBuZ6gN7.js.map → json-editor-CKhR3Fvh.js.map} +1 -1
  35. package/dist/browser/{lib-C-f3izXz.js → lib-DMgQj1v2.js} +13 -4
  36. package/dist/browser/lib-DMgQj1v2.js.map +1 -0
  37. package/dist/browser/printer-CEYr4JOg.js +604 -0
  38. package/dist/browser/printer-CEYr4JOg.js.map +1 -0
  39. package/dist/browser/{schema-context-DY-GEGnY.js → schema-context-ZyeclQwy.js} +2 -2
  40. package/dist/browser/{schema-context-DY-GEGnY.js.map → schema-context-ZyeclQwy.js.map} +1 -1
  41. package/dist/browser/{state-schemas-BjQKM498.js → state-schemas-D0_9u4nu.js} +8 -18
  42. package/dist/browser/state-schemas-D0_9u4nu.js.map +1 -0
  43. package/dist/node/{linting-Dx50GuLN.mjs → button-Da7CxMn7.mjs} +20 -7
  44. package/dist/node/button-Da7CxMn7.mjs.map +1 -0
  45. package/dist/node/{connect-KcYZcy_Z.mjs → connect-DOD5zQrl.mjs} +916 -200
  46. package/dist/node/connect-DOD5zQrl.mjs.map +1 -0
  47. package/dist/node/{dist-DJEK2WVi.mjs → dist-CNlIJlyu.mjs} +1992 -1451
  48. package/dist/node/dist-CNlIJlyu.mjs.map +1 -0
  49. package/dist/{browser/dist-D8H48e8N.js → node/dist-CzYOpeXN.mjs} +21 -2
  50. package/dist/node/{dist-BeZaEP6S.mjs.map → dist-CzYOpeXN.mjs.map} +1 -1
  51. package/dist/node/{dist-fA4EItr0.mjs → dist-DT7jI9ol.mjs} +10 -2
  52. package/dist/node/{dist-fA4EItr0.mjs.map → dist-DT7jI9ol.mjs.map} +1 -1
  53. package/dist/node/{document-drive-C8hbqQ3C.mjs → document-drive-BV8zVgUr.mjs} +1184 -122
  54. package/dist/node/document-drive-BV8zVgUr.mjs.map +1 -0
  55. package/dist/node/document-models/index.mjs +1 -1
  56. package/dist/node/{documents-BFBPmyw1.mjs → documents-DCf53bzO.mjs} +3 -3
  57. package/dist/node/{documents-BFBPmyw1.mjs.map → documents-DCf53bzO.mjs.map} +1 -1
  58. package/dist/node/editor-BIIW42CR.mjs +25 -0
  59. package/dist/node/editor-BIIW42CR.mjs.map +1 -0
  60. package/dist/node/{editor-B1KhoF1f.mjs → editor-BznTtugG.mjs} +672 -237
  61. package/dist/node/editor-BznTtugG.mjs.map +1 -0
  62. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  63. package/dist/node/editors/generic-drive-explorer/index.mjs +5 -5
  64. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  65. package/dist/{browser/folder-view-DMFqcJhc.js → node/folder-view-WvkfzzHI.mjs} +73 -46
  66. package/dist/node/folder-view-WvkfzzHI.mjs.map +1 -0
  67. package/dist/node/{graphql-DskHmkMe.mjs → graphql-BfAoPeWM.mjs} +2 -2
  68. package/dist/node/{graphql-DskHmkMe.mjs.map → graphql-BfAoPeWM.mjs.map} +1 -1
  69. package/dist/node/{graphql-editor-C5VLRqEf.mjs → graphql-editor-aDsDHPSg.mjs} +7 -7
  70. package/dist/node/{graphql-editor-C5VLRqEf.mjs.map → graphql-editor-aDsDHPSg.mjs.map} +1 -1
  71. package/dist/node/{hooks-DJrjfVaS.mjs → hooks-D0DcS3MV.mjs} +2 -2
  72. package/dist/node/{hooks-DJrjfVaS.mjs.map → hooks-D0DcS3MV.mjs.map} +1 -1
  73. package/dist/node/index.mjs +378 -9
  74. package/dist/node/index.mjs.map +1 -1
  75. package/dist/node/{json-editor-iI2s9a_4.mjs → json-editor-hK4xilEL.mjs} +4 -4
  76. package/dist/node/{json-editor-iI2s9a_4.mjs.map → json-editor-hK4xilEL.mjs.map} +1 -1
  77. package/dist/node/{main-D82dkD7g.mjs → main-DutzjcaZ.mjs} +15 -6
  78. package/dist/node/main-DutzjcaZ.mjs.map +1 -0
  79. package/dist/node/{schema-context-CX5ml_9t.mjs → schema-context-DL8jhi_d.mjs} +3 -3
  80. package/dist/node/{schema-context-CX5ml_9t.mjs.map → schema-context-DL8jhi_d.mjs.map} +1 -1
  81. package/dist/node/{state-schemas-Bl7nA8bB.mjs → state-schemas-CQ4bprzx.mjs} +10 -20
  82. package/dist/{browser/state-schemas-BjQKM498.js.map → node/state-schemas-CQ4bprzx.mjs.map} +1 -1
  83. package/package.json +8 -7
  84. package/dist/browser/connect-KEU-HR3o.js.map +0 -1
  85. package/dist/browser/dist-D5ra2aRj.js.map +0 -1
  86. package/dist/browser/document-drive-IdFV1QXL.js.map +0 -1
  87. package/dist/browser/documents-D4ek7Ubv.js.map +0 -1
  88. package/dist/browser/editor-DiZF3ao3.js.map +0 -1
  89. package/dist/browser/editor-SqNULDP-.js +0 -29
  90. package/dist/browser/editor-SqNULDP-.js.map +0 -1
  91. package/dist/browser/folder-view-DMFqcJhc.js.map +0 -1
  92. package/dist/browser/lib-C-f3izXz.js.map +0 -1
  93. package/dist/browser/linting-Dn6pXRkK.js.map +0 -1
  94. package/dist/node/connect-KcYZcy_Z.mjs.map +0 -1
  95. package/dist/node/dist-DJEK2WVi.mjs.map +0 -1
  96. package/dist/node/document-drive-C8hbqQ3C.mjs.map +0 -1
  97. package/dist/node/editor-B1KhoF1f.mjs.map +0 -1
  98. package/dist/node/editor-yBGEvMGD.mjs +0 -29
  99. package/dist/node/editor-yBGEvMGD.mjs.map +0 -1
  100. package/dist/node/folder-view-Cy-QxsDg.mjs.map +0 -1
  101. package/dist/node/linting-Dx50GuLN.mjs.map +0 -1
  102. package/dist/node/main-D82dkD7g.mjs.map +0 -1
  103. package/dist/node/state-schemas-Bl7nA8bB.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import { r as driveDocumentModelModule, u as documentModelDocumentModelModule } from "../document-drive-IdFV1QXL.js";
1
+ import { d as documentModelDocumentModelModule, r as driveDocumentModelModule } from "../document-drive-BgXuuZ9v.js";
2
2
  export { documentModelDocumentModelModule, driveDocumentModelModule };
@@ -1,5 +1,6 @@
1
- import { D as __exportAll, S as datetime, _ as string, b as url, d as email, h as object, m as number } from "./dist-CXoKspdx.js";
2
- import { a as printBlockString, c as Kind, d as QueryDocumentKeys, f as isNode, g as devAssert, h as isObjectLike, i as isPrintableAsBlockString, l as DirectiveLocation, m as invariant, n as instanceOf, o as isNameContinue, p as GraphQLError, r as inspect, s as isNameStart, t as parse, u as OperationTypeNode } from "./parser-CkF6Qt8V.js";
1
+ import { C as datetime, O as __exportAll, d as email, h as object, m as number, v as string, x as url } from "./dist-B4FWbuEM.js";
2
+ import { c as Kind, f as isNode, g as devAssert, h as isObjectLike, i as isPrintableAsBlockString, l as DirectiveLocation, m as invariant, n as instanceOf, o as isNameContinue, p as GraphQLError, r as inspect, s as isNameStart, t as parse, u as OperationTypeNode } from "./parser-CkF6Qt8V.js";
3
+ import { a as visitInParallel, i as visit, r as getEnterLeaveForKind, t as print } from "./printer-CEYr4JOg.js";
3
4
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/didYouMean.mjs
4
5
  const MAX_SUGGESTIONS = 5;
5
6
  /**
@@ -236,606 +237,6 @@ function toObjMap(obj) {
236
237
  return map;
237
238
  }
238
239
  //#endregion
239
- //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printString.mjs
240
- /**
241
- * Prints a string as a GraphQL StringValue literal. Replaces control characters
242
- * and excluded characters (" U+0022 and \\ U+005C) with escape sequences.
243
- */
244
- function printString(str) {
245
- return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
246
- }
247
- const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
248
- function escapedReplacer(str) {
249
- return escapeSequences[str.charCodeAt(0)];
250
- }
251
- const escapeSequences = [
252
- "\\u0000",
253
- "\\u0001",
254
- "\\u0002",
255
- "\\u0003",
256
- "\\u0004",
257
- "\\u0005",
258
- "\\u0006",
259
- "\\u0007",
260
- "\\b",
261
- "\\t",
262
- "\\n",
263
- "\\u000B",
264
- "\\f",
265
- "\\r",
266
- "\\u000E",
267
- "\\u000F",
268
- "\\u0010",
269
- "\\u0011",
270
- "\\u0012",
271
- "\\u0013",
272
- "\\u0014",
273
- "\\u0015",
274
- "\\u0016",
275
- "\\u0017",
276
- "\\u0018",
277
- "\\u0019",
278
- "\\u001A",
279
- "\\u001B",
280
- "\\u001C",
281
- "\\u001D",
282
- "\\u001E",
283
- "\\u001F",
284
- "",
285
- "",
286
- "\\\"",
287
- "",
288
- "",
289
- "",
290
- "",
291
- "",
292
- "",
293
- "",
294
- "",
295
- "",
296
- "",
297
- "",
298
- "",
299
- "",
300
- "",
301
- "",
302
- "",
303
- "",
304
- "",
305
- "",
306
- "",
307
- "",
308
- "",
309
- "",
310
- "",
311
- "",
312
- "",
313
- "",
314
- "",
315
- "",
316
- "",
317
- "",
318
- "",
319
- "",
320
- "",
321
- "",
322
- "",
323
- "",
324
- "",
325
- "",
326
- "",
327
- "",
328
- "",
329
- "",
330
- "",
331
- "",
332
- "",
333
- "",
334
- "",
335
- "",
336
- "",
337
- "",
338
- "",
339
- "",
340
- "",
341
- "",
342
- "",
343
- "",
344
- "\\\\",
345
- "",
346
- "",
347
- "",
348
- "",
349
- "",
350
- "",
351
- "",
352
- "",
353
- "",
354
- "",
355
- "",
356
- "",
357
- "",
358
- "",
359
- "",
360
- "",
361
- "",
362
- "",
363
- "",
364
- "",
365
- "",
366
- "",
367
- "",
368
- "",
369
- "",
370
- "",
371
- "",
372
- "",
373
- "",
374
- "",
375
- "",
376
- "",
377
- "",
378
- "",
379
- "\\u007F",
380
- "\\u0080",
381
- "\\u0081",
382
- "\\u0082",
383
- "\\u0083",
384
- "\\u0084",
385
- "\\u0085",
386
- "\\u0086",
387
- "\\u0087",
388
- "\\u0088",
389
- "\\u0089",
390
- "\\u008A",
391
- "\\u008B",
392
- "\\u008C",
393
- "\\u008D",
394
- "\\u008E",
395
- "\\u008F",
396
- "\\u0090",
397
- "\\u0091",
398
- "\\u0092",
399
- "\\u0093",
400
- "\\u0094",
401
- "\\u0095",
402
- "\\u0096",
403
- "\\u0097",
404
- "\\u0098",
405
- "\\u0099",
406
- "\\u009A",
407
- "\\u009B",
408
- "\\u009C",
409
- "\\u009D",
410
- "\\u009E",
411
- "\\u009F"
412
- ];
413
- //#endregion
414
- //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/visitor.mjs
415
- /**
416
- * A visitor is provided to visit, it contains the collection of
417
- * relevant functions to be called during the visitor's traversal.
418
- */
419
- const BREAK = Object.freeze({});
420
- /**
421
- * visit() will walk through an AST using a depth-first traversal, calling
422
- * the visitor's enter function at each node in the traversal, and calling the
423
- * leave function after visiting that node and all of its child nodes.
424
- *
425
- * By returning different values from the enter and leave functions, the
426
- * behavior of the visitor can be altered, including skipping over a sub-tree of
427
- * the AST (by returning false), editing the AST by returning a value or null
428
- * to remove the value, or to stop the whole traversal by returning BREAK.
429
- *
430
- * When using visit() to edit an AST, the original AST will not be modified, and
431
- * a new version of the AST with the changes applied will be returned from the
432
- * visit function.
433
- *
434
- * ```ts
435
- * const editedAST = visit(ast, {
436
- * enter(node, key, parent, path, ancestors) {
437
- * // @return
438
- * // undefined: no action
439
- * // false: skip visiting this node
440
- * // visitor.BREAK: stop visiting altogether
441
- * // null: delete this node
442
- * // any value: replace this node with the returned value
443
- * },
444
- * leave(node, key, parent, path, ancestors) {
445
- * // @return
446
- * // undefined: no action
447
- * // false: no action
448
- * // visitor.BREAK: stop visiting altogether
449
- * // null: delete this node
450
- * // any value: replace this node with the returned value
451
- * }
452
- * });
453
- * ```
454
- *
455
- * Alternatively to providing enter() and leave() functions, a visitor can
456
- * instead provide functions named the same as the kinds of AST nodes, or
457
- * enter/leave visitors at a named key, leading to three permutations of the
458
- * visitor API:
459
- *
460
- * 1) Named visitors triggered when entering a node of a specific kind.
461
- *
462
- * ```ts
463
- * visit(ast, {
464
- * Kind(node) {
465
- * // enter the "Kind" node
466
- * }
467
- * })
468
- * ```
469
- *
470
- * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.
471
- *
472
- * ```ts
473
- * visit(ast, {
474
- * Kind: {
475
- * enter(node) {
476
- * // enter the "Kind" node
477
- * }
478
- * leave(node) {
479
- * // leave the "Kind" node
480
- * }
481
- * }
482
- * })
483
- * ```
484
- *
485
- * 3) Generic visitors that trigger upon entering and leaving any node.
486
- *
487
- * ```ts
488
- * visit(ast, {
489
- * enter(node) {
490
- * // enter any node
491
- * },
492
- * leave(node) {
493
- * // leave any node
494
- * }
495
- * })
496
- * ```
497
- */
498
- function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
499
- const enterLeaveMap = /* @__PURE__ */ new Map();
500
- for (const kind of Object.values(Kind)) enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
501
- let stack = void 0;
502
- let inArray = Array.isArray(root);
503
- let keys = [root];
504
- let index = -1;
505
- let edits = [];
506
- let node = root;
507
- let key = void 0;
508
- let parent = void 0;
509
- const path = [];
510
- const ancestors = [];
511
- do {
512
- index++;
513
- const isLeaving = index === keys.length;
514
- const isEdited = isLeaving && edits.length !== 0;
515
- if (isLeaving) {
516
- key = ancestors.length === 0 ? void 0 : path[path.length - 1];
517
- node = parent;
518
- parent = ancestors.pop();
519
- if (isEdited) if (inArray) {
520
- node = node.slice();
521
- let editOffset = 0;
522
- for (const [editKey, editValue] of edits) {
523
- const arrayKey = editKey - editOffset;
524
- if (editValue === null) {
525
- node.splice(arrayKey, 1);
526
- editOffset++;
527
- } else node[arrayKey] = editValue;
528
- }
529
- } else {
530
- node = { ...node };
531
- for (const [editKey, editValue] of edits) node[editKey] = editValue;
532
- }
533
- index = stack.index;
534
- keys = stack.keys;
535
- edits = stack.edits;
536
- inArray = stack.inArray;
537
- stack = stack.prev;
538
- } else if (parent) {
539
- key = inArray ? index : keys[index];
540
- node = parent[key];
541
- if (node === null || node === void 0) continue;
542
- path.push(key);
543
- }
544
- let result;
545
- if (!Array.isArray(node)) {
546
- var _enterLeaveMap$get, _enterLeaveMap$get2;
547
- isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
548
- const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
549
- result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
550
- if (result === BREAK) break;
551
- if (result === false) {
552
- if (!isLeaving) {
553
- path.pop();
554
- continue;
555
- }
556
- } else if (result !== void 0) {
557
- edits.push([key, result]);
558
- if (!isLeaving) if (isNode(result)) node = result;
559
- else {
560
- path.pop();
561
- continue;
562
- }
563
- }
564
- }
565
- if (result === void 0 && isEdited) edits.push([key, node]);
566
- if (isLeaving) path.pop();
567
- else {
568
- var _node$kind;
569
- stack = {
570
- inArray,
571
- index,
572
- keys,
573
- edits,
574
- prev: stack
575
- };
576
- inArray = Array.isArray(node);
577
- keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
578
- index = -1;
579
- edits = [];
580
- if (parent) ancestors.push(parent);
581
- parent = node;
582
- }
583
- } while (stack !== void 0);
584
- if (edits.length !== 0) return edits[edits.length - 1][1];
585
- return root;
586
- }
587
- /**
588
- * Creates a new visitor instance which delegates to many visitors to run in
589
- * parallel. Each visitor will be visited for each node before moving on.
590
- *
591
- * If a prior visitor edits a node, no following visitors will see that node.
592
- */
593
- function visitInParallel(visitors) {
594
- const skipping = new Array(visitors.length).fill(null);
595
- const mergedVisitor = Object.create(null);
596
- for (const kind of Object.values(Kind)) {
597
- let hasVisitor = false;
598
- const enterList = new Array(visitors.length).fill(void 0);
599
- const leaveList = new Array(visitors.length).fill(void 0);
600
- for (let i = 0; i < visitors.length; ++i) {
601
- const { enter, leave } = getEnterLeaveForKind(visitors[i], kind);
602
- hasVisitor || (hasVisitor = enter != null || leave != null);
603
- enterList[i] = enter;
604
- leaveList[i] = leave;
605
- }
606
- if (!hasVisitor) continue;
607
- mergedVisitor[kind] = {
608
- enter(...args) {
609
- const node = args[0];
610
- for (let i = 0; i < visitors.length; i++) if (skipping[i] === null) {
611
- var _enterList$i;
612
- const result = (_enterList$i = enterList[i]) === null || _enterList$i === void 0 ? void 0 : _enterList$i.apply(visitors[i], args);
613
- if (result === false) skipping[i] = node;
614
- else if (result === BREAK) skipping[i] = BREAK;
615
- else if (result !== void 0) return result;
616
- }
617
- },
618
- leave(...args) {
619
- const node = args[0];
620
- for (let i = 0; i < visitors.length; i++) if (skipping[i] === null) {
621
- var _leaveList$i;
622
- const result = (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0 ? void 0 : _leaveList$i.apply(visitors[i], args);
623
- if (result === BREAK) skipping[i] = BREAK;
624
- else if (result !== void 0 && result !== false) return result;
625
- } else if (skipping[i] === node) skipping[i] = null;
626
- }
627
- };
628
- }
629
- return mergedVisitor;
630
- }
631
- /**
632
- * Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.
633
- */
634
- function getEnterLeaveForKind(visitor, kind) {
635
- const kindVisitor = visitor[kind];
636
- if (typeof kindVisitor === "object") return kindVisitor;
637
- else if (typeof kindVisitor === "function") return {
638
- enter: kindVisitor,
639
- leave: void 0
640
- };
641
- return {
642
- enter: visitor.enter,
643
- leave: visitor.leave
644
- };
645
- }
646
- //#endregion
647
- //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printer.mjs
648
- /**
649
- * Converts an AST into a string, using one set of reasonable
650
- * formatting rules.
651
- */
652
- function print(ast) {
653
- return visit(ast, printDocASTReducer);
654
- }
655
- const MAX_LINE_LENGTH = 80;
656
- const printDocASTReducer = {
657
- Name: { leave: (node) => node.value },
658
- Variable: { leave: (node) => "$" + node.name },
659
- Document: { leave: (node) => join(node.definitions, "\n\n") },
660
- OperationDefinition: { leave(node) {
661
- const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
662
- const prefix = wrap("", node.description, "\n") + join([
663
- node.operation,
664
- join([node.name, varDefs]),
665
- join(node.directives, " ")
666
- ], " ");
667
- return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
668
- } },
669
- VariableDefinition: { leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " ")) },
670
- SelectionSet: { leave: ({ selections }) => block(selections) },
671
- Field: { leave({ alias, name, arguments: args, directives, selectionSet }) {
672
- const prefix = wrap("", alias, ": ") + name;
673
- let argsLine = prefix + wrap("(", join(args, ", "), ")");
674
- if (argsLine.length > MAX_LINE_LENGTH) argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
675
- return join([
676
- argsLine,
677
- join(directives, " "),
678
- selectionSet
679
- ], " ");
680
- } },
681
- Argument: { leave: ({ name, value }) => name + ": " + value },
682
- FragmentSpread: { leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " ")) },
683
- InlineFragment: { leave: ({ typeCondition, directives, selectionSet }) => join([
684
- "...",
685
- wrap("on ", typeCondition),
686
- join(directives, " "),
687
- selectionSet
688
- ], " ") },
689
- FragmentDefinition: { leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet, description }) => wrap("", description, "\n") + `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet },
690
- IntValue: { leave: ({ value }) => value },
691
- FloatValue: { leave: ({ value }) => value },
692
- StringValue: { leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value) },
693
- BooleanValue: { leave: ({ value }) => value ? "true" : "false" },
694
- NullValue: { leave: () => "null" },
695
- EnumValue: { leave: ({ value }) => value },
696
- ListValue: { leave: ({ values }) => "[" + join(values, ", ") + "]" },
697
- ObjectValue: { leave: ({ fields }) => "{" + join(fields, ", ") + "}" },
698
- ObjectField: { leave: ({ name, value }) => name + ": " + value },
699
- Directive: { leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")") },
700
- NamedType: { leave: ({ name }) => name },
701
- ListType: { leave: ({ type }) => "[" + type + "]" },
702
- NonNullType: { leave: ({ type }) => type + "!" },
703
- SchemaDefinition: { leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join([
704
- "schema",
705
- join(directives, " "),
706
- block(operationTypes)
707
- ], " ") },
708
- OperationTypeDefinition: { leave: ({ operation, type }) => operation + ": " + type },
709
- ScalarTypeDefinition: { leave: ({ description, name, directives }) => wrap("", description, "\n") + join([
710
- "scalar",
711
- name,
712
- join(directives, " ")
713
- ], " ") },
714
- ObjectTypeDefinition: { leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join([
715
- "type",
716
- name,
717
- wrap("implements ", join(interfaces, " & ")),
718
- join(directives, " "),
719
- block(fields)
720
- ], " ") },
721
- FieldDefinition: { leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " ")) },
722
- InputValueDefinition: { leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join([
723
- name + ": " + type,
724
- wrap("= ", defaultValue),
725
- join(directives, " ")
726
- ], " ") },
727
- InterfaceTypeDefinition: { leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join([
728
- "interface",
729
- name,
730
- wrap("implements ", join(interfaces, " & ")),
731
- join(directives, " "),
732
- block(fields)
733
- ], " ") },
734
- UnionTypeDefinition: { leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join([
735
- "union",
736
- name,
737
- join(directives, " "),
738
- wrap("= ", join(types, " | "))
739
- ], " ") },
740
- EnumTypeDefinition: { leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join([
741
- "enum",
742
- name,
743
- join(directives, " "),
744
- block(values)
745
- ], " ") },
746
- EnumValueDefinition: { leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ") },
747
- InputObjectTypeDefinition: { leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join([
748
- "input",
749
- name,
750
- join(directives, " "),
751
- block(fields)
752
- ], " ") },
753
- DirectiveDefinition: { leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ") },
754
- SchemaExtension: { leave: ({ directives, operationTypes }) => join([
755
- "extend schema",
756
- join(directives, " "),
757
- block(operationTypes)
758
- ], " ") },
759
- ScalarTypeExtension: { leave: ({ name, directives }) => join([
760
- "extend scalar",
761
- name,
762
- join(directives, " ")
763
- ], " ") },
764
- ObjectTypeExtension: { leave: ({ name, interfaces, directives, fields }) => join([
765
- "extend type",
766
- name,
767
- wrap("implements ", join(interfaces, " & ")),
768
- join(directives, " "),
769
- block(fields)
770
- ], " ") },
771
- InterfaceTypeExtension: { leave: ({ name, interfaces, directives, fields }) => join([
772
- "extend interface",
773
- name,
774
- wrap("implements ", join(interfaces, " & ")),
775
- join(directives, " "),
776
- block(fields)
777
- ], " ") },
778
- UnionTypeExtension: { leave: ({ name, directives, types }) => join([
779
- "extend union",
780
- name,
781
- join(directives, " "),
782
- wrap("= ", join(types, " | "))
783
- ], " ") },
784
- EnumTypeExtension: { leave: ({ name, directives, values }) => join([
785
- "extend enum",
786
- name,
787
- join(directives, " "),
788
- block(values)
789
- ], " ") },
790
- InputObjectTypeExtension: { leave: ({ name, directives, fields }) => join([
791
- "extend input",
792
- name,
793
- join(directives, " "),
794
- block(fields)
795
- ], " ") },
796
- TypeCoordinate: { leave: ({ name }) => name },
797
- MemberCoordinate: { leave: ({ name, memberName }) => join([name, wrap(".", memberName)]) },
798
- ArgumentCoordinate: { leave: ({ name, fieldName, argumentName }) => join([
799
- name,
800
- wrap(".", fieldName),
801
- wrap("(", argumentName, ":)")
802
- ]) },
803
- DirectiveCoordinate: { leave: ({ name }) => join(["@", name]) },
804
- DirectiveArgumentCoordinate: { leave: ({ name, argumentName }) => join([
805
- "@",
806
- name,
807
- wrap("(", argumentName, ":)")
808
- ]) }
809
- };
810
- /**
811
- * Given maybeArray, print an empty string if it is null or empty, otherwise
812
- * print all items together separated by separator if provided
813
- */
814
- function join(maybeArray, separator = "") {
815
- var _maybeArray$filter$jo;
816
- return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
817
- }
818
- /**
819
- * Given array, print each item on its own line, wrapped in an indented `{ }` block.
820
- */
821
- function block(array) {
822
- return wrap("{\n", indent(join(array, "\n")), "\n}");
823
- }
824
- /**
825
- * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.
826
- */
827
- function wrap(start, maybeString, end = "") {
828
- return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
829
- }
830
- function indent(str) {
831
- return wrap(" ", str.replace(/\n/g, "\n "));
832
- }
833
- function hasMultilineItems(maybeArray) {
834
- var _maybeArray$some;
835
- /* c8 ignore next */
836
- return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
837
- }
838
- //#endregion
839
240
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/utilities/valueFromASTUntyped.mjs
840
241
  /**
841
242
  * Produces a JavaScript value given a GraphQL Value AST.
@@ -6782,6 +6183,6 @@ const typeDefsDoc = typeDefs.join("\n");
6782
6183
  const initialSchemaStr = printSchema(buildSchema(`${hiddenQueryTypeDefDoc}\n${typeDefsDoc}`));
6783
6184
  const updateTimeout = 5e3;
6784
6185
  //#endregion
6785
- export { getNamedType as $, validateSchema as A, GraphQLInt as B, NoUnusedFragmentsRule as C, KnownDirectivesRule as D, KnownFragmentNamesRule as E, GraphQLDirective as F, GraphQLInputObjectType as G, isSpecifiedScalarType as H, isSpecifiedDirective as I, GraphQLNonNull as J, GraphQLInterfaceType as K, GraphQLBoolean as L, SchemaMetaFieldDef as M, TypeMetaFieldDef as N, FragmentsOnCompositeTypesRule as O, TypeNameMetaFieldDef as P, assertAbstractType as Q, GraphQLFloat as R, PossibleTypeExtensionsRule as S, KnownTypeNamesRule as T, doTypesOverlap as U, GraphQLString as V, GraphQLEnumType as W, GraphQLScalarType as X, GraphQLObjectType as Y, GraphQLUnionType as Z, UniqueDirectivesPerLocationRule as _, visit as _t, customScalars as a, isInputType as at, getVariableValues as b, buildSchema as c, isListType as ct, UniqueVariableNamesRule as d, isObjectType as dt, getNullableType as et, UniqueTypeNamesRule as f, isOutputType as ft, UniqueEnumValueNamesRule as g, BREAK as gt, UniqueFieldDefinitionNamesRule as h, print as ht, updateTimeout as i, isInputObjectType as it, GraphQLSchema as j, ExecutableDefinitionsRule as k, validate as l, isNamedType as lt, UniqueInputFieldNamesRule as m, isUnionType as mt, initialSchemaStr as n, isCompositeType as nt, printSchema as o, isInterfaceType as ot, UniqueOperationTypesRule as p, isScalarType as pt, GraphQLList as q, typeDefsDoc as r, isEnumType as rt, buildASTSchema as s, isLeafType as st, hiddenQueryTypeDefDoc as t, isAbstractType as tt, specifiedRules as u, isNonNullType as ut, UniqueDirectiveNamesRule as v, LoneSchemaDefinitionRule as w, ProvidedRequiredArgumentsRule as x, UniqueArgumentNamesRule as y, GraphQLID as z };
6186
+ export { getNamedType as $, validateSchema as A, GraphQLInt as B, NoUnusedFragmentsRule as C, KnownDirectivesRule as D, KnownFragmentNamesRule as E, GraphQLDirective as F, GraphQLInputObjectType as G, isSpecifiedScalarType as H, isSpecifiedDirective as I, GraphQLNonNull as J, GraphQLInterfaceType as K, GraphQLBoolean as L, SchemaMetaFieldDef as M, TypeMetaFieldDef as N, FragmentsOnCompositeTypesRule as O, TypeNameMetaFieldDef as P, assertAbstractType as Q, GraphQLFloat as R, PossibleTypeExtensionsRule as S, KnownTypeNamesRule as T, doTypesOverlap as U, GraphQLString as V, GraphQLEnumType as W, GraphQLScalarType as X, GraphQLObjectType as Y, GraphQLUnionType as Z, UniqueDirectivesPerLocationRule as _, customScalars as a, isInputType as at, getVariableValues as b, buildSchema as c, isListType as ct, UniqueVariableNamesRule as d, isObjectType as dt, getNullableType as et, UniqueTypeNamesRule as f, isOutputType as ft, UniqueEnumValueNamesRule as g, UniqueFieldDefinitionNamesRule as h, updateTimeout as i, isInputObjectType as it, GraphQLSchema as j, ExecutableDefinitionsRule as k, validate as l, isNamedType as lt, UniqueInputFieldNamesRule as m, isUnionType as mt, initialSchemaStr as n, isCompositeType as nt, printSchema as o, isInterfaceType as ot, UniqueOperationTypesRule as p, isScalarType as pt, GraphQLList as q, typeDefsDoc as r, isEnumType as rt, buildASTSchema as s, isLeafType as st, hiddenQueryTypeDefDoc as t, isAbstractType as tt, specifiedRules as u, isNonNullType as ut, UniqueDirectiveNamesRule as v, LoneSchemaDefinitionRule as w, ProvidedRequiredArgumentsRule as x, UniqueArgumentNamesRule as y, GraphQLID as z };
6786
6187
 
6787
- //# sourceMappingURL=documents-D4ek7Ubv.js.map
6188
+ //# sourceMappingURL=documents-J_l59mSV.js.map