sanity-plugin-media 6.6.0 → 6.6.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.d.ts CHANGED
@@ -29,88 +29,32 @@ type DetailsProps = {
29
29
  declare const tagOptionSchema: z.ZodObject<{
30
30
  label: z.ZodString;
31
31
  value: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- label: string;
34
- value: string;
35
- }, {
36
- label: string;
37
- value: string;
38
- }>;
32
+ }, z.core.$strip>;
39
33
  declare function getAssetFormSchema(locales?: {
40
34
  id: string;
41
35
  }[]): z.ZodObject<{
42
- altText: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
43
- creditLine: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
44
- description: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
36
+ altText: z.ZodObject<{
37
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
38
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
39
+ creditLine: z.ZodObject<{
40
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
41
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
42
+ description: z.ZodObject<{
43
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
44
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
45
45
  opt: z.ZodObject<{
46
46
  media: z.ZodObject<{
47
47
  tags: z.ZodNullable<z.ZodArray<z.ZodObject<{
48
48
  label: z.ZodString;
49
49
  value: z.ZodString;
50
- }, "strip", z.ZodTypeAny, {
51
- label: string;
52
- value: string;
53
- }, {
54
- label: string;
55
- value: string;
56
- }>, "many">>;
57
- }, "strip", z.ZodTypeAny, {
58
- tags: {
59
- label: string;
60
- value: string;
61
- }[] | null;
62
- }, {
63
- tags: {
64
- label: string;
65
- value: string;
66
- }[] | null;
67
- }>;
68
- }, "strip", z.ZodTypeAny, {
69
- media: {
70
- tags: {
71
- label: string;
72
- value: string;
73
- }[] | null;
74
- };
75
- }, {
76
- media: {
77
- tags: {
78
- label: string;
79
- value: string;
80
- }[] | null;
81
- };
82
- }>;
50
+ }, z.core.$strip>>>;
51
+ }, z.core.$strip>;
52
+ }, z.core.$strip>;
83
53
  originalFilename: z.ZodString;
84
- title: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
85
- }, "strip", z.ZodTypeAny, {
86
- altText?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
87
- creditLine?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
88
- description?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
89
- opt: {
90
- media: {
91
- tags: {
92
- label: string;
93
- value: string;
94
- }[] | null;
95
- };
96
- };
97
- originalFilename: string;
98
- title?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
99
- }, {
100
- altText?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
101
- creditLine?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
102
- description?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
103
- opt: {
104
- media: {
105
- tags: {
106
- label: string;
107
- value: string;
108
- }[] | null;
109
- };
110
- };
111
- originalFilename: string;
112
- title?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
113
- }>;
54
+ title: z.ZodObject<{
55
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
56
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strip>;
114
58
  type MediaTagsOptions = {
115
59
  mediaTags?: string[];
116
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/FormBuilderTool/index.tsx","../src/components/DialogAssetEdit/Details.tsx","../src/formSchema/index.ts","../src/types/index.ts","../src/plugin.tsx","../src/components/AutoTagInputWrapper/index.tsx","../src/utils/mediaField.ts"],"mappings":";;;;;;;;cAQM,kBAAe,OAAW,8CAAyB,IAAA;KCsB7C;EACV;EACA,kBAAkB;EAClB,SAAS,QAAQ;EACjB,QAAQ,YAAY;EACpB,UAAU,gBAAgB;EAC1B,eAAe;EACf,iBAAiB;EACjB,cAAc;EACd;EACA;EACA;EACA;EACA;IACE;IACA;;EAEF,UAAU;;cCjCC,iBAAe,EAAA;;;;;;;;;;iBAKZ,mBAAmB;EAAW;MAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCJ/C;EACV;;KAGU;EACV;EACA;EACA;IACE,UAAU,cACR;MAAgB,uBAAuB,OAAO,iBAAiB,IAAI;;;EAGvE;IACE;IACA;;EAEF;;;;;;;EAOA;;;;;EAKA,UAAU;;;;;;;;;EASV;;KAGU;EACV;EACA;GACC;;KAGE,2BAA2B;KAE3B;EACH,UAAU;EACV,cAAc;EACd;IACE;MACE,SAAS;MACT,OAAO;;;EAGX,QAAQ;;KAYE,QAAQ,YAAY;KAEpB,gBAAgB,EAAE,MAAM,kBAAkB;KAgJ1C,YAAY,sBACtB;EACE;;KAuBQ,aAAa,2BACvB;EACE;EACA,aAAa;;KAqBL;EACV;EACA;EACA;;KA0IU,kBAAkB,EAAE,aAAa;qBClZhC;;;;;;qBAmBA,wBAAK,cAAA;KCrBN,oBAAoB;EAC9B;;;;;;;;;;;;;;;;;;;;;wBAsBc,aAAa,OAAO,oCAAiB,IAAA;KC7BhD,wBAAwB,KAAK,8BAChC;EACE;EACA;EACA,UAAU;;KAGT,uBAAuB,KAAK,6BAC/B;EACE;EACA;EACA,UAAU;;KAGT,wBAAwB,KAAK,8BAChC;EACE,UAAU;IAA8B;;EACxC;IAAa,cAAc;;IACzB,kBACJ;KAEG,uBAAuB,KAAK,6BAC/B;EACE,UAAU;IAA6B;;EACvC;IAAa,cAAc;;IACzB,kBACJ;;;;;;;;;;;;;;;;;;;;;;wBAuBc,WAAW,QAAQ,wBAAwB;wBAC3C,WAAW,QAAQ,uBAAuB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/FormBuilderTool/index.tsx","../src/components/DialogAssetEdit/Details.tsx","../src/formSchema/index.ts","../src/types/index.ts","../src/plugin.tsx","../src/components/AutoTagInputWrapper/index.tsx","../src/utils/mediaField.ts"],"mappings":";;;;;;;;cAQM,kBAAe,OAAW,8CAAyB,IAAA;KCsB7C;EACV;EACA,kBAAkB;EAClB,SAAS,QAAQ;EACjB,QAAQ,YAAY;EACpB,UAAU,gBAAgB;EAC1B,eAAe;EACf,iBAAiB;EACjB,cAAc;EACd;EACA;EACA;EACA;EACA;IACE;IACA;;EAEF,UAAU;;cCjCC,iBAAe,EAAA;;;GAG1B,EAAA,KAAA;iBAEc,mBAAmB;EAAW;MAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;GAa1D,EAAA,KAAA;KCjBW;EACV;;KAGU;EACV;EACA;EACA;IACE,UAAU,cACR;MAAgB,uBAAuB,OAAO,iBAAiB,IAAI;;;EAGvE;IACE;IACA;;EAEF;;;;;;;EAOA;;;;;EAKA,UAAU;;;;;;;;;EASV;;KAGU;EACV;EACA;GACC;;KAGE,2BAA2B;KAE3B;EACH,UAAU;EACV,cAAc;EACd;IACE;MACE,SAAS;MACT,OAAO;;;EAGX,QAAQ;;KAYE,QAAQ,YAAY;KAEpB,gBAAgB,EAAE,MAAM,kBAAkB;KAgJ1C,YAAY,sBACtB;EACE;;KAuBQ,aAAa,2BACvB;EACE;EACA,aAAa;;KAqBL;EACV;EACA;EACA;;KA0IU,kBAAkB,EAAE,aAAa;qBClZhC;;;;;;qBAmBA,wBAAK,cAAA;KCrBN,oBAAoB;EAC9B;;;;;;;;;;;;;;;;;;;;;wBAsBc,aAAa,OAAO,oCAAiB,IAAA;KC7BhD,wBAAwB,KAAK,8BAChC;EACE;EACA;EACA,UAAU;;KAGT,uBAAuB,KAAK,6BAC/B;EACE;EACA;EACA,UAAU;;KAGT,wBAAwB,KAAK,8BAChC;EACE,UAAU;IAA8B;;EACxC;IAAa,cAAc;;IACzB,kBACJ;KAEG,uBAAuB,KAAK,6BAC/B;EACE,UAAU;IAA6B;;EACvC;IAAa,cAAc;;IACzB,kBACJ;;;;;;;;;;;;;;;;;;;;;;wBAuBc,WAAW,QAAQ,wBAAwB;wBAC3C,WAAW,QAAQ,uBAAuB"}
package/dist/index.js CHANGED
@@ -16,9 +16,9 @@ import { bufferTime, catchError, concatMap, debounceTime, delay, filter, first,
16
16
  import { uuid } from "@sanity/uuid";
17
17
  import pluralize from "pluralize";
18
18
  import { createGlobalStyle, css, styled } from "styled-components";
19
+ import { zodResolver } from "@hookform/resolvers/zod";
19
20
  import { Controller, useForm, useFormState } from "react-hook-form";
20
21
  import * as z from "zod";
21
- import { zodResolver } from "@hookform/resolvers/zod";
22
22
  import { DownloadIcon } from "@sanity/icons/Download";
23
23
  import { format } from "date-fns/format";
24
24
  import filesize from "filesize";
@@ -530,10 +530,38 @@ const operators = {
530
530
  message: "Test error",
531
531
  statusCode: 500
532
532
  })) : of(v))), source);
533
+ }, LOCALIZED_TEXT_FIELDS = /* @__PURE__ */ new Set([
534
+ "altText",
535
+ "creditLine",
536
+ "description",
537
+ "title"
538
+ ]), TEXT_SEARCH_FIELDS = [
539
+ "_id",
540
+ "altText",
541
+ "assetId",
542
+ "creditLine",
543
+ "description",
544
+ "originalFilename",
545
+ "title",
546
+ "url"
547
+ ], groqString = (value) => JSON.stringify(value), localizedFieldPaths = (field, localeIds) => {
548
+ if (!localeIds?.length || !LOCALIZED_TEXT_FIELDS.has(field)) return [];
549
+ let seen = /* @__PURE__ */ new Set(), paths = [];
550
+ for (let localeId of localeIds) localeId && !seen.has(localeId) && (seen.add(localeId), paths.push(`${field}[${groqString(localeId)}]`));
551
+ return paths;
552
+ }, textSearchFieldList = (localeIds) => TEXT_SEARCH_FIELDS.flatMap((field) => [field, ...localizedFieldPaths(field, localeIds)]).join(", "), localizedFieldPresent = (field, paths) => `((string(${field}) == ${field} && defined(${field})) || ${paths.map((path) => `defined(${path})`).join(" || ")})`, stringFacetFragment = (field, operatorType, value, localeIds) => {
553
+ let paths = localizedFieldPaths(field, localeIds);
554
+ if (paths.length === 0) return operators[operatorType].fn(value, field);
555
+ if (operatorType === "includes" || operatorType === "doesNotInclude") return operators[operatorType].fn(value, `[${field}, ${paths.join(", ")}]`);
556
+ if (operatorType === "empty" || operatorType === "notEmpty") {
557
+ let present = localizedFieldPresent(field, paths);
558
+ return operatorType === "empty" ? `!(${present})` : present;
559
+ }
560
+ return operators[operatorType].fn(value, field);
533
561
  }, buildExcludeTagsFragment = (excludeTagSlugs) => {
534
562
  let serializedExcludeTagSlugs = excludeTagSlugs?.length ? JSON.stringify(excludeTagSlugs) : void 0;
535
563
  return serializedExcludeTagSlugs ? groq`!(defined(opt.media.tags) && count(opt.media.tags[@._ref in *[_type == "${TAG_DOCUMENT_NAME}" && name.current in ${serializedExcludeTagSlugs}]._id]) > 0)` : void 0;
536
- }, buildExcludeMediaLibraryFragment = (showMediaLibraryAssets) => showMediaLibraryAssets ? void 0 : groq`(!defined(source.name) || source.name != "${"sanity-media-library"}") && (!defined(media._ref) || !string::startsWith(media._ref, "${"media-library:"}"))`, constructFilter = ({ assetTypes, currentFolderId, excludeTagSlugs, searchFacets, searchQuery, showMediaLibraryAssets = !0 }) => {
564
+ }, buildExcludeMediaLibraryFragment = (showMediaLibraryAssets) => showMediaLibraryAssets ? void 0 : groq`(!defined(source.name) || source.name != "${"sanity-media-library"}") && (!defined(media._ref) || !string::startsWith(media._ref, "${"media-library:"}"))`, constructFilter = ({ assetTypes, currentFolderId, excludeTagSlugs, localeIds, searchFacets, searchQuery, showMediaLibraryAssets = !0 }) => {
537
565
  let documentAssetTypes = assetTypes.map((type) => `sanity.${type}Asset`), baseFilter = groq`
538
566
  _type in ${JSON.stringify(documentAssetTypes)} && !(_id in path("drafts.**"))
539
567
  `, excludeTagsFragment = buildExcludeTagsFragment(excludeTagSlugs), excludeMediaLibraryFragment = buildExcludeMediaLibraryFragment(showMediaLibraryAssets), searchFacetFragments = searchFacets.reduce((acc, facet) => {
@@ -550,7 +578,7 @@ const operators = {
550
578
  fragment && acc.push(fragment);
551
579
  }
552
580
  if (facet.type === "string") {
553
- let { field, operatorType, value } = facet, fragment = operators[operatorType].fn(value, field);
581
+ let { field, operatorType, value } = facet, fragment = stringFacetFragment(field, operatorType, value, localeIds);
554
582
  fragment && acc.push(fragment);
555
583
  }
556
584
  return acc;
@@ -559,7 +587,7 @@ const operators = {
559
587
  baseFilter,
560
588
  ...excludeMediaLibraryFragment ? [excludeMediaLibraryFragment] : [],
561
589
  ...excludeTagsFragment ? [excludeTagsFragment] : [],
562
- ...searchQuery ? [groq`[_id, altText, assetId, creditLine, description, originalFilename, title, url] match ${groqWildcardMatch(searchQuery.trim())}`] : [],
590
+ ...searchQuery ? [groq`[${textSearchFieldList(localeIds)}] match ${groqWildcardMatch(searchQuery.trim())}`] : [],
563
591
  ...folderFilter ? [folderFilter] : [],
564
592
  ...searchFacetFragments
565
593
  ].join(" && ");
@@ -1207,6 +1235,7 @@ const UPLOADS_ACTIONS = { uploadComplete: createAction("uploads/uploadComplete",
1207
1235
  assetTypes: state.assets.assetTypes,
1208
1236
  currentFolderId: state.folders.currentFolderId,
1209
1237
  excludeTagSlugs: state.assets.excludeTagSlugs,
1238
+ localeIds: state.assets.localeIds,
1210
1239
  searchFacets: state.search.facets,
1211
1240
  searchQuery: state.search.query,
1212
1241
  showMediaLibraryAssets: state.assets.showMediaLibraryAssets
@@ -1856,11 +1885,11 @@ function localizedStringSchema(locales) {
1856
1885
  if (!locales || locales.length === 0) return z.string().trim().optional();
1857
1886
  let shape = {};
1858
1887
  for (let locale of locales) shape[locale.id] = z.string().trim().optional();
1859
- return z.object(shape).passthrough();
1888
+ return z.object(shape).loose();
1860
1889
  }
1861
1890
  const tagOptionSchema = z.object({
1862
- label: z.string().trim().min(1, { message: "Label cannot be empty" }),
1863
- value: z.string().trim().min(1, { message: "Value cannot be empty" })
1891
+ label: z.string().trim().min(1, { error: "Label cannot be empty" }),
1892
+ value: z.string().trim().min(1, { error: "Value cannot be empty" })
1864
1893
  });
1865
1894
  function getAssetFormSchema(locales) {
1866
1895
  return z.object({
@@ -1868,12 +1897,12 @@ function getAssetFormSchema(locales) {
1868
1897
  creditLine: localizedStringSchema(locales),
1869
1898
  description: localizedStringSchema(locales),
1870
1899
  opt: z.object({ media: z.object({ tags: z.array(tagOptionSchema).nullable() }) }),
1871
- originalFilename: z.string().trim().min(1, { message: "Filename cannot be empty" }),
1900
+ originalFilename: z.string().trim().min(1, { error: "Filename cannot be empty" }),
1872
1901
  title: localizedStringSchema(locales)
1873
1902
  });
1874
1903
  }
1875
1904
  getAssetFormSchema();
1876
- const tagFormSchema = z.object({ name: z.string().min(1, { message: "Name cannot be empty" }) }), folderFormSchema = z.object({ name: z.string().trim().min(1, { message: "Name cannot be empty" }) });
1905
+ const tagFormSchema = z.object({ name: z.string().min(1, { error: "Name cannot be empty" }) }), folderFormSchema = z.object({ name: z.string().trim().min(1, { error: "Name cannot be empty" }) });
1877
1906
  function getUniqueDocuments(documents) {
1878
1907
  let draftIds = documents.reduce((acc, doc) => doc._id.startsWith("drafts.") ? acc.concat(doc._id.slice(7)) : acc, []);
1879
1908
  return documents.filter((doc) => !draftIds.includes(doc._id));
@@ -1884,18 +1913,7 @@ const imageDprUrl = (asset, options) => {
1884
1913
  }, sanitizeFormData = (formData) => Object.keys(formData).reduce((acc, key) => {
1885
1914
  let val = formData[key];
1886
1915
  return acc[key] = typeof val == "object" && val && val.constructor !== Array ? sanitizeFormData(val) : val === "" || val === void 0 || val?.length === 0 ? null : typeof val == "string" && val ? formData[key].trim() : formData[key], acc;
1887
- }, {}), isFileAsset = (asset) => asset._type === "sanity.fileAsset", isImageAsset = (asset) => asset._type === "sanity.imageAsset";
1888
- /**
1889
- * `@hookform/resolvers/zod` resolves its own `zod` typings through dependency
1890
- * hoisting, which in this monorepo lands on zod v4, while this plugin authors its
1891
- * form schemas with zod v3. The resolver accepts v3 schema instances correctly at
1892
- * runtime, so this thin wrapper only bridges the type-only v3/v4 mismatch. The
1893
- * react-hook-form field types stay fully checked at the call sites.
1894
- */
1895
- function zodFormResolver(schema) {
1896
- return zodResolver(schema);
1897
- }
1898
- const getAssetResolution = (asset) => `${asset.metadata.dimensions.width}x${asset.metadata.dimensions.height}px`;
1916
+ }, {}), isFileAsset = (asset) => asset._type === "sanity.fileAsset", isImageAsset = (asset) => asset._type === "sanity.imageAsset", getAssetResolution = (asset) => `${asset.metadata.dimensions.width}x${asset.metadata.dimensions.height}px`;
1899
1917
  function usePortalPopoverProps() {
1900
1918
  let $ = c(2), portal = usePortal(), t0;
1901
1919
  return $[0] === portal.element ? t0 = $[1] : (t0 = {
@@ -2872,7 +2890,7 @@ const DialogAssetEdit = (props) => {
2872
2890
  let generateDefaultValues = t7, t8 = assetItem?.asset, t9;
2873
2891
  $[13] !== generateDefaultValues || $[14] !== t8 ? (t9 = generateDefaultValues(t8), $[13] = generateDefaultValues, $[14] = t8, $[15] = t9) : t9 = $[15];
2874
2892
  let t10;
2875
- $[16] === locales ? t10 = $[17] : (t10 = zodFormResolver(getAssetFormSchema(locales)), $[16] = locales, $[17] = t10);
2893
+ $[16] === locales ? t10 = $[17] : (t10 = zodResolver(getAssetFormSchema(locales)), $[16] = locales, $[17] = t10);
2876
2894
  let t11;
2877
2895
  $[18] !== t10 || $[19] !== t9 ? (t11 = {
2878
2896
  defaultValues: t9,
@@ -3801,6 +3819,7 @@ const createThrottler = (concurrency = 4) => {
3801
3819
  assetTypes: state.assets.assetTypes,
3802
3820
  currentFolderId: state.folders.currentFolderId,
3803
3821
  excludeTagSlugs: state.assets.excludeTagSlugs,
3822
+ localeIds: state.assets.localeIds,
3804
3823
  searchFacets: state.search.facets,
3805
3824
  searchQuery: state.search.query,
3806
3825
  showMediaLibraryAssets: state.assets.showMediaLibraryAssets
@@ -4268,7 +4287,7 @@ const DialogAllAssets = (props) => {
4268
4287
  $[3] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
4269
4288
  defaultValues: t2,
4270
4289
  mode: "onChange",
4271
- resolver: zodFormResolver(folderFormSchema)
4290
+ resolver: zodResolver(folderFormSchema)
4272
4291
  }, $[3] = t3) : t3 = $[3];
4273
4292
  let { formState: t4, handleSubmit, register, setError } = useForm(t3), { errors, isDirty, isValid } = t4, t5;
4274
4293
  $[4] === dispatch ? t5 = $[5] : (t5 = () => {
@@ -4528,7 +4547,7 @@ const DialogFolderRename = (t0) => {
4528
4547
  let parentPath = t3, t4;
4529
4548
  $[6] === currentName ? t4 = $[7] : (t4 = { name: currentName }, $[6] = currentName, $[7] = t4);
4530
4549
  let t5;
4531
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t5 = zodFormResolver(folderFormSchema), $[8] = t5) : t5 = $[8];
4550
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t5 = zodResolver(folderFormSchema), $[8] = t5) : t5 = $[8];
4532
4551
  let t6;
4533
4552
  $[9] === t4 ? t6 = $[10] : (t6 = {
4534
4553
  defaultValues: t4,
@@ -5646,7 +5665,7 @@ const DialogSearchFacets = (props) => {
5646
5665
  $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
5647
5666
  defaultValues: t1,
5648
5667
  mode: "onChange",
5649
- resolver: zodFormResolver(tagFormSchema)
5668
+ resolver: zodResolver(tagFormSchema)
5650
5669
  }, $[1] = t2) : t2 = $[1];
5651
5670
  let { formState: t3, handleSubmit, register, setError } = useForm(t2), { errors, isDirty, isValid } = t3, formUpdating = creating, t4;
5652
5671
  $[2] === dispatch ? t4 = $[3] : (t4 = () => {
@@ -5723,7 +5742,7 @@ const DialogTagEdit = (props) => {
5723
5742
  let tagItem = useTypedSelector(t1), [tagSnapshot, setTagSnapshot] = useState(tagItem?.tag), currentTag = tagItem ? tagItem?.tag : tagSnapshot, generateDefaultValues = _temp$24, t2 = tagItem?.tag, t3;
5724
5743
  $[2] === t2 ? t3 = $[3] : (t3 = generateDefaultValues(t2), $[2] = t2, $[3] = t3);
5725
5744
  let t4;
5726
- $[4] === Symbol.for("react.memo_cache_sentinel") ? (t4 = zodFormResolver(tagFormSchema), $[4] = t4) : t4 = $[4];
5745
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t4 = zodResolver(tagFormSchema), $[4] = t4) : t4 = $[4];
5727
5746
  let t5;
5728
5747
  $[5] === t3 ? t5 = $[6] : (t5 = {
5729
5748
  defaultValues: t3,