@tinacms/graphql 0.57.1 → 0.58.2

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 +29 -0
  2. package/dist/{primitives/ast-builder → ast-builder}/index.d.ts +0 -0
  3. package/dist/build.d.ts +18 -0
  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 +1587 -737
  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/build.d.ts → schema/validate.d.ts} +2 -4
  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]+$/;
@@ -6395,15 +6395,15 @@ var require_acorn_jsx = __commonJS({
6395
6395
  }
6396
6396
  return acornJsx;
6397
6397
  }
6398
- function getQualifiedJSXName(object) {
6399
- if (!object)
6400
- return object;
6401
- if (object.type === "JSXIdentifier")
6402
- return object.name;
6403
- if (object.type === "JSXNamespacedName")
6404
- return object.namespace.name + ":" + object.name.name;
6405
- if (object.type === "JSXMemberExpression")
6406
- return getQualifiedJSXName(object.object) + "." + getQualifiedJSXName(object.property);
6398
+ function getQualifiedJSXName(object2) {
6399
+ if (!object2)
6400
+ return object2;
6401
+ if (object2.type === "JSXIdentifier")
6402
+ return object2.name;
6403
+ if (object2.type === "JSXNamespacedName")
6404
+ return object2.namespace.name + ":" + object2.name.name;
6405
+ if (object2.type === "JSXMemberExpression")
6406
+ return getQualifiedJSXName(object2.object) + "." + getQualifiedJSXName(object2.property);
6407
6407
  }
6408
6408
  module2.exports = function(options) {
6409
6409
  options = options || {};
@@ -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,12 +6942,12 @@ 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
- module2.exports = (string3) => {
6950
- const match = string3.match(/^[ \t]*(?=\S)/gm);
6949
+ module2.exports = (string4) => {
6950
+ const match = string4.match(/^[ \t]*(?=\S)/gm);
6951
6951
  if (!match) {
6952
6952
  return 0;
6953
6953
  }
@@ -6956,25 +6956,25 @@ 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
- module2.exports = (string3) => {
6965
- const indent2 = minIndent(string3);
6964
+ module2.exports = (string4) => {
6965
+ const indent2 = minIndent(string4);
6966
6966
  if (indent2 === 0) {
6967
- return string3;
6967
+ return string4;
6968
6968
  }
6969
6969
  const regex = new RegExp(`^[ \\t]{${indent2}}`, "gm");
6970
- return string3.replace(regex, "");
6970
+ return string4.replace(regex, "");
6971
6971
  };
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") {
@@ -11168,6 +11090,9 @@ function addNamespaceToSchema(maybeNode, namespace = []) {
11168
11090
  const key2 = keys2[index2];
11169
11091
  if (Array.isArray(m)) {
11170
11092
  newNode[key2] = m.map((element) => {
11093
+ if (!element) {
11094
+ return;
11095
+ }
11171
11096
  if (!element.hasOwnProperty("name")) {
11172
11097
  return element;
11173
11098
  }
@@ -11175,6 +11100,9 @@ function addNamespaceToSchema(maybeNode, namespace = []) {
11175
11100
  return addNamespaceToSchema(element, [...namespace, value]);
11176
11101
  });
11177
11102
  } else {
11103
+ if (!m) {
11104
+ return;
11105
+ }
11178
11106
  if (!m.hasOwnProperty("name")) {
11179
11107
  newNode[key2] = m;
11180
11108
  } else {
@@ -11232,9 +11160,9 @@ var NAMER = {
11232
11160
  }
11233
11161
  };
11234
11162
 
11235
- // 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
11236
11164
  var yup = __toModule(require("yup"));
11237
- var import_graphql2 = __toModule(require("graphql"));
11165
+ var import_graphql = __toModule(require("graphql"));
11238
11166
  var sequential = async (items, callback) => {
11239
11167
  const accum = [];
11240
11168
  if (!items) {
@@ -11259,7 +11187,7 @@ function assertShape(value, yupSchema, errorMessage) {
11259
11187
  shape.validateSync(value);
11260
11188
  } catch (e) {
11261
11189
  const message = errorMessage || `Failed to assertShape - ${e.message}`;
11262
- throw new import_graphql2.GraphQLError(message, null, null, null, null, null, {
11190
+ throw new import_graphql.GraphQLError(message, null, null, null, null, null, {
11263
11191
  stack: e.stack
11264
11192
  });
11265
11193
  }
@@ -11268,7 +11196,7 @@ var lastItem = (arr) => {
11268
11196
  return arr[arr.length - 1];
11269
11197
  };
11270
11198
 
11271
- // 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
11272
11200
  var interfaceDefinitions = [
11273
11201
  astBuilder.InterfaceTypeDefinition({
11274
11202
  name: "Node",
@@ -11402,7 +11330,7 @@ var scalarDefinitions = [
11402
11330
  ];
11403
11331
  var staticDefinitions = [...scalarDefinitions, interfaceDefinitions];
11404
11332
 
11405
- // 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
11406
11334
  var createBuilder = async ({
11407
11335
  database,
11408
11336
  tinaSchema
@@ -11663,8 +11591,9 @@ var Builder = class {
11663
11591
  selections.push(await this.buildTemplateFragments(tem));
11664
11592
  }
11665
11593
  });
11666
- return astBuilder.FieldWithSelectionSetDefinition({
11594
+ return astBuilder.FragmentDefinition({
11667
11595
  name,
11596
+ fragmentName,
11668
11597
  selections: filterSelections(selections)
11669
11598
  });
11670
11599
  }
@@ -11789,7 +11718,8 @@ var Builder = class {
11789
11718
  fieldName: NAMER.generateQueryListName(collection.namespace),
11790
11719
  connectionName,
11791
11720
  nodeType: NAMER.documentTypeName(collection.namespace),
11792
- namespace: collection.namespace
11721
+ namespace: collection.namespace,
11722
+ collection
11793
11723
  });
11794
11724
  };
11795
11725
  this.buildStaticDefinitions = () => staticDefinitions;
@@ -11835,6 +11765,35 @@ var Builder = class {
11835
11765
  ]
11836
11766
  });
11837
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
+ };
11838
11797
  this._updateCollectionDocumentMutationType = async (collection) => {
11839
11798
  const t = this.tinaSchema.getTemplatesForCollectable(collection);
11840
11799
  if (t.type === "union") {
@@ -11895,9 +11854,156 @@ var Builder = class {
11895
11854
  fieldName,
11896
11855
  namespace: connectionNamespace,
11897
11856
  connectionName,
11898
- nodeType
11857
+ nodeType,
11858
+ collections
11899
11859
  });
11900
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
+ };
11901
12007
  this._buildFieldMutation = async (field) => {
11902
12008
  switch (field.type) {
11903
12009
  case "boolean":
@@ -11969,16 +12075,56 @@ var Builder = class {
11969
12075
  }
11970
12076
  return this._buildTemplateData(collectableTemplate.template);
11971
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
+ };
11972
12108
  this._connectionFieldBuilder = async ({
11973
12109
  fieldName,
11974
12110
  namespace,
11975
12111
  connectionName,
11976
- nodeType
12112
+ nodeType,
12113
+ collection,
12114
+ collections
11977
12115
  }) => {
12116
+ const extra = this.database.store.supportsIndexing() ? [
12117
+ await this._connectionFilterBuilder({
12118
+ fieldName,
12119
+ namespace,
12120
+ collection,
12121
+ collections
12122
+ })
12123
+ ] : [];
11978
12124
  return astBuilder.FieldDefinition({
11979
12125
  name: fieldName,
11980
12126
  required: true,
11981
- args: [...listArgs],
12127
+ args: [...listArgs, ...extra],
11982
12128
  type: astBuilder.ObjectTypeDefinition({
11983
12129
  name: connectionName,
11984
12130
  interfaces: [
@@ -12120,10 +12266,79 @@ var filterSelections = (arr) => {
12120
12266
  return arr.filter(Boolean);
12121
12267
  };
12122
12268
 
12123
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/schema/index.ts
12124
- 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"));
12271
+ var yup2 = __toModule(require("yup"));
12272
+ var FIELD_TYPES = [
12273
+ "string",
12274
+ "number",
12275
+ "boolean",
12276
+ "datetime",
12277
+ "image",
12278
+ "reference",
12279
+ "object",
12280
+ "rich-text"
12281
+ ];
12282
+ var validateSchema = async (schema) => {
12283
+ const schema2 = addNamespaceToSchema(import_lodash2.default.cloneDeep(schema));
12284
+ const collections = await sequential(schema2.collections, async (collection) => validateCollection(collection));
12285
+ return {
12286
+ collections
12287
+ };
12288
+ };
12289
+ var validateCollection = async (collection) => {
12290
+ let templates = [];
12291
+ let fields = [];
12292
+ const messageName = collection.namespace.join(".");
12293
+ const collectionSchema = yup2.object({
12294
+ name: yup2.string().matches(/^[a-zA-Z0-9_]*$/, {
12295
+ message: (obj) => `Collection's "name" must match ${obj.regex} at ${messageName}`
12296
+ }).required(),
12297
+ label: yup2.string().required(),
12298
+ path: yup2.string().required().transform((value) => {
12299
+ return value.replace(/^\/|\/$/g, "");
12300
+ })
12301
+ });
12302
+ await collectionSchema.validate(collection);
12303
+ const validCollection = await collectionSchema.cast(collection);
12304
+ if (validCollection.templates) {
12305
+ templates = await sequential(validCollection.templates, async (template) => {
12306
+ if (typeof template === "string") {
12307
+ throw new Error(`Global templates are not yet supported`);
12308
+ }
12309
+ const fields2 = await sequential(template.fields, async (field) => {
12310
+ return validateField(field);
12311
+ });
12312
+ return __spreadValues(__spreadValues({}, validCollection), fields2);
12313
+ });
12314
+ }
12315
+ if (validCollection.fields) {
12316
+ if (typeof validCollection.fields === "string") {
12317
+ throw new Error(`Global templates are not yet supported`);
12318
+ }
12319
+ fields = await sequential(validCollection.fields, async (field) => {
12320
+ return validateField(field);
12321
+ });
12322
+ return __spreadProps(__spreadValues({}, validCollection), {
12323
+ fields
12324
+ });
12325
+ }
12326
+ return collection;
12327
+ };
12328
+ var validateField = async (field) => {
12329
+ const messageName = field.namespace.join(".");
12330
+ const schema = yup2.object({
12331
+ name: yup2.string().matches(/^[a-zA-Z0-9_]*$/, {
12332
+ message: (obj) => `Field's 'name' must match ${obj.regex} at ${messageName}`
12333
+ }).required(),
12334
+ label: yup2.string().required(),
12335
+ type: yup2.string().oneOf(FIELD_TYPES, (obj) => `'type' must be one of: ${obj.values}, but got '${obj.value}' at ${messageName}`)
12336
+ });
12337
+ await schema.validate(field);
12338
+ return field;
12339
+ };
12125
12340
 
12126
- // 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
12127
12342
  var TinaError = class extends Error {
12128
12343
  constructor(message, extensions) {
12129
12344
  super(message);
@@ -12134,11 +12349,12 @@ var TinaError = class extends Error {
12134
12349
  }
12135
12350
  };
12136
12351
 
12137
- // 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
12138
12353
  var createSchema = async ({
12139
12354
  schema
12140
12355
  }) => {
12141
- return new TinaSchema(schema);
12356
+ const validSchema = await validateSchema(schema);
12357
+ return new TinaSchema(validSchema);
12142
12358
  };
12143
12359
  var TinaSchema = class {
12144
12360
  constructor(config) {
@@ -12146,6 +12362,10 @@ var TinaSchema = class {
12146
12362
  this.getCollectionsByName = (collectionNames) => {
12147
12363
  return this.schema.collections.filter((collection) => collectionNames.includes(collection.name));
12148
12364
  };
12365
+ this.getAllCollectionPaths = () => {
12366
+ const paths = this.getCollections().map((collection) => `${collection.path}${collection.match || ""}`);
12367
+ return paths;
12368
+ };
12149
12369
  this.getCollection = (collectionName) => {
12150
12370
  const collection = this.schema.collections.find((collection2) => collection2.name === collectionName);
12151
12371
  if (!collection) {
@@ -12223,7 +12443,7 @@ var TinaSchema = class {
12223
12443
  case "object":
12224
12444
  return templateInfo.template;
12225
12445
  case "union":
12226
- assertShape(data, (yup2) => yup2.object({ _template: yup2.string().required() }));
12446
+ assertShape(data, (yup3) => yup3.object({ _template: yup3.string().required() }));
12227
12447
  const template = templateInfo.templates.find((template2) => template2.namespace[template2.namespace.length - 1] === data._template);
12228
12448
  if (!template) {
12229
12449
  throw new TinaError(`Expected to find template named '${data._template}' for collection '${lastItem(collection.namespace)}'`, {
@@ -12280,21 +12500,27 @@ var TinaSchema = class {
12280
12500
  }
12281
12501
  }
12282
12502
  };
12283
- this.schema = addNamespaceToSchema(import_lodash3.default.cloneDeep(config));
12503
+ this.schema = config;
12284
12504
  }
12285
12505
  };
12286
12506
 
12287
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/build.ts
12288
- 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
+ }) => {
12289
12513
  const tinaSchema = await createSchema({ schema: config });
12290
- const builder = await createBuilder({ database, tinaSchema });
12514
+ const builder = await createBuilder({
12515
+ database,
12516
+ tinaSchema
12517
+ });
12291
12518
  const graphQLSchema = await _buildSchema(builder, tinaSchema);
12292
- await database.put("_graphql", graphQLSchema);
12293
- await database.put("_schema", tinaSchema.schema);
12294
- await _buildFragments(builder, tinaSchema);
12295
- 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);
12296
12522
  };
12297
- var _buildFragments = async (builder, tinaSchema) => {
12523
+ var _buildFragments = async (builder, tinaSchema, rootPath) => {
12298
12524
  const fragmentDefinitionsFields = [];
12299
12525
  const collections = tinaSchema.getCollections();
12300
12526
  await sequential(collections, async (collection) => {
@@ -12303,12 +12529,12 @@ var _buildFragments = async (builder, tinaSchema) => {
12303
12529
  });
12304
12530
  const fragDoc = {
12305
12531
  kind: "Document",
12306
- definitions: import_lodash4.default.uniqBy(extractInlineTypes(fragmentDefinitionsFields), (node) => node.name.value)
12532
+ definitions: import_lodash3.default.uniqBy(extractInlineTypes(fragmentDefinitionsFields), (node) => node.name.value)
12307
12533
  };
12308
- const fragPath = import_path2.default.join(process.cwd(), ".tina", "__generated__");
12309
- 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));
12310
12536
  };
12311
- var _buildQueries = async (builder, tinaSchema) => {
12537
+ var _buildQueries = async (builder, tinaSchema, rootPath) => {
12312
12538
  const operationsDefinitions = [];
12313
12539
  const collections = tinaSchema.getCollections();
12314
12540
  await sequential(collections, async (collection) => {
@@ -12323,10 +12549,10 @@ var _buildQueries = async (builder, tinaSchema) => {
12323
12549
  });
12324
12550
  const queryDoc = {
12325
12551
  kind: "Document",
12326
- definitions: import_lodash4.default.uniqBy(extractInlineTypes(operationsDefinitions), (node) => node.name.value)
12552
+ definitions: import_lodash3.default.uniqBy(extractInlineTypes(operationsDefinitions), (node) => node.name.value)
12327
12553
  };
12328
- const fragPath = import_path2.default.join(process.cwd(), ".tina", "__generated__");
12329
- 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));
12330
12556
  };
12331
12557
  var _buildSchema = async (builder, tinaSchema) => {
12332
12558
  const definitions = [];
@@ -12359,32 +12585,32 @@ var _buildSchema = async (builder, tinaSchema) => {
12359
12585
  }));
12360
12586
  const doc = {
12361
12587
  kind: "Document",
12362
- definitions: import_lodash4.default.uniqBy(extractInlineTypes(definitions), (node) => node.name.value)
12588
+ definitions: import_lodash3.default.uniqBy(extractInlineTypes(definitions), (node) => node.name.value)
12363
12589
  };
12364
12590
  return doc;
12365
12591
  };
12366
12592
 
12367
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/resolve.ts
12368
- var import_lodash7 = __toModule(require("lodash"));
12369
- var import_graphql4 = __toModule(require("graphql"));
12370
-
12371
- // 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
12372
12594
  var import_lodash6 = __toModule(require("lodash"));
12373
- 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"));
12374
12600
  var import_isValid = __toModule(require_isValid());
12375
12601
 
12376
- // 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
12377
12603
  function bail(error) {
12378
12604
  if (error) {
12379
12605
  throw error;
12380
12606
  }
12381
12607
  }
12382
12608
 
12383
- // 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
12384
12610
  var import_is_buffer2 = __toModule(require_is_buffer());
12385
12611
  var import_extend = __toModule(require_extend());
12386
12612
 
12387
- // 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
12388
12614
  function isPlainObject(value) {
12389
12615
  if (Object.prototype.toString.call(value) !== "[object Object]") {
12390
12616
  return false;
@@ -12393,7 +12619,7 @@ function isPlainObject(value) {
12393
12619
  return prototype === null || prototype === Object.prototype;
12394
12620
  }
12395
12621
 
12396
- // 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
12397
12623
  function trough() {
12398
12624
  const fns = [];
12399
12625
  const pipeline = { run, use };
@@ -12472,10 +12698,10 @@ function wrap(middleware, callback) {
12472
12698
  }
12473
12699
  }
12474
12700
 
12475
- // 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
12476
12702
  var import_is_buffer = __toModule(require_is_buffer());
12477
12703
 
12478
- // 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
12479
12705
  var own = {}.hasOwnProperty;
12480
12706
  function stringifyPosition(value) {
12481
12707
  if (!value || typeof value !== "object") {
@@ -12502,7 +12728,7 @@ function index(value) {
12502
12728
  return value && typeof value === "number" ? value : 1;
12503
12729
  }
12504
12730
 
12505
- // 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
12506
12732
  var VFileMessage = class extends Error {
12507
12733
  constructor(reason, place, origin) {
12508
12734
  var parts = [null, null];
@@ -12563,22 +12789,22 @@ VFileMessage.prototype.source = null;
12563
12789
  VFileMessage.prototype.ruleId = null;
12564
12790
  VFileMessage.prototype.position = null;
12565
12791
 
12566
- // pnp:/home/runner/work/tinacms/tinacms/.yarn/cache/vfile-npm-5.1.0-4fbf325323-b36786f162.zip/node_modules/vfile/lib/minpath.js
12567
- 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"));
12568
12794
 
12569
- // 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
12570
12796
  var import_process = __toModule(require("process"));
12571
12797
  var proc = import_process.default;
12572
12798
 
12573
- // 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
12574
12800
  var import_url = __toModule(require("url"));
12575
12801
 
12576
- // 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
12577
12803
  function isUrl(fileURLOrPath) {
12578
12804
  return fileURLOrPath !== null && typeof fileURLOrPath === "object" && fileURLOrPath.href && fileURLOrPath.origin;
12579
12805
  }
12580
12806
 
12581
- // 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
12582
12808
  var order = ["history", "path", "basename", "stem", "extname", "dirname"];
12583
12809
  var VFile = class {
12584
12810
  constructor(value) {
@@ -12616,32 +12842,32 @@ var VFile = class {
12616
12842
  get path() {
12617
12843
  return this.history[this.history.length - 1];
12618
12844
  }
12619
- set path(path8) {
12620
- if (isUrl(path8)) {
12621
- path8 = (0, import_url.fileURLToPath)(path8);
12845
+ set path(path11) {
12846
+ if (isUrl(path11)) {
12847
+ path11 = (0, import_url.fileURLToPath)(path11);
12622
12848
  }
12623
- assertNonEmpty(path8, "path");
12624
- if (this.path !== path8) {
12625
- this.history.push(path8);
12849
+ assertNonEmpty(path11, "path");
12850
+ if (this.path !== path11) {
12851
+ this.history.push(path11);
12626
12852
  }
12627
12853
  }
12628
12854
  get dirname() {
12629
- 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;
12630
12856
  }
12631
12857
  set dirname(dirname) {
12632
12858
  assertPath(this.basename, "dirname");
12633
- this.path = import_path3.default.join(dirname || "", this.basename);
12859
+ this.path = import_path2.default.join(dirname || "", this.basename);
12634
12860
  }
12635
12861
  get basename() {
12636
- 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;
12637
12863
  }
12638
12864
  set basename(basename) {
12639
12865
  assertNonEmpty(basename, "basename");
12640
12866
  assertPart(basename, "basename");
12641
- this.path = import_path3.default.join(this.dirname || "", basename);
12867
+ this.path = import_path2.default.join(this.dirname || "", basename);
12642
12868
  }
12643
12869
  get extname() {
12644
- 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;
12645
12871
  }
12646
12872
  set extname(extname) {
12647
12873
  assertPart(extname, "extname");
@@ -12654,15 +12880,15 @@ var VFile = class {
12654
12880
  throw new Error("`extname` cannot contain multiple dots");
12655
12881
  }
12656
12882
  }
12657
- this.path = import_path3.default.join(this.dirname, this.stem + (extname || ""));
12883
+ this.path = import_path2.default.join(this.dirname, this.stem + (extname || ""));
12658
12884
  }
12659
12885
  get stem() {
12660
- 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;
12661
12887
  }
12662
12888
  set stem(stem) {
12663
12889
  assertNonEmpty(stem, "stem");
12664
12890
  assertPart(stem, "stem");
12665
- this.path = import_path3.default.join(this.dirname || "", stem + (this.extname || ""));
12891
+ this.path = import_path2.default.join(this.dirname || "", stem + (this.extname || ""));
12666
12892
  }
12667
12893
  toString(encoding) {
12668
12894
  return (this.value || "").toString(encoding);
@@ -12689,8 +12915,8 @@ var VFile = class {
12689
12915
  }
12690
12916
  };
12691
12917
  function assertPart(part, name) {
12692
- if (part && part.includes(import_path3.default.sep)) {
12693
- 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 + "`");
12694
12920
  }
12695
12921
  }
12696
12922
  function assertNonEmpty(part, name) {
@@ -12698,13 +12924,13 @@ function assertNonEmpty(part, name) {
12698
12924
  throw new Error("`" + name + "` cannot be empty");
12699
12925
  }
12700
12926
  }
12701
- function assertPath(path8, name) {
12702
- if (!path8) {
12927
+ function assertPath(path11, name) {
12928
+ if (!path11) {
12703
12929
  throw new Error("Setting `" + name + "` requires `path` to be set too");
12704
12930
  }
12705
12931
  }
12706
12932
 
12707
- // 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
12708
12934
  var unified = base().freeze();
12709
12935
  var own2 = {}.hasOwnProperty;
12710
12936
  function base() {
@@ -12723,7 +12949,7 @@ function base() {
12723
12949
  processor.stringify = stringify2;
12724
12950
  processor.run = run;
12725
12951
  processor.runSync = runSync;
12726
- processor.process = process3;
12952
+ processor.process = process2;
12727
12953
  processor.processSync = processSync;
12728
12954
  return processor;
12729
12955
  function processor() {
@@ -12900,7 +13126,7 @@ function base() {
12900
13126
  complete = true;
12901
13127
  }
12902
13128
  }
12903
- function process3(doc, callback) {
13129
+ function process2(doc, callback) {
12904
13130
  processor.freeze();
12905
13131
  assertParser("process", processor.Parser);
12906
13132
  assertCompiler("process", processor.Compiler);
@@ -12997,7 +13223,7 @@ function looksLikeAVFileValue(value) {
12997
13223
  return typeof value === "string" || (0, import_is_buffer2.default)(value);
12998
13224
  }
12999
13225
 
13000
- // 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
13001
13227
  function toString(node, options) {
13002
13228
  var { includeImageAlt = true } = options || {};
13003
13229
  return one(node, includeImageAlt);
@@ -13014,7 +13240,7 @@ function all(values, includeImageAlt) {
13014
13240
  return result.join("");
13015
13241
  }
13016
13242
 
13017
- // 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
13018
13244
  function splice(list3, start, remove, items) {
13019
13245
  const end = list3.length;
13020
13246
  let chunkStart = 0;
@@ -13049,7 +13275,7 @@ function push(list3, items) {
13049
13275
  return items;
13050
13276
  }
13051
13277
 
13052
- // 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
13053
13279
  var hasOwnProperty = {}.hasOwnProperty;
13054
13280
  function combineExtensions(extensions) {
13055
13281
  const all2 = {};
@@ -13084,10 +13310,10 @@ function constructs(existing, list3) {
13084
13310
  splice(existing, 0, 0, before);
13085
13311
  }
13086
13312
 
13087
- // 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
13088
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]/;
13089
13315
 
13090
- // 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
13091
13317
  var asciiAlpha = regexCheck(/[A-Za-z]/);
13092
13318
  var asciiDigit = regexCheck(/\d/);
13093
13319
  var asciiHexDigit = regexCheck(/[\dA-Fa-f]/);
@@ -13115,7 +13341,7 @@ function regexCheck(regex) {
13115
13341
  }
13116
13342
  }
13117
13343
 
13118
- // 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
13119
13345
  function factorySpace(effects, ok2, type, max) {
13120
13346
  const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
13121
13347
  let size = 0;
@@ -13137,7 +13363,7 @@ function factorySpace(effects, ok2, type, max) {
13137
13363
  }
13138
13364
  }
13139
13365
 
13140
- // 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
13141
13367
  var content = {
13142
13368
  tokenize: initializeContent
13143
13369
  };
@@ -13187,7 +13413,7 @@ function initializeContent(effects) {
13187
13413
  }
13188
13414
  }
13189
13415
 
13190
- // 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
13191
13417
  var document = {
13192
13418
  tokenize: initializeDocument
13193
13419
  };
@@ -13364,7 +13590,7 @@ function tokenizeContainer(effects, ok2, nok) {
13364
13590
  return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok2, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
13365
13591
  }
13366
13592
 
13367
- // 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
13368
13594
  function classifyCharacter(code2) {
13369
13595
  if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
13370
13596
  return 1;
@@ -13374,7 +13600,7 @@ function classifyCharacter(code2) {
13374
13600
  }
13375
13601
  }
13376
13602
 
13377
- // 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
13378
13604
  function resolveAll(constructs2, events, context) {
13379
13605
  const called = [];
13380
13606
  let index2 = -1;
@@ -13388,7 +13614,7 @@ function resolveAll(constructs2, events, context) {
13388
13614
  return events;
13389
13615
  }
13390
13616
 
13391
- // 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
13392
13618
  var attention = {
13393
13619
  name: "attention",
13394
13620
  tokenize: tokenizeAttention,
@@ -13514,7 +13740,7 @@ function movePoint(point2, offset) {
13514
13740
  point2._bufferIndex += offset;
13515
13741
  }
13516
13742
 
13517
- // 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
13518
13744
  var autolink = {
13519
13745
  name: "autolink",
13520
13746
  tokenize: tokenizeAutolink
@@ -13605,7 +13831,7 @@ function tokenizeAutolink(effects, ok2, nok) {
13605
13831
  }
13606
13832
  }
13607
13833
 
13608
- // 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
13609
13835
  var blankLine = {
13610
13836
  tokenize: tokenizeBlankLine,
13611
13837
  partial: true
@@ -13617,7 +13843,7 @@ function tokenizeBlankLine(effects, ok2, nok) {
13617
13843
  }
13618
13844
  }
13619
13845
 
13620
- // 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
13621
13847
  var blockQuote = {
13622
13848
  name: "blockQuote",
13623
13849
  tokenize: tokenizeBlockQuoteStart,
@@ -13665,7 +13891,7 @@ function exit(effects) {
13665
13891
  effects.exit("blockQuote");
13666
13892
  }
13667
13893
 
13668
- // 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
13669
13895
  var characterEscape = {
13670
13896
  name: "characterEscape",
13671
13897
  tokenize: tokenizeCharacterEscape
@@ -13691,7 +13917,7 @@ function tokenizeCharacterEscape(effects, ok2, nok) {
13691
13917
  }
13692
13918
  }
13693
13919
 
13694
- // 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
13695
13921
  var characterEntities = {
13696
13922
  AEli: "\xC6",
13697
13923
  AElig: "\xC6",
@@ -15917,13 +16143,13 @@ var characterEntities = {
15917
16143
  zwnj: "\u200C"
15918
16144
  };
15919
16145
 
15920
- // 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
15921
16147
  var own3 = {}.hasOwnProperty;
15922
16148
  function decodeEntity(characters2) {
15923
16149
  return own3.call(characterEntities, characters2) ? characterEntities[characters2] : false;
15924
16150
  }
15925
16151
 
15926
- // 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
15927
16153
  var characterReference = {
15928
16154
  name: "characterReference",
15929
16155
  tokenize: tokenizeCharacterReference
@@ -15989,7 +16215,7 @@ function tokenizeCharacterReference(effects, ok2, nok) {
15989
16215
  }
15990
16216
  }
15991
16217
 
15992
- // 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
15993
16219
  var codeFenced = {
15994
16220
  name: "codeFenced",
15995
16221
  tokenize: tokenizeCodeFenced,
@@ -16136,7 +16362,7 @@ function tokenizeCodeFenced(effects, ok2, nok) {
16136
16362
  }
16137
16363
  }
16138
16364
 
16139
- // 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
16140
16366
  var codeIndented = {
16141
16367
  name: "codeIndented",
16142
16368
  tokenize: tokenizeCodeIndented
@@ -16200,7 +16426,7 @@ function tokenizeIndentedContent(effects, ok2, nok) {
16200
16426
  }
16201
16427
  }
16202
16428
 
16203
- // 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
16204
16430
  var codeText = {
16205
16431
  name: "codeText",
16206
16432
  tokenize: tokenizeCodeText,
@@ -16315,7 +16541,7 @@ function tokenizeCodeText(effects, ok2, nok) {
16315
16541
  }
16316
16542
  }
16317
16543
 
16318
- // 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
16319
16545
  function subtokenize(events) {
16320
16546
  const jumps = {};
16321
16547
  let index2 = -1;
@@ -16453,7 +16679,7 @@ function subcontent(events, eventIndex) {
16453
16679
  return gaps;
16454
16680
  }
16455
16681
 
16456
- // 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
16457
16683
  var content2 = {
16458
16684
  tokenize: tokenizeContent,
16459
16685
  resolve: resolveContent
@@ -16524,7 +16750,7 @@ function tokenizeContinuation(effects, ok2, nok) {
16524
16750
  }
16525
16751
  }
16526
16752
 
16527
- // 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
16528
16754
  function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerType, rawType, stringType, max) {
16529
16755
  const limit = max || Number.POSITIVE_INFINITY;
16530
16756
  let balance = 0;
@@ -16624,7 +16850,7 @@ function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerT
16624
16850
  }
16625
16851
  }
16626
16852
 
16627
- // 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
16628
16854
  function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
16629
16855
  const self2 = this;
16630
16856
  let size = 0;
@@ -16680,7 +16906,7 @@ function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
16680
16906
  }
16681
16907
  }
16682
16908
 
16683
- // 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
16684
16910
  function factoryTitle(effects, ok2, nok, type, markerType, stringType) {
16685
16911
  let marker;
16686
16912
  return start;
@@ -16739,7 +16965,7 @@ function factoryTitle(effects, ok2, nok, type, markerType, stringType) {
16739
16965
  }
16740
16966
  }
16741
16967
 
16742
- // 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
16743
16969
  function factoryWhitespace(effects, ok2) {
16744
16970
  let seen;
16745
16971
  return start;
@@ -16758,12 +16984,12 @@ function factoryWhitespace(effects, ok2) {
16758
16984
  }
16759
16985
  }
16760
16986
 
16761
- // 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
16762
16988
  function normalizeIdentifier(value) {
16763
16989
  return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
16764
16990
  }
16765
16991
 
16766
- // 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
16767
16993
  var definition = {
16768
16994
  name: "definition",
16769
16995
  tokenize: tokenizeDefinition
@@ -16817,7 +17043,7 @@ function tokenizeTitle(effects, ok2, nok) {
16817
17043
  }
16818
17044
  }
16819
17045
 
16820
- // 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
16821
17047
  var hardBreakEscape = {
16822
17048
  name: "hardBreakEscape",
16823
17049
  tokenize: tokenizeHardBreakEscape
@@ -16840,7 +17066,7 @@ function tokenizeHardBreakEscape(effects, ok2, nok) {
16840
17066
  }
16841
17067
  }
16842
17068
 
16843
- // 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
16844
17070
  var headingAtx = {
16845
17071
  name: "headingAtx",
16846
17072
  tokenize: tokenizeHeadingAtx,
@@ -16934,7 +17160,7 @@ function tokenizeHeadingAtx(effects, ok2, nok) {
16934
17160
  }
16935
17161
  }
16936
17162
 
16937
- // 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
16938
17164
  var htmlBlockNames = [
16939
17165
  "address",
16940
17166
  "article",
@@ -17001,7 +17227,7 @@ var htmlBlockNames = [
17001
17227
  ];
17002
17228
  var htmlRawNames = ["pre", "script", "style", "textarea"];
17003
17229
 
17004
- // 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
17005
17231
  var htmlFlow = {
17006
17232
  name: "htmlFlow",
17007
17233
  tokenize: tokenizeHtmlFlow,
@@ -17353,7 +17579,7 @@ function tokenizeNextBlank(effects, ok2, nok) {
17353
17579
  }
17354
17580
  }
17355
17581
 
17356
- // 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
17357
17583
  var htmlText = {
17358
17584
  name: "htmlText",
17359
17585
  tokenize: tokenizeHtmlText
@@ -17670,7 +17896,7 @@ function tokenizeHtmlText(effects, ok2, nok) {
17670
17896
  }
17671
17897
  }
17672
17898
 
17673
- // 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
17674
17900
  var labelEnd = {
17675
17901
  name: "labelEnd",
17676
17902
  tokenize: tokenizeLabelEnd,
@@ -17869,7 +18095,7 @@ function tokenizeCollapsedReference(effects, ok2, nok) {
17869
18095
  }
17870
18096
  }
17871
18097
 
17872
- // 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
17873
18099
  var labelStartImage = {
17874
18100
  name: "labelStartImage",
17875
18101
  tokenize: tokenizeLabelStartImage,
@@ -17900,7 +18126,7 @@ function tokenizeLabelStartImage(effects, ok2, nok) {
17900
18126
  }
17901
18127
  }
17902
18128
 
17903
- // 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
17904
18130
  var labelStartLink = {
17905
18131
  name: "labelStartLink",
17906
18132
  tokenize: tokenizeLabelStartLink,
@@ -17922,7 +18148,7 @@ function tokenizeLabelStartLink(effects, ok2, nok) {
17922
18148
  }
17923
18149
  }
17924
18150
 
17925
- // 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
17926
18152
  var lineEnding = {
17927
18153
  name: "lineEnding",
17928
18154
  tokenize: tokenizeLineEnding
@@ -17937,7 +18163,7 @@ function tokenizeLineEnding(effects, ok2) {
17937
18163
  }
17938
18164
  }
17939
18165
 
17940
- // 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
17941
18167
  var thematicBreak = {
17942
18168
  name: "thematicBreak",
17943
18169
  tokenize: tokenizeThematicBreak
@@ -17976,7 +18202,7 @@ function tokenizeThematicBreak(effects, ok2, nok) {
17976
18202
  }
17977
18203
  }
17978
18204
 
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/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
17980
18206
  var list = {
17981
18207
  name: "list",
17982
18208
  tokenize: tokenizeListStart,
@@ -18101,7 +18327,7 @@ function tokenizeListItemPrefixWhitespace(effects, ok2, nok) {
18101
18327
  }
18102
18328
  }
18103
18329
 
18104
- // 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
18105
18331
  var setextUnderline = {
18106
18332
  name: "setextUnderline",
18107
18333
  tokenize: tokenizeSetextUnderline,
@@ -18184,7 +18410,7 @@ function tokenizeSetextUnderline(effects, ok2, nok) {
18184
18410
  }
18185
18411
  }
18186
18412
 
18187
- // 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
18188
18414
  var flow = {
18189
18415
  tokenize: initializeFlow
18190
18416
  };
@@ -18216,11 +18442,11 @@ function initializeFlow(effects) {
18216
18442
  }
18217
18443
  }
18218
18444
 
18219
- // 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
18220
18446
  var resolver = {
18221
18447
  resolveAll: createResolver()
18222
18448
  };
18223
- var string = initializeFactory("string");
18449
+ var string2 = initializeFactory("string");
18224
18450
  var text = initializeFactory("text");
18225
18451
  function initializeFactory(field) {
18226
18452
  return {
@@ -18349,7 +18575,7 @@ function resolveAllLineSuffixes(events, context) {
18349
18575
  return events;
18350
18576
  }
18351
18577
 
18352
- // 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
18353
18579
  function createTokenizer(parser, initialize, from) {
18354
18580
  let point2 = Object.assign(from ? Object.assign({}, from) : {
18355
18581
  line: 1,
@@ -18476,7 +18702,7 @@ function createTokenizer(parser, initialize, from) {
18476
18702
  function onsuccessfulconstruct(construct, info) {
18477
18703
  addResult(construct, info.from);
18478
18704
  }
18479
- function onsuccessfulcheck(_7, info) {
18705
+ function onsuccessfulcheck(_8, info) {
18480
18706
  info.restore();
18481
18707
  }
18482
18708
  function constructFactory(onreturn, fields) {
@@ -18635,7 +18861,7 @@ function serializeChunks(chunks, expandTabs) {
18635
18861
  return result.join("");
18636
18862
  }
18637
18863
 
18638
- // 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
18639
18865
  var constructs_exports = {};
18640
18866
  __export(constructs_exports, {
18641
18867
  attentionMarkers: () => attentionMarkers,
@@ -18645,7 +18871,7 @@ __export(constructs_exports, {
18645
18871
  flow: () => flow2,
18646
18872
  flowInitial: () => flowInitial,
18647
18873
  insideSpan: () => insideSpan,
18648
- string: () => string2,
18874
+ string: () => string3,
18649
18875
  text: () => text2
18650
18876
  });
18651
18877
  var document2 = {
@@ -18682,7 +18908,7 @@ var flow2 = {
18682
18908
  [96]: codeFenced,
18683
18909
  [126]: codeFenced
18684
18910
  };
18685
- var string2 = {
18911
+ var string3 = {
18686
18912
  [38]: characterReference,
18687
18913
  [92]: characterEscape
18688
18914
  };
@@ -18710,7 +18936,7 @@ var disable = {
18710
18936
  null: []
18711
18937
  };
18712
18938
 
18713
- // 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
18714
18940
  function parse(options = {}) {
18715
18941
  const constructs2 = combineExtensions([constructs_exports].concat(options.extensions || []));
18716
18942
  const parser = {
@@ -18720,7 +18946,7 @@ function parse(options = {}) {
18720
18946
  content: create(content),
18721
18947
  document: create(document),
18722
18948
  flow: create(flow),
18723
- string: create(string),
18949
+ string: create(string2),
18724
18950
  text: create(text)
18725
18951
  };
18726
18952
  return parser;
@@ -18732,7 +18958,7 @@ function parse(options = {}) {
18732
18958
  }
18733
18959
  }
18734
18960
 
18735
- // 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
18736
18962
  var search = /[\0\t\n\r]/g;
18737
18963
  function preprocess() {
18738
18964
  let column = 1;
@@ -18814,14 +19040,14 @@ function preprocess() {
18814
19040
  }
18815
19041
  }
18816
19042
 
18817
- // 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
18818
19044
  function postprocess(events) {
18819
19045
  while (!subtokenize(events)) {
18820
19046
  }
18821
19047
  return events;
18822
19048
  }
18823
19049
 
18824
- // 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
18825
19051
  function decodeNumericCharacterReference(value, base2) {
18826
19052
  const code2 = Number.parseInt(value, base2);
18827
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) {
@@ -18830,7 +19056,7 @@ function decodeNumericCharacterReference(value, base2) {
18830
19056
  return String.fromCharCode(code2);
18831
19057
  }
18832
19058
 
18833
- // 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
18834
19060
  var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
18835
19061
  function decodeString(value) {
18836
19062
  return value.replace(characterEscapeOrReference, decode);
@@ -18848,7 +19074,7 @@ function decode($0, $1, $2) {
18848
19074
  return decodeEntity($2) || $0;
18849
19075
  }
18850
19076
 
18851
- // 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
18852
19078
  var own4 = {}.hasOwnProperty;
18853
19079
  var fromMarkdown = function(value, encoding, options) {
18854
19080
  if (typeof encoding !== "string") {
@@ -19313,9 +19539,9 @@ function compiler(options = {}) {
19313
19539
  }
19314
19540
  function onexitlabeltext(token) {
19315
19541
  const ancestor = this.stack[this.stack.length - 2];
19316
- const string3 = this.sliceSerialize(token);
19317
- ancestor.label = decodeString(string3);
19318
- ancestor.identifier = normalizeIdentifier(string3).toLowerCase();
19542
+ const string4 = this.sliceSerialize(token);
19543
+ ancestor.label = decodeString(string4);
19544
+ ancestor.identifier = normalizeIdentifier(string4).toLowerCase();
19319
19545
  }
19320
19546
  function onexitlabel() {
19321
19547
  const fragment = this.stack[this.stack.length - 1];
@@ -19519,7 +19745,7 @@ function extension(combined, extension2) {
19519
19745
  }
19520
19746
  }
19521
19747
 
19522
- // 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
19523
19749
  function remarkParse(options) {
19524
19750
  const parser = (doc) => {
19525
19751
  const settings = this.data("settings");
@@ -19531,13 +19757,13 @@ function remarkParse(options) {
19531
19757
  Object.assign(this, { Parser: parser });
19532
19758
  }
19533
19759
 
19534
- // 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
19535
19761
  var remark_parse_default = remarkParse;
19536
19762
 
19537
- // 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
19538
19764
  var import_remark_mdx = __toModule(require_remark_mdx());
19539
19765
 
19540
- // 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
19541
19767
  var convert = function(test) {
19542
19768
  if (test === void 0 || test === null) {
19543
19769
  return ok;
@@ -19596,12 +19822,12 @@ function ok() {
19596
19822
  return true;
19597
19823
  }
19598
19824
 
19599
- // 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
19600
19826
  function color(d) {
19601
19827
  return "" + d + "";
19602
19828
  }
19603
19829
 
19604
- // 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
19605
19831
  var CONTINUE = true;
19606
19832
  var SKIP = "skip";
19607
19833
  var EXIT = false;
@@ -19660,7 +19886,7 @@ function toResult(value) {
19660
19886
  return [value];
19661
19887
  }
19662
19888
 
19663
- // 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
19664
19890
  var visit = function(tree, test, visitor, reverse) {
19665
19891
  if (typeof test === "function" && typeof visitor !== "function") {
19666
19892
  reverse = visitor;
@@ -19674,8 +19900,8 @@ var visit = function(tree, test, visitor, reverse) {
19674
19900
  }
19675
19901
  };
19676
19902
 
19677
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/mdx/parse.ts
19678
- 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"));
19679
19905
  var parseMDX = (value, field) => {
19680
19906
  const tree = unified().use(remark_parse_default).use(import_remark_mdx.default).parse(value);
19681
19907
  return parseMDXInner(tree, field);
@@ -19695,7 +19921,7 @@ var parseMDXInner = (tree, field) => {
19695
19921
  return templateName === node.name;
19696
19922
  });
19697
19923
  if (!template) {
19698
- if ((0, import_lodash5.isNull)(node.name)) {
19924
+ if ((0, import_lodash4.isNull)(node.name)) {
19699
19925
  } else {
19700
19926
  throw new Error(`Found unregistered JSX or HTML: <${node.name}>. Please ensure all structured elements have been registered with your schema.`);
19701
19927
  }
@@ -20063,7 +20289,7 @@ function persistLeafFormats(children) {
20063
20289
  }, {});
20064
20290
  }
20065
20291
 
20066
- // 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
20067
20293
  var own5 = {}.hasOwnProperty;
20068
20294
  function zwitch(key2, options) {
20069
20295
  var settings = options || {};
@@ -20083,7 +20309,7 @@ function zwitch(key2, options) {
20083
20309
  return one2;
20084
20310
  }
20085
20311
 
20086
- // 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
20087
20313
  function configure2(base2, extension2) {
20088
20314
  let index2 = -1;
20089
20315
  let key2;
@@ -20105,7 +20331,7 @@ function configure2(base2, extension2) {
20105
20331
  return base2;
20106
20332
  }
20107
20333
 
20108
- // 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
20109
20335
  function containerFlow(parent, context) {
20110
20336
  const indexStack = context.indexStack;
20111
20337
  const children = parent.children || [];
@@ -20143,7 +20369,7 @@ function containerFlow(parent, context) {
20143
20369
  }
20144
20370
  }
20145
20371
 
20146
- // 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
20147
20373
  var eol = /\r?\n|\r/g;
20148
20374
  function indentLines(value, map3) {
20149
20375
  const result = [];
@@ -20163,18 +20389,18 @@ function indentLines(value, map3) {
20163
20389
  }
20164
20390
  }
20165
20391
 
20166
- // 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
20167
- 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) {
20168
20394
  const exit2 = context.enter("blockquote");
20169
20395
  const value = indentLines(containerFlow(node, context), map);
20170
20396
  exit2();
20171
20397
  return value;
20172
20398
  }
20173
- function map(line, _7, blank) {
20399
+ function map(line, _8, blank) {
20174
20400
  return ">" + (blank ? "" : " ") + line;
20175
20401
  }
20176
20402
 
20177
- // 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
20178
20404
  function patternInScope(stack, pattern) {
20179
20405
  return listInScope(stack, pattern.inConstruct, true) && !listInScope(stack, pattern.notInConstruct, false);
20180
20406
  }
@@ -20194,8 +20420,8 @@ function listInScope(stack, list3, none) {
20194
20420
  return false;
20195
20421
  }
20196
20422
 
20197
- // 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
20198
- 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) {
20199
20425
  let index2 = -1;
20200
20426
  while (++index2 < context.unsafe.length) {
20201
20427
  if (context.unsafe[index2].character === "\n" && patternInScope(context.stack, context.unsafe[index2])) {
@@ -20205,7 +20431,7 @@ function hardBreak(_7, _1, context, safe2) {
20205
20431
  return "\\\n";
20206
20432
  }
20207
20433
 
20208
- // 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
20209
20435
  function longestStreak(value, character) {
20210
20436
  var source = String(value);
20211
20437
  var index2 = source.indexOf(character);
@@ -20229,12 +20455,12 @@ function longestStreak(value, character) {
20229
20455
  return max;
20230
20456
  }
20231
20457
 
20232
- // 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
20233
20459
  function formatCodeAsIndented(node, context) {
20234
20460
  return Boolean(!context.options.fences && node.value && !node.lang && /[^ \r\n]/.test(node.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value));
20235
20461
  }
20236
20462
 
20237
- // 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
20238
20464
  function checkFence(context) {
20239
20465
  const marker = context.options.fence || "`";
20240
20466
  if (marker !== "`" && marker !== "~") {
@@ -20243,7 +20469,7 @@ function checkFence(context) {
20243
20469
  return marker;
20244
20470
  }
20245
20471
 
20246
- // 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
20247
20473
  function patternCompile(pattern) {
20248
20474
  if (!pattern._compiled) {
20249
20475
  const before = (pattern.atBreak ? "[\\r\\n][\\t ]*" : "") + (pattern.before ? "(?:" + pattern.before + ")" : "");
@@ -20252,7 +20478,7 @@ function patternCompile(pattern) {
20252
20478
  return pattern._compiled;
20253
20479
  }
20254
20480
 
20255
- // 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
20256
20482
  function safe(context, input, config) {
20257
20483
  const value = (config.before || "") + (input || "") + (config.after || "");
20258
20484
  const positions = [];
@@ -20334,8 +20560,8 @@ function escapeBackslashes(value, after) {
20334
20560
  return results.join("");
20335
20561
  }
20336
20562
 
20337
- // 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
20338
- 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) {
20339
20565
  const marker = checkFence(context);
20340
20566
  const raw = node.value || "";
20341
20567
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
@@ -20376,11 +20602,11 @@ function code(node, _7, context) {
20376
20602
  exit2();
20377
20603
  return value;
20378
20604
  }
20379
- function map2(line, _7, blank) {
20605
+ function map2(line, _8, blank) {
20380
20606
  return (blank ? "" : " ") + line;
20381
20607
  }
20382
20608
 
20383
- // 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
20384
20610
  function association(node) {
20385
20611
  if (node.label || !node.identifier) {
20386
20612
  return node.label || "";
@@ -20388,7 +20614,7 @@ function association(node) {
20388
20614
  return decodeString(node.identifier);
20389
20615
  }
20390
20616
 
20391
- // 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
20392
20618
  function checkQuote(context) {
20393
20619
  const marker = context.options.quote || '"';
20394
20620
  if (marker !== '"' && marker !== "'") {
@@ -20397,8 +20623,8 @@ function checkQuote(context) {
20397
20623
  return marker;
20398
20624
  }
20399
20625
 
20400
- // 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
20401
- 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) {
20402
20628
  const marker = checkQuote(context);
20403
20629
  const suffix = marker === '"' ? "Quote" : "Apostrophe";
20404
20630
  const exit2 = context.enter("definition");
@@ -20422,7 +20648,7 @@ function definition2(node, _7, context) {
20422
20648
  return value;
20423
20649
  }
20424
20650
 
20425
- // 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
20426
20652
  function checkEmphasis(context) {
20427
20653
  const marker = context.options.emphasis || "*";
20428
20654
  if (marker !== "*" && marker !== "_") {
@@ -20431,7 +20657,7 @@ function checkEmphasis(context) {
20431
20657
  return marker;
20432
20658
  }
20433
20659
 
20434
- // 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
20435
20661
  function containerPhrasing(parent, context, safeOptions) {
20436
20662
  const indexStack = context.indexStack;
20437
20663
  const children = parent.children || [];
@@ -20465,9 +20691,9 @@ function containerPhrasing(parent, context, safeOptions) {
20465
20691
  return results.join("");
20466
20692
  }
20467
20693
 
20468
- // 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
20469
20695
  emphasis.peek = emphasisPeek;
20470
- function emphasis(node, _7, context) {
20696
+ function emphasis(node, _8, context) {
20471
20697
  const marker = checkEmphasis(context);
20472
20698
  const exit2 = context.enter("emphasis");
20473
20699
  const value = containerPhrasing(node, context, {
@@ -20477,11 +20703,11 @@ function emphasis(node, _7, context) {
20477
20703
  exit2();
20478
20704
  return marker + value + marker;
20479
20705
  }
20480
- function emphasisPeek(_7, _1, context) {
20706
+ function emphasisPeek(_8, _1, context) {
20481
20707
  return context.options.emphasis || "*";
20482
20708
  }
20483
20709
 
20484
- // 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
20485
20711
  function formatHeadingAsSetext(node, context) {
20486
20712
  let literalWithBreak = false;
20487
20713
  visit(node, (node2) => {
@@ -20493,8 +20719,8 @@ function formatHeadingAsSetext(node, context) {
20493
20719
  return Boolean((!node.depth || node.depth < 3) && toString(node) && (context.options.setext || literalWithBreak));
20494
20720
  }
20495
20721
 
20496
- // 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
20497
- 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) {
20498
20724
  const rank = Math.max(Math.min(6, node.depth || 1), 1);
20499
20725
  if (formatHeadingAsSetext(node, context)) {
20500
20726
  const exit3 = context.enter("headingSetext");
@@ -20520,7 +20746,7 @@ function heading(node, _7, context) {
20520
20746
  return value;
20521
20747
  }
20522
20748
 
20523
- // 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
20524
20750
  html.peek = htmlPeek;
20525
20751
  function html(node) {
20526
20752
  return node.value || "";
@@ -20529,9 +20755,9 @@ function htmlPeek() {
20529
20755
  return "<";
20530
20756
  }
20531
20757
 
20532
- // 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
20533
20759
  image.peek = imagePeek;
20534
- function image(node, _7, context) {
20760
+ function image(node, _8, context) {
20535
20761
  const quote = checkQuote(context);
20536
20762
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
20537
20763
  const exit2 = context.enter("image");
@@ -20562,9 +20788,9 @@ function imagePeek() {
20562
20788
  return "!";
20563
20789
  }
20564
20790
 
20565
- // 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
20566
20792
  imageReference.peek = imageReferencePeek;
20567
- function imageReference(node, _7, context) {
20793
+ function imageReference(node, _8, context) {
20568
20794
  const type = node.referenceType;
20569
20795
  const exit2 = context.enter("imageReference");
20570
20796
  let subexit = context.enter("label");
@@ -20589,9 +20815,9 @@ function imageReferencePeek() {
20589
20815
  return "!";
20590
20816
  }
20591
20817
 
20592
- // 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
20593
20819
  inlineCode.peek = inlineCodePeek;
20594
- function inlineCode(node, _7, context) {
20820
+ function inlineCode(node, _8, context) {
20595
20821
  let value = node.value || "";
20596
20822
  let sequence = "`";
20597
20823
  let index2 = -1;
@@ -20621,15 +20847,15 @@ function inlineCodePeek() {
20621
20847
  return "`";
20622
20848
  }
20623
20849
 
20624
- // 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
20625
20851
  function formatLinkAsAutolink(node, context) {
20626
20852
  const raw = toString(node);
20627
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));
20628
20854
  }
20629
20855
 
20630
- // 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
20631
20857
  link.peek = linkPeek;
20632
- function link(node, _7, context) {
20858
+ function link(node, _8, context) {
20633
20859
  const quote = checkQuote(context);
20634
20860
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
20635
20861
  let exit2;
@@ -20668,13 +20894,13 @@ function link(node, _7, context) {
20668
20894
  exit2();
20669
20895
  return value;
20670
20896
  }
20671
- function linkPeek(node, _7, context) {
20897
+ function linkPeek(node, _8, context) {
20672
20898
  return formatLinkAsAutolink(node, context) ? "<" : "[";
20673
20899
  }
20674
20900
 
20675
- // 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
20676
20902
  linkReference.peek = linkReferencePeek;
20677
- function linkReference(node, _7, context) {
20903
+ function linkReference(node, _8, context) {
20678
20904
  const type = node.referenceType;
20679
20905
  const exit2 = context.enter("linkReference");
20680
20906
  let subexit = context.enter("label");
@@ -20699,7 +20925,7 @@ function linkReferencePeek() {
20699
20925
  return "[";
20700
20926
  }
20701
20927
 
20702
- // 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
20703
20929
  function checkBullet(context) {
20704
20930
  const marker = context.options.bullet || "*";
20705
20931
  if (marker !== "*" && marker !== "+" && marker !== "-") {
@@ -20708,7 +20934,7 @@ function checkBullet(context) {
20708
20934
  return marker;
20709
20935
  }
20710
20936
 
20711
- // 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
20712
20938
  function checkBulletOther(context) {
20713
20939
  const bullet = checkBullet(context);
20714
20940
  const bulletOther = context.options.bulletOther;
@@ -20724,7 +20950,7 @@ function checkBulletOther(context) {
20724
20950
  return bulletOther;
20725
20951
  }
20726
20952
 
20727
- // 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
20728
20954
  function checkBulletOrdered(context) {
20729
20955
  const marker = context.options.bulletOrdered || ".";
20730
20956
  if (marker !== "." && marker !== ")") {
@@ -20733,7 +20959,7 @@ function checkBulletOrdered(context) {
20733
20959
  return marker;
20734
20960
  }
20735
20961
 
20736
- // 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
20737
20963
  function checkBulletOrderedOther(context) {
20738
20964
  const bulletOrdered = checkBulletOrdered(context);
20739
20965
  const bulletOrderedOther = context.options.bulletOrderedOther;
@@ -20749,7 +20975,7 @@ function checkBulletOrderedOther(context) {
20749
20975
  return bulletOrderedOther;
20750
20976
  }
20751
20977
 
20752
- // 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
20753
20979
  function checkRule(context) {
20754
20980
  const marker = context.options.rule || "*";
20755
20981
  if (marker !== "*" && marker !== "-" && marker !== "_") {
@@ -20758,7 +20984,7 @@ function checkRule(context) {
20758
20984
  return marker;
20759
20985
  }
20760
20986
 
20761
- // 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
20762
20988
  function list2(node, parent, context) {
20763
20989
  const exit2 = context.enter("list");
20764
20990
  const bulletCurrent = context.bulletCurrent;
@@ -20796,7 +21022,7 @@ function list2(node, parent, context) {
20796
21022
  return value;
20797
21023
  }
20798
21024
 
20799
- // 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
20800
21026
  function checkListItemIndent(context) {
20801
21027
  const style = context.options.listItemIndent || "tab";
20802
21028
  if (style === 1 || style === "1") {
@@ -20808,7 +21034,7 @@ function checkListItemIndent(context) {
20808
21034
  return style;
20809
21035
  }
20810
21036
 
20811
- // 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
20812
21038
  function listItem(node, parent, context) {
20813
21039
  const listItemIndent = checkListItemIndent(context);
20814
21040
  let bullet = context.bulletCurrent || checkBullet(context);
@@ -20831,8 +21057,8 @@ function listItem(node, parent, context) {
20831
21057
  }
20832
21058
  }
20833
21059
 
20834
- // 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
20835
- 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) {
20836
21062
  const exit2 = context.enter("paragraph");
20837
21063
  const subexit = context.enter("phrasing");
20838
21064
  const value = containerPhrasing(node, context, { before: "\n", after: "\n" });
@@ -20841,12 +21067,12 @@ function paragraph(node, _7, context) {
20841
21067
  return value;
20842
21068
  }
20843
21069
 
20844
- // 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
20845
- 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) {
20846
21072
  return containerFlow(node, context);
20847
21073
  }
20848
21074
 
20849
- // 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
20850
21076
  function checkStrong(context) {
20851
21077
  const marker = context.options.strong || "*";
20852
21078
  if (marker !== "*" && marker !== "_") {
@@ -20855,9 +21081,9 @@ function checkStrong(context) {
20855
21081
  return marker;
20856
21082
  }
20857
21083
 
20858
- // 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
20859
21085
  strong.peek = strongPeek;
20860
- function strong(node, _7, context) {
21086
+ function strong(node, _8, context) {
20861
21087
  const marker = checkStrong(context);
20862
21088
  const exit2 = context.enter("strong");
20863
21089
  const value = containerPhrasing(node, context, {
@@ -20867,16 +21093,16 @@ function strong(node, _7, context) {
20867
21093
  exit2();
20868
21094
  return marker + marker + value + marker + marker;
20869
21095
  }
20870
- function strongPeek(_7, _1, context) {
21096
+ function strongPeek(_8, _1, context) {
20871
21097
  return context.options.strong || "*";
20872
21098
  }
20873
21099
 
20874
- // 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
20875
- 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) {
20876
21102
  return safe(context, node.value, safeOptions);
20877
21103
  }
20878
21104
 
20879
- // 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
20880
21106
  function checkRuleRepetition(context) {
20881
21107
  const repetition = context.options.ruleRepetition || 3;
20882
21108
  if (repetition < 3) {
@@ -20885,13 +21111,13 @@ function checkRuleRepetition(context) {
20885
21111
  return repetition;
20886
21112
  }
20887
21113
 
20888
- // 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
20889
- 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) {
20890
21116
  const value = (checkRule(context) + (context.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(context));
20891
21117
  return context.options.ruleSpaces ? value.slice(0, -1) : value;
20892
21118
  }
20893
21119
 
20894
- // 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
20895
21121
  var handle = {
20896
21122
  blockquote,
20897
21123
  break: hardBreak,
@@ -20915,7 +21141,7 @@ var handle = {
20915
21141
  thematicBreak: thematicBreak2
20916
21142
  };
20917
21143
 
20918
- // 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
20919
21145
  var join = [joinDefaults];
20920
21146
  function joinDefaults(left, right, parent, context) {
20921
21147
  if (right.type === "code" && formatCodeAsIndented(right, context) && (left.type === "list" || left.type === right.type && formatCodeAsIndented(left, context))) {
@@ -20932,7 +21158,7 @@ function joinDefaults(left, right, parent, context) {
20932
21158
  }
20933
21159
  }
20934
21160
 
20935
- // 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
20936
21162
  var unsafe = [
20937
21163
  { character: " ", after: "[\\r\\n]", inConstruct: "phrasing" },
20938
21164
  { character: " ", before: "[\\r\\n]", inConstruct: "phrasing" },
@@ -21007,7 +21233,7 @@ var unsafe = [
21007
21233
  { atBreak: true, character: "~" }
21008
21234
  ];
21009
21235
 
21010
- // 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
21011
21237
  function toMarkdown(tree, options = {}) {
21012
21238
  const context = {
21013
21239
  enter,
@@ -21053,7 +21279,7 @@ function joinDefinition(left, right) {
21053
21279
  }
21054
21280
  }
21055
21281
 
21056
- // 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
21057
21283
  var mdxExpressionToMarkdown = {
21058
21284
  handlers: {
21059
21285
  mdxFlowExpression: handleMdxExpression,
@@ -21069,11 +21295,11 @@ function handleMdxExpression(node) {
21069
21295
  return "{" + value + "}";
21070
21296
  }
21071
21297
 
21072
- // 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
21073
21299
  var own6 = {}.hasOwnProperty;
21074
21300
  var fromCharCode = String.fromCharCode;
21075
21301
 
21076
- // 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
21077
21303
  function core(value, options) {
21078
21304
  value = value.replace(options.subset ? charactersToExpression(options.subset) : /["&'<>`]/g, basic);
21079
21305
  if (options.subset || options.escapeOnly) {
@@ -21096,7 +21322,7 @@ function charactersToExpression(subset) {
21096
21322
  return new RegExp("(?:" + groups.join("|") + ")", "g");
21097
21323
  }
21098
21324
 
21099
- // 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
21100
21326
  var characterEntitiesHtml4 = {
21101
21327
  nbsp: "\xA0",
21102
21328
  iexcl: "\xA1",
@@ -21352,7 +21578,7 @@ var characterEntitiesHtml4 = {
21352
21578
  euro: "\u20AC"
21353
21579
  };
21354
21580
 
21355
- // 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
21356
21582
  var characters = {};
21357
21583
  var own7 = {}.hasOwnProperty;
21358
21584
  var key;
@@ -21362,20 +21588,20 @@ for (key in characterEntitiesHtml4) {
21362
21588
  }
21363
21589
  }
21364
21590
 
21365
- // 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
21366
21592
  var own8 = {}.hasOwnProperty;
21367
21593
 
21368
- // 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
21369
21595
  function formatBasic(code2) {
21370
21596
  return "&#x" + code2.toString(16).toUpperCase() + ";";
21371
21597
  }
21372
21598
 
21373
- // 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
21374
21600
  function stringifyEntitiesLight(value, options) {
21375
21601
  return core(value, Object.assign({ format: formatBasic }, options));
21376
21602
  }
21377
21603
 
21378
- // 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
21379
21605
  mdxElement.peek = peekElement;
21380
21606
  var mdxJsxToMarkdown = {
21381
21607
  handlers: {
@@ -21389,7 +21615,7 @@ var mdxJsxToMarkdown = {
21389
21615
  fences: true,
21390
21616
  resourceLink: true
21391
21617
  };
21392
- function mdxElement(node, _7, context) {
21618
+ function mdxElement(node, _8, context) {
21393
21619
  const selfClosing = node.name && (!node.children || node.children.length === 0);
21394
21620
  const quote = checkQuote(context);
21395
21621
  const exit2 = context.enter(node.type);
@@ -21425,27 +21651,27 @@ function peekElement() {
21425
21651
  }
21426
21652
  function indent(value) {
21427
21653
  return indentLines(value, map3);
21428
- function map3(line, _7, blank) {
21654
+ function map3(line, _8, blank) {
21429
21655
  return (blank ? "" : " ") + line;
21430
21656
  }
21431
21657
  }
21432
21658
 
21433
- // 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
21434
21660
  var mdxjsEsmToMarkdown = { handlers: { mdxjsEsm: handleMdxjsEsm } };
21435
21661
  function handleMdxjsEsm(node) {
21436
21662
  return node.value || "";
21437
21663
  }
21438
21664
 
21439
- // 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
21440
21666
  var mdxToMarkdown = {
21441
21667
  extensions: [mdxExpressionToMarkdown, mdxJsxToMarkdown, mdxjsEsmToMarkdown]
21442
21668
  };
21443
21669
 
21444
- // 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
21445
21671
  var stringifyMDX = (value, field) => {
21446
21672
  const slateTree = value.children;
21447
21673
  try {
21448
- const tree = slateTree.map((item) => stringify(item, field));
21674
+ const tree = stringifyChildren(slateTree, field);
21449
21675
  const out = toMarkdown({
21450
21676
  type: "root",
21451
21677
  children: tree
@@ -21457,6 +21683,15 @@ var stringifyMDX = (value, field) => {
21457
21683
  console.log(e);
21458
21684
  }
21459
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
+ };
21460
21695
  var stringify = (node, field) => {
21461
21696
  var _a;
21462
21697
  if (!node.type) {
@@ -21470,58 +21705,62 @@ var stringify = (node, field) => {
21470
21705
  return {
21471
21706
  type: "heading",
21472
21707
  depth: 1,
21473
- children: node.children.map((child) => stringify(child, field))
21708
+ children: stringifyChildren(node.children, field)
21474
21709
  };
21475
21710
  case plateElements.ELEMENT_H2:
21476
21711
  return {
21477
21712
  type: "heading",
21478
21713
  depth: 2,
21479
- children: node.children.map((child) => stringify(child, field))
21714
+ children: stringifyChildren(node.children, field)
21480
21715
  };
21481
21716
  case plateElements.ELEMENT_H3:
21482
21717
  return {
21483
21718
  type: "heading",
21484
21719
  depth: 3,
21485
- children: node.children.map((child) => stringify(child, field))
21720
+ children: stringifyChildren(node.children, field)
21486
21721
  };
21487
21722
  case plateElements.ELEMENT_H4:
21488
21723
  return {
21489
21724
  type: "heading",
21490
21725
  depth: 4,
21491
- children: node.children.map((child) => stringify(child, field))
21726
+ children: stringifyChildren(node.children, field)
21492
21727
  };
21493
21728
  case plateElements.ELEMENT_H5:
21494
21729
  return {
21495
21730
  type: "heading",
21496
21731
  depth: 5,
21497
- children: node.children.map((child) => stringify(child, field))
21732
+ children: stringifyChildren(node.children, field)
21498
21733
  };
21499
21734
  case plateElements.ELEMENT_H6:
21500
21735
  return {
21501
21736
  type: "heading",
21502
21737
  depth: 6,
21503
- children: node.children.map((child) => stringify(child, field))
21738
+ children: stringifyChildren(node.children, field)
21504
21739
  };
21505
21740
  case plateElements.ELEMENT_PARAGRAPH:
21741
+ const children = stringifyChildren(node.children, field);
21742
+ if (allChildrenEmpty(children)) {
21743
+ return false;
21744
+ }
21506
21745
  return {
21507
21746
  type: "paragraph",
21508
- children: node.children.map((child) => stringify(child, field))
21747
+ children
21509
21748
  };
21510
21749
  case plateElements.ELEMENT_CODE_BLOCK:
21511
21750
  return {
21512
21751
  type: "code",
21513
21752
  lang: node.lang,
21514
- value: node.children.map((child) => stringify(child, field)).join("\n")
21753
+ value: stringifyChildren(node.children, field).join("\n")
21515
21754
  };
21516
21755
  case "code_line":
21517
- return node.children.map((child) => child.text).join("\n");
21756
+ return stringifyChildren(node.children, field).join("\n");
21518
21757
  case plateElements.ELEMENT_UL:
21519
21758
  return {
21520
21759
  type: "list",
21521
21760
  ordered: false,
21522
21761
  spread: false,
21523
21762
  check: null,
21524
- children: node.children.map((child) => stringify(child, field))
21763
+ children: stringifyChildren(node.children, field)
21525
21764
  };
21526
21765
  case plateElements.ELEMENT_OL:
21527
21766
  return {
@@ -21529,7 +21768,7 @@ var stringify = (node, field) => {
21529
21768
  ordered: true,
21530
21769
  spread: false,
21531
21770
  check: null,
21532
- children: node.children.map((child) => stringify(child, field))
21771
+ children: stringifyChildren(node.children, field)
21533
21772
  };
21534
21773
  case plateElements.ELEMENT_LI:
21535
21774
  const realChildren = [];
@@ -21553,13 +21792,13 @@ var stringify = (node, field) => {
21553
21792
  check: null,
21554
21793
  children: [
21555
21794
  stringify(p, field),
21556
- ...extraChildren.map((child) => stringify(child, field))
21795
+ ...stringifyChildren(extraChildren, field)
21557
21796
  ]
21558
21797
  };
21559
21798
  case plateElements.ELEMENT_LIC:
21560
21799
  return {
21561
21800
  type: "paragraph",
21562
- children: node.children.map((child) => stringify(child, field))
21801
+ children: stringifyChildren(node.children, field)
21563
21802
  };
21564
21803
  case plateElements.ELEMENT_IMAGE:
21565
21804
  return {
@@ -21586,7 +21825,7 @@ var stringify = (node, field) => {
21586
21825
  case "mdxJsxTextElement":
21587
21826
  case "mdxJsxFlowElement":
21588
21827
  try {
21589
- let children = [];
21828
+ let children2 = [];
21590
21829
  const atts = [];
21591
21830
  const template = (_a = field.templates) == null ? void 0 : _a.find((fieldTemplate) => {
21592
21831
  if (typeof fieldTemplate === "string") {
@@ -21639,27 +21878,29 @@ var stringify = (node, field) => {
21639
21878
  const values = [];
21640
21879
  value.forEach((item) => {
21641
21880
  if (field2.fields) {
21642
- const v = {};
21881
+ const innerValue = {};
21643
21882
  if (typeof field2.fields === "string") {
21644
21883
  throw new Error(`Global templates not yet supported for rich text`);
21645
21884
  }
21646
- field2.fields.forEach((field3) => {
21647
- const fieldValue = item[field3.name];
21885
+ field2.fields.forEach((innerField) => {
21886
+ const fieldValue = item[innerField.name];
21648
21887
  if (fieldValue) {
21649
- switch (field3.type) {
21888
+ switch (innerField.type) {
21650
21889
  case "boolean":
21651
21890
  case "number":
21652
- v[field3.name] = `${fieldValue}`;
21891
+ innerValue[innerField.name] = `${fieldValue}`;
21653
21892
  break;
21654
21893
  case "image":
21655
21894
  case "datetime":
21656
21895
  case "string":
21657
- v[field3.name] = `"${fieldValue}"`;
21896
+ innerValue[innerField.name] = `"${fieldValue}"`;
21658
21897
  break;
21659
21898
  }
21660
21899
  }
21661
- values.push(v);
21662
21900
  });
21901
+ if (Object.entries(innerValue).length > 0) {
21902
+ values.push(innerValue);
21903
+ }
21663
21904
  } else {
21664
21905
  value.forEach((item2) => {
21665
21906
  const template2 = field2.templates.find((template3) => {
@@ -21751,7 +21992,7 @@ var stringify = (node, field) => {
21751
21992
  return true;
21752
21993
  });
21753
21994
  if (field2.name === "children") {
21754
- children = tree;
21995
+ children2 = tree;
21755
21996
  } else {
21756
21997
  const out = toMarkdown({
21757
21998
  type: "root",
@@ -21785,7 +22026,7 @@ ${out}
21785
22026
  }
21786
22027
  });
21787
22028
  return __spreadProps(__spreadValues({}, node), {
21788
- children,
22029
+ children: children2,
21789
22030
  attributes: atts
21790
22031
  });
21791
22032
  } catch (e) {
@@ -21803,7 +22044,8 @@ ${out}
21803
22044
  return { type: "text", value: "" };
21804
22045
  };
21805
22046
 
21806
- // 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"));
21807
22049
  var createResolver2 = (args) => {
21808
22050
  return new Resolver(args);
21809
22051
  };
@@ -21813,7 +22055,7 @@ var Resolver = class {
21813
22055
  this.resolveCollection = async (collectionName) => {
21814
22056
  const collection = this.tinaSchema.getCollection(collectionName);
21815
22057
  const extraFields = {};
21816
- const documents = await this.database.getDocumentsForCollection(collectionName);
22058
+ const documents = await this.getDocumentsForCollection(collectionName);
21817
22059
  return __spreadValues(__spreadValues({
21818
22060
  documents
21819
22061
  }, collection), extraFields);
@@ -21829,8 +22071,8 @@ var Resolver = class {
21829
22071
  data: rawData,
21830
22072
  collection
21831
22073
  });
21832
- const basename = import_path4.default.basename(fullPath);
21833
- const extension2 = import_path4.default.extname(fullPath);
22074
+ const basename = import_path3.default.basename(fullPath);
22075
+ const extension2 = import_path3.default.extname(fullPath);
21834
22076
  const filename = basename.replace(extension2, "");
21835
22077
  const relativePath = fullPath.replace("\\", "/").replace(collection.path, "").replace(/^\/|\/$/g, "");
21836
22078
  const breadcrumbs = filename.split("/");
@@ -21976,7 +22218,7 @@ var Resolver = class {
21976
22218
  const templateInfo = this.tinaSchema.getTemplatesForCollectable(collection);
21977
22219
  switch (templateInfo.type) {
21978
22220
  case "object":
21979
- await this.database.put(realPath, {});
22221
+ await this.database.addPendingDocument(realPath, {});
21980
22222
  break;
21981
22223
  case "union":
21982
22224
  const templateString = args.template;
@@ -21987,7 +22229,7 @@ var Resolver = class {
21987
22229
  if (!template) {
21988
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(" ")}`);
21989
22231
  }
21990
- await this.database.put(realPath, {
22232
+ await this.database.addPendingDocument(realPath, {
21991
22233
  _template: lastItem(template.namespace)
21992
22234
  });
21993
22235
  }
@@ -22047,12 +22289,12 @@ var Resolver = class {
22047
22289
  collectionLookup = Object.keys(args.params)[0];
22048
22290
  }
22049
22291
  const collectionNames = this.tinaSchema.getCollections().map((item) => item.name);
22050
- assertShape(collectionLookup, (yup2) => {
22051
- return yup2.mixed().oneOf(collectionNames);
22292
+ assertShape(collectionLookup, (yup3) => {
22293
+ return yup3.mixed().oneOf(collectionNames);
22052
22294
  }, `"collection" must be one of: [${collectionNames.join(", ")}] but got ${collectionLookup}`);
22053
- assertShape(args, (yup2) => yup2.object({ relativePath: yup2.string().required() }));
22295
+ assertShape(args, (yup3) => yup3.object({ relativePath: yup3.string().required() }));
22054
22296
  const collection = await this.tinaSchema.getCollection(collectionLookup);
22055
- 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);
22056
22298
  const alreadyExists = await this.database.documentExists(realPath);
22057
22299
  if (isMutation) {
22058
22300
  if (isCreation) {
@@ -22091,20 +22333,51 @@ var Resolver = class {
22091
22333
  })
22092
22334
  };
22093
22335
  };
22336
+ this.getDocumentsForCollection = async (collectionName) => {
22337
+ const collection = this.tinaSchema.getCollection(collectionName);
22338
+ return this.database.store.glob(collection.path, this.getDocument);
22339
+ };
22094
22340
  this.resolveCollectionConnection = async ({
22095
22341
  args,
22096
22342
  lookup
22097
22343
  }) => {
22098
- const documents = await this.database.getDocumentsForCollection(lookup.collection);
22099
- return {
22100
- totalCount: documents.length,
22101
- edges: await sequential(documents, async (filepath) => {
22102
- const document3 = await this.getDocument(filepath);
22103
- return {
22104
- node: document3
22105
- };
22106
- })
22107
- };
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
+ }
22375
+ return {
22376
+ totalCount: documents.length,
22377
+ edges: documents.map((document3) => {
22378
+ return { node: document3 };
22379
+ })
22380
+ };
22108
22381
  };
22109
22382
  this.buildFieldMutations = (fieldParams, template) => {
22110
22383
  const accum = {};
@@ -22149,7 +22422,7 @@ var Resolver = class {
22149
22422
  if (!rawData) {
22150
22423
  return void 0;
22151
22424
  }
22152
- assertShape(rawData, (yup2) => yup2.object());
22425
+ assertShape(rawData, (yup3) => yup3.object());
22153
22426
  const value = rawData[field.name];
22154
22427
  switch (field.type) {
22155
22428
  case "string":
@@ -22161,19 +22434,15 @@ var Resolver = class {
22161
22434
  accumulator[field.name] = value;
22162
22435
  break;
22163
22436
  case "rich-text":
22164
- if (typeof value === "string") {
22165
- const tree = parseMDX(value, field);
22166
- accumulator[field.name] = tree;
22167
- } else {
22168
- throw new Error(`Expected value for rich-text to be of type string`);
22169
- }
22437
+ const tree = parseMDX(value, field);
22438
+ accumulator[field.name] = tree;
22170
22439
  break;
22171
22440
  case "object":
22172
22441
  if (field.list) {
22173
22442
  if (!value) {
22174
22443
  return;
22175
22444
  }
22176
- assertShape(value, (yup2) => yup2.array().of(yup2.object().required()));
22445
+ assertShape(value, (yup3) => yup3.array().of(yup3.object().required()));
22177
22446
  accumulator[field.name] = await sequential(value, async (item) => {
22178
22447
  const template = await this.tinaSchema.getTemplateForData({
22179
22448
  data: item,
@@ -22217,15 +22486,15 @@ var Resolver = class {
22217
22486
  };
22218
22487
  this.buildParams = (args) => {
22219
22488
  try {
22220
- assertShape(args, (yup2) => yup2.object({
22221
- collection: yup2.string().required(),
22222
- params: yup2.object().required()
22489
+ assertShape(args, (yup3) => yup3.object({
22490
+ collection: yup3.string().required(),
22491
+ params: yup3.object().required()
22223
22492
  }));
22224
22493
  return args.params[args.collection];
22225
22494
  } catch (e) {
22226
22495
  }
22227
- assertShape(args, (yup2) => yup2.object({
22228
- params: yup2.object().required()
22496
+ assertShape(args, (yup3) => yup3.object({
22497
+ params: yup3.object().required()
22229
22498
  }));
22230
22499
  return args.params;
22231
22500
  };
@@ -22335,17 +22604,18 @@ var Resolver = class {
22335
22604
  component: "rich-text"
22336
22605
  }), extraFields);
22337
22606
  case "reference":
22338
- const documents = import_lodash6.default.flatten(await sequential(field.collections, async (collectionName) => {
22339
- 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);
22340
22610
  }));
22341
22611
  return __spreadValues(__spreadProps(__spreadValues({}, field), {
22342
22612
  component: "reference",
22343
22613
  options: [
22344
22614
  { label: "Choose an option", value: "" },
22345
- ...documents.map((filepath) => {
22615
+ ...documents.map((document3) => {
22346
22616
  return {
22347
- value: filepath,
22348
- label: filepath
22617
+ value: document3,
22618
+ label: document3
22349
22619
  };
22350
22620
  })
22351
22621
  ]
@@ -22366,7 +22636,7 @@ var resolveDateInput = (value) => {
22366
22636
  return date.toISOString();
22367
22637
  };
22368
22638
 
22369
- // 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
22370
22640
  var resolve = async ({
22371
22641
  query,
22372
22642
  variables,
@@ -22374,28 +22644,28 @@ var resolve = async ({
22374
22644
  }) => {
22375
22645
  try {
22376
22646
  const graphQLSchemaAst = await database.getGraphQLSchema();
22377
- const graphQLSchema = (0, import_graphql4.buildASTSchema)(graphQLSchemaAst);
22647
+ const graphQLSchema = (0, import_graphql3.buildASTSchema)(graphQLSchemaAst);
22378
22648
  const config = await database.getTinaSchema();
22379
22649
  const tinaSchema = await createSchema({ schema: config });
22380
22650
  const resolver2 = await createResolver2({ database, tinaSchema });
22381
22651
  const paths = [];
22382
22652
  const mutationPaths = [];
22383
- const ast = (0, import_graphql4.parse)(query);
22384
- const typeInfo = new import_graphql4.TypeInfo(graphQLSchema);
22653
+ const ast = (0, import_graphql3.parse)(query);
22654
+ const typeInfo = new import_graphql3.TypeInfo(graphQLSchema);
22385
22655
  const referencePathVisitor = () => {
22386
22656
  return {
22387
22657
  leave: {
22388
- Field(node, key2, parent, path8, ancestors) {
22658
+ Field(node, key2, parent, path11, ancestors) {
22389
22659
  const type = typeInfo.getType();
22390
22660
  if (type) {
22391
- const realType = (0, import_graphql4.getNamedType)(type);
22392
- if (realType instanceof import_graphql4.GraphQLUnionType) {
22661
+ const realType = (0, import_graphql3.getNamedType)(type);
22662
+ if (realType instanceof import_graphql3.GraphQLUnionType) {
22393
22663
  const hasNodeInterface = !!realType.getTypes().find((objectType) => objectType.getInterfaces().find((intfc) => intfc.name === "Node"));
22394
22664
  if (hasNodeInterface) {
22395
22665
  const p = [];
22396
22666
  ancestors.forEach((item, index2) => {
22397
22667
  var _a;
22398
- const activePath = path8[index2];
22668
+ const activePath = path11[index2];
22399
22669
  const result = item[activePath];
22400
22670
  if ((_a = result == null ? void 0 : result.name) == null ? void 0 : _a.value) {
22401
22671
  if (result.kind === "Field") {
@@ -22417,8 +22687,8 @@ var resolve = async ({
22417
22687
  }
22418
22688
  };
22419
22689
  };
22420
- (0, import_graphql4.visit)(ast, (0, import_graphql4.visitWithTypeInfo)(typeInfo, referencePathVisitor()));
22421
- 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)({
22422
22692
  schema: graphQLSchema,
22423
22693
  source: query,
22424
22694
  variableValues: variables,
@@ -22428,7 +22698,7 @@ var resolve = async ({
22428
22698
  typeResolver: async (source, _args, info) => {
22429
22699
  if (source.__typename)
22430
22700
  return source.__typename;
22431
- const namedType = (0, import_graphql4.getNamedType)(info.returnType).toString();
22701
+ const namedType = (0, import_graphql3.getNamedType)(info.returnType).toString();
22432
22702
  const lookup = await database.getLookup(namedType);
22433
22703
  if (lookup.resolveType === "unionData") {
22434
22704
  return lookup.typeMap[source._template];
@@ -22438,7 +22708,7 @@ var resolve = async ({
22438
22708
  },
22439
22709
  fieldResolver: async (source = {}, _args = {}, _context, info) => {
22440
22710
  const args = JSON.parse(JSON.stringify(_args));
22441
- const returnType = (0, import_graphql4.getNamedType)(info.returnType).toString();
22711
+ const returnType = (0, import_graphql3.getNamedType)(info.returnType).toString();
22442
22712
  const lookup = await database.getLookup(returnType);
22443
22713
  const isMutation = info.parentType.toString() === "Mutation";
22444
22714
  const value = source[info.fieldName];
@@ -22462,7 +22732,7 @@ var resolve = async ({
22462
22732
  const isCreation = lookup[info.fieldName] === "create";
22463
22733
  switch (lookup.resolveType) {
22464
22734
  case "nodeDocument":
22465
- assertShape(args, (yup2) => yup2.object({ id: yup2.string().required() }));
22735
+ assertShape(args, (yup3) => yup3.object({ id: yup3.string().required() }));
22466
22736
  return resolver2.getDocument(args.id);
22467
22737
  case "multiCollectionDocument":
22468
22738
  if (typeof value === "string") {
@@ -22498,10 +22768,16 @@ var resolve = async ({
22498
22768
  }
22499
22769
  return value;
22500
22770
  case "multiCollectionDocumentList":
22501
- assertShape(value, (yup2) => yup2.array().of(yup2.string()));
22502
- return resolver2.resolveCollectionConnections({
22503
- ids: value || []
22504
- });
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
+ }
22505
22781
  case "collectionDocument":
22506
22782
  if (value) {
22507
22783
  return value;
@@ -22535,20 +22811,24 @@ var resolve = async ({
22535
22811
  }
22536
22812
  });
22537
22813
  paths.forEach((p) => {
22538
- 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));
22539
22815
  if (item) {
22540
22816
  item.paths = [...item.paths || [], p];
22541
22817
  }
22542
22818
  });
22543
22819
  mutationPaths.forEach((mutationPath) => {
22544
- const item = import_lodash7.default.get(res, mutationPath.path);
22820
+ const item = import_lodash6.default.get(res, mutationPath.path);
22545
22821
  if (item) {
22546
22822
  item.mutationInfo = mutationPath;
22547
22823
  }
22548
22824
  });
22825
+ if (res.errors) {
22826
+ console.error(res.errors);
22827
+ }
22549
22828
  return res;
22550
22829
  } catch (e) {
22551
- if (e instanceof import_graphql4.GraphQLError) {
22830
+ console.error(e);
22831
+ if (e instanceof import_graphql3.GraphQLError) {
22552
22832
  return {
22553
22833
  errors: [e]
22554
22834
  };
@@ -22557,17 +22837,17 @@ var resolve = async ({
22557
22837
  }
22558
22838
  }
22559
22839
  };
22560
- var buildPath = (path8, accum) => {
22561
- if (path8.prev) {
22562
- buildPath(path8.prev, accum);
22840
+ var buildPath = (path11, accum) => {
22841
+ if (path11.prev) {
22842
+ buildPath(path11.prev, accum);
22563
22843
  }
22564
- accum.push(path8.key);
22844
+ accum.push(path11.key);
22565
22845
  return accum;
22566
22846
  };
22567
- var buildReferenceQuery = (fieldNode, path8) => {
22847
+ var buildReferenceQuery = (fieldNode, path11) => {
22568
22848
  if (fieldNode) {
22569
- const p = path8.map((item) => item === "data" ? "form" : item);
22570
- const dataPath = path8;
22849
+ const p = path11.map((item) => item === "data" ? "form" : item);
22850
+ const dataPath = path11;
22571
22851
  const newNode = __spreadProps(__spreadValues({}, fieldNode), {
22572
22852
  name: { kind: "Name", value: "node" },
22573
22853
  arguments: [
@@ -22621,7 +22901,7 @@ var buildReferenceQuery = (fieldNode, path8) => {
22621
22901
  selections: [newNode]
22622
22902
  }
22623
22903
  };
22624
- const queryString = (0, import_graphql4.print)(q);
22904
+ const queryString = (0, import_graphql3.print)(q);
22625
22905
  return {
22626
22906
  path: ["data", ...p.slice(0, -1)],
22627
22907
  dataPath,
@@ -22732,10 +23012,10 @@ function addFragmentsToQuery(info, fieldNode, q) {
22732
23012
  subFrags: []
22733
23013
  };
22734
23014
  frags.push(frag);
22735
- (0, import_graphql4.visit)(fragmentDefinition, fragmentSpreadVisitor(frag));
23015
+ (0, import_graphql3.visit)(fragmentDefinition, fragmentSpreadVisitor(frag));
22736
23016
  });
22737
23017
  const n = {
22738
- query: (0, import_graphql4.print)(fieldNode),
23018
+ query: (0, import_graphql3.print)(fieldNode),
22739
23019
  fragments: []
22740
23020
  };
22741
23021
  const visitor = {
@@ -22745,7 +23025,7 @@ function addFragmentsToQuery(info, fieldNode, q) {
22745
23025
  }
22746
23026
  }
22747
23027
  };
22748
- (0, import_graphql4.visit)(fieldNode, visitor);
23028
+ (0, import_graphql3.visit)(fieldNode, visitor);
22749
23029
  const getFrags = (fragNames, accum) => {
22750
23030
  fragNames.forEach((fragName) => {
22751
23031
  const frag = frags.find((f) => f.name === fragName);
@@ -22760,73 +23040,94 @@ function addFragmentsToQuery(info, fieldNode, q) {
22760
23040
  return accum;
22761
23041
  };
22762
23042
  const fragss = getFrags(n.fragments, []);
22763
- const queryString = `${fragss.map((f) => (0, import_graphql4.print)(f)).join("\n")}
22764
- ${(0, import_graphql4.print)(q)}`;
23043
+ const queryString = `${fragss.map((f) => (0, import_graphql3.print)(f)).join("\n")}
23044
+ ${(0, import_graphql3.print)(q)}`;
22765
23045
  return queryString;
22766
23046
  }
22767
23047
 
22768
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/index.ts
22769
- 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"));
22770
23051
 
22771
- // 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
22772
23053
  var import_gray_matter = __toModule(require("gray-matter"));
22773
- var import_path6 = __toModule(require("path"));
22774
-
22775
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/database/bridge.ts
22776
- var import_fs_extra2 = __toModule(require("fs-extra"));
22777
- var import_fast_glob = __toModule(require("fast-glob"));
22778
- var import_path5 = __toModule(require("path"));
22779
- var import_normalize_path = __toModule(require("normalize-path"));
22780
- var FilesystemBridge = class {
22781
- constructor(rootPath) {
22782
- this.rootPath = rootPath || "";
22783
- }
22784
- async glob(pattern) {
22785
- const basePath = import_path5.default.join(this.rootPath, ...pattern.split("/"));
22786
- const items = await (0, import_fast_glob.default)(import_path5.default.join(basePath, "**", "/*").replace(/\\/g, "/"), {
22787
- dot: true
22788
- });
22789
- const posixRootPath = (0, import_normalize_path.default)(this.rootPath);
22790
- return items.map((item) => {
22791
- return item.replace(posixRootPath, "").replace(/^\/|\/$/g, "");
22792
- });
22793
- }
22794
- async get(filepath) {
22795
- 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}`);
22796
23085
  }
22797
- async put(filepath, data) {
22798
- 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}`);
22799
23105
  }
22800
23106
  };
22801
23107
 
22802
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/database/index.ts
22803
- 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"));
22804
23110
  var createDatabase = async (config) => {
22805
- return new Database(config);
23111
+ return new Database(__spreadProps(__spreadValues({}, config), {
23112
+ bridge: config.bridge,
23113
+ store: config.store
23114
+ }));
22806
23115
  };
22807
23116
  var SYSTEM_FILES = ["_schema", "_graphql", "_lookup"];
22808
- var GENERATED_FOLDER = import_path6.default.join(".tina", "__generated__");
23117
+ var GENERATED_FOLDER = import_path4.default.join(".tina", "__generated__");
22809
23118
  var Database = class {
22810
23119
  constructor(config) {
22811
23120
  this.config = config;
22812
23121
  this.get = async (filepath) => {
22813
- var _a;
22814
23122
  if (SYSTEM_FILES.includes(filepath)) {
22815
- try {
22816
- const dataString = await this.bridge.get(import_path6.default.join(GENERATED_FOLDER, `${filepath}.json`));
22817
- return JSON.parse(dataString);
22818
- } catch (err) {
22819
- if (err instanceof import_graphql5.GraphQLError && ((_a = err.extensions) == null ? void 0 : _a.status) === 404) {
22820
- throw new import_graphql5.GraphQLError(`${err.toString()}. Please confirm this location is correct and contains a '.tina' folder and a valid '.tina/schema.ts'.`);
22821
- } else {
22822
- throw err;
22823
- }
22824
- }
23123
+ throw new Error(`Unexpected get for config file ${filepath}`);
22825
23124
  } else {
22826
23125
  const tinaSchema = await this.getSchema();
22827
- const extension2 = import_path6.default.extname(filepath);
22828
- const contentString = await this.bridge.get(filepath);
22829
- const contentObject = this.parseFile(contentString, extension2, (yup2) => yup2.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
+ }
22830
23131
  const templateName = hasOwnProperty2(contentObject, "_template") && typeof contentObject._template === "string" ? contentObject._template : void 0;
22831
23132
  const { collection, template } = await tinaSchema.getCollectionAndTemplateByFullPath(filepath, templateName);
22832
23133
  const field = template.fields.find((field2) => {
@@ -22840,22 +23141,70 @@ var Database = class {
22840
23141
  let data = contentObject;
22841
23142
  if ((extension2 === ".md" || extension2 === ".mdx") && field) {
22842
23143
  if (hasOwnProperty2(contentObject, "$_body")) {
22843
- const _b = contentObject, { $_body } = _b, rest = __objRest(_b, ["$_body"]);
23144
+ const _a = contentObject, { $_body } = _a, rest = __objRest(_a, ["$_body"]);
22844
23145
  data = rest;
22845
23146
  data[field.name] = $_body;
22846
23147
  }
22847
23148
  }
22848
23149
  return __spreadProps(__spreadValues({}, data), {
22849
23150
  _collection: collection.name,
23151
+ _keepTemplateKey: !!collection.templates,
22850
23152
  _template: lastItem(template.namespace),
22851
23153
  _relativePath: filepath.replace(collection.path, "").replace(/^\/|\/$/g, ""),
22852
23154
  _id: filepath
22853
23155
  });
22854
23156
  }
22855
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
+ };
22856
23165
  this.put = async (filepath, data) => {
22857
23166
  if (SYSTEM_FILES.includes(filepath)) {
22858
- 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}`);
22859
23208
  } else {
22860
23209
  const tinaSchema = await this.getSchema();
22861
23210
  const collection = await tinaSchema.getCollectionByFullPath(filepath);
@@ -22893,32 +23242,36 @@ var Database = class {
22893
23242
  } else {
22894
23243
  payload = data;
22895
23244
  }
22896
- const extension2 = import_path6.default.extname(filepath);
22897
- const stringData = this.stringifyFile(payload, extension2, templateInfo.type === "union");
22898
- 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 };
22899
23248
  }
22900
- 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;
22901
23254
  };
22902
23255
  this.getLookup = async (returnType) => {
23256
+ const lookupPath = import_path4.default.join(GENERATED_FOLDER, `_lookup.json`);
22903
23257
  if (!this._lookup) {
22904
- const _lookup = await this.get("_lookup");
23258
+ const _lookup = await this.store.get(lookupPath);
22905
23259
  this._lookup = _lookup;
22906
23260
  }
22907
23261
  return this._lookup[returnType];
22908
23262
  };
22909
23263
  this.getGraphQLSchema = async () => {
22910
- if (!this._graphql) {
22911
- const _graphql = await this.get("_graphql");
22912
- this._graphql = _graphql;
22913
- }
22914
- return this._graphql;
23264
+ const graphqlPath = import_path4.default.join(GENERATED_FOLDER, `_graphql.json`);
23265
+ return this.store.get(graphqlPath);
23266
+ };
23267
+ this.getGraphQLSchemaFromBridge = async () => {
23268
+ const graphqlPath = import_path4.default.join(GENERATED_FOLDER, `_graphql.json`);
23269
+ const _graphql = await this.bridge.get(graphqlPath);
23270
+ return JSON.parse(_graphql);
22915
23271
  };
22916
23272
  this.getTinaSchema = async () => {
22917
- if (!this._tinaSchema) {
22918
- const _tinaSchema = await this.get("_schema");
22919
- this._tinaSchema = _tinaSchema;
22920
- }
22921
- return this._tinaSchema;
23273
+ const schemaPath = import_path4.default.join(GENERATED_FOLDER, `_schema.json`);
23274
+ return this.store.get(schemaPath);
22922
23275
  };
22923
23276
  this.getSchema = async () => {
22924
23277
  if (this.tinaSchema) {
@@ -22928,138 +23281,632 @@ var Database = class {
22928
23281
  this.tinaSchema = await createSchema({ schema });
22929
23282
  return this.tinaSchema;
22930
23283
  };
22931
- this.getDocument = async (fullPath) => {
22932
- if (typeof fullPath !== "string") {
22933
- throw new Error(`fullPath must be of type string for getDocument request`);
22934
- }
22935
- const data = await this.get(fullPath);
22936
- return {
22937
- __typename: NAMER.documentTypeName([data._collection]),
22938
- id: fullPath,
22939
- data
22940
- };
22941
- };
22942
23284
  this.documentExists = async (fullpath) => {
22943
23285
  try {
22944
- await this.getDocument(fullpath);
23286
+ await this.get(fullpath);
22945
23287
  } catch (e) {
22946
23288
  return false;
22947
23289
  }
22948
23290
  return true;
22949
23291
  };
22950
- this.getDocumentsForCollection = async (collectionName) => {
22951
- const tinaSchema = await this.getSchema();
22952
- const collection = await tinaSchema.getCollection(collectionName);
22953
- return this.bridge.glob(collection.path);
23292
+ this.query = async (queryStrings, hydrator) => {
23293
+ return await this.store.query(queryStrings, hydrator);
23294
+ };
23295
+ this.indexData = async ({
23296
+ graphQLSchema,
23297
+ tinaSchema
23298
+ }) => {
23299
+ if (!this.bridge.supportsBuilding()) {
23300
+ throw new Error(`Schema cannot be built with provided Bridge`);
23301
+ }
23302
+ const graphqlPath = import_path4.default.join(GENERATED_FOLDER, `_graphql.json`);
23303
+ const schemaPath = import_path4.default.join(GENERATED_FOLDER, `_schema.json`);
23304
+ await this.bridge.putConfig(graphqlPath, JSON.stringify(graphQLSchema, null, 2));
23305
+ await this.bridge.putConfig(schemaPath, JSON.stringify(tinaSchema.schema, null, 2));
23306
+ const lookup = JSON.parse(await this.bridge.get(import_path4.default.join(GENERATED_FOLDER, "_lookup.json")));
23307
+ if (this.store.supportsSeeding()) {
23308
+ this.store.clear();
23309
+ await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_graphql.json"), graphQLSchema);
23310
+ await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_schema.json"), tinaSchema.schema);
23311
+ await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_lookup.json"), lookup);
23312
+ await _indexContent(tinaSchema, this);
23313
+ } else {
23314
+ if (this.store.supportsIndexing()) {
23315
+ throw new Error(`Schema must be indexed with provided Store`);
23316
+ }
23317
+ }
22954
23318
  };
22955
23319
  this.addToLookupMap = async (lookup) => {
23320
+ const lookupPath = import_path4.default.join(GENERATED_FOLDER, `_lookup.json`);
22956
23321
  let lookupMap;
22957
23322
  try {
22958
- lookupMap = await this.get("_lookup");
23323
+ lookupMap = JSON.parse(await this.bridge.get(lookupPath));
22959
23324
  } catch (e) {
22960
23325
  lookupMap = {};
22961
23326
  }
22962
- await this.put("_lookup", __spreadProps(__spreadValues({}, lookupMap), { [lookup.type]: lookup }));
22963
- };
22964
- this.stringifyFile = (content3, format, keepTemplateKey) => {
22965
- switch (format) {
22966
- case ".markdown":
22967
- case ".mdx":
22968
- case ".md":
22969
- const _a = content3, { _id, _template, _collection, $_body } = _a, rest = __objRest(_a, ["_id", "_template", "_collection", "$_body"]);
22970
- const extra = {};
22971
- if (keepTemplateKey) {
22972
- extra["_template"] = _template;
22973
- }
22974
- return import_gray_matter.default.stringify(typeof $_body === "undefined" ? "" : `
22975
- ${$_body}`, __spreadValues(__spreadValues({}, rest), extra));
22976
- case ".json":
22977
- return JSON.stringify(content3, null, 2);
22978
- default:
22979
- throw new Error(`Must specify a valid format, got ${format}`);
22980
- }
22981
- };
22982
- this.parseFile = (content3, format, yupSchema) => {
22983
- switch (format) {
22984
- case ".markdown":
22985
- case ".mdx":
22986
- case ".md":
22987
- const contentJSON = (0, import_gray_matter.default)(content3 || "");
22988
- const markdownData = __spreadProps(__spreadValues({}, contentJSON.data), {
22989
- $_body: contentJSON.content
22990
- });
22991
- assertShape(markdownData, yupSchema);
22992
- return markdownData;
22993
- case ".json":
22994
- if (!content3) {
22995
- return {};
22996
- }
22997
- return JSON.parse(content3);
22998
- default:
22999
- throw new Error(`Must specify a valid format, got ${format}`);
23000
- }
23327
+ const updatedLookup = __spreadProps(__spreadValues({}, lookupMap), {
23328
+ [lookup.type]: lookup
23329
+ });
23330
+ await this.bridge.putConfig(lookupPath, JSON.stringify(updatedLookup, null, 2));
23001
23331
  };
23002
- this.bridge = config.bridge || new FilesystemBridge(config.rootPath || "");
23332
+ this.bridge = config.bridge;
23333
+ this.store = config.store;
23003
23334
  }
23004
23335
  };
23005
23336
  function hasOwnProperty2(obj, prop) {
23006
23337
  return obj.hasOwnProperty(prop);
23007
23338
  }
23008
-
23009
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/primitives/index.ts
23010
- var gql = async ({
23011
- rootPath,
23012
- query,
23013
- variables
23339
+ var _indexContent = async (tinaSchema, database) => {
23340
+ await sequential(tinaSchema.getCollections(), async (collection) => {
23341
+ const documentPaths = await database.bridge.glob(collection.path);
23342
+ await sequential(documentPaths, async (documentPath) => {
23343
+ const dataString = await database.bridge.get(documentPath);
23344
+ const data = parseFile(dataString, import_path4.default.extname(documentPath), (yup3) => yup3.object({}));
23345
+ if (database.store.supportsSeeding()) {
23346
+ await database.store.seed(documentPath, data);
23347
+ }
23348
+ if (database.store.supportsIndexing()) {
23349
+ return indexDocument({ documentPath, collection, data, database });
23350
+ }
23351
+ });
23352
+ });
23353
+ };
23354
+ var indexDocument = async ({
23355
+ documentPath,
23356
+ data,
23357
+ collection,
23358
+ database
23014
23359
  }) => {
23015
- const database = await createDatabase({
23016
- rootPath
23360
+ const attributes = await _indexCollectable({
23361
+ record: documentPath,
23362
+ field: collection,
23363
+ value: data,
23364
+ prefix: `${lastItem(collection.namespace)}`,
23365
+ database
23017
23366
  });
23018
- return resolve({
23019
- database,
23020
- query,
23021
- variables
23367
+ await sequential(attributes, async (fieldName) => {
23368
+ const existingRecords = await database.store.get(fieldName) || [];
23369
+ const uniqueItems = [...new Set([...existingRecords, documentPath])];
23370
+ await database.store.seed(fieldName, uniqueItems);
23022
23371
  });
23023
23372
  };
23024
- var githubRoute = async (_a) => {
23373
+ var _indexCollectable = async (_a) => {
23025
23374
  var _b = _a, {
23026
- rootPath = "",
23027
- query,
23028
- variables,
23029
- branch
23030
- } = _b, githubArgs = __objRest(_b, [
23031
- "rootPath",
23032
- "query",
23033
- "variables",
23034
- "branch"
23375
+ field,
23376
+ value
23377
+ } = _b, rest = __objRest(_b, [
23378
+ "field",
23379
+ "value"
23035
23380
  ]);
23036
- const gh = new GithubBridge(__spreadValues({
23037
- rootPath,
23038
- ref: branch
23039
- }, githubArgs));
23040
- const database = await createDatabase({
23041
- bridge: gh
23042
- });
23043
- return resolve({
23044
- database,
23045
- query,
23046
- variables
23381
+ let template;
23382
+ let extra = "";
23383
+ if (field.templates) {
23384
+ template = field.templates.find((t) => {
23385
+ if (typeof t === "string") {
23386
+ throw new Error(`Global templates not yet supported`);
23387
+ }
23388
+ if (hasOwnProperty2(value, "_template")) {
23389
+ return t.name === value._template;
23390
+ } else {
23391
+ throw new Error(`Expected value for collectable with multiple templates to have property _template`);
23392
+ }
23393
+ });
23394
+ extra = `#${lastItem(template.namespace)}`;
23395
+ } else {
23396
+ template = field;
23397
+ }
23398
+ const atts = await _indexAttributes({
23399
+ record: rest.record,
23400
+ data: value,
23401
+ prefix: `${rest.prefix}${extra}#${template.name}`,
23402
+ fields: template.fields,
23403
+ database: rest.database
23047
23404
  });
23405
+ return (0, import_lodash7.flatten)(atts).filter((item) => !(0, import_lodash7.isBoolean)(item));
23048
23406
  };
23049
- var buildSchema = async (rootPath) => {
23050
- const config = await import_fs_extra3.default.readFileSync(import_path7.default.join(rootPath, ".tina", "__generated__", "config", "schema.json")).toString();
23051
- const database = await createDatabase({
23052
- rootPath
23407
+ var _indexAttributes = async (_a) => {
23408
+ var _b = _a, {
23409
+ data,
23410
+ fields
23411
+ } = _b, rest = __objRest(_b, [
23412
+ "data",
23413
+ "fields"
23414
+ ]);
23415
+ return sequential(fields, async (field) => {
23416
+ const value = data[field.name];
23417
+ if (!value) {
23418
+ return true;
23419
+ }
23420
+ switch (field.type) {
23421
+ case "boolean":
23422
+ case "string":
23423
+ case "number":
23424
+ case "datetime":
23425
+ return _indexAttribute(__spreadValues({ value, field }, rest));
23426
+ case "object":
23427
+ if (field.list) {
23428
+ await sequential(value, async (item) => {
23429
+ return _indexCollectable(__spreadValues({ field, value: item }, rest));
23430
+ });
23431
+ } else {
23432
+ return _indexCollectable(__spreadValues({ field, value }, rest));
23433
+ }
23434
+ return true;
23435
+ case "reference":
23436
+ return _indexAttribute(__spreadValues({ value, field }, rest));
23437
+ }
23438
+ return true;
23053
23439
  });
23054
- await indexDB({ database, config: JSON.parse(config) });
23055
- const gqlAst = await database.getGraphQLSchema();
23056
- return (0, import_graphql6.buildASTSchema)(gqlAst);
23440
+ };
23441
+ var _indexAttribute = async ({
23442
+ record,
23443
+ value,
23444
+ prefix,
23445
+ field,
23446
+ database
23447
+ }) => {
23448
+ const stringValue = value.toString().substr(0, 100);
23449
+ const fieldName = `__attribute__${prefix}#${field.name}#${stringValue}`;
23450
+ return fieldName;
23057
23451
  };
23058
23452
 
23059
- // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/src/index.ts
23453
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/bridge/github.ts
23454
+ var import_lodash8 = __toModule(require("lodash"));
23455
+ var import_path5 = __toModule(require("path"));
23456
+ var import_rest = __toModule(require("@octokit/rest"));
23457
+ var import_graphql5 = __toModule(require("graphql"));
23458
+ var GithubBridge = class {
23459
+ constructor({ rootPath, accessToken, owner, repo, ref }) {
23460
+ this.rootPath = rootPath;
23461
+ this.repoConfig = {
23462
+ owner,
23463
+ repo,
23464
+ ref
23465
+ };
23466
+ this.appOctoKit = new import_rest.Octokit({
23467
+ auth: accessToken
23468
+ });
23469
+ }
23470
+ async readDir(filepath) {
23471
+ const fullPath = import_path5.default.join(this.rootPath, filepath);
23472
+ const repos = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23473
+ path: fullPath
23474
+ })).then(async (response) => {
23475
+ if (Array.isArray(response.data)) {
23476
+ return await Promise.all(await response.data.map(async (d) => {
23477
+ if (d.type === "dir") {
23478
+ const nestedItems = await this.readDir(d.path);
23479
+ if (Array.isArray(nestedItems)) {
23480
+ return nestedItems.map((nestedItem) => {
23481
+ return import_path5.default.join(d.path, nestedItem);
23482
+ });
23483
+ } else {
23484
+ throw new Error(`Expected items to be an array of strings for readDir at ${d.path}`);
23485
+ }
23486
+ }
23487
+ return d.path;
23488
+ }));
23489
+ }
23490
+ throw new Error(`Expected to return an array from Github directory ${import_path5.default}`);
23491
+ });
23492
+ return import_lodash8.default.flatten(repos);
23493
+ }
23494
+ supportsBuilding() {
23495
+ return false;
23496
+ }
23497
+ async glob(pattern) {
23498
+ const results = await this.readDir(pattern);
23499
+ return results.map((item) => item.replace(this.rootPath, "").replace(/^\/|\/$/g, ""));
23500
+ }
23501
+ async get(filepath) {
23502
+ const realpath = import_path5.default.join(this.rootPath, filepath);
23503
+ return this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23504
+ path: realpath
23505
+ })).then((response) => {
23506
+ return Buffer.from(response.data.content, "base64").toString();
23507
+ }).catch((e) => {
23508
+ if (e.status === 401) {
23509
+ 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 });
23510
+ }
23511
+ 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 });
23512
+ });
23513
+ }
23514
+ async putConfig(filepath, data) {
23515
+ throw new Error(`Config files cannot be changed by the Github bridge`);
23516
+ }
23517
+ async put(filepath, data) {
23518
+ const realpath = import_path5.default.join(this.rootPath, filepath);
23519
+ let fileSha = void 0;
23520
+ try {
23521
+ const fileContent = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23522
+ path: realpath
23523
+ }));
23524
+ fileSha = fileContent.data.sha;
23525
+ } catch (e) {
23526
+ console.log("No file exists, creating new one");
23527
+ }
23528
+ await this.appOctoKit.repos.createOrUpdateFileContents(__spreadProps(__spreadValues({}, this.repoConfig), {
23529
+ branch: this.repoConfig.ref,
23530
+ path: realpath,
23531
+ message: "Update from GraphQL client",
23532
+ content: new Buffer(data).toString("base64"),
23533
+ sha: fileSha
23534
+ }));
23535
+ }
23536
+ };
23537
+
23538
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/github.ts
23539
+ var import_lodash9 = __toModule(require("lodash"));
23540
+ var import_path6 = __toModule(require("path"));
23060
23541
  var import_rest2 = __toModule(require("@octokit/rest"));
23542
+ var import_graphql6 = __toModule(require("graphql"));
23543
+ var GithubStore = class {
23544
+ async clear() {
23545
+ }
23546
+ async print() {
23547
+ }
23548
+ constructor({ rootPath, accessToken, owner, repo, ref }) {
23549
+ this.rootPath = rootPath;
23550
+ this.repoConfig = {
23551
+ owner,
23552
+ repo,
23553
+ ref
23554
+ };
23555
+ this.appOctoKit = new import_rest2.Octokit({
23556
+ auth: accessToken
23557
+ });
23558
+ }
23559
+ async query(queryStrings) {
23560
+ throw new Error(`Unable to perform query for GithubStore`);
23561
+ }
23562
+ supportsSeeding() {
23563
+ return false;
23564
+ }
23565
+ async seed() {
23566
+ throw new Error(`Seeding data is not possible for Github data store`);
23567
+ }
23568
+ async readDir(filepath) {
23569
+ const fullPath = import_path6.default.join(this.rootPath, filepath);
23570
+ const repos = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23571
+ path: fullPath
23572
+ })).then(async (response) => {
23573
+ if (Array.isArray(response.data)) {
23574
+ return await Promise.all(await response.data.map(async (d) => {
23575
+ if (d.type === "dir") {
23576
+ const nestedItems = await this.readDir(d.path);
23577
+ if (Array.isArray(nestedItems)) {
23578
+ return nestedItems.map((nestedItem) => {
23579
+ return import_path6.default.join(d.path, nestedItem);
23580
+ });
23581
+ } else {
23582
+ throw new Error(`Expected items to be an array of strings for readDir at ${d.path}`);
23583
+ }
23584
+ }
23585
+ return d.path;
23586
+ }));
23587
+ }
23588
+ throw new Error(`Expected to return an array from Github directory ${import_path6.default}`);
23589
+ });
23590
+ return import_lodash9.default.flatten(repos);
23591
+ }
23592
+ async glob(pattern, callback) {
23593
+ const results = await this.readDir(pattern);
23594
+ const items = results.map((item) => item.replace(this.rootPath, "").replace(/^\/|\/$/g, ""));
23595
+ if (callback) {
23596
+ return sequential(items, async (item) => {
23597
+ return callback(item);
23598
+ });
23599
+ } else {
23600
+ return items;
23601
+ }
23602
+ }
23603
+ async get(filepath) {
23604
+ const realpath = import_path6.default.join(this.rootPath, filepath);
23605
+ return this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23606
+ path: realpath
23607
+ })).then((response) => {
23608
+ const responseString = Buffer.from(response.data.content, "base64").toString();
23609
+ return parseFile(responseString, import_path6.default.extname(filepath), (yup3) => yup3.object());
23610
+ }).catch((e) => {
23611
+ if (e.status === 401) {
23612
+ 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 });
23613
+ }
23614
+ 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 });
23615
+ });
23616
+ }
23617
+ supportsIndexing() {
23618
+ return false;
23619
+ }
23620
+ async put(filepath, data) {
23621
+ const realpath = import_path6.default.join(this.rootPath, filepath);
23622
+ let fileSha = void 0;
23623
+ try {
23624
+ const fileContent = await this.appOctoKit.repos.getContent(__spreadProps(__spreadValues({}, this.repoConfig), {
23625
+ path: realpath
23626
+ }));
23627
+ fileSha = fileContent.data.sha;
23628
+ } catch (e) {
23629
+ console.log("No file exists, creating new one");
23630
+ }
23631
+ await this.appOctoKit.repos.createOrUpdateFileContents(__spreadProps(__spreadValues({}, this.repoConfig), {
23632
+ branch: this.repoConfig.ref,
23633
+ path: realpath,
23634
+ message: "Update from GraphQL client",
23635
+ content: new Buffer(stringifyFile(data, import_path6.default.extname(filepath), false)).toString("base64"),
23636
+ sha: fileSha
23637
+ }));
23638
+ }
23639
+ };
23640
+
23641
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/bridge/filesystem.ts
23642
+ var import_fs_extra2 = __toModule(require("fs-extra"));
23643
+ var import_fast_glob = __toModule(require("fast-glob"));
23644
+ var import_path7 = __toModule(require("path"));
23645
+ var import_normalize_path = __toModule(require("normalize-path"));
23646
+ var FilesystemBridge = class {
23647
+ constructor(rootPath) {
23648
+ this.rootPath = rootPath || "";
23649
+ }
23650
+ async glob(pattern) {
23651
+ const basePath = import_path7.default.join(this.rootPath, ...pattern.split("/"));
23652
+ const items = await (0, import_fast_glob.default)(import_path7.default.join(basePath, "**", "/*").replace(/\\/g, "/"), {
23653
+ dot: true
23654
+ });
23655
+ const posixRootPath = (0, import_normalize_path.default)(this.rootPath);
23656
+ return items.map((item) => {
23657
+ return item.replace(posixRootPath, "").replace(/^\/|\/$/g, "");
23658
+ });
23659
+ }
23660
+ supportsBuilding() {
23661
+ return true;
23662
+ }
23663
+ async get(filepath) {
23664
+ return import_fs_extra2.default.readFileSync(import_path7.default.join(this.rootPath, filepath)).toString();
23665
+ }
23666
+ async putConfig(filepath, data) {
23667
+ await this.put(filepath, data);
23668
+ }
23669
+ async put(filepath, data) {
23670
+ await import_fs_extra2.default.outputFileSync(import_path7.default.join(this.rootPath, filepath), data);
23671
+ }
23672
+ };
23673
+
23674
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/filesystem.ts
23675
+ var import_fs_extra3 = __toModule(require("fs-extra"));
23676
+ var import_fast_glob2 = __toModule(require("fast-glob"));
23677
+ var import_path8 = __toModule(require("path"));
23678
+ var import_normalize_path2 = __toModule(require("normalize-path"));
23679
+ var FilesystemStore = class {
23680
+ async clear() {
23681
+ }
23682
+ async print() {
23683
+ }
23684
+ constructor({ rootPath }) {
23685
+ this.rootPath = rootPath || "";
23686
+ }
23687
+ async query(queryStrings) {
23688
+ throw new Error(`Unable to perform query for Filesystem store`);
23689
+ }
23690
+ async seed() {
23691
+ throw new Error(`Seeding data is not possible for Filesystem store`);
23692
+ }
23693
+ async get(filepath) {
23694
+ return parseFile(await import_fs_extra3.default.readFileSync(import_path8.default.join(this.rootPath, filepath)).toString(), import_path8.default.extname(filepath), (yup3) => yup3.object());
23695
+ }
23696
+ supportsSeeding() {
23697
+ return false;
23698
+ }
23699
+ supportsIndexing() {
23700
+ return false;
23701
+ }
23702
+ async glob(pattern, callback) {
23703
+ const basePath = import_path8.default.join(this.rootPath, ...pattern.split("/"));
23704
+ const itemsRaw = await (0, import_fast_glob2.default)(import_path8.default.join(basePath, "**", "/*").replace(/\\/g, "/"), {
23705
+ dot: true
23706
+ });
23707
+ const posixRootPath = (0, import_normalize_path2.default)(this.rootPath);
23708
+ const items = itemsRaw.map((item) => {
23709
+ return item.replace(posixRootPath, "").replace(/^\/|\/$/g, "");
23710
+ });
23711
+ if (callback) {
23712
+ return sequential(items, async (item) => {
23713
+ return callback(item);
23714
+ });
23715
+ } else {
23716
+ return items;
23717
+ }
23718
+ }
23719
+ async put(filepath, data) {
23720
+ await import_fs_extra3.default.outputFileSync(import_path8.default.join(this.rootPath, filepath), stringifyFile(data, import_path8.default.extname(filepath), false));
23721
+ }
23722
+ };
23723
+
23724
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/memory.ts
23725
+ var MemoryStore = class {
23726
+ constructor(rootPath, object2 = {}) {
23727
+ this.map = object2;
23728
+ this.rootPath = rootPath || "";
23729
+ this.db = {
23730
+ get: async (filepath) => {
23731
+ return this.map[filepath];
23732
+ },
23733
+ put: async (filepath, content3) => {
23734
+ this.map[filepath] = content3;
23735
+ await this.print();
23736
+ }
23737
+ };
23738
+ }
23739
+ async query(queryStrings, hydrator) {
23740
+ const resultSets = await sequential(queryStrings, async (queryString) => {
23741
+ const res = await this.get(queryString);
23742
+ return res || [];
23743
+ });
23744
+ let items = [];
23745
+ if (resultSets.length > 0) {
23746
+ items = resultSets.reduce((p, c) => p.filter((e) => c.includes(e)));
23747
+ }
23748
+ return sequential(items, async (documentString) => {
23749
+ return hydrator(documentString);
23750
+ });
23751
+ }
23752
+ async seed(filepath, data) {
23753
+ await this.put(filepath, data);
23754
+ }
23755
+ supportsSeeding() {
23756
+ return true;
23757
+ }
23758
+ supportsIndexing() {
23759
+ return true;
23760
+ }
23761
+ async print() {
23762
+ }
23763
+ async clear() {
23764
+ this.map = {};
23765
+ }
23766
+ async glob(pattern, callback) {
23767
+ const strings = Object.keys(this.map).filter((key2) => {
23768
+ if (key2.startsWith(pattern)) {
23769
+ return true;
23770
+ } else {
23771
+ return false;
23772
+ }
23773
+ });
23774
+ if (callback) {
23775
+ return sequential(strings, async (item) => {
23776
+ return callback(item);
23777
+ });
23778
+ } else {
23779
+ return strings;
23780
+ }
23781
+ }
23782
+ async get(filepath) {
23783
+ const content3 = await this.db.get(filepath);
23784
+ return content3;
23785
+ }
23786
+ async put(filepath, data) {
23787
+ await this.db.put(filepath, data);
23788
+ }
23789
+ };
23790
+
23791
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/database/store/level.ts
23792
+ var import_path9 = __toModule(require("path"));
23793
+ var import_level = __toModule(require("level"));
23794
+ var import_levelup = __toModule(require("levelup"));
23795
+ var import_memdown = __toModule(require("memdown"));
23796
+ var import_encoding_down = __toModule(require("encoding-down"));
23797
+ var LevelStore = class {
23798
+ constructor(rootPath, useMemory = false) {
23799
+ this.rootPath = rootPath || "";
23800
+ if (useMemory) {
23801
+ const db = (0, import_levelup.default)((0, import_encoding_down.default)((0, import_memdown.default)(), { valueEncoding: "json" }));
23802
+ this.db = db;
23803
+ } else {
23804
+ const db = (0, import_level.default)(import_path9.default.join(rootPath, ".tina/__generated__/db"), {
23805
+ valueEncoding: "json"
23806
+ });
23807
+ this.db = db;
23808
+ }
23809
+ }
23810
+ async query(queryStrings, hydrator) {
23811
+ const resultSets = await sequential(queryStrings, async (queryString) => {
23812
+ let strings = [];
23813
+ const p = new Promise((resolve2, reject) => {
23814
+ this.db.createReadStream({
23815
+ gte: queryString,
23816
+ lte: queryString + "\xFF"
23817
+ }).on("data", (data) => {
23818
+ strings = [...strings, ...data.value];
23819
+ }).on("error", (message) => {
23820
+ reject(message);
23821
+ }).on("end", function() {
23822
+ resolve2();
23823
+ });
23824
+ });
23825
+ await p;
23826
+ return strings || [];
23827
+ });
23828
+ let items = [];
23829
+ if (resultSets.length > 0) {
23830
+ items = resultSets.reduce((p, c) => p.filter((e) => c.includes(e)));
23831
+ }
23832
+ return sequential(items, async (documentString) => {
23833
+ return hydrator(documentString);
23834
+ });
23835
+ }
23836
+ async seed(filepath, data) {
23837
+ await this.put(filepath, data);
23838
+ }
23839
+ supportsSeeding() {
23840
+ return true;
23841
+ }
23842
+ supportsIndexing() {
23843
+ return true;
23844
+ }
23845
+ async print() {
23846
+ this.db.createReadStream().on("data", function(data) {
23847
+ console.log(data.key, "=", data.value);
23848
+ }).on("error", function(err) {
23849
+ console.log("Oh my!", err);
23850
+ }).on("close", function() {
23851
+ console.log("Stream closed");
23852
+ }).on("end", function() {
23853
+ console.log("Stream ended");
23854
+ });
23855
+ }
23856
+ async open() {
23857
+ await this.db.open();
23858
+ }
23859
+ async clear() {
23860
+ await this.db.clear();
23861
+ }
23862
+ async glob(pattern, callback) {
23863
+ const strings = [];
23864
+ const p = new Promise((resolve2, reject) => {
23865
+ this.db.createKeyStream({
23866
+ gte: pattern,
23867
+ lte: pattern + "\xFF"
23868
+ }).on("data", (data) => {
23869
+ strings.push(data);
23870
+ }).on("error", (message) => {
23871
+ reject(message);
23872
+ }).on("end", function() {
23873
+ resolve2();
23874
+ });
23875
+ });
23876
+ await p;
23877
+ if (callback) {
23878
+ return sequential(strings, async (item) => {
23879
+ return callback(item);
23880
+ });
23881
+ } else {
23882
+ return strings;
23883
+ }
23884
+ }
23885
+ async get(filepath) {
23886
+ try {
23887
+ const content3 = await this.db.get(filepath);
23888
+ return content3;
23889
+ } catch (e) {
23890
+ return void 0;
23891
+ }
23892
+ }
23893
+ async put(filepath, data) {
23894
+ await this.db.put(filepath, data);
23895
+ }
23896
+ };
23897
+
23898
+ // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/src/index.ts
23899
+ var import_rest3 = __toModule(require("@octokit/rest"));
23900
+ var buildSchema = async (rootPath, database) => {
23901
+ const tempConfig = import_path10.default.join(rootPath, ".tina", "__generated__", "config");
23902
+ const config = await import_fs_extra4.default.readFileSync(import_path10.default.join(tempConfig, "schema.json")).toString();
23903
+ await import_fs_extra4.default.rmdir(tempConfig, { recursive: true });
23904
+ await indexDB({ database, config: JSON.parse(config) });
23905
+ const gqlAst = await database.getGraphQLSchemaFromBridge();
23906
+ return (0, import_graphql7.buildASTSchema)(gqlAst);
23907
+ };
23061
23908
  var listBranches = async ({ auth, owner, repo }) => {
23062
- const appOctoKit = new import_rest2.Octokit({ auth });
23909
+ const appOctoKit = new import_rest3.Octokit({ auth });
23063
23910
  const branchList = await appOctoKit.repos.listBranches({
23064
23911
  owner,
23065
23912
  repo,
@@ -23068,7 +23915,7 @@ var listBranches = async ({ auth, owner, repo }) => {
23068
23915
  return branchList;
23069
23916
  };
23070
23917
  var createBranch = async ({ auth, owner, repo, name, baseBranch }) => {
23071
- const appOctoKit = new import_rest2.Octokit({ auth });
23918
+ const appOctoKit = new import_rest3.Octokit({ auth });
23072
23919
  const currentBranch = await appOctoKit.repos.getBranch({
23073
23920
  owner,
23074
23921
  repo,
@@ -23084,12 +23931,15 @@ var createBranch = async ({ auth, owner, repo, name, baseBranch }) => {
23084
23931
  };
23085
23932
  // Annotate the CommonJS export names for ESM import in node:
23086
23933
  0 && (module.exports = {
23934
+ FilesystemBridge,
23935
+ FilesystemStore,
23087
23936
  GithubBridge,
23937
+ GithubStore,
23938
+ LevelStore,
23939
+ MemoryStore,
23088
23940
  buildSchema,
23089
23941
  createBranch,
23090
23942
  createDatabase,
23091
- githubRoute,
23092
- gql,
23093
23943
  indexDB,
23094
23944
  listBranches,
23095
23945
  resolve