@tinacms/graphql 0.57.2 → 0.58.0

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 (31) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{primitives/ast-builder → ast-builder}/index.d.ts +0 -0
  3. package/dist/{primitives/build.d.ts → build.d.ts} +5 -3
  4. package/dist/{primitives/builder → builder}/index.d.ts +5 -11
  5. package/dist/{primitives/builder → builder}/static-definitions.d.ts +0 -0
  6. package/dist/{primitives/database/bridge.d.ts → database/bridge/filesystem.d.ts} +3 -5
  7. package/dist/{primitives/database → database/bridge}/github.d.ts +3 -1
  8. package/dist/database/bridge/index.d.ts +23 -0
  9. package/dist/{primitives/database → database}/index.d.ts +26 -16
  10. package/dist/database/store/filesystem.d.ts +28 -0
  11. package/dist/database/store/github.d.ts +37 -0
  12. package/dist/database/store/index.d.ts +74 -0
  13. package/dist/database/store/level.d.ts +29 -0
  14. package/dist/database/store/memory.d.ts +33 -0
  15. package/dist/database/util.d.ts +16 -0
  16. package/dist/index.d.ts +13 -4
  17. package/dist/index.js +1472 -694
  18. package/dist/{primitives/mdx → mdx}/index.d.ts +0 -0
  19. package/dist/{primitives/mdx → mdx}/parse.d.ts +0 -0
  20. package/dist/{primitives/mdx → mdx}/stringify.d.ts +0 -0
  21. package/dist/{primitives/resolve.d.ts → resolve.d.ts} +0 -0
  22. package/dist/{primitives/resolver → resolver}/error.d.ts +12 -0
  23. package/dist/{primitives/resolver → resolver}/index.d.ts +3 -34
  24. package/dist/{primitives/schema → schema}/index.d.ts +1 -0
  25. package/dist/{primitives/schema → schema}/validate.d.ts +0 -0
  26. package/dist/sdkBuilder/index.d.ts +1 -1
  27. package/dist/{primitives/spec → spec}/setup.d.ts +24 -30
  28. package/dist/{primitives/types.d.ts → types.d.ts} +1 -0
  29. package/dist/{primitives/util.d.ts → util.d.ts} +0 -0
  30. package/package.json +12 -8
  31. package/dist/primitives/index.d.ts +0 -40
package/dist/index.js CHANGED
@@ -54,9 +54,9 @@ var __toModule = (module2) => {
54
54
  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
55
55
  };
56
56
 
57
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/_lib/requiredArgs/index.js
57
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/_lib/requiredArgs/index.js
58
58
  var require_requiredArgs = __commonJS({
59
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/_lib/requiredArgs/index.js"(exports, module2) {
59
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/_lib/requiredArgs/index.js"(exports, module2) {
60
60
  "use strict";
61
61
  Object.defineProperty(exports, "__esModule", {
62
62
  value: true
@@ -71,9 +71,9 @@ var require_requiredArgs = __commonJS({
71
71
  }
72
72
  });
73
73
 
74
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/toDate/index.js
74
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/toDate/index.js
75
75
  var require_toDate = __commonJS({
76
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/toDate/index.js"(exports, module2) {
76
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/toDate/index.js"(exports, module2) {
77
77
  "use strict";
78
78
  Object.defineProperty(exports, "__esModule", {
79
79
  value: true
@@ -102,9 +102,9 @@ var require_toDate = __commonJS({
102
102
  }
103
103
  });
104
104
 
105
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/isValid/index.js
105
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/isValid/index.js
106
106
  var require_isValid = __commonJS({
107
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/isValid/index.js"(exports, module2) {
107
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/date-fns-npm-2.22.1-cc0cbadceb-a89dc6cdf3.zip/node_modules/date-fns/isValid/index.js"(exports, module2) {
108
108
  "use strict";
109
109
  Object.defineProperty(exports, "__esModule", {
110
110
  value: true
@@ -124,18 +124,18 @@ var require_isValid = __commonJS({
124
124
  }
125
125
  });
126
126
 
127
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-buffer-npm-2.0.5-17e563f277-1a6dc68206.zip/node_modules/is-buffer/index.js
127
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-buffer-npm-2.0.5-17e563f277-1a6dc68206.zip/node_modules/is-buffer/index.js
128
128
  var require_is_buffer = __commonJS({
129
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-buffer-npm-2.0.5-17e563f277-1a6dc68206.zip/node_modules/is-buffer/index.js"(exports, module2) {
129
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-buffer-npm-2.0.5-17e563f277-1a6dc68206.zip/node_modules/is-buffer/index.js"(exports, module2) {
130
130
  module2.exports = function isBuffer2(obj) {
131
131
  return obj != null && obj.constructor != null && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
132
132
  };
133
133
  }
134
134
  });
135
135
 
136
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/extend-npm-3.0.2-e1ca07ac54-1406da1f0c.zip/node_modules/extend/index.js
136
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/extend-npm-3.0.2-e1ca07ac54-1406da1f0c.zip/node_modules/extend/index.js
137
137
  var require_extend = __commonJS({
138
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/extend-npm-3.0.2-e1ca07ac54-1406da1f0c.zip/node_modules/extend/index.js"(exports, module2) {
138
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/extend-npm-3.0.2-e1ca07ac54-1406da1f0c.zip/node_modules/extend/index.js"(exports, module2) {
139
139
  "use strict";
140
140
  var hasOwn = Object.prototype.hasOwnProperty;
141
141
  var toStr = Object.prototype.toString;
@@ -224,27 +224,27 @@ var require_extend = __commonJS({
224
224
  }
225
225
  });
226
226
 
227
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/has-own-property.js
227
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/has-own-property.js
228
228
  var require_has_own_property = __commonJS({
229
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/has-own-property.js"(exports, module2) {
229
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/has-own-property.js"(exports, module2) {
230
230
  "use strict";
231
231
  var own9 = {}.hasOwnProperty;
232
232
  module2.exports = own9;
233
233
  }
234
234
  });
235
235
 
236
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/splice.js
236
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/splice.js
237
237
  var require_splice = __commonJS({
238
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/splice.js"(exports, module2) {
238
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/splice.js"(exports, module2) {
239
239
  "use strict";
240
240
  var splice2 = [].splice;
241
241
  module2.exports = splice2;
242
242
  }
243
243
  });
244
244
 
245
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/chunked-splice.js
245
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/chunked-splice.js
246
246
  var require_chunked_splice = __commonJS({
247
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/chunked-splice.js"(exports, module2) {
247
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/chunked-splice.js"(exports, module2) {
248
248
  "use strict";
249
249
  var splice2 = require_splice();
250
250
  function chunkedSplice(list3, start, remove, items) {
@@ -277,9 +277,9 @@ var require_chunked_splice = __commonJS({
277
277
  }
278
278
  });
279
279
 
280
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/miniflat.js
280
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/miniflat.js
281
281
  var require_miniflat = __commonJS({
282
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/miniflat.js"(exports, module2) {
282
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/miniflat.js"(exports, module2) {
283
283
  "use strict";
284
284
  function miniflat(value) {
285
285
  return value === null || value === void 0 ? [] : "length" in value ? value : [value];
@@ -288,9 +288,9 @@ var require_miniflat = __commonJS({
288
288
  }
289
289
  });
290
290
 
291
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/combine-extensions.js
291
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/combine-extensions.js
292
292
  var require_combine_extensions = __commonJS({
293
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/combine-extensions.js"(exports, module2) {
293
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/combine-extensions.js"(exports, module2) {
294
294
  "use strict";
295
295
  var hasOwnProperty3 = require_has_own_property();
296
296
  var chunkedSplice = require_chunked_splice();
@@ -330,9 +330,9 @@ var require_combine_extensions = __commonJS({
330
330
  }
331
331
  });
332
332
 
333
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending.js
333
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending.js
334
334
  var require_markdown_line_ending = __commonJS({
335
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending.js"(exports, module2) {
335
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending.js"(exports, module2) {
336
336
  "use strict";
337
337
  function markdownLineEnding2(code2) {
338
338
  return code2 < -2;
@@ -341,9 +341,9 @@ var require_markdown_line_ending = __commonJS({
341
341
  }
342
342
  });
343
343
 
344
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-space.js
344
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-space.js
345
345
  var require_markdown_space = __commonJS({
346
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-space.js"(exports, module2) {
346
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-space.js"(exports, module2) {
347
347
  "use strict";
348
348
  function markdownSpace2(code2) {
349
349
  return code2 === -2 || code2 === -1 || code2 === 32;
@@ -352,9 +352,9 @@ var require_markdown_space = __commonJS({
352
352
  }
353
353
  });
354
354
 
355
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-space.js
355
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-space.js
356
356
  var require_factory_space = __commonJS({
357
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-space.js"(exports, module2) {
357
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-space.js"(exports, module2) {
358
358
  "use strict";
359
359
  var markdownSpace2 = require_markdown_space();
360
360
  function spaceFactory(effects, ok2, type, max) {
@@ -381,9 +381,9 @@ var require_factory_space = __commonJS({
381
381
  }
382
382
  });
383
383
 
384
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-whitespace.js
384
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-whitespace.js
385
385
  var require_factory_whitespace = __commonJS({
386
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-whitespace.js"(exports, module2) {
386
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/factory-whitespace.js"(exports, module2) {
387
387
  "use strict";
388
388
  var markdownLineEnding2 = require_markdown_line_ending();
389
389
  var markdownSpace2 = require_markdown_space();
@@ -409,9 +409,9 @@ var require_factory_whitespace = __commonJS({
409
409
  }
410
410
  });
411
411
 
412
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-stringify-position-npm-2.0.3-abaa9bf961-2017497ef7.zip/node_modules/unist-util-stringify-position/index.js
412
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-stringify-position-npm-2.0.3-abaa9bf961-2017497ef7.zip/node_modules/unist-util-stringify-position/index.js
413
413
  var require_unist_util_stringify_position = __commonJS({
414
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-stringify-position-npm-2.0.3-abaa9bf961-2017497ef7.zip/node_modules/unist-util-stringify-position/index.js"(exports, module2) {
414
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-stringify-position-npm-2.0.3-abaa9bf961-2017497ef7.zip/node_modules/unist-util-stringify-position/index.js"(exports, module2) {
415
415
  "use strict";
416
416
  var own9 = {}.hasOwnProperty;
417
417
  module2.exports = stringify2;
@@ -448,9 +448,9 @@ var require_unist_util_stringify_position = __commonJS({
448
448
  }
449
449
  });
450
450
 
451
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-message-npm-2.0.4-ca3f9b6719-a88f41883c.zip/node_modules/vfile-message/index.js
451
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-message-npm-2.0.4-ca3f9b6719-a88f41883c.zip/node_modules/vfile-message/index.js
452
452
  var require_vfile_message = __commonJS({
453
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-message-npm-2.0.4-ca3f9b6719-a88f41883c.zip/node_modules/vfile-message/index.js"(exports, module2) {
453
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-message-npm-2.0.4-ca3f9b6719-a88f41883c.zip/node_modules/vfile-message/index.js"(exports, module2) {
454
454
  "use strict";
455
455
  var stringify2 = require_unist_util_stringify_position();
456
456
  module2.exports = VMessage;
@@ -522,9 +522,9 @@ var require_vfile_message = __commonJS({
522
522
  }
523
523
  });
524
524
 
525
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/util-events-to-acorn.js
525
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/util-events-to-acorn.js
526
526
  var require_util_events_to_acorn = __commonJS({
527
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/util-events-to-acorn.js"(exports, module2) {
527
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/util-events-to-acorn.js"(exports, module2) {
528
528
  "use strict";
529
529
  var VMessage = require_vfile_message();
530
530
  module2.exports = eventsToAcorn;
@@ -669,9 +669,9 @@ var require_util_events_to_acorn = __commonJS({
669
669
  }
670
670
  });
671
671
 
672
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/factory-expression.js
672
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/factory-expression.js
673
673
  var require_factory_expression = __commonJS({
674
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/factory-expression.js"(exports, module2) {
674
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/factory-expression.js"(exports, module2) {
675
675
  "use strict";
676
676
  module2.exports = factoryExpression;
677
677
  var markdownLineEnding2 = require_markdown_line_ending();
@@ -784,9 +784,9 @@ var require_factory_expression = __commonJS({
784
784
  }
785
785
  });
786
786
 
787
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/index.js
787
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/index.js
788
788
  var require_lib = __commonJS({
789
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/index.js"(exports, module2) {
789
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/lib/index.js"(exports, module2) {
790
790
  "use strict";
791
791
  module2.exports = mdxExpression;
792
792
  var markdownLineEnding2 = require_markdown_line_ending();
@@ -838,25 +838,25 @@ var require_lib = __commonJS({
838
838
  }
839
839
  });
840
840
 
841
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/index.js
841
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/index.js
842
842
  var require_micromark_extension_mdx_expression = __commonJS({
843
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/index.js"(exports, module2) {
843
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-expression-npm-0.3.2-2a4a54711b-433b81d977.zip/node_modules/micromark-extension-mdx-expression/index.js"(exports, module2) {
844
844
  "use strict";
845
845
  module2.exports = require_lib();
846
846
  }
847
847
  });
848
848
 
849
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/regex.js
849
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/regex.js
850
850
  var require_regex = __commonJS({
851
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/regex.js"(exports) {
851
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/regex.js"(exports) {
852
852
  exports.start = /[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;
853
853
  exports.cont = /[0-9\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/;
854
854
  }
855
855
  });
856
856
 
857
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/index.js
857
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/index.js
858
858
  var require_estree_util_is_identifier_name = __commonJS({
859
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/index.js"(exports) {
859
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-af7043149a.zip/node_modules/estree-util-is-identifier-name/index.js"(exports) {
860
860
  "use strict";
861
861
  exports.start = start;
862
862
  exports.cont = cont;
@@ -880,9 +880,9 @@ var require_estree_util_is_identifier_name = __commonJS({
880
880
  }
881
881
  });
882
882
 
883
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending-or-space.js
883
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending-or-space.js
884
884
  var require_markdown_line_ending_or_space = __commonJS({
885
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending-or-space.js"(exports, module2) {
885
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/markdown-line-ending-or-space.js"(exports, module2) {
886
886
  "use strict";
887
887
  function markdownLineEndingOrSpace2(code2) {
888
888
  return code2 < 0 || code2 === 32;
@@ -891,18 +891,18 @@ var require_markdown_line_ending_or_space = __commonJS({
891
891
  }
892
892
  });
893
893
 
894
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/from-char-code.js
894
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/from-char-code.js
895
895
  var require_from_char_code = __commonJS({
896
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/from-char-code.js"(exports, module2) {
896
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/constant/from-char-code.js"(exports, module2) {
897
897
  "use strict";
898
898
  var fromCharCode2 = String.fromCharCode;
899
899
  module2.exports = fromCharCode2;
900
900
  }
901
901
  });
902
902
 
903
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/regex-check.js
903
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/regex-check.js
904
904
  var require_regex_check = __commonJS({
905
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/regex-check.js"(exports, module2) {
905
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/util/regex-check.js"(exports, module2) {
906
906
  "use strict";
907
907
  var fromCharCode2 = require_from_char_code();
908
908
  function regexCheck2(regex) {
@@ -915,9 +915,9 @@ var require_regex_check = __commonJS({
915
915
  }
916
916
  });
917
917
 
918
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/unicode-whitespace.js
918
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/unicode-whitespace.js
919
919
  var require_unicode_whitespace = __commonJS({
920
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/unicode-whitespace.js"(exports, module2) {
920
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/character/unicode-whitespace.js"(exports, module2) {
921
921
  "use strict";
922
922
  var regexCheck2 = require_regex_check();
923
923
  var unicodeWhitespace2 = regexCheck2(/\s/);
@@ -925,9 +925,9 @@ var require_unicode_whitespace = __commonJS({
925
925
  }
926
926
  });
927
927
 
928
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/factory-tag.js
928
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/factory-tag.js
929
929
  var require_factory_tag = __commonJS({
930
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/factory-tag.js"(exports, module2) {
930
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/factory-tag.js"(exports, module2) {
931
931
  "use strict";
932
932
  module2.exports = factoryTag;
933
933
  var id = require_estree_util_is_identifier_name();
@@ -1277,9 +1277,9 @@ var require_factory_tag = __commonJS({
1277
1277
  }
1278
1278
  });
1279
1279
 
1280
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-text.js
1280
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-text.js
1281
1281
  var require_jsx_text = __commonJS({
1282
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-text.js"(exports, module2) {
1282
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-text.js"(exports, module2) {
1283
1283
  "use strict";
1284
1284
  module2.exports = createJsxText;
1285
1285
  var factoryTag = require_factory_tag();
@@ -1292,9 +1292,9 @@ var require_jsx_text = __commonJS({
1292
1292
  }
1293
1293
  });
1294
1294
 
1295
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-flow.js
1295
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-flow.js
1296
1296
  var require_jsx_flow = __commonJS({
1297
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-flow.js"(exports, module2) {
1297
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/jsx-flow.js"(exports, module2) {
1298
1298
  "use strict";
1299
1299
  module2.exports = createJsxFlow;
1300
1300
  var markdownLineEnding2 = require_markdown_line_ending();
@@ -1319,9 +1319,9 @@ var require_jsx_flow = __commonJS({
1319
1319
  }
1320
1320
  });
1321
1321
 
1322
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/index.js
1322
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/index.js
1323
1323
  var require_lib2 = __commonJS({
1324
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/index.js"(exports, module2) {
1324
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/lib/index.js"(exports, module2) {
1325
1325
  "use strict";
1326
1326
  module2.exports = mdxJsx;
1327
1327
  var createJsxText = require_jsx_text();
@@ -1347,17 +1347,17 @@ var require_lib2 = __commonJS({
1347
1347
  }
1348
1348
  });
1349
1349
 
1350
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/index.js
1350
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/index.js
1351
1351
  var require_micromark_extension_mdx_jsx = __commonJS({
1352
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/index.js"(exports, module2) {
1352
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-jsx-npm-0.3.3-1a20ad1f60-2af2c66822.zip/node_modules/micromark-extension-mdx-jsx/index.js"(exports, module2) {
1353
1353
  "use strict";
1354
1354
  module2.exports = require_lib2();
1355
1355
  }
1356
1356
  });
1357
1357
 
1358
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-md-npm-0.1.1-c765df71f1-7790328412.zip/node_modules/micromark-extension-mdx-md/index.js
1358
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-md-npm-0.1.1-c765df71f1-7790328412.zip/node_modules/micromark-extension-mdx-md/index.js
1359
1359
  var require_micromark_extension_mdx_md = __commonJS({
1360
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-md-npm-0.1.1-c765df71f1-7790328412.zip/node_modules/micromark-extension-mdx-md/index.js"(exports, module2) {
1360
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-md-npm-0.1.1-c765df71f1-7790328412.zip/node_modules/micromark-extension-mdx-md/index.js"(exports, module2) {
1361
1361
  "use strict";
1362
1362
  module2.exports = {
1363
1363
  disable: { null: ["autolink", "codeIndented", "htmlFlow", "htmlText"] }
@@ -1365,9 +1365,9 @@ var require_micromark_extension_mdx_md = __commonJS({
1365
1365
  }
1366
1366
  });
1367
1367
 
1368
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-npm-0.2.1-d4c81ce768-042fabf994.zip/node_modules/micromark-extension-mdx/index.js
1368
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-npm-0.2.1-d4c81ce768-042fabf994.zip/node_modules/micromark-extension-mdx/index.js
1369
1369
  var require_micromark_extension_mdx = __commonJS({
1370
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdx-npm-0.2.1-d4c81ce768-042fabf994.zip/node_modules/micromark-extension-mdx/index.js"(exports, module2) {
1370
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdx-npm-0.2.1-d4c81ce768-042fabf994.zip/node_modules/micromark-extension-mdx/index.js"(exports, module2) {
1371
1371
  var combine = require_combine_extensions();
1372
1372
  var expression = require_micromark_extension_mdx_expression();
1373
1373
  var jsx = require_micromark_extension_mdx_jsx();
@@ -1379,9 +1379,9 @@ var require_micromark_extension_mdx = __commonJS({
1379
1379
  }
1380
1380
  });
1381
1381
 
1382
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/acorn-npm-8.5.0-faed0ea119-989ff8bf4b.zip/node_modules/acorn/dist/acorn.js
1382
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/acorn-npm-8.5.0-faed0ea119-989ff8bf4b.zip/node_modules/acorn/dist/acorn.js
1383
1383
  var require_acorn = __commonJS({
1384
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/acorn-npm-8.5.0-faed0ea119-989ff8bf4b.zip/node_modules/acorn/dist/acorn.js"(exports, module2) {
1384
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/acorn-npm-8.5.0-faed0ea119-989ff8bf4b.zip/node_modules/acorn/dist/acorn.js"(exports, module2) {
1385
1385
  (function(global, factory) {
1386
1386
  typeof exports === "object" && typeof module2 !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = global || self, factory(global.acorn = {}));
1387
1387
  })(exports, function(exports2) {
@@ -6086,9 +6086,9 @@ var require_acorn = __commonJS({
6086
6086
  }
6087
6087
  });
6088
6088
 
6089
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/xhtml.js
6089
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/xhtml.js
6090
6090
  var require_xhtml = __commonJS({
6091
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/xhtml.js"(exports, module2) {
6091
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/xhtml.js"(exports, module2) {
6092
6092
  module2.exports = {
6093
6093
  quot: '"',
6094
6094
  amp: "&",
@@ -6347,9 +6347,9 @@ var require_xhtml = __commonJS({
6347
6347
  }
6348
6348
  });
6349
6349
 
6350
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/index.js
6350
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/index.js
6351
6351
  var require_acorn_jsx = __commonJS({
6352
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/index.js"(exports, module2) {
6352
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/$$virtual/acorn-jsx-virtual-72c18c2401/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-41c748fd26.zip/node_modules/acorn-jsx/index.js"(exports, module2) {
6353
6353
  "use strict";
6354
6354
  var XHTMLEntities = require_xhtml();
6355
6355
  var hexNumber = /^[\da-fA-F]+$/;
@@ -6749,9 +6749,9 @@ var require_acorn_jsx = __commonJS({
6749
6749
  }
6750
6750
  });
6751
6751
 
6752
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/partial-blank-line.js
6752
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/partial-blank-line.js
6753
6753
  var require_partial_blank_line = __commonJS({
6754
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/partial-blank-line.js"(exports, module2) {
6754
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-2.11.4-f7ec94840a-343bfde8ac.zip/node_modules/micromark/dist/tokenize/partial-blank-line.js"(exports, module2) {
6755
6755
  "use strict";
6756
6756
  var markdownLineEnding2 = require_markdown_line_ending();
6757
6757
  var factorySpace2 = require_factory_space();
@@ -6769,9 +6769,9 @@ var require_partial_blank_line = __commonJS({
6769
6769
  }
6770
6770
  });
6771
6771
 
6772
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdxjs-esm-npm-0.3.1-0ac8d5f686-86515d1c87.zip/node_modules/micromark-extension-mdxjs-esm/index.js
6772
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdxjs-esm-npm-0.3.1-0ac8d5f686-86515d1c87.zip/node_modules/micromark-extension-mdxjs-esm/index.js
6773
6773
  var require_micromark_extension_mdxjs_esm = __commonJS({
6774
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdxjs-esm-npm-0.3.1-0ac8d5f686-86515d1c87.zip/node_modules/micromark-extension-mdxjs-esm/index.js"(exports, module2) {
6774
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdxjs-esm-npm-0.3.1-0ac8d5f686-86515d1c87.zip/node_modules/micromark-extension-mdxjs-esm/index.js"(exports, module2) {
6775
6775
  "use strict";
6776
6776
  module2.exports = mdxjs;
6777
6777
  var markdownLineEnding2 = require_markdown_line_ending();
@@ -6920,9 +6920,9 @@ var require_micromark_extension_mdxjs_esm = __commonJS({
6920
6920
  }
6921
6921
  });
6922
6922
 
6923
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdxjs-npm-0.3.0-c6d1b2ce91-8797785450.zip/node_modules/micromark-extension-mdxjs/index.js
6923
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdxjs-npm-0.3.0-c6d1b2ce91-8797785450.zip/node_modules/micromark-extension-mdxjs/index.js
6924
6924
  var require_micromark_extension_mdxjs = __commonJS({
6925
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-extension-mdxjs-npm-0.3.0-c6d1b2ce91-8797785450.zip/node_modules/micromark-extension-mdxjs/index.js"(exports, module2) {
6925
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-extension-mdxjs-npm-0.3.0-c6d1b2ce91-8797785450.zip/node_modules/micromark-extension-mdxjs/index.js"(exports, module2) {
6926
6926
  var acorn = require_acorn();
6927
6927
  var acornJsx = require_acorn_jsx();
6928
6928
  var combine = require_combine_extensions();
@@ -6942,9 +6942,9 @@ var require_micromark_extension_mdxjs = __commonJS({
6942
6942
  }
6943
6943
  });
6944
6944
 
6945
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/min-indent-npm-1.0.1-77031f50e1-c3aeea46bc.zip/node_modules/min-indent/index.js
6945
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/min-indent-npm-1.0.1-77031f50e1-c3aeea46bc.zip/node_modules/min-indent/index.js
6946
6946
  var require_min_indent = __commonJS({
6947
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/min-indent-npm-1.0.1-77031f50e1-c3aeea46bc.zip/node_modules/min-indent/index.js"(exports, module2) {
6947
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/min-indent-npm-1.0.1-77031f50e1-c3aeea46bc.zip/node_modules/min-indent/index.js"(exports, module2) {
6948
6948
  "use strict";
6949
6949
  module2.exports = (string4) => {
6950
6950
  const match = string4.match(/^[ \t]*(?=\S)/gm);
@@ -6956,9 +6956,9 @@ var require_min_indent = __commonJS({
6956
6956
  }
6957
6957
  });
6958
6958
 
6959
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/strip-indent-npm-3.0.0-519e75a28d-4a7860e943.zip/node_modules/strip-indent/index.js
6959
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/strip-indent-npm-3.0.0-519e75a28d-4a7860e943.zip/node_modules/strip-indent/index.js
6960
6960
  var require_strip_indent = __commonJS({
6961
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/strip-indent-npm-3.0.0-519e75a28d-4a7860e943.zip/node_modules/strip-indent/index.js"(exports, module2) {
6961
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/strip-indent-npm-3.0.0-519e75a28d-4a7860e943.zip/node_modules/strip-indent/index.js"(exports, module2) {
6962
6962
  "use strict";
6963
6963
  var minIndent = require_min_indent();
6964
6964
  module2.exports = (string4) => {
@@ -6972,9 +6972,9 @@ var require_strip_indent = __commonJS({
6972
6972
  }
6973
6973
  });
6974
6974
 
6975
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/from-markdown.js
6975
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/from-markdown.js
6976
6976
  var require_from_markdown = __commonJS({
6977
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/from-markdown.js"(exports) {
6977
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/from-markdown.js"(exports) {
6978
6978
  exports.enter = {
6979
6979
  mdxFlowExpression: enterMdxFlowExpression,
6980
6980
  mdxTextExpression: enterMdxTextExpression
@@ -7017,9 +7017,9 @@ var require_from_markdown = __commonJS({
7017
7017
  }
7018
7018
  });
7019
7019
 
7020
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-entities-legacy-npm-1.1.4-e3e7c8ee55-bb1e426146.zip/node_modules/character-entities-legacy/index.json
7020
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-entities-legacy-npm-1.1.4-e3e7c8ee55-bb1e426146.zip/node_modules/character-entities-legacy/index.json
7021
7021
  var require_character_entities_legacy = __commonJS({
7022
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-entities-legacy-npm-1.1.4-e3e7c8ee55-bb1e426146.zip/node_modules/character-entities-legacy/index.json"(exports, module2) {
7022
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-entities-legacy-npm-1.1.4-e3e7c8ee55-bb1e426146.zip/node_modules/character-entities-legacy/index.json"(exports, module2) {
7023
7023
  module2.exports = {
7024
7024
  AElig: "\xC6",
7025
7025
  AMP: "&",
@@ -7131,9 +7131,9 @@ var require_character_entities_legacy = __commonJS({
7131
7131
  }
7132
7132
  });
7133
7133
 
7134
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-reference-invalid-npm-1.1.4-e5e17a1a38-82d8ce7828.zip/node_modules/character-reference-invalid/index.json
7134
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-reference-invalid-npm-1.1.4-e5e17a1a38-82d8ce7828.zip/node_modules/character-reference-invalid/index.json
7135
7135
  var require_character_reference_invalid = __commonJS({
7136
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-reference-invalid-npm-1.1.4-e5e17a1a38-82d8ce7828.zip/node_modules/character-reference-invalid/index.json"(exports, module2) {
7136
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-reference-invalid-npm-1.1.4-e5e17a1a38-82d8ce7828.zip/node_modules/character-reference-invalid/index.json"(exports, module2) {
7137
7137
  module2.exports = {
7138
7138
  "0": "\uFFFD",
7139
7139
  "128": "\u20AC",
@@ -7167,9 +7167,9 @@ var require_character_reference_invalid = __commonJS({
7167
7167
  }
7168
7168
  });
7169
7169
 
7170
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-decimal-npm-1.0.4-e67dbd40dd-57a0e1a87f.zip/node_modules/is-decimal/index.js
7170
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-decimal-npm-1.0.4-e67dbd40dd-57a0e1a87f.zip/node_modules/is-decimal/index.js
7171
7171
  var require_is_decimal = __commonJS({
7172
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-decimal-npm-1.0.4-e67dbd40dd-57a0e1a87f.zip/node_modules/is-decimal/index.js"(exports, module2) {
7172
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-decimal-npm-1.0.4-e67dbd40dd-57a0e1a87f.zip/node_modules/is-decimal/index.js"(exports, module2) {
7173
7173
  "use strict";
7174
7174
  module2.exports = decimal;
7175
7175
  function decimal(character) {
@@ -7179,9 +7179,9 @@ var require_is_decimal = __commonJS({
7179
7179
  }
7180
7180
  });
7181
7181
 
7182
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-hexadecimal-npm-1.0.4-b4091da09e-653c1d0115.zip/node_modules/is-hexadecimal/index.js
7182
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-hexadecimal-npm-1.0.4-b4091da09e-653c1d0115.zip/node_modules/is-hexadecimal/index.js
7183
7183
  var require_is_hexadecimal = __commonJS({
7184
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-hexadecimal-npm-1.0.4-b4091da09e-653c1d0115.zip/node_modules/is-hexadecimal/index.js"(exports, module2) {
7184
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-hexadecimal-npm-1.0.4-b4091da09e-653c1d0115.zip/node_modules/is-hexadecimal/index.js"(exports, module2) {
7185
7185
  "use strict";
7186
7186
  module2.exports = hexadecimal;
7187
7187
  function hexadecimal(character) {
@@ -7191,9 +7191,9 @@ var require_is_hexadecimal = __commonJS({
7191
7191
  }
7192
7192
  });
7193
7193
 
7194
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-alphabetical-npm-1.0.4-94e2e7f984-a4a2afcf65.zip/node_modules/is-alphabetical/index.js
7194
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-alphabetical-npm-1.0.4-94e2e7f984-a4a2afcf65.zip/node_modules/is-alphabetical/index.js
7195
7195
  var require_is_alphabetical = __commonJS({
7196
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-alphabetical-npm-1.0.4-94e2e7f984-a4a2afcf65.zip/node_modules/is-alphabetical/index.js"(exports, module2) {
7196
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-alphabetical-npm-1.0.4-94e2e7f984-a4a2afcf65.zip/node_modules/is-alphabetical/index.js"(exports, module2) {
7197
7197
  "use strict";
7198
7198
  module2.exports = alphabetical;
7199
7199
  function alphabetical(character) {
@@ -7203,9 +7203,9 @@ var require_is_alphabetical = __commonJS({
7203
7203
  }
7204
7204
  });
7205
7205
 
7206
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-alphanumerical-npm-1.0.4-c96dc6d674-d97ec38a74.zip/node_modules/is-alphanumerical/index.js
7206
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-alphanumerical-npm-1.0.4-c96dc6d674-d97ec38a74.zip/node_modules/is-alphanumerical/index.js
7207
7207
  var require_is_alphanumerical = __commonJS({
7208
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-alphanumerical-npm-1.0.4-c96dc6d674-d97ec38a74.zip/node_modules/is-alphanumerical/index.js"(exports, module2) {
7208
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-alphanumerical-npm-1.0.4-c96dc6d674-d97ec38a74.zip/node_modules/is-alphanumerical/index.js"(exports, module2) {
7209
7209
  "use strict";
7210
7210
  var alphabetical = require_is_alphabetical();
7211
7211
  var decimal = require_is_decimal();
@@ -7216,9 +7216,9 @@ var require_is_alphanumerical = __commonJS({
7216
7216
  }
7217
7217
  });
7218
7218
 
7219
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-entities-npm-1.2.4-a5c359383c-6ca8a790a2.zip/node_modules/character-entities/index.json
7219
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-entities-npm-1.2.4-a5c359383c-6ca8a790a2.zip/node_modules/character-entities/index.json
7220
7220
  var require_character_entities = __commonJS({
7221
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-entities-npm-1.2.4-a5c359383c-6ca8a790a2.zip/node_modules/character-entities/index.json"(exports, module2) {
7221
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-entities-npm-1.2.4-a5c359383c-6ca8a790a2.zip/node_modules/character-entities/index.json"(exports, module2) {
7222
7222
  module2.exports = {
7223
7223
  AEli: "\xC6",
7224
7224
  AElig: "\xC6",
@@ -9446,9 +9446,9 @@ var require_character_entities = __commonJS({
9446
9446
  }
9447
9447
  });
9448
9448
 
9449
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/decode-entity.js
9449
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/decode-entity.js
9450
9450
  var require_decode_entity = __commonJS({
9451
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/decode-entity.js"(exports, module2) {
9451
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/decode-entity.js"(exports, module2) {
9452
9452
  "use strict";
9453
9453
  var characterEntities2 = require_character_entities();
9454
9454
  module2.exports = decodeEntity2;
@@ -9459,9 +9459,9 @@ var require_decode_entity = __commonJS({
9459
9459
  }
9460
9460
  });
9461
9461
 
9462
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/index.js
9462
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/index.js
9463
9463
  var require_parse_entities = __commonJS({
9464
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/index.js"(exports, module2) {
9464
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/parse-entities-npm-2.0.0-b7b4f46ff6-6a9213216b.zip/node_modules/parse-entities/index.js"(exports, module2) {
9465
9465
  "use strict";
9466
9466
  var legacy = require_character_entities_legacy();
9467
9467
  var invalid2 = require_character_reference_invalid();
@@ -9757,9 +9757,9 @@ var require_parse_entities = __commonJS({
9757
9757
  }
9758
9758
  });
9759
9759
 
9760
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/from-markdown.js
9760
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/from-markdown.js
9761
9761
  var require_from_markdown2 = __commonJS({
9762
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/from-markdown.js"(exports) {
9762
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/from-markdown.js"(exports) {
9763
9763
  exports.canContainEols = ["mdxJsxTextElement"];
9764
9764
  exports.enter = {
9765
9765
  mdxJsxFlowTag: enterMdxJsxTag,
@@ -9935,9 +9935,9 @@ var require_from_markdown2 = __commonJS({
9935
9935
  }
9936
9936
  });
9937
9937
 
9938
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/from-markdown.js
9938
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/from-markdown.js
9939
9939
  var require_from_markdown3 = __commonJS({
9940
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/from-markdown.js"(exports) {
9940
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/from-markdown.js"(exports) {
9941
9941
  exports.enter = { mdxjsEsm: enterMdxjsEsm };
9942
9942
  exports.exit = { mdxjsEsm: exitMdxjsEsm, mdxjsEsmData: exitMdxjsEsmData };
9943
9943
  function enterMdxjsEsm(token) {
@@ -9959,9 +9959,9 @@ var require_from_markdown3 = __commonJS({
9959
9959
  }
9960
9960
  });
9961
9961
 
9962
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/from-markdown.js
9962
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/from-markdown.js
9963
9963
  var require_from_markdown4 = __commonJS({
9964
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/from-markdown.js"(exports, module2) {
9964
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/from-markdown.js"(exports, module2) {
9965
9965
  var expression = require_from_markdown();
9966
9966
  var jsx = require_from_markdown2();
9967
9967
  var esm = require_from_markdown3();
@@ -9992,9 +9992,9 @@ var require_from_markdown4 = __commonJS({
9992
9992
  }
9993
9993
  });
9994
9994
 
9995
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/to-markdown.js
9995
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/to-markdown.js
9996
9996
  var require_to_markdown = __commonJS({
9997
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/to-markdown.js"(exports) {
9997
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-0.1.1-6e8466fe5d-4684cc22b1.zip/node_modules/mdast-util-mdx-expression/to-markdown.js"(exports) {
9998
9998
  exports.handlers = {
9999
9999
  mdxFlowExpression: handleMdxExpression2,
10000
10000
  mdxTextExpression: handleMdxExpression2
@@ -10028,12 +10028,12 @@ var require_to_markdown = __commonJS({
10028
10028
  }
10029
10029
  });
10030
10030
 
10031
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/core.js
10031
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/core.js
10032
10032
  var require_core = __commonJS({
10033
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/core.js"(exports, module2) {
10033
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/core.js"(exports, module2) {
10034
10034
  "use strict";
10035
- module2.exports = encode;
10036
- function encode(value, options) {
10035
+ module2.exports = encode2;
10036
+ function encode2(value, options) {
10037
10037
  value = value.replace(options.subset ? charactersToExpression2(options.subset) : /["&'<>`]/g, basic);
10038
10038
  if (options.subset || options.escapeOnly) {
10039
10039
  return value;
@@ -10057,16 +10057,16 @@ var require_core = __commonJS({
10057
10057
  }
10058
10058
  });
10059
10059
 
10060
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/constant/assign.js
10060
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/constant/assign.js
10061
10061
  var require_assign = __commonJS({
10062
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/constant/assign.js"(exports, module2) {
10062
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/constant/assign.js"(exports, module2) {
10063
10063
  module2.exports = Object.assign;
10064
10064
  }
10065
10065
  });
10066
10066
 
10067
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/util/format-basic.js
10067
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/util/format-basic.js
10068
10068
  var require_format_basic = __commonJS({
10069
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/util/format-basic.js"(exports, module2) {
10069
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/util/format-basic.js"(exports, module2) {
10070
10070
  module2.exports = formatBasic2;
10071
10071
  function formatBasic2(code2) {
10072
10072
  return "&#x" + code2.toString(16).toUpperCase() + ";";
@@ -10074,9 +10074,9 @@ var require_format_basic = __commonJS({
10074
10074
  }
10075
10075
  });
10076
10076
 
10077
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/encode-hexadecimal.js
10077
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/encode-hexadecimal.js
10078
10078
  var require_encode_hexadecimal = __commonJS({
10079
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/encode-hexadecimal.js"(exports, module2) {
10079
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/lib/encode-hexadecimal.js"(exports, module2) {
10080
10080
  "use strict";
10081
10081
  var core2 = require_core();
10082
10082
  var assign = require_assign();
@@ -10088,17 +10088,17 @@ var require_encode_hexadecimal = __commonJS({
10088
10088
  }
10089
10089
  });
10090
10090
 
10091
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/light.js
10091
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/light.js
10092
10092
  var require_light = __commonJS({
10093
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/light.js"(exports, module2) {
10093
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-3.1.0-78dc656761-4d33442e56.zip/node_modules/stringify-entities/light.js"(exports, module2) {
10094
10094
  "use strict";
10095
10095
  module2.exports = require_encode_hexadecimal();
10096
10096
  }
10097
10097
  });
10098
10098
 
10099
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/repeat-string-npm-1.6.1-bc8e388655-99c431ba7b.zip/node_modules/repeat-string/index.js
10099
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/repeat-string-npm-1.6.1-bc8e388655-99c431ba7b.zip/node_modules/repeat-string/index.js
10100
10100
  var require_repeat_string = __commonJS({
10101
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/repeat-string-npm-1.6.1-bc8e388655-99c431ba7b.zip/node_modules/repeat-string/index.js"(exports, module2) {
10101
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/repeat-string-npm-1.6.1-bc8e388655-99c431ba7b.zip/node_modules/repeat-string/index.js"(exports, module2) {
10102
10102
  "use strict";
10103
10103
  var res = "";
10104
10104
  var cache;
@@ -10132,9 +10132,9 @@ var require_repeat_string = __commonJS({
10132
10132
  }
10133
10133
  });
10134
10134
 
10135
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-flow.js
10135
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-flow.js
10136
10136
  var require_container_flow = __commonJS({
10137
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-flow.js"(exports, module2) {
10137
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-flow.js"(exports, module2) {
10138
10138
  module2.exports = flow3;
10139
10139
  var repeat = require_repeat_string();
10140
10140
  function flow3(parent, context) {
@@ -10171,9 +10171,9 @@ var require_container_flow = __commonJS({
10171
10171
  }
10172
10172
  });
10173
10173
 
10174
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
10174
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
10175
10175
  var require_container_phrasing = __commonJS({
10176
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js"(exports, module2) {
10176
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js"(exports, module2) {
10177
10177
  module2.exports = phrasing;
10178
10178
  function phrasing(parent, context, safeOptions) {
10179
10179
  var children = parent.children || [];
@@ -10211,9 +10211,9 @@ var require_container_phrasing = __commonJS({
10211
10211
  }
10212
10212
  });
10213
10213
 
10214
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
10214
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
10215
10215
  var require_check_quote = __commonJS({
10216
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/check-quote.js"(exports, module2) {
10216
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/util/check-quote.js"(exports, module2) {
10217
10217
  module2.exports = checkQuote2;
10218
10218
  function checkQuote2(context) {
10219
10219
  var marker = context.options.quote || '"';
@@ -10225,9 +10225,9 @@ var require_check_quote = __commonJS({
10225
10225
  }
10226
10226
  });
10227
10227
 
10228
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/to-markdown.js
10228
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/to-markdown.js
10229
10229
  var require_to_markdown2 = __commonJS({
10230
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/to-markdown.js"(exports) {
10230
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-0.1.4-9b3b528ea4-4696aafb01.zip/node_modules/mdast-util-mdx-jsx/to-markdown.js"(exports) {
10231
10231
  exports.handlers = {
10232
10232
  mdxJsxFlowElement: mdxElement2,
10233
10233
  mdxJsxTextElement: mdxElement2
@@ -10239,12 +10239,12 @@ var require_to_markdown2 = __commonJS({
10239
10239
  exports.fences = true;
10240
10240
  exports.resourceLink = true;
10241
10241
  mdxElement2.peek = peekElement2;
10242
- var encode = require_light();
10242
+ var encode2 = require_light();
10243
10243
  var flow3 = require_container_flow();
10244
10244
  var phrasing = require_container_phrasing();
10245
10245
  var checkQuote2 = require_check_quote();
10246
10246
  var eol2 = /\r?\n|\r/g;
10247
- function mdxElement2(node, _7, context) {
10247
+ function mdxElement2(node, _8, context) {
10248
10248
  var selfClosing = node.name && (!node.children || !node.children.length);
10249
10249
  var quote = checkQuote2(context);
10250
10250
  var exit2 = context.enter(node.type);
@@ -10265,7 +10265,7 @@ var require_to_markdown2 = __commonJS({
10265
10265
  if (!attribute.name) {
10266
10266
  throw new Error("Cannot serialize attribute w/o name");
10267
10267
  }
10268
- result = attribute.name + (attribute.value == null ? "" : "=" + (typeof attribute.value === "object" ? "{" + (attribute.value.value || "") + "}" : quote + encode(attribute.value, { subset: [quote] }) + quote));
10268
+ result = attribute.name + (attribute.value == null ? "" : "=" + (typeof attribute.value === "object" ? "{" + (attribute.value.value || "") + "}" : quote + encode2(attribute.value, { subset: [quote] }) + quote));
10269
10269
  }
10270
10270
  attributes.push(result);
10271
10271
  }
@@ -10298,9 +10298,9 @@ var require_to_markdown2 = __commonJS({
10298
10298
  }
10299
10299
  });
10300
10300
 
10301
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/to-markdown.js
10301
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/to-markdown.js
10302
10302
  var require_to_markdown3 = __commonJS({
10303
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/to-markdown.js"(exports) {
10303
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-0.1.1-6ed831297c-1e7d1fad93.zip/node_modules/mdast-util-mdxjs-esm/to-markdown.js"(exports) {
10304
10304
  exports.handlers = { mdxjsEsm: handleMdxjsEsm2 };
10305
10305
  function handleMdxjsEsm2(node) {
10306
10306
  return node.value || "";
@@ -10308,9 +10308,9 @@ var require_to_markdown3 = __commonJS({
10308
10308
  }
10309
10309
  });
10310
10310
 
10311
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/configure.js
10311
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/configure.js
10312
10312
  var require_configure = __commonJS({
10313
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/configure.js"(exports, module2) {
10313
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-0.6.5-6da59c9db9-c5db77398c.zip/node_modules/mdast-util-to-markdown/lib/configure.js"(exports, module2) {
10314
10314
  module2.exports = configure3;
10315
10315
  function configure3(base2, extension2) {
10316
10316
  var index2 = -1;
@@ -10335,9 +10335,9 @@ var require_configure = __commonJS({
10335
10335
  }
10336
10336
  });
10337
10337
 
10338
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/to-markdown.js
10338
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/to-markdown.js
10339
10339
  var require_to_markdown4 = __commonJS({
10340
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/to-markdown.js"(exports, module2) {
10340
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-npm-0.1.1-b4302a7b4b-936cb35650.zip/node_modules/mdast-util-mdx/to-markdown.js"(exports, module2) {
10341
10341
  var expression = require_to_markdown();
10342
10342
  var jsx = require_to_markdown2();
10343
10343
  var esm = require_to_markdown3();
@@ -10351,9 +10351,9 @@ var require_to_markdown4 = __commonJS({
10351
10351
  }
10352
10352
  });
10353
10353
 
10354
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/remark-mdx-npm-2.0.0-next.9-5ab0d4aa88-ce8463ab6c.zip/node_modules/remark-mdx/index.js
10354
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/remark-mdx-npm-2.0.0-next.9-5ab0d4aa88-ce8463ab6c.zip/node_modules/remark-mdx/index.js
10355
10355
  var require_remark_mdx = __commonJS({
10356
- "pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/remark-mdx-npm-2.0.0-next.9-5ab0d4aa88-ce8463ab6c.zip/node_modules/remark-mdx/index.js"(exports, module2) {
10356
+ "pnp:/Users/jeffsee/code/tinacms/.yarn/cache/remark-mdx-npm-2.0.0-next.9-5ab0d4aa88-ce8463ab6c.zip/node_modules/remark-mdx/index.js"(exports, module2) {
10357
10357
  "use strict";
10358
10358
  var syntaxMdx = require_micromark_extension_mdx();
10359
10359
  var syntaxMdxjs = require_micromark_extension_mdxjs();
@@ -10382,110 +10382,32 @@ var require_remark_mdx = __commonJS({
10382
10382
  }
10383
10383
  });
10384
10384
 
10385
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/index.ts
10385
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/index.ts
10386
10386
  __export(exports, {
10387
+ FilesystemBridge: () => FilesystemBridge,
10388
+ FilesystemStore: () => FilesystemStore,
10387
10389
  GithubBridge: () => GithubBridge,
10390
+ GithubStore: () => GithubStore,
10391
+ LevelStore: () => LevelStore,
10392
+ MemoryStore: () => MemoryStore,
10388
10393
  buildSchema: () => buildSchema,
10389
10394
  createBranch: () => createBranch,
10390
10395
  createDatabase: () => createDatabase,
10391
- githubRoute: () => githubRoute,
10392
- gql: () => gql,
10393
10396
  indexDB: () => indexDB,
10394
10397
  listBranches: () => listBranches,
10395
10398
  resolve: () => resolve
10396
10399
  });
10400
+ var import_fs_extra4 = __toModule(require("fs-extra"));
10401
+ var import_path10 = __toModule(require("path"));
10402
+ var import_graphql7 = __toModule(require("graphql"));
10397
10403
 
10398
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/database/github.ts
10399
- var import_lodash = __toModule(require("lodash"));
10400
- var import_path = __toModule(require("path"));
10401
- var import_rest = __toModule(require("@octokit/rest"));
10402
- var import_graphql = __toModule(require("graphql"));
10403
- var GithubBridge = class {
10404
- constructor({ rootPath, accessToken, owner, repo, ref }) {
10405
- this.rootPath = rootPath;
10406
- this.repoConfig = {
10407
- owner,
10408
- repo,
10409
- ref
10410
- };
10411
- this.appOctoKit = new import_rest.Octokit({
10412
- auth: accessToken
10413
- });
10414
- }
10415
- async readDir(filepath) {
10416
- const fullPath = import_path.default.join(this.rootPath, filepath);
10417
- const repos = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
10418
- path: fullPath
10419
- })).then(async (response) => {
10420
- if (Array.isArray(response.data)) {
10421
- return await Promise.all(await response.data.map(async (d) => {
10422
- if (d.type === "dir") {
10423
- const nestedItems = await this.readDir(d.path);
10424
- if (Array.isArray(nestedItems)) {
10425
- return nestedItems.map((nestedItem) => {
10426
- return import_path.default.join(d.path, nestedItem);
10427
- });
10428
- } else {
10429
- throw new Error(`Expected items to be an array of strings for readDir at ${d.path}`);
10430
- }
10431
- }
10432
- return d.path;
10433
- }));
10434
- }
10435
- throw new Error(`Expected to return an array from Github directory ${import_path.default}`);
10436
- });
10437
- return import_lodash.default.flatten(repos);
10438
- }
10439
- async glob(pattern) {
10440
- const results = await this.readDir(pattern);
10441
- return results.map((item) => item.replace(this.rootPath, "").replace(/^\/|\/$/g, ""));
10442
- }
10443
- async get(filepath) {
10444
- const realpath = import_path.default.join(this.rootPath, filepath);
10445
- return this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
10446
- path: realpath
10447
- })).then((response) => {
10448
- return Buffer.from(response.data.content, "base64").toString();
10449
- }).catch((e) => {
10450
- if (e.status === 401) {
10451
- throw new import_graphql.GraphQLError(`Unauthorized request to Github Repository: '${this.repoConfig.owner}/${this.repoConfig.repo}', please ensure your access token is valid.`, null, null, null, null, e, { status: e.status });
10452
- }
10453
- throw new import_graphql.GraphQLError(`Unable to find record '${filepath}' in Github Repository: '${this.repoConfig.owner}/${this.repoConfig.repo}', Ref: '${this.repoConfig.ref}'`, null, null, null, null, e, { status: e.status });
10454
- });
10455
- }
10456
- async put(filepath, data) {
10457
- const realpath = import_path.default.join(this.rootPath, filepath);
10458
- let fileSha = void 0;
10459
- try {
10460
- const fileContent = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
10461
- path: realpath
10462
- }));
10463
- fileSha = fileContent.data.sha;
10464
- } catch (e) {
10465
- console.log("No file exists, creating new one");
10466
- }
10467
- await this.appOctoKit.repos.createOrUpdateFileContents(__spreadProps(__spreadValues({}, this.repoConfig), {
10468
- branch: this.repoConfig.ref,
10469
- path: realpath,
10470
- message: "Update from GraphQL client",
10471
- content: new Buffer(data).toString("base64"),
10472
- sha: fileSha
10473
- }));
10474
- }
10475
- };
10476
-
10477
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/index.ts
10478
- var import_fs_extra3 = __toModule(require("fs-extra"));
10479
- var import_path7 = __toModule(require("path"));
10480
-
10481
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/build.ts
10482
- var import_lodash4 = __toModule(require("lodash"));
10404
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/build.ts
10405
+ var import_lodash3 = __toModule(require("lodash"));
10483
10406
  var import_fs_extra = __toModule(require("fs-extra"));
10484
- var import_path2 = __toModule(require("path"));
10485
- var import_graphql3 = __toModule(require("graphql"));
10407
+ var import_graphql2 = __toModule(require("graphql"));
10486
10408
 
10487
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/ast-builder/index.ts
10488
- var import_lodash2 = __toModule(require("lodash"));
10409
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/ast-builder/index.ts
10410
+ var import_lodash = __toModule(require("lodash"));
10489
10411
  var SysFieldDefinition = {
10490
10412
  kind: "Field",
10491
10413
  name: {
@@ -11098,7 +11020,7 @@ var astBuilder = {
11098
11020
  };
11099
11021
  },
11100
11022
  toGraphQLAst: (ast) => {
11101
- const definitions = import_lodash2.default.uniqBy([
11023
+ const definitions = import_lodash.default.uniqBy([
11102
11024
  ...extractInlineTypes(ast.query),
11103
11025
  ...extractInlineTypes(ast.globalTemplates),
11104
11026
  ...ast.definitions
@@ -11119,12 +11041,12 @@ var extractInlineTypes = (item) => {
11119
11041
  const accumulator = item.map((i) => {
11120
11042
  return extractInlineTypes(i);
11121
11043
  });
11122
- return import_lodash2.default.flattenDeep(accumulator);
11044
+ return import_lodash.default.flattenDeep(accumulator);
11123
11045
  } else {
11124
11046
  const accumulator = [item];
11125
11047
  for (const node of walk(item)) {
11126
11048
  if (node.kind === "UnionTypeDefinition") {
11127
- node.types = import_lodash2.default.uniqBy(node.types, (type) => type.name.value);
11049
+ node.types = import_lodash.default.uniqBy(node.types, (type) => type.name.value);
11128
11050
  }
11129
11051
  if (node.kind === "NamedType") {
11130
11052
  if (typeof node.name.value !== "string") {
@@ -11238,9 +11160,9 @@ var NAMER = {
11238
11160
  }
11239
11161
  };
11240
11162
 
11241
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/util.ts
11163
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/util.ts
11242
11164
  var yup = __toModule(require("yup"));
11243
- var import_graphql2 = __toModule(require("graphql"));
11165
+ var import_graphql = __toModule(require("graphql"));
11244
11166
  var sequential = async (items, callback) => {
11245
11167
  const accum = [];
11246
11168
  if (!items) {
@@ -11265,7 +11187,7 @@ function assertShape(value, yupSchema, errorMessage) {
11265
11187
  shape.validateSync(value);
11266
11188
  } catch (e) {
11267
11189
  const message = errorMessage || `Failed to assertShape - ${e.message}`;
11268
- throw new import_graphql2.GraphQLError(message, null, null, null, null, null, {
11190
+ throw new import_graphql.GraphQLError(message, null, null, null, null, null, {
11269
11191
  stack: e.stack
11270
11192
  });
11271
11193
  }
@@ -11274,7 +11196,7 @@ var lastItem = (arr) => {
11274
11196
  return arr[arr.length - 1];
11275
11197
  };
11276
11198
 
11277
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/builder/static-definitions.ts
11199
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/builder/static-definitions.ts
11278
11200
  var interfaceDefinitions = [
11279
11201
  astBuilder.InterfaceTypeDefinition({
11280
11202
  name: "Node",
@@ -11408,7 +11330,7 @@ var scalarDefinitions = [
11408
11330
  ];
11409
11331
  var staticDefinitions = [...scalarDefinitions, interfaceDefinitions];
11410
11332
 
11411
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/builder/index.ts
11333
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/builder/index.ts
11412
11334
  var createBuilder = async ({
11413
11335
  database,
11414
11336
  tinaSchema
@@ -11669,8 +11591,9 @@ var Builder = class {
11669
11591
  selections.push(await this.buildTemplateFragments(tem));
11670
11592
  }
11671
11593
  });
11672
- return astBuilder.FieldWithSelectionSetDefinition({
11594
+ return astBuilder.FragmentDefinition({
11673
11595
  name,
11596
+ fragmentName,
11674
11597
  selections: filterSelections(selections)
11675
11598
  });
11676
11599
  }
@@ -11795,7 +11718,8 @@ var Builder = class {
11795
11718
  fieldName: NAMER.generateQueryListName(collection.namespace),
11796
11719
  connectionName,
11797
11720
  nodeType: NAMER.documentTypeName(collection.namespace),
11798
- namespace: collection.namespace
11721
+ namespace: collection.namespace,
11722
+ collection
11799
11723
  });
11800
11724
  };
11801
11725
  this.buildStaticDefinitions = () => staticDefinitions;
@@ -11841,6 +11765,35 @@ var Builder = class {
11841
11765
  ]
11842
11766
  });
11843
11767
  };
11768
+ this._filterCollectionDocumentType = async (collection) => {
11769
+ const t = this.tinaSchema.getTemplatesForCollectable(collection);
11770
+ if (t.type === "union") {
11771
+ return astBuilder.InputObjectTypeDefinition({
11772
+ name: NAMER.dataFilterTypeName(t.namespace),
11773
+ fields: await sequential(t.templates, async (template) => {
11774
+ return astBuilder.InputValueDefinition({
11775
+ name: template.namespace[template.namespace.length - 1],
11776
+ type: await this._buildTemplateFilter(template)
11777
+ });
11778
+ })
11779
+ });
11780
+ }
11781
+ return this._buildTemplateFilter(t.template);
11782
+ };
11783
+ this._buildTemplateFilter = async (template) => {
11784
+ const fields = [];
11785
+ await sequential(template.fields, async (field) => {
11786
+ const f = await this._buildFieldFilter(field);
11787
+ if (f) {
11788
+ fields.push(f);
11789
+ }
11790
+ return true;
11791
+ });
11792
+ return astBuilder.InputObjectTypeDefinition({
11793
+ name: NAMER.dataFilterTypeName(template.namespace),
11794
+ fields
11795
+ });
11796
+ };
11844
11797
  this._updateCollectionDocumentMutationType = async (collection) => {
11845
11798
  const t = this.tinaSchema.getTemplatesForCollectable(collection);
11846
11799
  if (t.type === "union") {
@@ -11901,9 +11854,156 @@ var Builder = class {
11901
11854
  fieldName,
11902
11855
  namespace: connectionNamespace,
11903
11856
  connectionName,
11904
- nodeType
11857
+ nodeType,
11858
+ collections
11905
11859
  });
11906
11860
  };
11861
+ this._buildFieldFilter = async (field) => {
11862
+ switch (field.type) {
11863
+ case "boolean":
11864
+ return astBuilder.InputValueDefinition({
11865
+ name: field.name,
11866
+ type: astBuilder.InputObjectTypeDefinition({
11867
+ name: NAMER.dataFilterTypeName([field.type]),
11868
+ fields: [
11869
+ astBuilder.InputValueDefinition({
11870
+ name: "eq",
11871
+ type: astBuilder.TYPES.Boolean
11872
+ }),
11873
+ astBuilder.InputValueDefinition({
11874
+ name: "exists",
11875
+ type: astBuilder.TYPES.Boolean
11876
+ })
11877
+ ]
11878
+ })
11879
+ });
11880
+ case "number":
11881
+ return astBuilder.InputValueDefinition({
11882
+ name: field.name,
11883
+ type: astBuilder.InputObjectTypeDefinition({
11884
+ name: NAMER.dataFilterTypeName([field.type]),
11885
+ fields: [
11886
+ astBuilder.InputValueDefinition({
11887
+ name: "lt",
11888
+ type: astBuilder.TYPES.Number
11889
+ }),
11890
+ astBuilder.InputValueDefinition({
11891
+ name: "lte",
11892
+ type: astBuilder.TYPES.Number
11893
+ }),
11894
+ astBuilder.InputValueDefinition({
11895
+ name: "gte",
11896
+ type: astBuilder.TYPES.Number
11897
+ }),
11898
+ astBuilder.InputValueDefinition({
11899
+ name: "gt",
11900
+ type: astBuilder.TYPES.Number
11901
+ }),
11902
+ astBuilder.InputValueDefinition({
11903
+ name: "eq",
11904
+ type: astBuilder.TYPES.Number
11905
+ }),
11906
+ astBuilder.InputValueDefinition({
11907
+ name: "exists",
11908
+ type: astBuilder.TYPES.Boolean
11909
+ })
11910
+ ]
11911
+ })
11912
+ });
11913
+ case "datetime":
11914
+ return astBuilder.InputValueDefinition({
11915
+ name: field.name,
11916
+ type: astBuilder.InputObjectTypeDefinition({
11917
+ name: NAMER.dataFilterTypeName([field.type]),
11918
+ fields: [
11919
+ astBuilder.InputValueDefinition({
11920
+ name: "after",
11921
+ type: astBuilder.TYPES.String
11922
+ }),
11923
+ astBuilder.InputValueDefinition({
11924
+ name: "before",
11925
+ type: astBuilder.TYPES.String
11926
+ }),
11927
+ astBuilder.InputValueDefinition({
11928
+ name: "eq",
11929
+ type: astBuilder.TYPES.String
11930
+ }),
11931
+ astBuilder.InputValueDefinition({
11932
+ name: "exists",
11933
+ type: astBuilder.TYPES.Boolean
11934
+ })
11935
+ ]
11936
+ })
11937
+ });
11938
+ case "image":
11939
+ case "string":
11940
+ return astBuilder.InputValueDefinition({
11941
+ name: field.name,
11942
+ type: astBuilder.InputObjectTypeDefinition({
11943
+ name: NAMER.dataFilterTypeName([field.type]),
11944
+ fields: [
11945
+ astBuilder.InputValueDefinition({
11946
+ name: "startsWith",
11947
+ type: astBuilder.TYPES.String
11948
+ }),
11949
+ astBuilder.InputValueDefinition({
11950
+ name: "eq",
11951
+ type: astBuilder.TYPES.String
11952
+ }),
11953
+ astBuilder.InputValueDefinition({
11954
+ name: "exists",
11955
+ type: astBuilder.TYPES.Boolean
11956
+ })
11957
+ ]
11958
+ })
11959
+ });
11960
+ case "object":
11961
+ return astBuilder.InputValueDefinition({
11962
+ name: field.name,
11963
+ type: await this._filterCollectionDocumentType(field)
11964
+ });
11965
+ case "rich-text":
11966
+ if (!field.templates) {
11967
+ return astBuilder.InputValueDefinition({
11968
+ name: field.name,
11969
+ type: astBuilder.InputObjectTypeDefinition({
11970
+ name: NAMER.dataFilterTypeName(["richText"]),
11971
+ fields: [
11972
+ astBuilder.InputValueDefinition({
11973
+ name: "startsWith",
11974
+ type: astBuilder.TYPES.String
11975
+ }),
11976
+ astBuilder.InputValueDefinition({
11977
+ name: "eq",
11978
+ type: astBuilder.TYPES.String
11979
+ }),
11980
+ astBuilder.InputValueDefinition({
11981
+ name: "exists",
11982
+ type: astBuilder.TYPES.Boolean
11983
+ })
11984
+ ]
11985
+ })
11986
+ });
11987
+ }
11988
+ return astBuilder.InputValueDefinition({
11989
+ name: field.name,
11990
+ type: await this._filterCollectionDocumentType(field)
11991
+ });
11992
+ case "reference":
11993
+ const filter = await this._connectionFilterBuilder({
11994
+ fieldName: field.name,
11995
+ namespace: field.namespace,
11996
+ collections: await this.tinaSchema.getCollectionsByName(field.collections)
11997
+ });
11998
+ return astBuilder.InputValueDefinition({
11999
+ name: field.name,
12000
+ type: astBuilder.InputObjectTypeDefinition({
12001
+ name: NAMER.dataFilterTypeName(field.namespace),
12002
+ fields: [filter]
12003
+ })
12004
+ });
12005
+ }
12006
+ };
11907
12007
  this._buildFieldMutation = async (field) => {
11908
12008
  switch (field.type) {
11909
12009
  case "boolean":
@@ -11975,16 +12075,56 @@ var Builder = class {
11975
12075
  }
11976
12076
  return this._buildTemplateData(collectableTemplate.template);
11977
12077
  };
12078
+ this._connectionFilterBuilder = async ({
12079
+ fieldName,
12080
+ namespace,
12081
+ collection,
12082
+ collections
12083
+ }) => {
12084
+ let filter;
12085
+ if (collections) {
12086
+ filter = astBuilder.InputValueDefinition({
12087
+ name: "filter",
12088
+ type: astBuilder.InputObjectTypeDefinition({
12089
+ name: NAMER.dataFilterTypeName(namespace),
12090
+ fields: await sequential(collections, async (collection2) => {
12091
+ return astBuilder.InputValueDefinition({
12092
+ name: collection2.name,
12093
+ type: await this._filterCollectionDocumentType(collection2)
12094
+ });
12095
+ })
12096
+ })
12097
+ });
12098
+ } else if (collection) {
12099
+ filter = astBuilder.InputValueDefinition({
12100
+ name: "filter",
12101
+ type: await this._filterCollectionDocumentType(collection)
12102
+ });
12103
+ } else {
12104
+ throw new Error(`Must provide either collection or collections to filter field builder`);
12105
+ }
12106
+ return filter;
12107
+ };
11978
12108
  this._connectionFieldBuilder = async ({
11979
12109
  fieldName,
11980
12110
  namespace,
11981
12111
  connectionName,
11982
- nodeType
12112
+ nodeType,
12113
+ collection,
12114
+ collections
11983
12115
  }) => {
12116
+ const extra = this.database.store.supportsIndexing() ? [
12117
+ await this._connectionFilterBuilder({
12118
+ fieldName,
12119
+ namespace,
12120
+ collection,
12121
+ collections
12122
+ })
12123
+ ] : [];
11984
12124
  return astBuilder.FieldDefinition({
11985
12125
  name: fieldName,
11986
12126
  required: true,
11987
- args: [...listArgs],
12127
+ args: [...listArgs, ...extra],
11988
12128
  type: astBuilder.ObjectTypeDefinition({
11989
12129
  name: connectionName,
11990
12130
  interfaces: [
@@ -12126,8 +12266,8 @@ var filterSelections = (arr) => {
12126
12266
  return arr.filter(Boolean);
12127
12267
  };
12128
12268
 
12129
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/schema/validate.ts
12130
- var import_lodash3 = __toModule(require("lodash"));
12269
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/schema/validate.ts
12270
+ var import_lodash2 = __toModule(require("lodash"));
12131
12271
  var yup2 = __toModule(require("yup"));
12132
12272
  var FIELD_TYPES = [
12133
12273
  "string",
@@ -12140,7 +12280,7 @@ var FIELD_TYPES = [
12140
12280
  "rich-text"
12141
12281
  ];
12142
12282
  var validateSchema = async (schema) => {
12143
- const schema2 = addNamespaceToSchema(import_lodash3.default.cloneDeep(schema));
12283
+ const schema2 = addNamespaceToSchema(import_lodash2.default.cloneDeep(schema));
12144
12284
  const collections = await sequential(schema2.collections, async (collection) => validateCollection(collection));
12145
12285
  return {
12146
12286
  collections
@@ -12198,7 +12338,7 @@ var validateField = async (field) => {
12198
12338
  return field;
12199
12339
  };
12200
12340
 
12201
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/resolver/error.ts
12341
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/resolver/error.ts
12202
12342
  var TinaError = class extends Error {
12203
12343
  constructor(message, extensions) {
12204
12344
  super(message);
@@ -12209,7 +12349,7 @@ var TinaError = class extends Error {
12209
12349
  }
12210
12350
  };
12211
12351
 
12212
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/schema/index.ts
12352
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/schema/index.ts
12213
12353
  var createSchema = async ({
12214
12354
  schema
12215
12355
  }) => {
@@ -12222,6 +12362,10 @@ var TinaSchema = class {
12222
12362
  this.getCollectionsByName = (collectionNames) => {
12223
12363
  return this.schema.collections.filter((collection) => collectionNames.includes(collection.name));
12224
12364
  };
12365
+ this.getAllCollectionPaths = () => {
12366
+ const paths = this.getCollections().map((collection) => `${collection.path}${collection.match || ""}`);
12367
+ return paths;
12368
+ };
12225
12369
  this.getCollection = (collectionName) => {
12226
12370
  const collection = this.schema.collections.find((collection2) => collection2.name === collectionName);
12227
12371
  if (!collection) {
@@ -12360,17 +12504,23 @@ var TinaSchema = class {
12360
12504
  }
12361
12505
  };
12362
12506
 
12363
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/build.ts
12364
- var indexDB = async ({ database, config }) => {
12507
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/build.ts
12508
+ var import_path = __toModule(require("path"));
12509
+ var indexDB = async ({
12510
+ database,
12511
+ config
12512
+ }) => {
12365
12513
  const tinaSchema = await createSchema({ schema: config });
12366
- const builder = await createBuilder({ database, tinaSchema });
12514
+ const builder = await createBuilder({
12515
+ database,
12516
+ tinaSchema
12517
+ });
12367
12518
  const graphQLSchema = await _buildSchema(builder, tinaSchema);
12368
- await database.put("_graphql", graphQLSchema);
12369
- await database.put("_schema", tinaSchema.schema);
12370
- await _buildFragments(builder, tinaSchema);
12371
- await _buildQueries(builder, tinaSchema);
12519
+ await database.indexData({ graphQLSchema, tinaSchema });
12520
+ await _buildFragments(builder, tinaSchema, database.bridge.rootPath);
12521
+ await _buildQueries(builder, tinaSchema, database.bridge.rootPath);
12372
12522
  };
12373
- var _buildFragments = async (builder, tinaSchema) => {
12523
+ var _buildFragments = async (builder, tinaSchema, rootPath) => {
12374
12524
  const fragmentDefinitionsFields = [];
12375
12525
  const collections = tinaSchema.getCollections();
12376
12526
  await sequential(collections, async (collection) => {
@@ -12379,12 +12529,12 @@ var _buildFragments = async (builder, tinaSchema) => {
12379
12529
  });
12380
12530
  const fragDoc = {
12381
12531
  kind: "Document",
12382
- definitions: import_lodash4.default.uniqBy(extractInlineTypes(fragmentDefinitionsFields), (node) => node.name.value)
12532
+ definitions: import_lodash3.default.uniqBy(extractInlineTypes(fragmentDefinitionsFields), (node) => node.name.value)
12383
12533
  };
12384
- const fragPath = import_path2.default.join(process.cwd(), ".tina", "__generated__");
12385
- await import_fs_extra.default.outputFileSync(import_path2.default.join(fragPath, "frags.gql"), (0, import_graphql3.print)(fragDoc));
12534
+ const fragPath = import_path.default.join(rootPath, ".tina", "__generated__");
12535
+ await import_fs_extra.default.outputFileSync(import_path.default.join(fragPath, "frags.gql"), (0, import_graphql2.print)(fragDoc));
12386
12536
  };
12387
- var _buildQueries = async (builder, tinaSchema) => {
12537
+ var _buildQueries = async (builder, tinaSchema, rootPath) => {
12388
12538
  const operationsDefinitions = [];
12389
12539
  const collections = tinaSchema.getCollections();
12390
12540
  await sequential(collections, async (collection) => {
@@ -12399,10 +12549,10 @@ var _buildQueries = async (builder, tinaSchema) => {
12399
12549
  });
12400
12550
  const queryDoc = {
12401
12551
  kind: "Document",
12402
- definitions: import_lodash4.default.uniqBy(extractInlineTypes(operationsDefinitions), (node) => node.name.value)
12552
+ definitions: import_lodash3.default.uniqBy(extractInlineTypes(operationsDefinitions), (node) => node.name.value)
12403
12553
  };
12404
- const fragPath = import_path2.default.join(process.cwd(), ".tina", "__generated__");
12405
- await import_fs_extra.default.outputFileSync(import_path2.default.join(fragPath, "queries.gql"), (0, import_graphql3.print)(queryDoc));
12554
+ const fragPath = import_path.default.join(rootPath, ".tina", "__generated__");
12555
+ await import_fs_extra.default.outputFileSync(import_path.default.join(fragPath, "queries.gql"), (0, import_graphql2.print)(queryDoc));
12406
12556
  };
12407
12557
  var _buildSchema = async (builder, tinaSchema) => {
12408
12558
  const definitions = [];
@@ -12435,32 +12585,32 @@ var _buildSchema = async (builder, tinaSchema) => {
12435
12585
  }));
12436
12586
  const doc = {
12437
12587
  kind: "Document",
12438
- definitions: import_lodash4.default.uniqBy(extractInlineTypes(definitions), (node) => node.name.value)
12588
+ definitions: import_lodash3.default.uniqBy(extractInlineTypes(definitions), (node) => node.name.value)
12439
12589
  };
12440
12590
  return doc;
12441
12591
  };
12442
12592
 
12443
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/resolve.ts
12444
- var import_lodash7 = __toModule(require("lodash"));
12445
- var import_graphql4 = __toModule(require("graphql"));
12446
-
12447
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/resolver/index.ts
12593
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/resolve.ts
12448
12594
  var import_lodash6 = __toModule(require("lodash"));
12449
- var import_path4 = __toModule(require("path"));
12595
+ var import_graphql3 = __toModule(require("graphql"));
12596
+
12597
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/resolver/index.ts
12598
+ var import_lodash5 = __toModule(require("lodash"));
12599
+ var import_path3 = __toModule(require("path"));
12450
12600
  var import_isValid = __toModule(require_isValid());
12451
12601
 
12452
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/bail-npm-2.0.1-faf99b7186-eab36a71a1.zip/node_modules/bail/index.js
12602
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/bail-npm-2.0.1-faf99b7186-eab36a71a1.zip/node_modules/bail/index.js
12453
12603
  function bail(error) {
12454
12604
  if (error) {
12455
12605
  throw error;
12456
12606
  }
12457
12607
  }
12458
12608
 
12459
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unified-npm-10.1.0-d9f1f63894-dc12b62fd1.zip/node_modules/unified/lib/index.js
12609
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unified-npm-10.1.0-d9f1f63894-dc12b62fd1.zip/node_modules/unified/lib/index.js
12460
12610
  var import_is_buffer2 = __toModule(require_is_buffer());
12461
12611
  var import_extend = __toModule(require_extend());
12462
12612
 
12463
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/is-plain-obj-npm-4.0.0-5401ea0d12-038d9cd004.zip/node_modules/is-plain-obj/index.js
12613
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/is-plain-obj-npm-4.0.0-5401ea0d12-038d9cd004.zip/node_modules/is-plain-obj/index.js
12464
12614
  function isPlainObject(value) {
12465
12615
  if (Object.prototype.toString.call(value) !== "[object Object]") {
12466
12616
  return false;
@@ -12469,7 +12619,7 @@ function isPlainObject(value) {
12469
12619
  return prototype === null || prototype === Object.prototype;
12470
12620
  }
12471
12621
 
12472
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/trough-npm-2.0.2-8482cac42b-35f021ad91.zip/node_modules/trough/index.js
12622
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/trough-npm-2.0.2-8482cac42b-35f021ad91.zip/node_modules/trough/index.js
12473
12623
  function trough() {
12474
12624
  const fns = [];
12475
12625
  const pipeline = { run, use };
@@ -12548,10 +12698,10 @@ function wrap(middleware, callback) {
12548
12698
  }
12549
12699
  }
12550
12700
 
12551
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/index.js
12701
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/index.js
12552
12702
  var import_is_buffer = __toModule(require_is_buffer());
12553
12703
 
12554
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-stringify-position-npm-3.0.0-c58b9a941e-189255b241.zip/node_modules/unist-util-stringify-position/index.js
12704
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-stringify-position-npm-3.0.0-c58b9a941e-189255b241.zip/node_modules/unist-util-stringify-position/index.js
12555
12705
  var own = {}.hasOwnProperty;
12556
12706
  function stringifyPosition(value) {
12557
12707
  if (!value || typeof value !== "object") {
@@ -12578,7 +12728,7 @@ function index(value) {
12578
12728
  return value && typeof value === "number" ? value : 1;
12579
12729
  }
12580
12730
 
12581
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-message-npm-3.0.2-7ab93a669e-276974ee27.zip/node_modules/vfile-message/index.js
12731
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-message-npm-3.0.2-7ab93a669e-276974ee27.zip/node_modules/vfile-message/index.js
12582
12732
  var VFileMessage = class extends Error {
12583
12733
  constructor(reason, place, origin) {
12584
12734
  var parts = [null, null];
@@ -12639,22 +12789,22 @@ VFileMessage.prototype.source = null;
12639
12789
  VFileMessage.prototype.ruleId = null;
12640
12790
  VFileMessage.prototype.position = null;
12641
12791
 
12642
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minpath.js
12643
- var import_path3 = __toModule(require("path"));
12792
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minpath.js
12793
+ var import_path2 = __toModule(require("path"));
12644
12794
 
12645
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minproc.js
12795
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minproc.js
12646
12796
  var import_process = __toModule(require("process"));
12647
12797
  var proc = import_process.default;
12648
12798
 
12649
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minurl.js
12799
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minurl.js
12650
12800
  var import_url = __toModule(require("url"));
12651
12801
 
12652
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minurl.shared.js
12802
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minurl.shared.js
12653
12803
  function isUrl(fileURLOrPath) {
12654
12804
  return fileURLOrPath !== null && typeof fileURLOrPath === "object" && fileURLOrPath.href && fileURLOrPath.origin;
12655
12805
  }
12656
12806
 
12657
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/index.js
12807
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/index.js
12658
12808
  var order = ["history", "path", "basename", "stem", "extname", "dirname"];
12659
12809
  var VFile = class {
12660
12810
  constructor(value) {
@@ -12692,32 +12842,32 @@ var VFile = class {
12692
12842
  get path() {
12693
12843
  return this.history[this.history.length - 1];
12694
12844
  }
12695
- set path(path8) {
12696
- if (isUrl(path8)) {
12697
- path8 = (0, import_url.fileURLToPath)(path8);
12845
+ set path(path11) {
12846
+ if (isUrl(path11)) {
12847
+ path11 = (0, import_url.fileURLToPath)(path11);
12698
12848
  }
12699
- assertNonEmpty(path8, "path");
12700
- if (this.path !== path8) {
12701
- this.history.push(path8);
12849
+ assertNonEmpty(path11, "path");
12850
+ if (this.path !== path11) {
12851
+ this.history.push(path11);
12702
12852
  }
12703
12853
  }
12704
12854
  get dirname() {
12705
- return typeof this.path === "string" ? import_path3.default.dirname(this.path) : void 0;
12855
+ return typeof this.path === "string" ? import_path2.default.dirname(this.path) : void 0;
12706
12856
  }
12707
12857
  set dirname(dirname) {
12708
12858
  assertPath(this.basename, "dirname");
12709
- this.path = import_path3.default.join(dirname || "", this.basename);
12859
+ this.path = import_path2.default.join(dirname || "", this.basename);
12710
12860
  }
12711
12861
  get basename() {
12712
- return typeof this.path === "string" ? import_path3.default.basename(this.path) : void 0;
12862
+ return typeof this.path === "string" ? import_path2.default.basename(this.path) : void 0;
12713
12863
  }
12714
12864
  set basename(basename) {
12715
12865
  assertNonEmpty(basename, "basename");
12716
12866
  assertPart(basename, "basename");
12717
- this.path = import_path3.default.join(this.dirname || "", basename);
12867
+ this.path = import_path2.default.join(this.dirname || "", basename);
12718
12868
  }
12719
12869
  get extname() {
12720
- return typeof this.path === "string" ? import_path3.default.extname(this.path) : void 0;
12870
+ return typeof this.path === "string" ? import_path2.default.extname(this.path) : void 0;
12721
12871
  }
12722
12872
  set extname(extname) {
12723
12873
  assertPart(extname, "extname");
@@ -12730,15 +12880,15 @@ var VFile = class {
12730
12880
  throw new Error("`extname` cannot contain multiple dots");
12731
12881
  }
12732
12882
  }
12733
- this.path = import_path3.default.join(this.dirname, this.stem + (extname || ""));
12883
+ this.path = import_path2.default.join(this.dirname, this.stem + (extname || ""));
12734
12884
  }
12735
12885
  get stem() {
12736
- return typeof this.path === "string" ? import_path3.default.basename(this.path, this.extname) : void 0;
12886
+ return typeof this.path === "string" ? import_path2.default.basename(this.path, this.extname) : void 0;
12737
12887
  }
12738
12888
  set stem(stem) {
12739
12889
  assertNonEmpty(stem, "stem");
12740
12890
  assertPart(stem, "stem");
12741
- this.path = import_path3.default.join(this.dirname || "", stem + (this.extname || ""));
12891
+ this.path = import_path2.default.join(this.dirname || "", stem + (this.extname || ""));
12742
12892
  }
12743
12893
  toString(encoding) {
12744
12894
  return (this.value || "").toString(encoding);
@@ -12765,8 +12915,8 @@ var VFile = class {
12765
12915
  }
12766
12916
  };
12767
12917
  function assertPart(part, name) {
12768
- if (part && part.includes(import_path3.default.sep)) {
12769
- throw new Error("`" + name + "` cannot be a path: did not expect `" + import_path3.default.sep + "`");
12918
+ if (part && part.includes(import_path2.default.sep)) {
12919
+ throw new Error("`" + name + "` cannot be a path: did not expect `" + import_path2.default.sep + "`");
12770
12920
  }
12771
12921
  }
12772
12922
  function assertNonEmpty(part, name) {
@@ -12774,13 +12924,13 @@ function assertNonEmpty(part, name) {
12774
12924
  throw new Error("`" + name + "` cannot be empty");
12775
12925
  }
12776
12926
  }
12777
- function assertPath(path8, name) {
12778
- if (!path8) {
12927
+ function assertPath(path11, name) {
12928
+ if (!path11) {
12779
12929
  throw new Error("Setting `" + name + "` requires `path` to be set too");
12780
12930
  }
12781
12931
  }
12782
12932
 
12783
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unified-npm-10.1.0-d9f1f63894-dc12b62fd1.zip/node_modules/unified/lib/index.js
12933
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unified-npm-10.1.0-d9f1f63894-dc12b62fd1.zip/node_modules/unified/lib/index.js
12784
12934
  var unified = base().freeze();
12785
12935
  var own2 = {}.hasOwnProperty;
12786
12936
  function base() {
@@ -12799,7 +12949,7 @@ function base() {
12799
12949
  processor.stringify = stringify2;
12800
12950
  processor.run = run;
12801
12951
  processor.runSync = runSync;
12802
- processor.process = process3;
12952
+ processor.process = process2;
12803
12953
  processor.processSync = processSync;
12804
12954
  return processor;
12805
12955
  function processor() {
@@ -12976,7 +13126,7 @@ function base() {
12976
13126
  complete = true;
12977
13127
  }
12978
13128
  }
12979
- function process3(doc, callback) {
13129
+ function process2(doc, callback) {
12980
13130
  processor.freeze();
12981
13131
  assertParser("process", processor.Parser);
12982
13132
  assertCompiler("process", processor.Compiler);
@@ -13073,7 +13223,7 @@ function looksLikeAVFileValue(value) {
13073
13223
  return typeof value === "string" || (0, import_is_buffer2.default)(value);
13074
13224
  }
13075
13225
 
13076
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-string-npm-3.1.0-d888f00663-0669bc25c0.zip/node_modules/mdast-util-to-string/index.js
13226
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-string-npm-3.1.0-d888f00663-0669bc25c0.zip/node_modules/mdast-util-to-string/index.js
13077
13227
  function toString(node, options) {
13078
13228
  var { includeImageAlt = true } = options || {};
13079
13229
  return one(node, includeImageAlt);
@@ -13090,7 +13240,7 @@ function all(values, includeImageAlt) {
13090
13240
  return result.join("");
13091
13241
  }
13092
13242
 
13093
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-chunked-npm-1.0.0-456e2b513f-0d05f0a76a.zip/node_modules/micromark-util-chunked/index.js
13243
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-chunked-npm-1.0.0-456e2b513f-0d05f0a76a.zip/node_modules/micromark-util-chunked/index.js
13094
13244
  function splice(list3, start, remove, items) {
13095
13245
  const end = list3.length;
13096
13246
  let chunkStart = 0;
@@ -13125,7 +13275,7 @@ function push(list3, items) {
13125
13275
  return items;
13126
13276
  }
13127
13277
 
13128
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-combine-extensions-npm-1.0.0-f13e57de5b-0b6ade34a9.zip/node_modules/micromark-util-combine-extensions/index.js
13278
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-combine-extensions-npm-1.0.0-f13e57de5b-0b6ade34a9.zip/node_modules/micromark-util-combine-extensions/index.js
13129
13279
  var hasOwnProperty = {}.hasOwnProperty;
13130
13280
  function combineExtensions(extensions) {
13131
13281
  const all2 = {};
@@ -13160,10 +13310,10 @@ function constructs(existing, list3) {
13160
13310
  splice(existing, 0, 0, before);
13161
13311
  }
13162
13312
 
13163
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-character-npm-1.1.0-fe6b5d2ff8-53f740a106.zip/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js
13313
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-character-npm-1.1.0-fe6b5d2ff8-53f740a106.zip/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js
13164
13314
  var unicodePunctuationRegex = /[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;
13165
13315
 
13166
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-character-npm-1.1.0-fe6b5d2ff8-53f740a106.zip/node_modules/micromark-util-character/index.js
13316
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-character-npm-1.1.0-fe6b5d2ff8-53f740a106.zip/node_modules/micromark-util-character/index.js
13167
13317
  var asciiAlpha = regexCheck(/[A-Za-z]/);
13168
13318
  var asciiDigit = regexCheck(/\d/);
13169
13319
  var asciiHexDigit = regexCheck(/[\dA-Fa-f]/);
@@ -13191,7 +13341,7 @@ function regexCheck(regex) {
13191
13341
  }
13192
13342
  }
13193
13343
 
13194
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-factory-space-npm-1.0.0-e5fee5c60c-0dabcced79.zip/node_modules/micromark-factory-space/index.js
13344
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-factory-space-npm-1.0.0-e5fee5c60c-0dabcced79.zip/node_modules/micromark-factory-space/index.js
13195
13345
  function factorySpace(effects, ok2, type, max) {
13196
13346
  const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
13197
13347
  let size = 0;
@@ -13213,7 +13363,7 @@ function factorySpace(effects, ok2, type, max) {
13213
13363
  }
13214
13364
  }
13215
13365
 
13216
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/content.js
13366
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/content.js
13217
13367
  var content = {
13218
13368
  tokenize: initializeContent
13219
13369
  };
@@ -13263,7 +13413,7 @@ function initializeContent(effects) {
13263
13413
  }
13264
13414
  }
13265
13415
 
13266
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/document.js
13416
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/document.js
13267
13417
  var document = {
13268
13418
  tokenize: initializeDocument
13269
13419
  };
@@ -13440,7 +13590,7 @@ function tokenizeContainer(effects, ok2, nok) {
13440
13590
  return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok2, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
13441
13591
  }
13442
13592
 
13443
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-classify-character-npm-1.0.0-68787d9dc2-151d6ae297.zip/node_modules/micromark-util-classify-character/index.js
13593
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-classify-character-npm-1.0.0-68787d9dc2-151d6ae297.zip/node_modules/micromark-util-classify-character/index.js
13444
13594
  function classifyCharacter(code2) {
13445
13595
  if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
13446
13596
  return 1;
@@ -13450,7 +13600,7 @@ function classifyCharacter(code2) {
13450
13600
  }
13451
13601
  }
13452
13602
 
13453
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-resolve-all-npm-1.0.0-cb1a6324ae-f0b434e666.zip/node_modules/micromark-util-resolve-all/index.js
13603
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-resolve-all-npm-1.0.0-cb1a6324ae-f0b434e666.zip/node_modules/micromark-util-resolve-all/index.js
13454
13604
  function resolveAll(constructs2, events, context) {
13455
13605
  const called = [];
13456
13606
  let index2 = -1;
@@ -13464,7 +13614,7 @@ function resolveAll(constructs2, events, context) {
13464
13614
  return events;
13465
13615
  }
13466
13616
 
13467
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/attention.js
13617
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/attention.js
13468
13618
  var attention = {
13469
13619
  name: "attention",
13470
13620
  tokenize: tokenizeAttention,
@@ -13590,7 +13740,7 @@ function movePoint(point2, offset) {
13590
13740
  point2._bufferIndex += offset;
13591
13741
  }
13592
13742
 
13593
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/autolink.js
13743
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/autolink.js
13594
13744
  var autolink = {
13595
13745
  name: "autolink",
13596
13746
  tokenize: tokenizeAutolink
@@ -13681,7 +13831,7 @@ function tokenizeAutolink(effects, ok2, nok) {
13681
13831
  }
13682
13832
  }
13683
13833
 
13684
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/blank-line.js
13834
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/blank-line.js
13685
13835
  var blankLine = {
13686
13836
  tokenize: tokenizeBlankLine,
13687
13837
  partial: true
@@ -13693,7 +13843,7 @@ function tokenizeBlankLine(effects, ok2, nok) {
13693
13843
  }
13694
13844
  }
13695
13845
 
13696
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/block-quote.js
13846
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/block-quote.js
13697
13847
  var blockQuote = {
13698
13848
  name: "blockQuote",
13699
13849
  tokenize: tokenizeBlockQuoteStart,
@@ -13741,7 +13891,7 @@ function exit(effects) {
13741
13891
  effects.exit("blockQuote");
13742
13892
  }
13743
13893
 
13744
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/character-escape.js
13894
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/character-escape.js
13745
13895
  var characterEscape = {
13746
13896
  name: "characterEscape",
13747
13897
  tokenize: tokenizeCharacterEscape
@@ -13767,7 +13917,7 @@ function tokenizeCharacterEscape(effects, ok2, nok) {
13767
13917
  }
13768
13918
  }
13769
13919
 
13770
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-entities-npm-2.0.0-a1231c818e-f2c7ced245.zip/node_modules/character-entities/index.js
13920
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-entities-npm-2.0.0-a1231c818e-f2c7ced245.zip/node_modules/character-entities/index.js
13771
13921
  var characterEntities = {
13772
13922
  AEli: "\xC6",
13773
13923
  AElig: "\xC6",
@@ -15993,13 +16143,13 @@ var characterEntities = {
15993
16143
  zwnj: "\u200C"
15994
16144
  };
15995
16145
 
15996
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/parse-entities-npm-3.0.0-da12de3a6f-0a37ebb3e4.zip/node_modules/parse-entities/decode-entity.js
16146
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/parse-entities-npm-3.0.0-da12de3a6f-0a37ebb3e4.zip/node_modules/parse-entities/decode-entity.js
15997
16147
  var own3 = {}.hasOwnProperty;
15998
16148
  function decodeEntity(characters2) {
15999
16149
  return own3.call(characterEntities, characters2) ? characterEntities[characters2] : false;
16000
16150
  }
16001
16151
 
16002
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/character-reference.js
16152
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/character-reference.js
16003
16153
  var characterReference = {
16004
16154
  name: "characterReference",
16005
16155
  tokenize: tokenizeCharacterReference
@@ -16065,7 +16215,7 @@ function tokenizeCharacterReference(effects, ok2, nok) {
16065
16215
  }
16066
16216
  }
16067
16217
 
16068
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/code-fenced.js
16218
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/code-fenced.js
16069
16219
  var codeFenced = {
16070
16220
  name: "codeFenced",
16071
16221
  tokenize: tokenizeCodeFenced,
@@ -16212,7 +16362,7 @@ function tokenizeCodeFenced(effects, ok2, nok) {
16212
16362
  }
16213
16363
  }
16214
16364
 
16215
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/code-indented.js
16365
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/code-indented.js
16216
16366
  var codeIndented = {
16217
16367
  name: "codeIndented",
16218
16368
  tokenize: tokenizeCodeIndented
@@ -16276,7 +16426,7 @@ function tokenizeIndentedContent(effects, ok2, nok) {
16276
16426
  }
16277
16427
  }
16278
16428
 
16279
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/code-text.js
16429
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/code-text.js
16280
16430
  var codeText = {
16281
16431
  name: "codeText",
16282
16432
  tokenize: tokenizeCodeText,
@@ -16391,7 +16541,7 @@ function tokenizeCodeText(effects, ok2, nok) {
16391
16541
  }
16392
16542
  }
16393
16543
 
16394
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-subtokenize-npm-1.0.2-9d0d437340-14a819ec4a.zip/node_modules/micromark-util-subtokenize/index.js
16544
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-subtokenize-npm-1.0.2-9d0d437340-14a819ec4a.zip/node_modules/micromark-util-subtokenize/index.js
16395
16545
  function subtokenize(events) {
16396
16546
  const jumps = {};
16397
16547
  let index2 = -1;
@@ -16529,7 +16679,7 @@ function subcontent(events, eventIndex) {
16529
16679
  return gaps;
16530
16680
  }
16531
16681
 
16532
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/content.js
16682
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/content.js
16533
16683
  var content2 = {
16534
16684
  tokenize: tokenizeContent,
16535
16685
  resolve: resolveContent
@@ -16600,7 +16750,7 @@ function tokenizeContinuation(effects, ok2, nok) {
16600
16750
  }
16601
16751
  }
16602
16752
 
16603
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-factory-destination-npm-1.0.0-ead4af0386-e19f074843.zip/node_modules/micromark-factory-destination/index.js
16753
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-factory-destination-npm-1.0.0-ead4af0386-e19f074843.zip/node_modules/micromark-factory-destination/index.js
16604
16754
  function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerType, rawType, stringType, max) {
16605
16755
  const limit = max || Number.POSITIVE_INFINITY;
16606
16756
  let balance = 0;
@@ -16700,7 +16850,7 @@ function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerT
16700
16850
  }
16701
16851
  }
16702
16852
 
16703
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-factory-label-npm-1.0.2-aa46281fdc-27099d441b.zip/node_modules/micromark-factory-label/index.js
16853
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-factory-label-npm-1.0.2-aa46281fdc-27099d441b.zip/node_modules/micromark-factory-label/index.js
16704
16854
  function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
16705
16855
  const self2 = this;
16706
16856
  let size = 0;
@@ -16756,7 +16906,7 @@ function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
16756
16906
  }
16757
16907
  }
16758
16908
 
16759
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-factory-title-npm-1.0.2-3739fc0d5d-3f47b2f7cf.zip/node_modules/micromark-factory-title/index.js
16909
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-factory-title-npm-1.0.2-3739fc0d5d-3f47b2f7cf.zip/node_modules/micromark-factory-title/index.js
16760
16910
  function factoryTitle(effects, ok2, nok, type, markerType, stringType) {
16761
16911
  let marker;
16762
16912
  return start;
@@ -16815,7 +16965,7 @@ function factoryTitle(effects, ok2, nok, type, markerType, stringType) {
16815
16965
  }
16816
16966
  }
16817
16967
 
16818
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-factory-whitespace-npm-1.0.0-ea665f7a7c-eebacb0897.zip/node_modules/micromark-factory-whitespace/index.js
16968
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-factory-whitespace-npm-1.0.0-ea665f7a7c-eebacb0897.zip/node_modules/micromark-factory-whitespace/index.js
16819
16969
  function factoryWhitespace(effects, ok2) {
16820
16970
  let seen;
16821
16971
  return start;
@@ -16834,12 +16984,12 @@ function factoryWhitespace(effects, ok2) {
16834
16984
  }
16835
16985
  }
16836
16986
 
16837
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-normalize-identifier-npm-1.0.0-79f4e82268-a8f0ef3203.zip/node_modules/micromark-util-normalize-identifier/index.js
16987
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-normalize-identifier-npm-1.0.0-79f4e82268-a8f0ef3203.zip/node_modules/micromark-util-normalize-identifier/index.js
16838
16988
  function normalizeIdentifier(value) {
16839
16989
  return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
16840
16990
  }
16841
16991
 
16842
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/definition.js
16992
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/definition.js
16843
16993
  var definition = {
16844
16994
  name: "definition",
16845
16995
  tokenize: tokenizeDefinition
@@ -16893,7 +17043,7 @@ function tokenizeTitle(effects, ok2, nok) {
16893
17043
  }
16894
17044
  }
16895
17045
 
16896
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
17046
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
16897
17047
  var hardBreakEscape = {
16898
17048
  name: "hardBreakEscape",
16899
17049
  tokenize: tokenizeHardBreakEscape
@@ -16916,7 +17066,7 @@ function tokenizeHardBreakEscape(effects, ok2, nok) {
16916
17066
  }
16917
17067
  }
16918
17068
 
16919
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/heading-atx.js
17069
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/heading-atx.js
16920
17070
  var headingAtx = {
16921
17071
  name: "headingAtx",
16922
17072
  tokenize: tokenizeHeadingAtx,
@@ -17010,7 +17160,7 @@ function tokenizeHeadingAtx(effects, ok2, nok) {
17010
17160
  }
17011
17161
  }
17012
17162
 
17013
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-html-tag-name-npm-1.0.0-0b74ebd751-bdbcde984b.zip/node_modules/micromark-util-html-tag-name/index.js
17163
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-html-tag-name-npm-1.0.0-0b74ebd751-bdbcde984b.zip/node_modules/micromark-util-html-tag-name/index.js
17014
17164
  var htmlBlockNames = [
17015
17165
  "address",
17016
17166
  "article",
@@ -17077,7 +17227,7 @@ var htmlBlockNames = [
17077
17227
  ];
17078
17228
  var htmlRawNames = ["pre", "script", "style", "textarea"];
17079
17229
 
17080
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/html-flow.js
17230
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/html-flow.js
17081
17231
  var htmlFlow = {
17082
17232
  name: "htmlFlow",
17083
17233
  tokenize: tokenizeHtmlFlow,
@@ -17429,7 +17579,7 @@ function tokenizeNextBlank(effects, ok2, nok) {
17429
17579
  }
17430
17580
  }
17431
17581
 
17432
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/html-text.js
17582
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/html-text.js
17433
17583
  var htmlText = {
17434
17584
  name: "htmlText",
17435
17585
  tokenize: tokenizeHtmlText
@@ -17746,7 +17896,7 @@ function tokenizeHtmlText(effects, ok2, nok) {
17746
17896
  }
17747
17897
  }
17748
17898
 
17749
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/label-end.js
17899
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/label-end.js
17750
17900
  var labelEnd = {
17751
17901
  name: "labelEnd",
17752
17902
  tokenize: tokenizeLabelEnd,
@@ -17945,7 +18095,7 @@ function tokenizeCollapsedReference(effects, ok2, nok) {
17945
18095
  }
17946
18096
  }
17947
18097
 
17948
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/label-start-image.js
18098
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/label-start-image.js
17949
18099
  var labelStartImage = {
17950
18100
  name: "labelStartImage",
17951
18101
  tokenize: tokenizeLabelStartImage,
@@ -17976,7 +18126,7 @@ function tokenizeLabelStartImage(effects, ok2, nok) {
17976
18126
  }
17977
18127
  }
17978
18128
 
17979
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/label-start-link.js
18129
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/label-start-link.js
17980
18130
  var labelStartLink = {
17981
18131
  name: "labelStartLink",
17982
18132
  tokenize: tokenizeLabelStartLink,
@@ -17998,7 +18148,7 @@ function tokenizeLabelStartLink(effects, ok2, nok) {
17998
18148
  }
17999
18149
  }
18000
18150
 
18001
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/line-ending.js
18151
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/line-ending.js
18002
18152
  var lineEnding = {
18003
18153
  name: "lineEnding",
18004
18154
  tokenize: tokenizeLineEnding
@@ -18013,7 +18163,7 @@ function tokenizeLineEnding(effects, ok2) {
18013
18163
  }
18014
18164
  }
18015
18165
 
18016
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/thematic-break.js
18166
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/thematic-break.js
18017
18167
  var thematicBreak = {
18018
18168
  name: "thematicBreak",
18019
18169
  tokenize: tokenizeThematicBreak
@@ -18052,7 +18202,7 @@ function tokenizeThematicBreak(effects, ok2, nok) {
18052
18202
  }
18053
18203
  }
18054
18204
 
18055
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/list.js
18205
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/list.js
18056
18206
  var list = {
18057
18207
  name: "list",
18058
18208
  tokenize: tokenizeListStart,
@@ -18177,7 +18327,7 @@ function tokenizeListItemPrefixWhitespace(effects, ok2, nok) {
18177
18327
  }
18178
18328
  }
18179
18329
 
18180
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/setext-underline.js
18330
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-core-commonmark-npm-1.0.3-e5a721c107-8b90603145.zip/node_modules/micromark-core-commonmark/lib/setext-underline.js
18181
18331
  var setextUnderline = {
18182
18332
  name: "setextUnderline",
18183
18333
  tokenize: tokenizeSetextUnderline,
@@ -18260,7 +18410,7 @@ function tokenizeSetextUnderline(effects, ok2, nok) {
18260
18410
  }
18261
18411
  }
18262
18412
 
18263
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/flow.js
18413
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/flow.js
18264
18414
  var flow = {
18265
18415
  tokenize: initializeFlow
18266
18416
  };
@@ -18292,7 +18442,7 @@ function initializeFlow(effects) {
18292
18442
  }
18293
18443
  }
18294
18444
 
18295
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/text.js
18445
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/initialize/text.js
18296
18446
  var resolver = {
18297
18447
  resolveAll: createResolver()
18298
18448
  };
@@ -18425,7 +18575,7 @@ function resolveAllLineSuffixes(events, context) {
18425
18575
  return events;
18426
18576
  }
18427
18577
 
18428
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/create-tokenizer.js
18578
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/create-tokenizer.js
18429
18579
  function createTokenizer(parser, initialize, from) {
18430
18580
  let point2 = Object.assign(from ? Object.assign({}, from) : {
18431
18581
  line: 1,
@@ -18552,7 +18702,7 @@ function createTokenizer(parser, initialize, from) {
18552
18702
  function onsuccessfulconstruct(construct, info) {
18553
18703
  addResult(construct, info.from);
18554
18704
  }
18555
- function onsuccessfulcheck(_7, info) {
18705
+ function onsuccessfulcheck(_8, info) {
18556
18706
  info.restore();
18557
18707
  }
18558
18708
  function constructFactory(onreturn, fields) {
@@ -18711,7 +18861,7 @@ function serializeChunks(chunks, expandTabs) {
18711
18861
  return result.join("");
18712
18862
  }
18713
18863
 
18714
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/constructs.js
18864
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/constructs.js
18715
18865
  var constructs_exports = {};
18716
18866
  __export(constructs_exports, {
18717
18867
  attentionMarkers: () => attentionMarkers,
@@ -18786,7 +18936,7 @@ var disable = {
18786
18936
  null: []
18787
18937
  };
18788
18938
 
18789
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/parse.js
18939
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/parse.js
18790
18940
  function parse(options = {}) {
18791
18941
  const constructs2 = combineExtensions([constructs_exports].concat(options.extensions || []));
18792
18942
  const parser = {
@@ -18808,7 +18958,7 @@ function parse(options = {}) {
18808
18958
  }
18809
18959
  }
18810
18960
 
18811
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/preprocess.js
18961
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/preprocess.js
18812
18962
  var search = /[\0\t\n\r]/g;
18813
18963
  function preprocess() {
18814
18964
  let column = 1;
@@ -18890,14 +19040,14 @@ function preprocess() {
18890
19040
  }
18891
19041
  }
18892
19042
 
18893
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/postprocess.js
19043
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-npm-3.0.7-da94deb9a9-741af00392.zip/node_modules/micromark/lib/postprocess.js
18894
19044
  function postprocess(events) {
18895
19045
  while (!subtokenize(events)) {
18896
19046
  }
18897
19047
  return events;
18898
19048
  }
18899
19049
 
18900
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-decode-numeric-character-reference-npm-1.0.0-68686444bf-d1dc565548.zip/node_modules/micromark-util-decode-numeric-character-reference/index.js
19050
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-decode-numeric-character-reference-npm-1.0.0-68686444bf-d1dc565548.zip/node_modules/micromark-util-decode-numeric-character-reference/index.js
18901
19051
  function decodeNumericCharacterReference(value, base2) {
18902
19052
  const code2 = Number.parseInt(value, base2);
18903
19053
  if (code2 < 9 || code2 === 11 || code2 > 13 && code2 < 32 || code2 > 126 && code2 < 160 || code2 > 55295 && code2 < 57344 || code2 > 64975 && code2 < 65008 || (code2 & 65535) === 65535 || (code2 & 65535) === 65534 || code2 > 1114111) {
@@ -18906,7 +19056,7 @@ function decodeNumericCharacterReference(value, base2) {
18906
19056
  return String.fromCharCode(code2);
18907
19057
  }
18908
19058
 
18909
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/micromark-util-decode-string-npm-1.0.1-f5f8681728-eb52c3e2fe.zip/node_modules/micromark-util-decode-string/index.js
19059
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/micromark-util-decode-string-npm-1.0.1-f5f8681728-eb52c3e2fe.zip/node_modules/micromark-util-decode-string/index.js
18910
19060
  var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
18911
19061
  function decodeString(value) {
18912
19062
  return value.replace(characterEscapeOrReference, decode);
@@ -18924,7 +19074,7 @@ function decode($0, $1, $2) {
18924
19074
  return decodeEntity($2) || $0;
18925
19075
  }
18926
19076
 
18927
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-from-markdown-npm-1.0.4-0ff0b25e18-4117250ca2.zip/node_modules/mdast-util-from-markdown/lib/index.js
19077
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-from-markdown-npm-1.0.4-0ff0b25e18-4117250ca2.zip/node_modules/mdast-util-from-markdown/lib/index.js
18928
19078
  var own4 = {}.hasOwnProperty;
18929
19079
  var fromMarkdown = function(value, encoding, options) {
18930
19080
  if (typeof encoding !== "string") {
@@ -19595,7 +19745,7 @@ function extension(combined, extension2) {
19595
19745
  }
19596
19746
  }
19597
19747
 
19598
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/remark-parse-npm-10.0.0-a311463b1a-161a56a41d.zip/node_modules/remark-parse/lib/index.js
19748
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/remark-parse-npm-10.0.0-a311463b1a-161a56a41d.zip/node_modules/remark-parse/lib/index.js
19599
19749
  function remarkParse(options) {
19600
19750
  const parser = (doc) => {
19601
19751
  const settings = this.data("settings");
@@ -19607,13 +19757,13 @@ function remarkParse(options) {
19607
19757
  Object.assign(this, { Parser: parser });
19608
19758
  }
19609
19759
 
19610
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/remark-parse-npm-10.0.0-a311463b1a-161a56a41d.zip/node_modules/remark-parse/index.js
19760
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/remark-parse-npm-10.0.0-a311463b1a-161a56a41d.zip/node_modules/remark-parse/index.js
19611
19761
  var remark_parse_default = remarkParse;
19612
19762
 
19613
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/mdx/parse.ts
19763
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/mdx/parse.ts
19614
19764
  var import_remark_mdx = __toModule(require_remark_mdx());
19615
19765
 
19616
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-is-npm-5.1.1-eeef3df35f-5f42529c8d.zip/node_modules/unist-util-is/index.js
19766
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-is-npm-5.1.1-eeef3df35f-5f42529c8d.zip/node_modules/unist-util-is/index.js
19617
19767
  var convert = function(test) {
19618
19768
  if (test === void 0 || test === null) {
19619
19769
  return ok;
@@ -19672,12 +19822,12 @@ function ok() {
19672
19822
  return true;
19673
19823
  }
19674
19824
 
19675
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-visit-parents-npm-5.1.0-5b9348080b-0f3de815f3.zip/node_modules/unist-util-visit-parents/color.js
19825
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-visit-parents-npm-5.1.0-5b9348080b-0f3de815f3.zip/node_modules/unist-util-visit-parents/color.js
19676
19826
  function color(d) {
19677
19827
  return "" + d + "";
19678
19828
  }
19679
19829
 
19680
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-visit-parents-npm-5.1.0-5b9348080b-0f3de815f3.zip/node_modules/unist-util-visit-parents/index.js
19830
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-visit-parents-npm-5.1.0-5b9348080b-0f3de815f3.zip/node_modules/unist-util-visit-parents/index.js
19681
19831
  var CONTINUE = true;
19682
19832
  var SKIP = "skip";
19683
19833
  var EXIT = false;
@@ -19736,7 +19886,7 @@ function toResult(value) {
19736
19886
  return [value];
19737
19887
  }
19738
19888
 
19739
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/unist-util-visit-npm-4.1.0-71b0165ce5-0598d26f46.zip/node_modules/unist-util-visit/index.js
19889
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/unist-util-visit-npm-4.1.0-71b0165ce5-0598d26f46.zip/node_modules/unist-util-visit/index.js
19740
19890
  var visit = function(tree, test, visitor, reverse) {
19741
19891
  if (typeof test === "function" && typeof visitor !== "function") {
19742
19892
  reverse = visitor;
@@ -19750,8 +19900,8 @@ var visit = function(tree, test, visitor, reverse) {
19750
19900
  }
19751
19901
  };
19752
19902
 
19753
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/mdx/parse.ts
19754
- var import_lodash5 = __toModule(require("lodash"));
19903
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/mdx/parse.ts
19904
+ var import_lodash4 = __toModule(require("lodash"));
19755
19905
  var parseMDX = (value, field) => {
19756
19906
  const tree = unified().use(remark_parse_default).use(import_remark_mdx.default).parse(value);
19757
19907
  return parseMDXInner(tree, field);
@@ -19771,7 +19921,7 @@ var parseMDXInner = (tree, field) => {
19771
19921
  return templateName === node.name;
19772
19922
  });
19773
19923
  if (!template) {
19774
- if ((0, import_lodash5.isNull)(node.name)) {
19924
+ if ((0, import_lodash4.isNull)(node.name)) {
19775
19925
  } else {
19776
19926
  throw new Error(`Found unregistered JSX or HTML: <${node.name}>. Please ensure all structured elements have been registered with your schema.`);
19777
19927
  }
@@ -20139,7 +20289,7 @@ function persistLeafFormats(children) {
20139
20289
  }, {});
20140
20290
  }
20141
20291
 
20142
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/zwitch-npm-2.0.2-a4cf7ec6e3-b2db5e06e4.zip/node_modules/zwitch/index.js
20292
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/zwitch-npm-2.0.2-a4cf7ec6e3-b2db5e06e4.zip/node_modules/zwitch/index.js
20143
20293
  var own5 = {}.hasOwnProperty;
20144
20294
  function zwitch(key2, options) {
20145
20295
  var settings = options || {};
@@ -20159,7 +20309,7 @@ function zwitch(key2, options) {
20159
20309
  return one2;
20160
20310
  }
20161
20311
 
20162
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/configure.js
20312
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/configure.js
20163
20313
  function configure2(base2, extension2) {
20164
20314
  let index2 = -1;
20165
20315
  let key2;
@@ -20181,7 +20331,7 @@ function configure2(base2, extension2) {
20181
20331
  return base2;
20182
20332
  }
20183
20333
 
20184
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/container-flow.js
20334
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/container-flow.js
20185
20335
  function containerFlow(parent, context) {
20186
20336
  const indexStack = context.indexStack;
20187
20337
  const children = parent.children || [];
@@ -20219,7 +20369,7 @@ function containerFlow(parent, context) {
20219
20369
  }
20220
20370
  }
20221
20371
 
20222
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js
20372
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js
20223
20373
  var eol = /\r?\n|\r/g;
20224
20374
  function indentLines(value, map3) {
20225
20375
  const result = [];
@@ -20239,18 +20389,18 @@ function indentLines(value, map3) {
20239
20389
  }
20240
20390
  }
20241
20391
 
20242
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
20243
- function blockquote(node, _7, context) {
20392
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
20393
+ function blockquote(node, _8, context) {
20244
20394
  const exit2 = context.enter("blockquote");
20245
20395
  const value = indentLines(containerFlow(node, context), map);
20246
20396
  exit2();
20247
20397
  return value;
20248
20398
  }
20249
- function map(line, _7, blank) {
20399
+ function map(line, _8, blank) {
20250
20400
  return ">" + (blank ? "" : " ") + line;
20251
20401
  }
20252
20402
 
20253
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
20403
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
20254
20404
  function patternInScope(stack, pattern) {
20255
20405
  return listInScope(stack, pattern.inConstruct, true) && !listInScope(stack, pattern.notInConstruct, false);
20256
20406
  }
@@ -20270,8 +20420,8 @@ function listInScope(stack, list3, none) {
20270
20420
  return false;
20271
20421
  }
20272
20422
 
20273
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/break.js
20274
- function hardBreak(_7, _1, context, safe2) {
20423
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/break.js
20424
+ function hardBreak(_8, _1, context, safe2) {
20275
20425
  let index2 = -1;
20276
20426
  while (++index2 < context.unsafe.length) {
20277
20427
  if (context.unsafe[index2].character === "\n" && patternInScope(context.stack, context.unsafe[index2])) {
@@ -20281,7 +20431,7 @@ function hardBreak(_7, _1, context, safe2) {
20281
20431
  return "\\\n";
20282
20432
  }
20283
20433
 
20284
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/longest-streak-npm-3.0.0-d72dc056b5-7fdd42f69a.zip/node_modules/longest-streak/index.js
20434
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/longest-streak-npm-3.0.0-d72dc056b5-7fdd42f69a.zip/node_modules/longest-streak/index.js
20285
20435
  function longestStreak(value, character) {
20286
20436
  var source = String(value);
20287
20437
  var index2 = source.indexOf(character);
@@ -20305,12 +20455,12 @@ function longestStreak(value, character) {
20305
20455
  return max;
20306
20456
  }
20307
20457
 
20308
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
20458
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
20309
20459
  function formatCodeAsIndented(node, context) {
20310
20460
  return Boolean(!context.options.fences && node.value && !node.lang && /[^ \r\n]/.test(node.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value));
20311
20461
  }
20312
20462
 
20313
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-fence.js
20463
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-fence.js
20314
20464
  function checkFence(context) {
20315
20465
  const marker = context.options.fence || "`";
20316
20466
  if (marker !== "`" && marker !== "~") {
@@ -20319,7 +20469,7 @@ function checkFence(context) {
20319
20469
  return marker;
20320
20470
  }
20321
20471
 
20322
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js
20472
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js
20323
20473
  function patternCompile(pattern) {
20324
20474
  if (!pattern._compiled) {
20325
20475
  const before = (pattern.atBreak ? "[\\r\\n][\\t ]*" : "") + (pattern.before ? "(?:" + pattern.before + ")" : "");
@@ -20328,7 +20478,7 @@ function patternCompile(pattern) {
20328
20478
  return pattern._compiled;
20329
20479
  }
20330
20480
 
20331
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/safe.js
20481
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/safe.js
20332
20482
  function safe(context, input, config) {
20333
20483
  const value = (config.before || "") + (input || "") + (config.after || "");
20334
20484
  const positions = [];
@@ -20410,8 +20560,8 @@ function escapeBackslashes(value, after) {
20410
20560
  return results.join("");
20411
20561
  }
20412
20562
 
20413
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/code.js
20414
- function code(node, _7, context) {
20563
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/code.js
20564
+ function code(node, _8, context) {
20415
20565
  const marker = checkFence(context);
20416
20566
  const raw = node.value || "";
20417
20567
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
@@ -20452,11 +20602,11 @@ function code(node, _7, context) {
20452
20602
  exit2();
20453
20603
  return value;
20454
20604
  }
20455
- function map2(line, _7, blank) {
20605
+ function map2(line, _8, blank) {
20456
20606
  return (blank ? "" : " ") + line;
20457
20607
  }
20458
20608
 
20459
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/association.js
20609
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/association.js
20460
20610
  function association(node) {
20461
20611
  if (node.label || !node.identifier) {
20462
20612
  return node.label || "";
@@ -20464,7 +20614,7 @@ function association(node) {
20464
20614
  return decodeString(node.identifier);
20465
20615
  }
20466
20616
 
20467
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
20617
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
20468
20618
  function checkQuote(context) {
20469
20619
  const marker = context.options.quote || '"';
20470
20620
  if (marker !== '"' && marker !== "'") {
@@ -20473,8 +20623,8 @@ function checkQuote(context) {
20473
20623
  return marker;
20474
20624
  }
20475
20625
 
20476
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/definition.js
20477
- function definition2(node, _7, context) {
20626
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/definition.js
20627
+ function definition2(node, _8, context) {
20478
20628
  const marker = checkQuote(context);
20479
20629
  const suffix = marker === '"' ? "Quote" : "Apostrophe";
20480
20630
  const exit2 = context.enter("definition");
@@ -20498,7 +20648,7 @@ function definition2(node, _7, context) {
20498
20648
  return value;
20499
20649
  }
20500
20650
 
20501
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
20651
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
20502
20652
  function checkEmphasis(context) {
20503
20653
  const marker = context.options.emphasis || "*";
20504
20654
  if (marker !== "*" && marker !== "_") {
@@ -20507,7 +20657,7 @@ function checkEmphasis(context) {
20507
20657
  return marker;
20508
20658
  }
20509
20659
 
20510
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
20660
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
20511
20661
  function containerPhrasing(parent, context, safeOptions) {
20512
20662
  const indexStack = context.indexStack;
20513
20663
  const children = parent.children || [];
@@ -20541,9 +20691,9 @@ function containerPhrasing(parent, context, safeOptions) {
20541
20691
  return results.join("");
20542
20692
  }
20543
20693
 
20544
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
20694
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
20545
20695
  emphasis.peek = emphasisPeek;
20546
- function emphasis(node, _7, context) {
20696
+ function emphasis(node, _8, context) {
20547
20697
  const marker = checkEmphasis(context);
20548
20698
  const exit2 = context.enter("emphasis");
20549
20699
  const value = containerPhrasing(node, context, {
@@ -20553,11 +20703,11 @@ function emphasis(node, _7, context) {
20553
20703
  exit2();
20554
20704
  return marker + value + marker;
20555
20705
  }
20556
- function emphasisPeek(_7, _1, context) {
20706
+ function emphasisPeek(_8, _1, context) {
20557
20707
  return context.options.emphasis || "*";
20558
20708
  }
20559
20709
 
20560
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
20710
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
20561
20711
  function formatHeadingAsSetext(node, context) {
20562
20712
  let literalWithBreak = false;
20563
20713
  visit(node, (node2) => {
@@ -20569,8 +20719,8 @@ function formatHeadingAsSetext(node, context) {
20569
20719
  return Boolean((!node.depth || node.depth < 3) && toString(node) && (context.options.setext || literalWithBreak));
20570
20720
  }
20571
20721
 
20572
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/heading.js
20573
- function heading(node, _7, context) {
20722
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/heading.js
20723
+ function heading(node, _8, context) {
20574
20724
  const rank = Math.max(Math.min(6, node.depth || 1), 1);
20575
20725
  if (formatHeadingAsSetext(node, context)) {
20576
20726
  const exit3 = context.enter("headingSetext");
@@ -20596,7 +20746,7 @@ function heading(node, _7, context) {
20596
20746
  return value;
20597
20747
  }
20598
20748
 
20599
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/html.js
20749
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/html.js
20600
20750
  html.peek = htmlPeek;
20601
20751
  function html(node) {
20602
20752
  return node.value || "";
@@ -20605,9 +20755,9 @@ function htmlPeek() {
20605
20755
  return "<";
20606
20756
  }
20607
20757
 
20608
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/image.js
20758
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/image.js
20609
20759
  image.peek = imagePeek;
20610
- function image(node, _7, context) {
20760
+ function image(node, _8, context) {
20611
20761
  const quote = checkQuote(context);
20612
20762
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
20613
20763
  const exit2 = context.enter("image");
@@ -20638,9 +20788,9 @@ function imagePeek() {
20638
20788
  return "!";
20639
20789
  }
20640
20790
 
20641
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
20791
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
20642
20792
  imageReference.peek = imageReferencePeek;
20643
- function imageReference(node, _7, context) {
20793
+ function imageReference(node, _8, context) {
20644
20794
  const type = node.referenceType;
20645
20795
  const exit2 = context.enter("imageReference");
20646
20796
  let subexit = context.enter("label");
@@ -20665,9 +20815,9 @@ function imageReferencePeek() {
20665
20815
  return "!";
20666
20816
  }
20667
20817
 
20668
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
20818
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
20669
20819
  inlineCode.peek = inlineCodePeek;
20670
- function inlineCode(node, _7, context) {
20820
+ function inlineCode(node, _8, context) {
20671
20821
  let value = node.value || "";
20672
20822
  let sequence = "`";
20673
20823
  let index2 = -1;
@@ -20697,15 +20847,15 @@ function inlineCodePeek() {
20697
20847
  return "`";
20698
20848
  }
20699
20849
 
20700
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
20850
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
20701
20851
  function formatLinkAsAutolink(node, context) {
20702
20852
  const raw = toString(node);
20703
20853
  return Boolean(!context.options.resourceLink && node.url && !node.title && node.children && node.children.length === 1 && node.children[0].type === "text" && (raw === node.url || "mailto:" + raw === node.url) && /^[a-z][a-z+.-]+:/i.test(node.url) && !/[\0- <>\u007F]/.test(node.url));
20704
20854
  }
20705
20855
 
20706
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/link.js
20856
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/link.js
20707
20857
  link.peek = linkPeek;
20708
- function link(node, _7, context) {
20858
+ function link(node, _8, context) {
20709
20859
  const quote = checkQuote(context);
20710
20860
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
20711
20861
  let exit2;
@@ -20744,13 +20894,13 @@ function link(node, _7, context) {
20744
20894
  exit2();
20745
20895
  return value;
20746
20896
  }
20747
- function linkPeek(node, _7, context) {
20897
+ function linkPeek(node, _8, context) {
20748
20898
  return formatLinkAsAutolink(node, context) ? "<" : "[";
20749
20899
  }
20750
20900
 
20751
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
20901
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
20752
20902
  linkReference.peek = linkReferencePeek;
20753
- function linkReference(node, _7, context) {
20903
+ function linkReference(node, _8, context) {
20754
20904
  const type = node.referenceType;
20755
20905
  const exit2 = context.enter("linkReference");
20756
20906
  let subexit = context.enter("label");
@@ -20775,7 +20925,7 @@ function linkReferencePeek() {
20775
20925
  return "[";
20776
20926
  }
20777
20927
 
20778
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
20928
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
20779
20929
  function checkBullet(context) {
20780
20930
  const marker = context.options.bullet || "*";
20781
20931
  if (marker !== "*" && marker !== "+" && marker !== "-") {
@@ -20784,7 +20934,7 @@ function checkBullet(context) {
20784
20934
  return marker;
20785
20935
  }
20786
20936
 
20787
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
20937
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
20788
20938
  function checkBulletOther(context) {
20789
20939
  const bullet = checkBullet(context);
20790
20940
  const bulletOther = context.options.bulletOther;
@@ -20800,7 +20950,7 @@ function checkBulletOther(context) {
20800
20950
  return bulletOther;
20801
20951
  }
20802
20952
 
20803
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
20953
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
20804
20954
  function checkBulletOrdered(context) {
20805
20955
  const marker = context.options.bulletOrdered || ".";
20806
20956
  if (marker !== "." && marker !== ")") {
@@ -20809,7 +20959,7 @@ function checkBulletOrdered(context) {
20809
20959
  return marker;
20810
20960
  }
20811
20961
 
20812
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered-other.js
20962
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered-other.js
20813
20963
  function checkBulletOrderedOther(context) {
20814
20964
  const bulletOrdered = checkBulletOrdered(context);
20815
20965
  const bulletOrderedOther = context.options.bulletOrderedOther;
@@ -20825,7 +20975,7 @@ function checkBulletOrderedOther(context) {
20825
20975
  return bulletOrderedOther;
20826
20976
  }
20827
20977
 
20828
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-rule.js
20978
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-rule.js
20829
20979
  function checkRule(context) {
20830
20980
  const marker = context.options.rule || "*";
20831
20981
  if (marker !== "*" && marker !== "-" && marker !== "_") {
@@ -20834,7 +20984,7 @@ function checkRule(context) {
20834
20984
  return marker;
20835
20985
  }
20836
20986
 
20837
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/list.js
20987
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/list.js
20838
20988
  function list2(node, parent, context) {
20839
20989
  const exit2 = context.enter("list");
20840
20990
  const bulletCurrent = context.bulletCurrent;
@@ -20872,7 +21022,7 @@ function list2(node, parent, context) {
20872
21022
  return value;
20873
21023
  }
20874
21024
 
20875
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
21025
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
20876
21026
  function checkListItemIndent(context) {
20877
21027
  const style = context.options.listItemIndent || "tab";
20878
21028
  if (style === 1 || style === "1") {
@@ -20884,7 +21034,7 @@ function checkListItemIndent(context) {
20884
21034
  return style;
20885
21035
  }
20886
21036
 
20887
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
21037
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
20888
21038
  function listItem(node, parent, context) {
20889
21039
  const listItemIndent = checkListItemIndent(context);
20890
21040
  let bullet = context.bulletCurrent || checkBullet(context);
@@ -20907,8 +21057,8 @@ function listItem(node, parent, context) {
20907
21057
  }
20908
21058
  }
20909
21059
 
20910
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
20911
- function paragraph(node, _7, context) {
21060
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
21061
+ function paragraph(node, _8, context) {
20912
21062
  const exit2 = context.enter("paragraph");
20913
21063
  const subexit = context.enter("phrasing");
20914
21064
  const value = containerPhrasing(node, context, { before: "\n", after: "\n" });
@@ -20917,12 +21067,12 @@ function paragraph(node, _7, context) {
20917
21067
  return value;
20918
21068
  }
20919
21069
 
20920
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/root.js
20921
- function root(node, _7, context) {
21070
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/root.js
21071
+ function root(node, _8, context) {
20922
21072
  return containerFlow(node, context);
20923
21073
  }
20924
21074
 
20925
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-strong.js
21075
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-strong.js
20926
21076
  function checkStrong(context) {
20927
21077
  const marker = context.options.strong || "*";
20928
21078
  if (marker !== "*" && marker !== "_") {
@@ -20931,9 +21081,9 @@ function checkStrong(context) {
20931
21081
  return marker;
20932
21082
  }
20933
21083
 
20934
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/strong.js
21084
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/strong.js
20935
21085
  strong.peek = strongPeek;
20936
- function strong(node, _7, context) {
21086
+ function strong(node, _8, context) {
20937
21087
  const marker = checkStrong(context);
20938
21088
  const exit2 = context.enter("strong");
20939
21089
  const value = containerPhrasing(node, context, {
@@ -20943,16 +21093,16 @@ function strong(node, _7, context) {
20943
21093
  exit2();
20944
21094
  return marker + marker + value + marker + marker;
20945
21095
  }
20946
- function strongPeek(_7, _1, context) {
21096
+ function strongPeek(_8, _1, context) {
20947
21097
  return context.options.strong || "*";
20948
21098
  }
20949
21099
 
20950
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/text.js
20951
- function text3(node, _7, context, safeOptions) {
21100
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/text.js
21101
+ function text3(node, _8, context, safeOptions) {
20952
21102
  return safe(context, node.value, safeOptions);
20953
21103
  }
20954
21104
 
20955
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
21105
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
20956
21106
  function checkRuleRepetition(context) {
20957
21107
  const repetition = context.options.ruleRepetition || 3;
20958
21108
  if (repetition < 3) {
@@ -20961,13 +21111,13 @@ function checkRuleRepetition(context) {
20961
21111
  return repetition;
20962
21112
  }
20963
21113
 
20964
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
20965
- function thematicBreak2(_7, _1, context) {
21114
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
21115
+ function thematicBreak2(_8, _1, context) {
20966
21116
  const value = (checkRule(context) + (context.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(context));
20967
21117
  return context.options.ruleSpaces ? value.slice(0, -1) : value;
20968
21118
  }
20969
21119
 
20970
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/index.js
21120
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/handle/index.js
20971
21121
  var handle = {
20972
21122
  blockquote,
20973
21123
  break: hardBreak,
@@ -20991,7 +21141,7 @@ var handle = {
20991
21141
  thematicBreak: thematicBreak2
20992
21142
  };
20993
21143
 
20994
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/join.js
21144
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/join.js
20995
21145
  var join = [joinDefaults];
20996
21146
  function joinDefaults(left, right, parent, context) {
20997
21147
  if (right.type === "code" && formatCodeAsIndented(right, context) && (left.type === "list" || left.type === right.type && formatCodeAsIndented(left, context))) {
@@ -21008,7 +21158,7 @@ function joinDefaults(left, right, parent, context) {
21008
21158
  }
21009
21159
  }
21010
21160
 
21011
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/unsafe.js
21161
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/unsafe.js
21012
21162
  var unsafe = [
21013
21163
  { character: " ", after: "[\\r\\n]", inConstruct: "phrasing" },
21014
21164
  { character: " ", before: "[\\r\\n]", inConstruct: "phrasing" },
@@ -21083,7 +21233,7 @@ var unsafe = [
21083
21233
  { atBreak: true, character: "~" }
21084
21234
  ];
21085
21235
 
21086
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/index.js
21236
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-to-markdown-npm-1.2.3-e27fe7fcf9-d50b5c4a9f.zip/node_modules/mdast-util-to-markdown/lib/index.js
21087
21237
  function toMarkdown(tree, options = {}) {
21088
21238
  const context = {
21089
21239
  enter,
@@ -21129,7 +21279,7 @@ function joinDefinition(left, right) {
21129
21279
  }
21130
21280
  }
21131
21281
 
21132
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-1.1.1-7e7ac0a51f-9e84a57a50.zip/node_modules/mdast-util-mdx-expression/index.js
21282
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-expression-npm-1.1.1-7e7ac0a51f-9e84a57a50.zip/node_modules/mdast-util-mdx-expression/index.js
21133
21283
  var mdxExpressionToMarkdown = {
21134
21284
  handlers: {
21135
21285
  mdxFlowExpression: handleMdxExpression,
@@ -21145,11 +21295,11 @@ function handleMdxExpression(node) {
21145
21295
  return "{" + value + "}";
21146
21296
  }
21147
21297
 
21148
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/parse-entities-npm-3.0.0-da12de3a6f-0a37ebb3e4.zip/node_modules/parse-entities/index.js
21298
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/parse-entities-npm-3.0.0-da12de3a6f-0a37ebb3e4.zip/node_modules/parse-entities/index.js
21149
21299
  var own6 = {}.hasOwnProperty;
21150
21300
  var fromCharCode = String.fromCharCode;
21151
21301
 
21152
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/core.js
21302
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/core.js
21153
21303
  function core(value, options) {
21154
21304
  value = value.replace(options.subset ? charactersToExpression(options.subset) : /["&'<>`]/g, basic);
21155
21305
  if (options.subset || options.escapeOnly) {
@@ -21172,7 +21322,7 @@ function charactersToExpression(subset) {
21172
21322
  return new RegExp("(?:" + groups.join("|") + ")", "g");
21173
21323
  }
21174
21324
 
21175
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/character-entities-html4-npm-2.0.0-7dd94897cd-79ce3a03b8.zip/node_modules/character-entities-html4/index.js
21325
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/character-entities-html4-npm-2.0.0-7dd94897cd-79ce3a03b8.zip/node_modules/character-entities-html4/index.js
21176
21326
  var characterEntitiesHtml4 = {
21177
21327
  nbsp: "\xA0",
21178
21328
  iexcl: "\xA1",
@@ -21428,7 +21578,7 @@ var characterEntitiesHtml4 = {
21428
21578
  euro: "\u20AC"
21429
21579
  };
21430
21580
 
21431
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/constant/characters.js
21581
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/constant/characters.js
21432
21582
  var characters = {};
21433
21583
  var own7 = {}.hasOwnProperty;
21434
21584
  var key;
@@ -21438,20 +21588,20 @@ for (key in characterEntitiesHtml4) {
21438
21588
  }
21439
21589
  }
21440
21590
 
21441
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/util/to-named.js
21591
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/util/to-named.js
21442
21592
  var own8 = {}.hasOwnProperty;
21443
21593
 
21444
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/util/format-basic.js
21594
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/util/format-basic.js
21445
21595
  function formatBasic(code2) {
21446
21596
  return "&#x" + code2.toString(16).toUpperCase() + ";";
21447
21597
  }
21448
21598
 
21449
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/index.js
21599
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/stringify-entities-npm-4.0.1-3b61aeac68-f2cdeba8de.zip/node_modules/stringify-entities/lib/index.js
21450
21600
  function stringifyEntitiesLight(value, options) {
21451
21601
  return core(value, Object.assign({ format: formatBasic }, options));
21452
21602
  }
21453
21603
 
21454
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-1.1.1-219bb4c262-5c285f3502.zip/node_modules/mdast-util-mdx-jsx/index.js
21604
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-jsx-npm-1.1.1-219bb4c262-5c285f3502.zip/node_modules/mdast-util-mdx-jsx/index.js
21455
21605
  mdxElement.peek = peekElement;
21456
21606
  var mdxJsxToMarkdown = {
21457
21607
  handlers: {
@@ -21465,7 +21615,7 @@ var mdxJsxToMarkdown = {
21465
21615
  fences: true,
21466
21616
  resourceLink: true
21467
21617
  };
21468
- function mdxElement(node, _7, context) {
21618
+ function mdxElement(node, _8, context) {
21469
21619
  const selfClosing = node.name && (!node.children || node.children.length === 0);
21470
21620
  const quote = checkQuote(context);
21471
21621
  const exit2 = context.enter(node.type);
@@ -21501,27 +21651,27 @@ function peekElement() {
21501
21651
  }
21502
21652
  function indent(value) {
21503
21653
  return indentLines(value, map3);
21504
- function map3(line, _7, blank) {
21654
+ function map3(line, _8, blank) {
21505
21655
  return (blank ? "" : " ") + line;
21506
21656
  }
21507
21657
  }
21508
21658
 
21509
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-1.1.1-0d006d7b38-618ab33144.zip/node_modules/mdast-util-mdxjs-esm/index.js
21659
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdxjs-esm-npm-1.1.1-0d006d7b38-618ab33144.zip/node_modules/mdast-util-mdxjs-esm/index.js
21510
21660
  var mdxjsEsmToMarkdown = { handlers: { mdxjsEsm: handleMdxjsEsm } };
21511
21661
  function handleMdxjsEsm(node) {
21512
21662
  return node.value || "";
21513
21663
  }
21514
21664
 
21515
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/mdast-util-mdx-npm-1.1.0-e1140be51f-bcf7eed04f.zip/node_modules/mdast-util-mdx/index.js
21665
+ // pnp:/Users/jeffsee/code/tinacms/.yarn/cache/mdast-util-mdx-npm-1.1.0-e1140be51f-bcf7eed04f.zip/node_modules/mdast-util-mdx/index.js
21516
21666
  var mdxToMarkdown = {
21517
21667
  extensions: [mdxExpressionToMarkdown, mdxJsxToMarkdown, mdxjsEsmToMarkdown]
21518
21668
  };
21519
21669
 
21520
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/mdx/stringify.ts
21670
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/mdx/stringify.ts
21521
21671
  var stringifyMDX = (value, field) => {
21522
21672
  const slateTree = value.children;
21523
21673
  try {
21524
- const tree = slateTree.map((item) => stringify(item, field));
21674
+ const tree = stringifyChildren(slateTree, field);
21525
21675
  const out = toMarkdown({
21526
21676
  type: "root",
21527
21677
  children: tree
@@ -21533,6 +21683,15 @@ var stringifyMDX = (value, field) => {
21533
21683
  console.log(e);
21534
21684
  }
21535
21685
  };
21686
+ var allChildrenEmpty = (children) => {
21687
+ if (children.every((child) => child.type === "text" && !child.value)) {
21688
+ return true;
21689
+ }
21690
+ return false;
21691
+ };
21692
+ var stringifyChildren = (children, field) => {
21693
+ return children.map((child) => stringify(child, field)).filter(Boolean);
21694
+ };
21536
21695
  var stringify = (node, field) => {
21537
21696
  var _a;
21538
21697
  if (!node.type) {
@@ -21546,58 +21705,62 @@ var stringify = (node, field) => {
21546
21705
  return {
21547
21706
  type: "heading",
21548
21707
  depth: 1,
21549
- children: node.children.map((child) => stringify(child, field))
21708
+ children: stringifyChildren(node.children, field)
21550
21709
  };
21551
21710
  case plateElements.ELEMENT_H2:
21552
21711
  return {
21553
21712
  type: "heading",
21554
21713
  depth: 2,
21555
- children: node.children.map((child) => stringify(child, field))
21714
+ children: stringifyChildren(node.children, field)
21556
21715
  };
21557
21716
  case plateElements.ELEMENT_H3:
21558
21717
  return {
21559
21718
  type: "heading",
21560
21719
  depth: 3,
21561
- children: node.children.map((child) => stringify(child, field))
21720
+ children: stringifyChildren(node.children, field)
21562
21721
  };
21563
21722
  case plateElements.ELEMENT_H4:
21564
21723
  return {
21565
21724
  type: "heading",
21566
21725
  depth: 4,
21567
- children: node.children.map((child) => stringify(child, field))
21726
+ children: stringifyChildren(node.children, field)
21568
21727
  };
21569
21728
  case plateElements.ELEMENT_H5:
21570
21729
  return {
21571
21730
  type: "heading",
21572
21731
  depth: 5,
21573
- children: node.children.map((child) => stringify(child, field))
21732
+ children: stringifyChildren(node.children, field)
21574
21733
  };
21575
21734
  case plateElements.ELEMENT_H6:
21576
21735
  return {
21577
21736
  type: "heading",
21578
21737
  depth: 6,
21579
- children: node.children.map((child) => stringify(child, field))
21738
+ children: stringifyChildren(node.children, field)
21580
21739
  };
21581
21740
  case plateElements.ELEMENT_PARAGRAPH:
21741
+ const children = stringifyChildren(node.children, field);
21742
+ if (allChildrenEmpty(children)) {
21743
+ return false;
21744
+ }
21582
21745
  return {
21583
21746
  type: "paragraph",
21584
- children: node.children.map((child) => stringify(child, field))
21747
+ children
21585
21748
  };
21586
21749
  case plateElements.ELEMENT_CODE_BLOCK:
21587
21750
  return {
21588
21751
  type: "code",
21589
21752
  lang: node.lang,
21590
- value: node.children.map((child) => stringify(child, field)).join("\n")
21753
+ value: stringifyChildren(node.children, field).join("\n")
21591
21754
  };
21592
21755
  case "code_line":
21593
- return node.children.map((child) => child.text).join("\n");
21756
+ return stringifyChildren(node.children, field).join("\n");
21594
21757
  case plateElements.ELEMENT_UL:
21595
21758
  return {
21596
21759
  type: "list",
21597
21760
  ordered: false,
21598
21761
  spread: false,
21599
21762
  check: null,
21600
- children: node.children.map((child) => stringify(child, field))
21763
+ children: stringifyChildren(node.children, field)
21601
21764
  };
21602
21765
  case plateElements.ELEMENT_OL:
21603
21766
  return {
@@ -21605,7 +21768,7 @@ var stringify = (node, field) => {
21605
21768
  ordered: true,
21606
21769
  spread: false,
21607
21770
  check: null,
21608
- children: node.children.map((child) => stringify(child, field))
21771
+ children: stringifyChildren(node.children, field)
21609
21772
  };
21610
21773
  case plateElements.ELEMENT_LI:
21611
21774
  const realChildren = [];
@@ -21629,13 +21792,13 @@ var stringify = (node, field) => {
21629
21792
  check: null,
21630
21793
  children: [
21631
21794
  stringify(p, field),
21632
- ...extraChildren.map((child) => stringify(child, field))
21795
+ ...stringifyChildren(extraChildren, field)
21633
21796
  ]
21634
21797
  };
21635
21798
  case plateElements.ELEMENT_LIC:
21636
21799
  return {
21637
21800
  type: "paragraph",
21638
- children: node.children.map((child) => stringify(child, field))
21801
+ children: stringifyChildren(node.children, field)
21639
21802
  };
21640
21803
  case plateElements.ELEMENT_IMAGE:
21641
21804
  return {
@@ -21662,7 +21825,7 @@ var stringify = (node, field) => {
21662
21825
  case "mdxJsxTextElement":
21663
21826
  case "mdxJsxFlowElement":
21664
21827
  try {
21665
- let children = [];
21828
+ let children2 = [];
21666
21829
  const atts = [];
21667
21830
  const template = (_a = field.templates) == null ? void 0 : _a.find((fieldTemplate) => {
21668
21831
  if (typeof fieldTemplate === "string") {
@@ -21715,27 +21878,29 @@ var stringify = (node, field) => {
21715
21878
  const values = [];
21716
21879
  value.forEach((item) => {
21717
21880
  if (field2.fields) {
21718
- const v = {};
21881
+ const innerValue = {};
21719
21882
  if (typeof field2.fields === "string") {
21720
21883
  throw new Error(`Global templates not yet supported for rich text`);
21721
21884
  }
21722
- field2.fields.forEach((field3) => {
21723
- const fieldValue = item[field3.name];
21885
+ field2.fields.forEach((innerField) => {
21886
+ const fieldValue = item[innerField.name];
21724
21887
  if (fieldValue) {
21725
- switch (field3.type) {
21888
+ switch (innerField.type) {
21726
21889
  case "boolean":
21727
21890
  case "number":
21728
- v[field3.name] = `${fieldValue}`;
21891
+ innerValue[innerField.name] = `${fieldValue}`;
21729
21892
  break;
21730
21893
  case "image":
21731
21894
  case "datetime":
21732
21895
  case "string":
21733
- v[field3.name] = `"${fieldValue}"`;
21896
+ innerValue[innerField.name] = `"${fieldValue}"`;
21734
21897
  break;
21735
21898
  }
21736
21899
  }
21737
- values.push(v);
21738
21900
  });
21901
+ if (Object.entries(innerValue).length > 0) {
21902
+ values.push(innerValue);
21903
+ }
21739
21904
  } else {
21740
21905
  value.forEach((item2) => {
21741
21906
  const template2 = field2.templates.find((template3) => {
@@ -21827,7 +21992,7 @@ var stringify = (node, field) => {
21827
21992
  return true;
21828
21993
  });
21829
21994
  if (field2.name === "children") {
21830
- children = tree;
21995
+ children2 = tree;
21831
21996
  } else {
21832
21997
  const out = toMarkdown({
21833
21998
  type: "root",
@@ -21861,7 +22026,7 @@ ${out}
21861
22026
  }
21862
22027
  });
21863
22028
  return __spreadProps(__spreadValues({}, node), {
21864
- children,
22029
+ children: children2,
21865
22030
  attributes: atts
21866
22031
  });
21867
22032
  } catch (e) {
@@ -21879,7 +22044,8 @@ ${out}
21879
22044
  return { type: "text", value: "" };
21880
22045
  };
21881
22046
 
21882
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/resolver/index.ts
22047
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/resolver/index.ts
22048
+ var import_flat = __toModule(require("flat"));
21883
22049
  var createResolver2 = (args) => {
21884
22050
  return new Resolver(args);
21885
22051
  };
@@ -21889,7 +22055,7 @@ var Resolver = class {
21889
22055
  this.resolveCollection = async (collectionName) => {
21890
22056
  const collection = this.tinaSchema.getCollection(collectionName);
21891
22057
  const extraFields = {};
21892
- const documents = await this.database.getDocumentsForCollection(collectionName);
22058
+ const documents = await this.getDocumentsForCollection(collectionName);
21893
22059
  return __spreadValues(__spreadValues({
21894
22060
  documents
21895
22061
  }, collection), extraFields);
@@ -21905,8 +22071,8 @@ var Resolver = class {
21905
22071
  data: rawData,
21906
22072
  collection
21907
22073
  });
21908
- const basename = import_path4.default.basename(fullPath);
21909
- const extension2 = import_path4.default.extname(fullPath);
22074
+ const basename = import_path3.default.basename(fullPath);
22075
+ const extension2 = import_path3.default.extname(fullPath);
21910
22076
  const filename = basename.replace(extension2, "");
21911
22077
  const relativePath = fullPath.replace("\\", "/").replace(collection.path, "").replace(/^\/|\/$/g, "");
21912
22078
  const breadcrumbs = filename.split("/");
@@ -22052,7 +22218,7 @@ var Resolver = class {
22052
22218
  const templateInfo = this.tinaSchema.getTemplatesForCollectable(collection);
22053
22219
  switch (templateInfo.type) {
22054
22220
  case "object":
22055
- await this.database.put(realPath, {});
22221
+ await this.database.addPendingDocument(realPath, {});
22056
22222
  break;
22057
22223
  case "union":
22058
22224
  const templateString = args.template;
@@ -22063,7 +22229,7 @@ var Resolver = class {
22063
22229
  if (!template) {
22064
22230
  throw new Error(`Expected to find template named ${templateString} in collection "${collection.name}" but none was found. Possible templates are: ${templateInfo.templates.map((t) => lastItem(t.namespace)).join(" ")}`);
22065
22231
  }
22066
- await this.database.put(realPath, {
22232
+ await this.database.addPendingDocument(realPath, {
22067
22233
  _template: lastItem(template.namespace)
22068
22234
  });
22069
22235
  }
@@ -22128,7 +22294,7 @@ var Resolver = class {
22128
22294
  }, `"collection" must be one of: [${collectionNames.join(", ")}] but got ${collectionLookup}`);
22129
22295
  assertShape(args, (yup3) => yup3.object({ relativePath: yup3.string().required() }));
22130
22296
  const collection = await this.tinaSchema.getCollection(collectionLookup);
22131
- const realPath = import_path4.default.join(collection == null ? void 0 : collection.path, args.relativePath);
22297
+ const realPath = import_path3.default.join(collection == null ? void 0 : collection.path, args.relativePath);
22132
22298
  const alreadyExists = await this.database.documentExists(realPath);
22133
22299
  if (isMutation) {
22134
22300
  if (isCreation) {
@@ -22167,18 +22333,49 @@ var Resolver = class {
22167
22333
  })
22168
22334
  };
22169
22335
  };
22336
+ this.getDocumentsForCollection = async (collectionName) => {
22337
+ const collection = this.tinaSchema.getCollection(collectionName);
22338
+ return this.database.store.glob(collection.path, this.getDocument);
22339
+ };
22170
22340
  this.resolveCollectionConnection = async ({
22171
22341
  args,
22172
22342
  lookup
22173
22343
  }) => {
22174
- const documents = await this.database.getDocumentsForCollection(lookup.collection);
22344
+ let documents;
22345
+ if (args.filter) {
22346
+ const queries = [];
22347
+ const flattenedArgs = (0, import_flat.default)(args.filter, { delimiter: "#" });
22348
+ Object.entries(flattenedArgs).map(([key2, value]) => {
22349
+ const keys2 = key2.split("#");
22350
+ const maybeTemplateName = keys2[0];
22351
+ const realKey = keys2.slice(0, keys2.length - 1).join("#");
22352
+ const collection = this.tinaSchema.getCollection(lookup.collection);
22353
+ let templateName = collection.name;
22354
+ if (collection.templates) {
22355
+ const template = collection.templates.find((template2) => {
22356
+ if (typeof template2 === "string") {
22357
+ throw new Error("Global templates not yet supported for queries");
22358
+ }
22359
+ return template2.name === maybeTemplateName;
22360
+ });
22361
+ if (typeof template === "string") {
22362
+ throw new Error("Global templates not yet supported for queries");
22363
+ }
22364
+ if (template) {
22365
+ templateName = template.name;
22366
+ }
22367
+ }
22368
+ queries.push(`__attribute__${lookup.collection}#${templateName}#${realKey}#${value}`);
22369
+ });
22370
+ documents = await this.database.query(queries, this.getDocument);
22371
+ } else {
22372
+ const collection = await this.tinaSchema.getCollection(lookup.collection);
22373
+ documents = await this.database.store.glob(collection.path, this.getDocument);
22374
+ }
22175
22375
  return {
22176
22376
  totalCount: documents.length,
22177
- edges: await sequential(documents, async (filepath) => {
22178
- const document3 = await this.getDocument(filepath);
22179
- return {
22180
- node: document3
22181
- };
22377
+ edges: documents.map((document3) => {
22378
+ return { node: document3 };
22182
22379
  })
22183
22380
  };
22184
22381
  };
@@ -22237,12 +22434,8 @@ var Resolver = class {
22237
22434
  accumulator[field.name] = value;
22238
22435
  break;
22239
22436
  case "rich-text":
22240
- if (typeof value === "string") {
22241
- const tree = parseMDX(value, field);
22242
- accumulator[field.name] = tree;
22243
- } else {
22244
- throw new Error(`Expected value for rich-text to be of type string`);
22245
- }
22437
+ const tree = parseMDX(value, field);
22438
+ accumulator[field.name] = tree;
22246
22439
  break;
22247
22440
  case "object":
22248
22441
  if (field.list) {
@@ -22411,17 +22604,18 @@ var Resolver = class {
22411
22604
  component: "rich-text"
22412
22605
  }), extraFields);
22413
22606
  case "reference":
22414
- const documents = import_lodash6.default.flatten(await sequential(field.collections, async (collectionName) => {
22415
- return this.database.getDocumentsForCollection(collectionName);
22607
+ const documents = import_lodash5.default.flatten(await sequential(field.collections, async (collectionName) => {
22608
+ const collection = this.tinaSchema.getCollection(collectionName);
22609
+ return this.database.store.glob(collection.path);
22416
22610
  }));
22417
22611
  return __spreadValues(__spreadProps(__spreadValues({}, field), {
22418
22612
  component: "reference",
22419
22613
  options: [
22420
22614
  { label: "Choose an option", value: "" },
22421
- ...documents.map((filepath) => {
22615
+ ...documents.map((document3) => {
22422
22616
  return {
22423
- value: filepath,
22424
- label: filepath
22617
+ value: document3,
22618
+ label: document3
22425
22619
  };
22426
22620
  })
22427
22621
  ]
@@ -22442,7 +22636,7 @@ var resolveDateInput = (value) => {
22442
22636
  return date.toISOString();
22443
22637
  };
22444
22638
 
22445
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/resolve.ts
22639
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/resolve.ts
22446
22640
  var resolve = async ({
22447
22641
  query,
22448
22642
  variables,
@@ -22450,28 +22644,28 @@ var resolve = async ({
22450
22644
  }) => {
22451
22645
  try {
22452
22646
  const graphQLSchemaAst = await database.getGraphQLSchema();
22453
- const graphQLSchema = (0, import_graphql4.buildASTSchema)(graphQLSchemaAst);
22647
+ const graphQLSchema = (0, import_graphql3.buildASTSchema)(graphQLSchemaAst);
22454
22648
  const config = await database.getTinaSchema();
22455
22649
  const tinaSchema = await createSchema({ schema: config });
22456
22650
  const resolver2 = await createResolver2({ database, tinaSchema });
22457
22651
  const paths = [];
22458
22652
  const mutationPaths = [];
22459
- const ast = (0, import_graphql4.parse)(query);
22460
- const typeInfo = new import_graphql4.TypeInfo(graphQLSchema);
22653
+ const ast = (0, import_graphql3.parse)(query);
22654
+ const typeInfo = new import_graphql3.TypeInfo(graphQLSchema);
22461
22655
  const referencePathVisitor = () => {
22462
22656
  return {
22463
22657
  leave: {
22464
- Field(node, key2, parent, path8, ancestors) {
22658
+ Field(node, key2, parent, path11, ancestors) {
22465
22659
  const type = typeInfo.getType();
22466
22660
  if (type) {
22467
- const realType = (0, import_graphql4.getNamedType)(type);
22468
- if (realType instanceof import_graphql4.GraphQLUnionType) {
22661
+ const realType = (0, import_graphql3.getNamedType)(type);
22662
+ if (realType instanceof import_graphql3.GraphQLUnionType) {
22469
22663
  const hasNodeInterface = !!realType.getTypes().find((objectType) => objectType.getInterfaces().find((intfc) => intfc.name === "Node"));
22470
22664
  if (hasNodeInterface) {
22471
22665
  const p = [];
22472
22666
  ancestors.forEach((item, index2) => {
22473
22667
  var _a;
22474
- const activePath = path8[index2];
22668
+ const activePath = path11[index2];
22475
22669
  const result = item[activePath];
22476
22670
  if ((_a = result == null ? void 0 : result.name) == null ? void 0 : _a.value) {
22477
22671
  if (result.kind === "Field") {
@@ -22493,8 +22687,8 @@ var resolve = async ({
22493
22687
  }
22494
22688
  };
22495
22689
  };
22496
- (0, import_graphql4.visit)(ast, (0, import_graphql4.visitWithTypeInfo)(typeInfo, referencePathVisitor()));
22497
- const res = await (0, import_graphql4.graphql)({
22690
+ (0, import_graphql3.visit)(ast, (0, import_graphql3.visitWithTypeInfo)(typeInfo, referencePathVisitor()));
22691
+ const res = await (0, import_graphql3.graphql)({
22498
22692
  schema: graphQLSchema,
22499
22693
  source: query,
22500
22694
  variableValues: variables,
@@ -22504,7 +22698,7 @@ var resolve = async ({
22504
22698
  typeResolver: async (source, _args, info) => {
22505
22699
  if (source.__typename)
22506
22700
  return source.__typename;
22507
- const namedType = (0, import_graphql4.getNamedType)(info.returnType).toString();
22701
+ const namedType = (0, import_graphql3.getNamedType)(info.returnType).toString();
22508
22702
  const lookup = await database.getLookup(namedType);
22509
22703
  if (lookup.resolveType === "unionData") {
22510
22704
  return lookup.typeMap[source._template];
@@ -22514,7 +22708,7 @@ var resolve = async ({
22514
22708
  },
22515
22709
  fieldResolver: async (source = {}, _args = {}, _context, info) => {
22516
22710
  const args = JSON.parse(JSON.stringify(_args));
22517
- const returnType = (0, import_graphql4.getNamedType)(info.returnType).toString();
22711
+ const returnType = (0, import_graphql3.getNamedType)(info.returnType).toString();
22518
22712
  const lookup = await database.getLookup(returnType);
22519
22713
  const isMutation = info.parentType.toString() === "Mutation";
22520
22714
  const value = source[info.fieldName];
@@ -22574,10 +22768,16 @@ var resolve = async ({
22574
22768
  }
22575
22769
  return value;
22576
22770
  case "multiCollectionDocumentList":
22577
- assertShape(value, (yup3) => yup3.array().of(yup3.string()));
22578
- return resolver2.resolveCollectionConnections({
22579
- ids: value || []
22580
- });
22771
+ if (Array.isArray(value)) {
22772
+ return {
22773
+ totalCount: value.length,
22774
+ edges: value.map((document3) => {
22775
+ return { node: document3 };
22776
+ })
22777
+ };
22778
+ } else {
22779
+ throw new Error(`Expected an array for result of ${info.fieldName} at ${info.path}`);
22780
+ }
22581
22781
  case "collectionDocument":
22582
22782
  if (value) {
22583
22783
  return value;
@@ -22611,20 +22811,24 @@ var resolve = async ({
22611
22811
  }
22612
22812
  });
22613
22813
  paths.forEach((p) => {
22614
- const item = import_lodash7.default.get(res, p.path.slice(0, 3));
22814
+ const item = import_lodash6.default.get(res, p.path.slice(0, 3));
22615
22815
  if (item) {
22616
22816
  item.paths = [...item.paths || [], p];
22617
22817
  }
22618
22818
  });
22619
22819
  mutationPaths.forEach((mutationPath) => {
22620
- const item = import_lodash7.default.get(res, mutationPath.path);
22820
+ const item = import_lodash6.default.get(res, mutationPath.path);
22621
22821
  if (item) {
22622
22822
  item.mutationInfo = mutationPath;
22623
22823
  }
22624
22824
  });
22825
+ if (res.errors) {
22826
+ console.error(res.errors);
22827
+ }
22625
22828
  return res;
22626
22829
  } catch (e) {
22627
- if (e instanceof import_graphql4.GraphQLError) {
22830
+ console.error(e);
22831
+ if (e instanceof import_graphql3.GraphQLError) {
22628
22832
  return {
22629
22833
  errors: [e]
22630
22834
  };
@@ -22633,17 +22837,17 @@ var resolve = async ({
22633
22837
  }
22634
22838
  }
22635
22839
  };
22636
- var buildPath = (path8, accum) => {
22637
- if (path8.prev) {
22638
- buildPath(path8.prev, accum);
22840
+ var buildPath = (path11, accum) => {
22841
+ if (path11.prev) {
22842
+ buildPath(path11.prev, accum);
22639
22843
  }
22640
- accum.push(path8.key);
22844
+ accum.push(path11.key);
22641
22845
  return accum;
22642
22846
  };
22643
- var buildReferenceQuery = (fieldNode, path8) => {
22847
+ var buildReferenceQuery = (fieldNode, path11) => {
22644
22848
  if (fieldNode) {
22645
- const p = path8.map((item) => item === "data" ? "form" : item);
22646
- const dataPath = path8;
22849
+ const p = path11.map((item) => item === "data" ? "form" : item);
22850
+ const dataPath = path11;
22647
22851
  const newNode = __spreadProps(__spreadValues({}, fieldNode), {
22648
22852
  name: { kind: "Name", value: "node" },
22649
22853
  arguments: [
@@ -22697,7 +22901,7 @@ var buildReferenceQuery = (fieldNode, path8) => {
22697
22901
  selections: [newNode]
22698
22902
  }
22699
22903
  };
22700
- const queryString = (0, import_graphql4.print)(q);
22904
+ const queryString = (0, import_graphql3.print)(q);
22701
22905
  return {
22702
22906
  path: ["data", ...p.slice(0, -1)],
22703
22907
  dataPath,
@@ -22808,10 +23012,10 @@ function addFragmentsToQuery(info, fieldNode, q) {
22808
23012
  subFrags: []
22809
23013
  };
22810
23014
  frags.push(frag);
22811
- (0, import_graphql4.visit)(fragmentDefinition, fragmentSpreadVisitor(frag));
23015
+ (0, import_graphql3.visit)(fragmentDefinition, fragmentSpreadVisitor(frag));
22812
23016
  });
22813
23017
  const n = {
22814
- query: (0, import_graphql4.print)(fieldNode),
23018
+ query: (0, import_graphql3.print)(fieldNode),
22815
23019
  fragments: []
22816
23020
  };
22817
23021
  const visitor = {
@@ -22821,7 +23025,7 @@ function addFragmentsToQuery(info, fieldNode, q) {
22821
23025
  }
22822
23026
  }
22823
23027
  };
22824
- (0, import_graphql4.visit)(fieldNode, visitor);
23028
+ (0, import_graphql3.visit)(fieldNode, visitor);
22825
23029
  const getFrags = (fragNames, accum) => {
22826
23030
  fragNames.forEach((fragName) => {
22827
23031
  const frag = frags.find((f) => f.name === fragName);
@@ -22836,73 +23040,94 @@ function addFragmentsToQuery(info, fieldNode, q) {
22836
23040
  return accum;
22837
23041
  };
22838
23042
  const fragss = getFrags(n.fragments, []);
22839
- const queryString = `${fragss.map((f) => (0, import_graphql4.print)(f)).join("\n")}
22840
- ${(0, import_graphql4.print)(q)}`;
23043
+ const queryString = `${fragss.map((f) => (0, import_graphql3.print)(f)).join("\n")}
23044
+ ${(0, import_graphql3.print)(q)}`;
22841
23045
  return queryString;
22842
23046
  }
22843
23047
 
22844
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/index.ts
22845
- var import_graphql6 = __toModule(require("graphql"));
23048
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/index.ts
23049
+ var import_path4 = __toModule(require("path"));
23050
+ var import_graphql4 = __toModule(require("graphql"));
22846
23051
 
22847
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/database/index.ts
23052
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/util.ts
22848
23053
  var import_gray_matter = __toModule(require("gray-matter"));
22849
- var import_path6 = __toModule(require("path"));
22850
-
22851
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/database/bridge.ts
22852
- var import_fs_extra2 = __toModule(require("fs-extra"));
22853
- var import_fast_glob = __toModule(require("fast-glob"));
22854
- var import_path5 = __toModule(require("path"));
22855
- var import_normalize_path = __toModule(require("normalize-path"));
22856
- var FilesystemBridge = class {
22857
- constructor(rootPath) {
22858
- this.rootPath = rootPath || "";
22859
- }
22860
- async glob(pattern) {
22861
- const basePath = import_path5.default.join(this.rootPath, ...pattern.split("/"));
22862
- const items = await (0, import_fast_glob.default)(import_path5.default.join(basePath, "**", "/*").replace(/\\/g, "/"), {
22863
- dot: true
22864
- });
22865
- const posixRootPath = (0, import_normalize_path.default)(this.rootPath);
22866
- return items.map((item) => {
22867
- return item.replace(posixRootPath, "").replace(/^\/|\/$/g, "");
22868
- });
22869
- }
22870
- async get(filepath) {
22871
- return import_fs_extra2.default.readFileSync(import_path5.default.join(this.rootPath, filepath)).toString();
23054
+ var stringifyFile = (content3, format, keepTemplateKey) => {
23055
+ switch (format) {
23056
+ case ".markdown":
23057
+ case ".mdx":
23058
+ case ".md":
23059
+ const _a = content3, {
23060
+ _relativePath,
23061
+ _keepTemplateKey,
23062
+ _id,
23063
+ _template,
23064
+ _collection,
23065
+ $_body
23066
+ } = _a, rest = __objRest(_a, [
23067
+ "_relativePath",
23068
+ "_keepTemplateKey",
23069
+ "_id",
23070
+ "_template",
23071
+ "_collection",
23072
+ "$_body"
23073
+ ]);
23074
+ const extra = {};
23075
+ if (keepTemplateKey) {
23076
+ extra["_template"] = _template;
23077
+ }
23078
+ const ok2 = import_gray_matter.default.stringify(typeof $_body === "undefined" ? "" : `
23079
+ ${$_body}`, __spreadValues(__spreadValues({}, rest), extra));
23080
+ return ok2;
23081
+ case ".json":
23082
+ return JSON.stringify(content3, null, 2);
23083
+ default:
23084
+ throw new Error(`Must specify a valid format, got ${format}`);
22872
23085
  }
22873
- async put(filepath, data) {
22874
- await import_fs_extra2.default.outputFileSync(import_path5.default.join(this.rootPath, filepath), data);
23086
+ };
23087
+ var parseFile = (content3, format, yupSchema) => {
23088
+ switch (format) {
23089
+ case ".markdown":
23090
+ case ".mdx":
23091
+ case ".md":
23092
+ const contentJSON = (0, import_gray_matter.default)(content3 || "");
23093
+ const markdownData = __spreadProps(__spreadValues({}, contentJSON.data), {
23094
+ $_body: contentJSON.content
23095
+ });
23096
+ assertShape(markdownData, yupSchema);
23097
+ return markdownData;
23098
+ case ".json":
23099
+ if (!content3) {
23100
+ return {};
23101
+ }
23102
+ return JSON.parse(content3);
23103
+ default:
23104
+ throw new Error(`Must specify a valid format, got ${format}`);
22875
23105
  }
22876
23106
  };
22877
23107
 
22878
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/database/index.ts
22879
- var import_graphql5 = __toModule(require("graphql"));
23108
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/index.ts
23109
+ var import_lodash7 = __toModule(require("lodash"));
22880
23110
  var createDatabase = async (config) => {
22881
- return new Database(config);
23111
+ return new Database(__spreadProps(__spreadValues({}, config), {
23112
+ bridge: config.bridge,
23113
+ store: config.store
23114
+ }));
22882
23115
  };
22883
23116
  var SYSTEM_FILES = ["_schema", "_graphql", "_lookup"];
22884
- var GENERATED_FOLDER = import_path6.default.join(".tina", "__generated__");
23117
+ var GENERATED_FOLDER = import_path4.default.join(".tina", "__generated__");
22885
23118
  var Database = class {
22886
23119
  constructor(config) {
22887
23120
  this.config = config;
22888
23121
  this.get = async (filepath) => {
22889
- var _a;
22890
23122
  if (SYSTEM_FILES.includes(filepath)) {
22891
- try {
22892
- const dataString = await this.bridge.get(import_path6.default.join(GENERATED_FOLDER, `${filepath}.json`));
22893
- return JSON.parse(dataString);
22894
- } catch (err) {
22895
- if (err instanceof import_graphql5.GraphQLError && ((_a = err.extensions) == null ? void 0 : _a.status) === 404) {
22896
- throw new import_graphql5.GraphQLError(`${err.toString()}. Please confirm this location is correct and contains a '.tina' folder and a valid '.tina/schema.ts'.`);
22897
- } else {
22898
- throw err;
22899
- }
22900
- }
23123
+ throw new Error(`Unexpected get for config file ${filepath}`);
22901
23124
  } else {
22902
23125
  const tinaSchema = await this.getSchema();
22903
- const extension2 = import_path6.default.extname(filepath);
22904
- const contentString = await this.bridge.get(filepath);
22905
- const contentObject = this.parseFile(contentString, extension2, (yup3) => yup3.object({}));
23126
+ const extension2 = import_path4.default.extname(filepath);
23127
+ const contentObject = await this.store.get(filepath);
23128
+ if (!contentObject) {
23129
+ throw new import_graphql4.GraphQLError(`Unable to find record ${filepath}`);
23130
+ }
22906
23131
  const templateName = hasOwnProperty2(contentObject, "_template") && typeof contentObject._template === "string" ? contentObject._template : void 0;
22907
23132
  const { collection, template } = await tinaSchema.getCollectionAndTemplateByFullPath(filepath, templateName);
22908
23133
  const field = template.fields.find((field2) => {
@@ -22916,22 +23141,70 @@ var Database = class {
22916
23141
  let data = contentObject;
22917
23142
  if ((extension2 === ".md" || extension2 === ".mdx") && field) {
22918
23143
  if (hasOwnProperty2(contentObject, "$_body")) {
22919
- const _b = contentObject, { $_body } = _b, rest = __objRest(_b, ["$_body"]);
23144
+ const _a = contentObject, { $_body } = _a, rest = __objRest(_a, ["$_body"]);
22920
23145
  data = rest;
22921
23146
  data[field.name] = $_body;
22922
23147
  }
22923
23148
  }
22924
23149
  return __spreadProps(__spreadValues({}, data), {
22925
23150
  _collection: collection.name,
23151
+ _keepTemplateKey: !!collection.templates,
22926
23152
  _template: lastItem(template.namespace),
22927
23153
  _relativePath: filepath.replace(collection.path, "").replace(/^\/|\/$/g, ""),
22928
23154
  _id: filepath
22929
23155
  });
22930
23156
  }
22931
23157
  };
23158
+ this.addPendingDocument = async (filepath, data) => {
23159
+ const { stringifiedFile, payload } = await this.stringifyFile(filepath, data);
23160
+ if (this.store.supportsSeeding()) {
23161
+ await this.bridge.put(filepath, stringifiedFile);
23162
+ }
23163
+ await this.store.put(filepath, payload);
23164
+ };
22932
23165
  this.put = async (filepath, data) => {
22933
23166
  if (SYSTEM_FILES.includes(filepath)) {
22934
- await this.bridge.put(import_path6.default.join(GENERATED_FOLDER, `${filepath}.json`), JSON.stringify(data, null, 2));
23167
+ throw new Error(`Unexpected put for config file ${filepath}`);
23168
+ } else {
23169
+ const { stringifiedFile, payload } = await this.stringifyFile(filepath, data);
23170
+ if (this.store.supportsSeeding()) {
23171
+ await this.bridge.put(filepath, stringifiedFile);
23172
+ }
23173
+ if (this.store.supportsIndexing()) {
23174
+ const existingData = await this.get(filepath);
23175
+ const collection = this.tinaSchema.getCollection(existingData._collection);
23176
+ const attributesToFilterOut = await _indexCollectable({
23177
+ record: filepath,
23178
+ value: existingData,
23179
+ field: collection,
23180
+ prefix: collection.name,
23181
+ database: this
23182
+ });
23183
+ const attributesToAdd = await _indexCollectable({
23184
+ record: filepath,
23185
+ value: data,
23186
+ field: collection,
23187
+ prefix: collection.name,
23188
+ database: this
23189
+ });
23190
+ await sequential(attributesToFilterOut, async (attribute) => {
23191
+ const records = await this.store.get(attribute) || [];
23192
+ await this.store.put(attribute, records.filter((item) => item !== filepath));
23193
+ return true;
23194
+ });
23195
+ await sequential(attributesToAdd, async (attribute) => {
23196
+ const records = await this.store.get(attribute) || [];
23197
+ await this.store.put(attribute, [...records, filepath]);
23198
+ return true;
23199
+ });
23200
+ }
23201
+ await this.store.put(filepath, payload);
23202
+ }
23203
+ return true;
23204
+ };
23205
+ this.stringifyFile = async (filepath, data) => {
23206
+ if (SYSTEM_FILES.includes(filepath)) {
23207
+ throw new Error(`Unexpected put for config file ${filepath}`);
22935
23208
  } else {
22936
23209
  const tinaSchema = await this.getSchema();
22937
23210
  const collection = await tinaSchema.getCollectionByFullPath(filepath);
@@ -22969,32 +23242,40 @@ var Database = class {
22969
23242
  } else {
22970
23243
  payload = data;
22971
23244
  }
22972
- const extension2 = import_path6.default.extname(filepath);
22973
- const stringData = this.stringifyFile(payload, extension2, templateInfo.type === "union");
22974
- await this.bridge.put(filepath, stringData);
23245
+ const extension2 = import_path4.default.extname(filepath);
23246
+ const stringifiedFile = stringifyFile(payload, extension2, templateInfo.type === "union");
23247
+ return { stringifiedFile, payload };
22975
23248
  }
22976
- return true;
23249
+ };
23250
+ this.flush = async (filepath) => {
23251
+ const data = await this.get(filepath);
23252
+ const { stringifiedFile } = await this.stringifyFile(filepath, data);
23253
+ return stringifiedFile;
22977
23254
  };
22978
23255
  this.getLookup = async (returnType) => {
23256
+ const lookupPath = import_path4.default.join(GENERATED_FOLDER, `_lookup.json`);
22979
23257
  if (!this._lookup) {
22980
- const _lookup = await this.get("_lookup");
23258
+ const _lookup = await this.store.get(lookupPath);
22981
23259
  this._lookup = _lookup;
22982
23260
  }
22983
23261
  return this._lookup[returnType];
22984
23262
  };
22985
23263
  this.getGraphQLSchema = async () => {
23264
+ const graphqlPath = import_path4.default.join(GENERATED_FOLDER, `_graphql.json`);
22986
23265
  if (!this._graphql) {
22987
- const _graphql = await this.get("_graphql");
23266
+ const _graphql = await this.store.get(graphqlPath);
22988
23267
  this._graphql = _graphql;
22989
23268
  }
22990
23269
  return this._graphql;
22991
23270
  };
23271
+ this.getGraphQLSchemaFromBridge = async () => {
23272
+ const graphqlPath = import_path4.default.join(GENERATED_FOLDER, `_graphql.json`);
23273
+ const _graphql = await this.bridge.get(graphqlPath);
23274
+ return JSON.parse(_graphql);
23275
+ };
22992
23276
  this.getTinaSchema = async () => {
22993
- if (!this._tinaSchema) {
22994
- const _tinaSchema = await this.get("_schema");
22995
- this._tinaSchema = _tinaSchema;
22996
- }
22997
- return this._tinaSchema;
23277
+ const schemaPath = import_path4.default.join(GENERATED_FOLDER, `_schema.json`);
23278
+ return this.store.get(schemaPath);
22998
23279
  };
22999
23280
  this.getSchema = async () => {
23000
23281
  if (this.tinaSchema) {
@@ -23004,138 +23285,632 @@ var Database = class {
23004
23285
  this.tinaSchema = await createSchema({ schema });
23005
23286
  return this.tinaSchema;
23006
23287
  };
23007
- this.getDocument = async (fullPath) => {
23008
- if (typeof fullPath !== "string") {
23009
- throw new Error(`fullPath must be of type string for getDocument request`);
23010
- }
23011
- const data = await this.get(fullPath);
23012
- return {
23013
- __typename: NAMER.documentTypeName([data._collection]),
23014
- id: fullPath,
23015
- data
23016
- };
23017
- };
23018
23288
  this.documentExists = async (fullpath) => {
23019
23289
  try {
23020
- await this.getDocument(fullpath);
23290
+ await this.get(fullpath);
23021
23291
  } catch (e) {
23022
23292
  return false;
23023
23293
  }
23024
23294
  return true;
23025
23295
  };
23026
- this.getDocumentsForCollection = async (collectionName) => {
23027
- const tinaSchema = await this.getSchema();
23028
- const collection = await tinaSchema.getCollection(collectionName);
23029
- return this.bridge.glob(collection.path);
23296
+ this.query = async (queryStrings, hydrator) => {
23297
+ return await this.store.query(queryStrings, hydrator);
23298
+ };
23299
+ this.indexData = async ({
23300
+ graphQLSchema,
23301
+ tinaSchema
23302
+ }) => {
23303
+ if (!this.bridge.supportsBuilding()) {
23304
+ throw new Error(`Schema cannot be built with provided Bridge`);
23305
+ }
23306
+ const graphqlPath = import_path4.default.join(GENERATED_FOLDER, `_graphql.json`);
23307
+ const schemaPath = import_path4.default.join(GENERATED_FOLDER, `_schema.json`);
23308
+ await this.bridge.putConfig(graphqlPath, JSON.stringify(graphQLSchema, null, 2));
23309
+ await this.bridge.putConfig(schemaPath, JSON.stringify(tinaSchema.schema, null, 2));
23310
+ const lookup = JSON.parse(await this.bridge.get(import_path4.default.join(GENERATED_FOLDER, "_lookup.json")));
23311
+ if (this.store.supportsSeeding()) {
23312
+ this.store.clear();
23313
+ await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_graphql.json"), graphQLSchema);
23314
+ await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_schema.json"), tinaSchema.schema);
23315
+ await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_lookup.json"), lookup);
23316
+ await _indexContent(tinaSchema, this);
23317
+ } else {
23318
+ if (this.store.supportsIndexing()) {
23319
+ throw new Error(`Schema must be indexed with provided Store`);
23320
+ }
23321
+ }
23030
23322
  };
23031
23323
  this.addToLookupMap = async (lookup) => {
23324
+ const lookupPath = import_path4.default.join(GENERATED_FOLDER, `_lookup.json`);
23032
23325
  let lookupMap;
23033
23326
  try {
23034
- lookupMap = await this.get("_lookup");
23327
+ lookupMap = JSON.parse(await this.bridge.get(lookupPath));
23035
23328
  } catch (e) {
23036
23329
  lookupMap = {};
23037
23330
  }
23038
- await this.put("_lookup", __spreadProps(__spreadValues({}, lookupMap), { [lookup.type]: lookup }));
23039
- };
23040
- this.stringifyFile = (content3, format, keepTemplateKey) => {
23041
- switch (format) {
23042
- case ".markdown":
23043
- case ".mdx":
23044
- case ".md":
23045
- const _a = content3, { _id, _template, _collection, $_body } = _a, rest = __objRest(_a, ["_id", "_template", "_collection", "$_body"]);
23046
- const extra = {};
23047
- if (keepTemplateKey) {
23048
- extra["_template"] = _template;
23049
- }
23050
- return import_gray_matter.default.stringify(typeof $_body === "undefined" ? "" : `
23051
- ${$_body}`, __spreadValues(__spreadValues({}, rest), extra));
23052
- case ".json":
23053
- return JSON.stringify(content3, null, 2);
23054
- default:
23055
- throw new Error(`Must specify a valid format, got ${format}`);
23056
- }
23057
- };
23058
- this.parseFile = (content3, format, yupSchema) => {
23059
- switch (format) {
23060
- case ".markdown":
23061
- case ".mdx":
23062
- case ".md":
23063
- const contentJSON = (0, import_gray_matter.default)(content3 || "");
23064
- const markdownData = __spreadProps(__spreadValues({}, contentJSON.data), {
23065
- $_body: contentJSON.content
23066
- });
23067
- assertShape(markdownData, yupSchema);
23068
- return markdownData;
23069
- case ".json":
23070
- if (!content3) {
23071
- return {};
23072
- }
23073
- return JSON.parse(content3);
23074
- default:
23075
- throw new Error(`Must specify a valid format, got ${format}`);
23076
- }
23331
+ const updatedLookup = __spreadProps(__spreadValues({}, lookupMap), {
23332
+ [lookup.type]: lookup
23333
+ });
23334
+ await this.bridge.putConfig(lookupPath, JSON.stringify(updatedLookup, null, 2));
23077
23335
  };
23078
- this.bridge = config.bridge || new FilesystemBridge(config.rootPath || "");
23336
+ this.bridge = config.bridge;
23337
+ this.store = config.store;
23079
23338
  }
23080
23339
  };
23081
23340
  function hasOwnProperty2(obj, prop) {
23082
23341
  return obj.hasOwnProperty(prop);
23083
23342
  }
23084
-
23085
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/index.ts
23086
- var gql = async ({
23087
- rootPath,
23088
- query,
23089
- variables
23343
+ var _indexContent = async (tinaSchema, database) => {
23344
+ await sequential(tinaSchema.getCollections(), async (collection) => {
23345
+ const documentPaths = await database.bridge.glob(collection.path);
23346
+ await sequential(documentPaths, async (documentPath) => {
23347
+ const dataString = await database.bridge.get(documentPath);
23348
+ const data = parseFile(dataString, import_path4.default.extname(documentPath), (yup3) => yup3.object({}));
23349
+ if (database.store.supportsSeeding()) {
23350
+ await database.store.seed(documentPath, data);
23351
+ }
23352
+ if (database.store.supportsIndexing()) {
23353
+ return indexDocument({ documentPath, collection, data, database });
23354
+ }
23355
+ });
23356
+ });
23357
+ };
23358
+ var indexDocument = async ({
23359
+ documentPath,
23360
+ data,
23361
+ collection,
23362
+ database
23090
23363
  }) => {
23091
- const database = await createDatabase({
23092
- rootPath
23364
+ const attributes = await _indexCollectable({
23365
+ record: documentPath,
23366
+ field: collection,
23367
+ value: data,
23368
+ prefix: `${lastItem(collection.namespace)}`,
23369
+ database
23093
23370
  });
23094
- return resolve({
23095
- database,
23096
- query,
23097
- variables
23371
+ await sequential(attributes, async (fieldName) => {
23372
+ const existingRecords = await database.store.get(fieldName) || [];
23373
+ const uniqueItems = [...new Set([...existingRecords, documentPath])];
23374
+ await database.store.seed(fieldName, uniqueItems);
23098
23375
  });
23099
23376
  };
23100
- var githubRoute = async (_a) => {
23377
+ var _indexCollectable = async (_a) => {
23101
23378
  var _b = _a, {
23102
- rootPath = "",
23103
- query,
23104
- variables,
23105
- branch
23106
- } = _b, githubArgs = __objRest(_b, [
23107
- "rootPath",
23108
- "query",
23109
- "variables",
23110
- "branch"
23379
+ field,
23380
+ value
23381
+ } = _b, rest = __objRest(_b, [
23382
+ "field",
23383
+ "value"
23111
23384
  ]);
23112
- const gh = new GithubBridge(__spreadValues({
23113
- rootPath,
23114
- ref: branch
23115
- }, githubArgs));
23116
- const database = await createDatabase({
23117
- bridge: gh
23118
- });
23119
- return resolve({
23120
- database,
23121
- query,
23122
- variables
23385
+ let template;
23386
+ let extra = "";
23387
+ if (field.templates) {
23388
+ template = field.templates.find((t) => {
23389
+ if (typeof t === "string") {
23390
+ throw new Error(`Global templates not yet supported`);
23391
+ }
23392
+ if (hasOwnProperty2(value, "_template")) {
23393
+ return t.name === value._template;
23394
+ } else {
23395
+ throw new Error(`Expected value for collectable with multiple templates to have property _template`);
23396
+ }
23397
+ });
23398
+ extra = `#${lastItem(template.namespace)}`;
23399
+ } else {
23400
+ template = field;
23401
+ }
23402
+ const atts = await _indexAttributes({
23403
+ record: rest.record,
23404
+ data: value,
23405
+ prefix: `${rest.prefix}${extra}#${template.name}`,
23406
+ fields: template.fields,
23407
+ database: rest.database
23123
23408
  });
23409
+ return (0, import_lodash7.flatten)(atts).filter((item) => !(0, import_lodash7.isBoolean)(item));
23124
23410
  };
23125
- var buildSchema = async (rootPath) => {
23126
- const config = await import_fs_extra3.default.readFileSync(import_path7.default.join(rootPath, ".tina", "__generated__", "config", "schema.json")).toString();
23127
- const database = await createDatabase({
23128
- rootPath
23411
+ var _indexAttributes = async (_a) => {
23412
+ var _b = _a, {
23413
+ data,
23414
+ fields
23415
+ } = _b, rest = __objRest(_b, [
23416
+ "data",
23417
+ "fields"
23418
+ ]);
23419
+ return sequential(fields, async (field) => {
23420
+ const value = data[field.name];
23421
+ if (!value) {
23422
+ return true;
23423
+ }
23424
+ switch (field.type) {
23425
+ case "boolean":
23426
+ case "string":
23427
+ case "number":
23428
+ case "datetime":
23429
+ return _indexAttribute(__spreadValues({ value, field }, rest));
23430
+ case "object":
23431
+ if (field.list) {
23432
+ await sequential(value, async (item) => {
23433
+ return _indexCollectable(__spreadValues({ field, value: item }, rest));
23434
+ });
23435
+ } else {
23436
+ return _indexCollectable(__spreadValues({ field, value }, rest));
23437
+ }
23438
+ return true;
23439
+ case "reference":
23440
+ return _indexAttribute(__spreadValues({ value, field }, rest));
23441
+ }
23442
+ return true;
23129
23443
  });
23130
- await indexDB({ database, config: JSON.parse(config) });
23131
- const gqlAst = await database.getGraphQLSchema();
23132
- return (0, import_graphql6.buildASTSchema)(gqlAst);
23444
+ };
23445
+ var _indexAttribute = async ({
23446
+ record,
23447
+ value,
23448
+ prefix,
23449
+ field,
23450
+ database
23451
+ }) => {
23452
+ const stringValue = value.toString().substr(0, 100);
23453
+ const fieldName = `__attribute__${prefix}#${field.name}#${stringValue}`;
23454
+ return fieldName;
23455
+ };
23456
+
23457
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/bridge/github.ts
23458
+ var import_lodash8 = __toModule(require("lodash"));
23459
+ var import_path5 = __toModule(require("path"));
23460
+ var import_rest = __toModule(require("@octokit/rest"));
23461
+ var import_graphql5 = __toModule(require("graphql"));
23462
+ var GithubBridge = class {
23463
+ constructor({ rootPath, accessToken, owner, repo, ref }) {
23464
+ this.rootPath = rootPath;
23465
+ this.repoConfig = {
23466
+ owner,
23467
+ repo,
23468
+ ref
23469
+ };
23470
+ this.appOctoKit = new import_rest.Octokit({
23471
+ auth: accessToken
23472
+ });
23473
+ }
23474
+ async readDir(filepath) {
23475
+ const fullPath = import_path5.default.join(this.rootPath, filepath);
23476
+ const repos = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23477
+ path: fullPath
23478
+ })).then(async (response) => {
23479
+ if (Array.isArray(response.data)) {
23480
+ return await Promise.all(await response.data.map(async (d) => {
23481
+ if (d.type === "dir") {
23482
+ const nestedItems = await this.readDir(d.path);
23483
+ if (Array.isArray(nestedItems)) {
23484
+ return nestedItems.map((nestedItem) => {
23485
+ return import_path5.default.join(d.path, nestedItem);
23486
+ });
23487
+ } else {
23488
+ throw new Error(`Expected items to be an array of strings for readDir at ${d.path}`);
23489
+ }
23490
+ }
23491
+ return d.path;
23492
+ }));
23493
+ }
23494
+ throw new Error(`Expected to return an array from Github directory ${import_path5.default}`);
23495
+ });
23496
+ return import_lodash8.default.flatten(repos);
23497
+ }
23498
+ supportsBuilding() {
23499
+ return false;
23500
+ }
23501
+ async glob(pattern) {
23502
+ const results = await this.readDir(pattern);
23503
+ return results.map((item) => item.replace(this.rootPath, "").replace(/^\/|\/$/g, ""));
23504
+ }
23505
+ async get(filepath) {
23506
+ const realpath = import_path5.default.join(this.rootPath, filepath);
23507
+ return this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23508
+ path: realpath
23509
+ })).then((response) => {
23510
+ return Buffer.from(response.data.content, "base64").toString();
23511
+ }).catch((e) => {
23512
+ if (e.status === 401) {
23513
+ throw new import_graphql5.GraphQLError(`Unauthorized request to Github Repository: '${this.repoConfig.owner}/${this.repoConfig.repo}', please ensure your access token is valid.`, null, null, null, null, e, { status: e.status });
23514
+ }
23515
+ throw new import_graphql5.GraphQLError(`Unable to find record '${filepath}' in Github Repository: '${this.repoConfig.owner}/${this.repoConfig.repo}', Ref: '${this.repoConfig.ref}'`, null, null, null, null, e, { status: e.status });
23516
+ });
23517
+ }
23518
+ async putConfig(filepath, data) {
23519
+ throw new Error(`Config files cannot be changed by the Github bridge`);
23520
+ }
23521
+ async put(filepath, data) {
23522
+ const realpath = import_path5.default.join(this.rootPath, filepath);
23523
+ let fileSha = void 0;
23524
+ try {
23525
+ const fileContent = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23526
+ path: realpath
23527
+ }));
23528
+ fileSha = fileContent.data.sha;
23529
+ } catch (e) {
23530
+ console.log("No file exists, creating new one");
23531
+ }
23532
+ await this.appOctoKit.repos.createOrUpdateFileContents(__spreadProps(__spreadValues({}, this.repoConfig), {
23533
+ branch: this.repoConfig.ref,
23534
+ path: realpath,
23535
+ message: "Update from GraphQL client",
23536
+ content: new Buffer(data).toString("base64"),
23537
+ sha: fileSha
23538
+ }));
23539
+ }
23133
23540
  };
23134
23541
 
23135
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/index.ts
23542
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/github.ts
23543
+ var import_lodash9 = __toModule(require("lodash"));
23544
+ var import_path6 = __toModule(require("path"));
23136
23545
  var import_rest2 = __toModule(require("@octokit/rest"));
23546
+ var import_graphql6 = __toModule(require("graphql"));
23547
+ var GithubStore = class {
23548
+ async clear() {
23549
+ }
23550
+ async print() {
23551
+ }
23552
+ constructor({ rootPath, accessToken, owner, repo, ref }) {
23553
+ this.rootPath = rootPath;
23554
+ this.repoConfig = {
23555
+ owner,
23556
+ repo,
23557
+ ref
23558
+ };
23559
+ this.appOctoKit = new import_rest2.Octokit({
23560
+ auth: accessToken
23561
+ });
23562
+ }
23563
+ async query(queryStrings) {
23564
+ throw new Error(`Unable to perform query for GithubStore`);
23565
+ }
23566
+ supportsSeeding() {
23567
+ return false;
23568
+ }
23569
+ async seed() {
23570
+ throw new Error(`Seeding data is not possible for Github data store`);
23571
+ }
23572
+ async readDir(filepath) {
23573
+ const fullPath = import_path6.default.join(this.rootPath, filepath);
23574
+ const repos = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23575
+ path: fullPath
23576
+ })).then(async (response) => {
23577
+ if (Array.isArray(response.data)) {
23578
+ return await Promise.all(await response.data.map(async (d) => {
23579
+ if (d.type === "dir") {
23580
+ const nestedItems = await this.readDir(d.path);
23581
+ if (Array.isArray(nestedItems)) {
23582
+ return nestedItems.map((nestedItem) => {
23583
+ return import_path6.default.join(d.path, nestedItem);
23584
+ });
23585
+ } else {
23586
+ throw new Error(`Expected items to be an array of strings for readDir at ${d.path}`);
23587
+ }
23588
+ }
23589
+ return d.path;
23590
+ }));
23591
+ }
23592
+ throw new Error(`Expected to return an array from Github directory ${import_path6.default}`);
23593
+ });
23594
+ return import_lodash9.default.flatten(repos);
23595
+ }
23596
+ async glob(pattern, callback) {
23597
+ const results = await this.readDir(pattern);
23598
+ const items = results.map((item) => item.replace(this.rootPath, "").replace(/^\/|\/$/g, ""));
23599
+ if (callback) {
23600
+ return sequential(items, async (item) => {
23601
+ return callback(item);
23602
+ });
23603
+ } else {
23604
+ return items;
23605
+ }
23606
+ }
23607
+ async get(filepath) {
23608
+ const realpath = import_path6.default.join(this.rootPath, filepath);
23609
+ return this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23610
+ path: realpath
23611
+ })).then((response) => {
23612
+ const responseString = Buffer.from(response.data.content, "base64").toString();
23613
+ return parseFile(responseString, import_path6.default.extname(filepath), (yup3) => yup3.object());
23614
+ }).catch((e) => {
23615
+ if (e.status === 401) {
23616
+ throw new import_graphql6.GraphQLError(`Unauthorized request to Github Repository: '${this.repoConfig.owner}/${this.repoConfig.repo}', please ensure your access token is valid.`, null, null, null, null, e, { status: e.status });
23617
+ }
23618
+ throw new import_graphql6.GraphQLError(`Unable to find record '${filepath}' in Github Repository: '${this.repoConfig.owner}/${this.repoConfig.repo}', Ref: '${this.repoConfig.ref}'`, null, null, null, null, e, { status: e.status });
23619
+ });
23620
+ }
23621
+ supportsIndexing() {
23622
+ return false;
23623
+ }
23624
+ async put(filepath, data) {
23625
+ const realpath = import_path6.default.join(this.rootPath, filepath);
23626
+ let fileSha = void 0;
23627
+ try {
23628
+ const fileContent = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23629
+ path: realpath
23630
+ }));
23631
+ fileSha = fileContent.data.sha;
23632
+ } catch (e) {
23633
+ console.log("No file exists, creating new one");
23634
+ }
23635
+ await this.appOctoKit.repos.createOrUpdateFileContents(__spreadProps(__spreadValues({}, this.repoConfig), {
23636
+ branch: this.repoConfig.ref,
23637
+ path: realpath,
23638
+ message: "Update from GraphQL client",
23639
+ content: new Buffer(stringifyFile(data, import_path6.default.extname(filepath), false)).toString("base64"),
23640
+ sha: fileSha
23641
+ }));
23642
+ }
23643
+ };
23644
+
23645
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/bridge/filesystem.ts
23646
+ var import_fs_extra2 = __toModule(require("fs-extra"));
23647
+ var import_fast_glob = __toModule(require("fast-glob"));
23648
+ var import_path7 = __toModule(require("path"));
23649
+ var import_normalize_path = __toModule(require("normalize-path"));
23650
+ var FilesystemBridge = class {
23651
+ constructor(rootPath) {
23652
+ this.rootPath = rootPath || "";
23653
+ }
23654
+ async glob(pattern) {
23655
+ const basePath = import_path7.default.join(this.rootPath, ...pattern.split("/"));
23656
+ const items = await (0, import_fast_glob.default)(import_path7.default.join(basePath, "**", "/*").replace(/\\/g, "/"), {
23657
+ dot: true
23658
+ });
23659
+ const posixRootPath = (0, import_normalize_path.default)(this.rootPath);
23660
+ return items.map((item) => {
23661
+ return item.replace(posixRootPath, "").replace(/^\/|\/$/g, "");
23662
+ });
23663
+ }
23664
+ supportsBuilding() {
23665
+ return true;
23666
+ }
23667
+ async get(filepath) {
23668
+ return import_fs_extra2.default.readFileSync(import_path7.default.join(this.rootPath, filepath)).toString();
23669
+ }
23670
+ async putConfig(filepath, data) {
23671
+ await this.put(filepath, data);
23672
+ }
23673
+ async put(filepath, data) {
23674
+ await import_fs_extra2.default.outputFileSync(import_path7.default.join(this.rootPath, filepath), data);
23675
+ }
23676
+ };
23677
+
23678
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/filesystem.ts
23679
+ var import_fs_extra3 = __toModule(require("fs-extra"));
23680
+ var import_fast_glob2 = __toModule(require("fast-glob"));
23681
+ var import_path8 = __toModule(require("path"));
23682
+ var import_normalize_path2 = __toModule(require("normalize-path"));
23683
+ var FilesystemStore = class {
23684
+ async clear() {
23685
+ }
23686
+ async print() {
23687
+ }
23688
+ constructor({ rootPath }) {
23689
+ this.rootPath = rootPath || "";
23690
+ }
23691
+ async query(queryStrings) {
23692
+ throw new Error(`Unable to perform query for Filesystem store`);
23693
+ }
23694
+ async seed() {
23695
+ throw new Error(`Seeding data is not possible for Filesystem store`);
23696
+ }
23697
+ async get(filepath) {
23698
+ return parseFile(await import_fs_extra3.default.readFileSync(import_path8.default.join(this.rootPath, filepath)).toString(), import_path8.default.extname(filepath), (yup3) => yup3.object());
23699
+ }
23700
+ supportsSeeding() {
23701
+ return false;
23702
+ }
23703
+ supportsIndexing() {
23704
+ return false;
23705
+ }
23706
+ async glob(pattern, callback) {
23707
+ const basePath = import_path8.default.join(this.rootPath, ...pattern.split("/"));
23708
+ const itemsRaw = await (0, import_fast_glob2.default)(import_path8.default.join(basePath, "**", "/*").replace(/\\/g, "/"), {
23709
+ dot: true
23710
+ });
23711
+ const posixRootPath = (0, import_normalize_path2.default)(this.rootPath);
23712
+ const items = itemsRaw.map((item) => {
23713
+ return item.replace(posixRootPath, "").replace(/^\/|\/$/g, "");
23714
+ });
23715
+ if (callback) {
23716
+ return sequential(items, async (item) => {
23717
+ return callback(item);
23718
+ });
23719
+ } else {
23720
+ return items;
23721
+ }
23722
+ }
23723
+ async put(filepath, data) {
23724
+ await import_fs_extra3.default.outputFileSync(import_path8.default.join(this.rootPath, filepath), stringifyFile(data, import_path8.default.extname(filepath), false));
23725
+ }
23726
+ };
23727
+
23728
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/memory.ts
23729
+ var MemoryStore = class {
23730
+ constructor(rootPath, object2 = {}) {
23731
+ this.map = object2;
23732
+ this.rootPath = rootPath || "";
23733
+ this.db = {
23734
+ get: async (filepath) => {
23735
+ return this.map[filepath];
23736
+ },
23737
+ put: async (filepath, content3) => {
23738
+ this.map[filepath] = content3;
23739
+ await this.print();
23740
+ }
23741
+ };
23742
+ }
23743
+ async query(queryStrings, hydrator) {
23744
+ const resultSets = await sequential(queryStrings, async (queryString) => {
23745
+ const res = await this.get(queryString);
23746
+ return res || [];
23747
+ });
23748
+ let items = [];
23749
+ if (resultSets.length > 0) {
23750
+ items = resultSets.reduce((p, c) => p.filter((e) => c.includes(e)));
23751
+ }
23752
+ return sequential(items, async (documentString) => {
23753
+ return hydrator(documentString);
23754
+ });
23755
+ }
23756
+ async seed(filepath, data) {
23757
+ await this.put(filepath, data);
23758
+ }
23759
+ supportsSeeding() {
23760
+ return true;
23761
+ }
23762
+ supportsIndexing() {
23763
+ return true;
23764
+ }
23765
+ async print() {
23766
+ }
23767
+ async clear() {
23768
+ this.map = {};
23769
+ }
23770
+ async glob(pattern, callback) {
23771
+ const strings = Object.keys(this.map).filter((key2) => {
23772
+ if (key2.startsWith(pattern)) {
23773
+ return true;
23774
+ } else {
23775
+ return false;
23776
+ }
23777
+ });
23778
+ if (callback) {
23779
+ return sequential(strings, async (item) => {
23780
+ return callback(item);
23781
+ });
23782
+ } else {
23783
+ return strings;
23784
+ }
23785
+ }
23786
+ async get(filepath) {
23787
+ const content3 = await this.db.get(filepath);
23788
+ return content3;
23789
+ }
23790
+ async put(filepath, data) {
23791
+ await this.db.put(filepath, data);
23792
+ }
23793
+ };
23794
+
23795
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/level.ts
23796
+ var import_path9 = __toModule(require("path"));
23797
+ var import_level = __toModule(require("level"));
23798
+ var import_levelup = __toModule(require("levelup"));
23799
+ var import_memdown = __toModule(require("memdown"));
23800
+ var import_encoding_down = __toModule(require("encoding-down"));
23801
+ var LevelStore = class {
23802
+ constructor(rootPath, useMemory = false) {
23803
+ this.rootPath = rootPath || "";
23804
+ if (useMemory) {
23805
+ const db = (0, import_levelup.default)((0, import_encoding_down.default)((0, import_memdown.default)(), { valueEncoding: "json" }));
23806
+ this.db = db;
23807
+ } else {
23808
+ const db = (0, import_level.default)(import_path9.default.join(rootPath, ".tina/__generated__/db"), {
23809
+ valueEncoding: "json"
23810
+ });
23811
+ this.db = db;
23812
+ }
23813
+ }
23814
+ async query(queryStrings, hydrator) {
23815
+ const resultSets = await sequential(queryStrings, async (queryString) => {
23816
+ let strings = [];
23817
+ const p = new Promise((resolve2, reject) => {
23818
+ this.db.createReadStream({
23819
+ gte: queryString,
23820
+ lte: queryString + "\xFF"
23821
+ }).on("data", (data) => {
23822
+ strings = [...strings, ...data.value];
23823
+ }).on("error", (message) => {
23824
+ reject(message);
23825
+ }).on("end", function() {
23826
+ resolve2();
23827
+ });
23828
+ });
23829
+ await p;
23830
+ return strings || [];
23831
+ });
23832
+ let items = [];
23833
+ if (resultSets.length > 0) {
23834
+ items = resultSets.reduce((p, c) => p.filter((e) => c.includes(e)));
23835
+ }
23836
+ return sequential(items, async (documentString) => {
23837
+ return hydrator(documentString);
23838
+ });
23839
+ }
23840
+ async seed(filepath, data) {
23841
+ await this.put(filepath, data);
23842
+ }
23843
+ supportsSeeding() {
23844
+ return true;
23845
+ }
23846
+ supportsIndexing() {
23847
+ return true;
23848
+ }
23849
+ async print() {
23850
+ this.db.createReadStream().on("data", function(data) {
23851
+ console.log(data.key, "=", data.value);
23852
+ }).on("error", function(err) {
23853
+ console.log("Oh my!", err);
23854
+ }).on("close", function() {
23855
+ console.log("Stream closed");
23856
+ }).on("end", function() {
23857
+ console.log("Stream ended");
23858
+ });
23859
+ }
23860
+ async open() {
23861
+ await this.db.open();
23862
+ }
23863
+ async clear() {
23864
+ await this.db.clear();
23865
+ }
23866
+ async glob(pattern, callback) {
23867
+ const strings = [];
23868
+ const p = new Promise((resolve2, reject) => {
23869
+ this.db.createKeyStream({
23870
+ gte: pattern,
23871
+ lte: pattern + "\xFF"
23872
+ }).on("data", (data) => {
23873
+ strings.push(data);
23874
+ }).on("error", (message) => {
23875
+ reject(message);
23876
+ }).on("end", function() {
23877
+ resolve2();
23878
+ });
23879
+ });
23880
+ await p;
23881
+ if (callback) {
23882
+ return sequential(strings, async (item) => {
23883
+ return callback(item);
23884
+ });
23885
+ } else {
23886
+ return strings;
23887
+ }
23888
+ }
23889
+ async get(filepath) {
23890
+ try {
23891
+ const content3 = await this.db.get(filepath);
23892
+ return content3;
23893
+ } catch (e) {
23894
+ return void 0;
23895
+ }
23896
+ }
23897
+ async put(filepath, data) {
23898
+ await this.db.put(filepath, data);
23899
+ }
23900
+ };
23901
+
23902
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/index.ts
23903
+ var import_rest3 = __toModule(require("@octokit/rest"));
23904
+ var buildSchema = async (rootPath, database) => {
23905
+ const tempConfig = import_path10.default.join(rootPath, ".tina", "__generated__", "config");
23906
+ const config = await import_fs_extra4.default.readFileSync(import_path10.default.join(tempConfig, "schema.json")).toString();
23907
+ await import_fs_extra4.default.rmdir(tempConfig, { recursive: true });
23908
+ await indexDB({ database, config: JSON.parse(config) });
23909
+ const gqlAst = await database.getGraphQLSchemaFromBridge();
23910
+ return (0, import_graphql7.buildASTSchema)(gqlAst);
23911
+ };
23137
23912
  var listBranches = async ({ auth, owner, repo }) => {
23138
- const appOctoKit = new import_rest2.Octokit({ auth });
23913
+ const appOctoKit = new import_rest3.Octokit({ auth });
23139
23914
  const branchList = await appOctoKit.repos.listBranches({
23140
23915
  owner,
23141
23916
  repo,
@@ -23144,7 +23919,7 @@ var listBranches = async ({ auth, owner, repo }) => {
23144
23919
  return branchList;
23145
23920
  };
23146
23921
  var createBranch = async ({ auth, owner, repo, name, baseBranch }) => {
23147
- const appOctoKit = new import_rest2.Octokit({ auth });
23922
+ const appOctoKit = new import_rest3.Octokit({ auth });
23148
23923
  const currentBranch = await appOctoKit.repos.getBranch({
23149
23924
  owner,
23150
23925
  repo,
@@ -23160,12 +23935,15 @@ var createBranch = async ({ auth, owner, repo, name, baseBranch }) => {
23160
23935
  };
23161
23936
  // Annotate the CommonJS export names for ESM import in node:
23162
23937
  0 && (module.exports = {
23938
+ FilesystemBridge,
23939
+ FilesystemStore,
23163
23940
  GithubBridge,
23941
+ GithubStore,
23942
+ LevelStore,
23943
+ MemoryStore,
23164
23944
  buildSchema,
23165
23945
  createBranch,
23166
23946
  createDatabase,
23167
- githubRoute,
23168
- gql,
23169
23947
  indexDB,
23170
23948
  listBranches,
23171
23949
  resolve