@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.js CHANGED
@@ -229,7 +229,7 @@ function isDisabled(type) {
229
229
  return !isSchemaAssistEnabled(type) || isUnsupportedType(type);
230
230
  }
231
231
  function isUnsupportedType(type) {
232
- 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");
232
+ 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");
233
233
  }
234
234
  const FirstAssistedPathContext = react.createContext(void 0);
235
235
  function FirstAssistedPathProvider(props) {
@@ -470,6 +470,7 @@ const hiddenTypes = [
470
470
  "document",
471
471
  "email",
472
472
  "file",
473
+ "globalDocumentReference",
473
474
  "image",
474
475
  "number",
475
476
  "object",