@sanity/assist 3.2.0 → 3.2.1

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.
package/dist/index.mjs CHANGED
@@ -236,7 +236,7 @@ function isDisabled(type) {
236
236
  return !isSchemaAssistEnabled(type) || isUnsupportedType(type);
237
237
  }
238
238
  function isUnsupportedType(type) {
239
- return type.jsonType === "number" || type.name === "sanity.imageCrop" || type.name === "sanity.imageHotspot" || isType(type, "reference") && !type?.options?.aiAssist?.embeddingsIndex || isType(type, "crossDatasetReference") || isType(type, "slug") || isType(type, "url") || isType(type, "date") || isType(type, "datetime") || isType(type, "file");
239
+ return type.jsonType === "number" || type.name === "sanity.imageCrop" || type.name === "sanity.imageHotspot" || isType(type, "globalDocumentReference") || isType(type, "reference") && !type?.options?.aiAssist?.embeddingsIndex || isType(type, "crossDatasetReference") || isType(type, "slug") || isType(type, "url") || isType(type, "date") || isType(type, "datetime") || isType(type, "file");
240
240
  }
241
241
  const FirstAssistedPathContext = createContext(void 0);
242
242
  function FirstAssistedPathProvider(props) {
@@ -477,6 +477,7 @@ const hiddenTypes = [
477
477
  "document",
478
478
  "email",
479
479
  "file",
480
+ "globalDocumentReference",
480
481
  "image",
481
482
  "number",
482
483
  "object",