sanity-plugin-media 6.1.1 → 6.1.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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import "@sanity/ui/styles.css";
1
2
  import { AssetSourceComponentProps, FieldDefinitionBase, FileDefinition, ImageDefinition, InputProps, WidenInitialValue, WidenValidation } from "sanity";
2
3
  import { ComponentType, JSX } from "react";
3
4
  import "@reduxjs/toolkit";
@@ -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;;KAGA;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;cCzYhC;;;;;;cAkBA,wBAAK,cAAA;KCpBN,oBAAoB;EAC9B;;;;;;;;;;;;;;;;;;;;;iBAsBc,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;;;;;;;;;;;;;;;;;;;;;;iBAuBc,WAAW,QAAQ,wBAAwB;iBAC3C,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;;;;;;;;;;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;;KAGA;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;cCzYhC;;;;;;cAkBA,wBAAK,cAAA;KCpBN,oBAAoB;EAC9B;;;;;;;;;;;;;;;;;;;;;iBAsBc,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;;;;;;;;;;;;;;;;;;;;;;iBAuBc,WAAW,QAAQ,wBAAwB;iBAC3C,WAAW,QAAQ,uBAAuB"}
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
+ import "@sanity/ui/styles.css";
1
2
  import { EditIcon } from "@sanity/icons/Edit";
2
3
  import { ImageIcon } from "@sanity/icons/Image";
3
4
  import { Preview, WithReferringDocuments, definePlugin, useClient, useColorSchemeValue, useDocumentStore, useFormValue, useSchema } from "sanity";
4
5
  import { c } from "react/compiler-runtime";
5
- import { Box, Button, Card, Checkbox, Container, Dialog, Flex, Grid, Inline, Label, Menu, MenuButton, MenuDivider, MenuGroup, MenuItem, Popover, Portal, PortalProvider, Spinner, Stack, Switch, Tab, TabList, TabPanel, Text, TextArea, TextInput, Tooltip, Tree, TreeItem, rem, studioTheme, useLayer, useMediaIndex, usePortal, useToast } from "@sanity/ui";
6
+ import { Box, Button, Card, Checkbox, Container, Dialog, Flex, Grid, Inline, Label, Portal, PortalProvider, Spinner, Stack, Switch, Tab, TabList, TabPanel, Text, TextArea, TextInput, Tree, TreeItem, rem, studioTheme, useLayer, useMediaIndex, usePortal } from "@sanity/ui";
6
7
  import { createContext, memo, useContext, useEffect, useMemo, useRef, useState } from "react";
7
8
  import { Provider, useDispatch, useSelector, useStore } from "react-redux";
8
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -22,9 +23,11 @@ import { DownloadIcon } from "@sanity/icons/Download";
22
23
  import { format } from "date-fns/format";
23
24
  import filesize from "filesize";
24
25
  import { ClipboardIcon } from "@sanity/icons/Clipboard";
26
+ import { Popover } from "@sanity/ui/popover";
25
27
  import copy from "copy-to-clipboard";
26
28
  import { useIntentLink } from "sanity/router";
27
29
  import { FileIcon, defaultStyles } from "react-file-icon";
30
+ import { Tooltip } from "@sanity/ui/tooltip";
28
31
  import { hues, white } from "@sanity/color";
29
32
  import { FolderIcon } from "@sanity/icons/Folder";
30
33
  import { TrashIcon } from "@sanity/icons/Trash";
@@ -37,9 +40,11 @@ import Select, { components } from "react-select";
37
40
  import { GroupedVirtuoso, Virtuoso, VirtuosoGrid } from "react-virtuoso";
38
41
  import { CheckmarkCircleIcon } from "@sanity/icons/CheckmarkCircle";
39
42
  import { WarningFilledIcon } from "@sanity/icons/WarningFilled";
43
+ import { useToast } from "@sanity/ui/toast";
40
44
  import { isHotkey } from "is-hotkey-esm";
41
45
  import { WarningOutlineIcon } from "@sanity/icons/WarningOutline";
42
46
  import { SelectIcon } from "@sanity/icons/Select";
47
+ import { Menu, MenuButton, MenuDivider, MenuGroup, MenuItem } from "@sanity/ui/menu";
43
48
  import { ArrowDownIcon } from "@sanity/icons/ArrowDown";
44
49
  import { ArrowUpIcon } from "@sanity/icons/ArrowUp";
45
50
  import { SearchIcon } from "@sanity/icons/Search";
@@ -1964,7 +1969,7 @@ const ButtonAssetCopy = (t0) => {
1964
1969
  }), $[13] = asset, $[14] = t8);
1965
1970
  let t9;
1966
1971
  $[15] !== t3 || $[16] !== t5 || $[17] !== t7 || $[18] !== t8 ? (t9 = /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Stack, {
1967
- space: 3,
1972
+ gap: 3,
1968
1973
  children: [
1969
1974
  t3,
1970
1975
  t5,
@@ -1981,7 +1986,7 @@ const ButtonAssetCopy = (t0) => {
1981
1986
  width: "100%"
1982
1987
  }
1983
1988
  }), /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Stack, {
1984
- space: 3,
1989
+ gap: 3,
1985
1990
  children: [
1986
1991
  exif.ISO && /* @__PURE__ */ jsx(Row, {
1987
1992
  label: "ISO",
@@ -2023,7 +2028,7 @@ const ButtonAssetCopy = (t0) => {
2023
2028
  $[28] !== t12 || $[29] !== t14 ? (t15 = /* @__PURE__ */ jsx(Box, {
2024
2029
  marginTop: 5,
2025
2030
  children: /* @__PURE__ */ jsxs(Inline, {
2026
- space: 2,
2031
+ gap: 2,
2027
2032
  children: [t12, t14]
2028
2033
  })
2029
2034
  }), $[28] = t12, $[29] = t14, $[30] = t15) : t15 = $[30];
@@ -2075,7 +2080,7 @@ const ButtonAssetCopy = (t0) => {
2075
2080
  radius: 2,
2076
2081
  shadow: 1,
2077
2082
  children: /* @__PURE__ */ jsx(Stack, {
2078
- space: 2,
2083
+ gap: 2,
2079
2084
  children: t1
2080
2085
  })
2081
2086
  }), $[5] = t1, $[6] = t2), t2;
@@ -2253,7 +2258,7 @@ const Image$1 = styled.img.attrs({ crossOrigin: "anonymous" }).withConfig({
2253
2258
  componentId: "sc-xak9t2-0"
2254
2259
  })`--checkerboard-color:${(props) => props.$scheme ? getSchemeColor(props.$scheme, "bg2") : "inherit"};display:block;width:100%;height:100%;object-fit:contain;${(props) => props.$showCheckerboard && css`background-image:linear-gradient(45deg,var(--checkerboard-color) 25%,transparent 25%),linear-gradient(-45deg,var(--checkerboard-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--checkerboard-color) 75%),linear-gradient(-45deg,transparent 75%,var(--checkerboard-color) 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;`}`, StyledErrorOutlineIcon = /* @__PURE__ */ styled(ErrorOutlineIcon).withConfig({
2255
2260
  displayName: "StyledErrorOutlineIcon",
2256
- componentId: "sc-g4wo97-0"
2261
+ componentId: "sc-5i8ed3-0"
2257
2262
  })(({ theme }) => ({ color: theme.sanity.color.spot.red })), FormFieldInputLabel = (props) => {
2258
2263
  let $ = c(14), { description, error, label, name } = props, t0;
2259
2264
  $[0] !== label || $[1] !== name ? (t0 = /* @__PURE__ */ jsx(Text, {
@@ -2286,7 +2291,7 @@ const Image$1 = styled.img.attrs({ crossOrigin: "anonymous" }).withConfig({
2286
2291
  $[5] !== t0 || $[6] !== t1 ? (t2 = /* @__PURE__ */ jsx(Box, {
2287
2292
  marginY: 3,
2288
2293
  children: /* @__PURE__ */ jsxs(Inline, {
2289
- space: 2,
2294
+ gap: 2,
2290
2295
  children: [t0, t1]
2291
2296
  })
2292
2297
  }), $[5] = t0, $[6] = t1, $[7] = t2) : t2 = $[7];
@@ -2592,7 +2597,7 @@ function Details({ formUpdating, handleCreateTag, control, errors, register, all
2592
2597
  "use no memo";
2593
2598
  let hasLocales = locales && locales.length > 0, [activeLocaleTab, setActiveLocaleTab] = useState(0), folderId = currentAsset?.opt?.media?.folder?._ref, folderLabel = truncateFolderPath(folderPath) || (folderMissing ? "Folder no longer exists" : "No folder");
2594
2599
  return /* @__PURE__ */ jsxs(Stack, {
2595
- space: 3,
2600
+ gap: 3,
2596
2601
  children: [
2597
2602
  /* @__PURE__ */ jsx(FormFieldInputTags, {
2598
2603
  control,
@@ -2670,9 +2675,9 @@ function Details({ formUpdating, handleCreateTag, control, errors, register, all
2670
2675
  padding: 3,
2671
2676
  radius: 1,
2672
2677
  children: /* @__PURE__ */ jsxs(Stack, {
2673
- space: 2,
2678
+ gap: 2,
2674
2679
  children: [/* @__PURE__ */ jsx(TabList, {
2675
- space: 2,
2680
+ gap: 2,
2676
2681
  children: locales.map((locale, idx) => /* @__PURE__ */ jsx(Tab, {
2677
2682
  id: `locale-tab-${locale.id}`,
2678
2683
  "aria-controls": `locale-panel-${locale.id}`,
@@ -2685,7 +2690,7 @@ function Details({ formUpdating, handleCreateTag, control, errors, register, all
2685
2690
  "aria-labelledby": `locale-tab-${locale_0.id}`,
2686
2691
  hidden: activeLocaleTab !== idx_0,
2687
2692
  children: /* @__PURE__ */ jsxs(Stack, {
2688
- space: 3,
2693
+ gap: 3,
2689
2694
  children: [
2690
2695
  /* @__PURE__ */ jsx(FormFieldInputText, {
2691
2696
  ...register(`title.${locale_0.id}`),
@@ -3010,7 +3015,7 @@ const DialogAssetEdit = (props) => {
3010
3015
  $[92] !== t32 || $[93] !== t38 ? (t39 = /* @__PURE__ */ jsx(Box, {
3011
3016
  padding: 3,
3012
3017
  children: /* @__PURE__ */ jsxs(Stack, {
3013
- space: 3,
3018
+ gap: 3,
3014
3019
  children: [t32, t38]
3015
3020
  })
3016
3021
  }), $[92] = t32, $[93] = t38, $[94] = t39) : t39 = $[94];
@@ -3050,7 +3055,7 @@ const DialogAssetEdit = (props) => {
3050
3055
  $[113] !== CustomDetails || $[114] !== assetItem || $[115] !== detailsProps || $[116] !== formUpdating || $[117] !== handleSubmit || $[118] !== onSubmit || $[119] !== tabSection ? (t44 = (t45) => {
3051
3056
  let { isLoading, referringDocuments } = t45, uniqueReferringDocuments = getUniqueDocuments(referringDocuments);
3052
3057
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(TabList, {
3053
- space: 2,
3058
+ gap: 2,
3054
3059
  children: [/* @__PURE__ */ jsx(Tab, {
3055
3060
  "aria-controls": "details-panel",
3056
3061
  disabled: formUpdating,
@@ -3238,16 +3243,16 @@ const selectCombinedItems = createSelector([
3238
3243
  }), t3 = [downHandler, upHandler], $[4] = downHandler, $[5] = t2, $[6] = t3), useEffect(t2, t3), keyPressed;
3239
3244
  }, CardWrapper$2 = styled(Flex).withConfig({
3240
3245
  displayName: "CardWrapper",
3241
- componentId: "sc-0wpyxz-0"
3246
+ componentId: "sc-dw6rvv-0"
3242
3247
  })`box-sizing:border-box;height:100%;overflow:hidden;position:relative;width:100%;`, CardContainer = /* @__PURE__ */ styled(Flex).withConfig({
3243
3248
  displayName: "CardContainer",
3244
- componentId: "sc-0wpyxz-1"
3249
+ componentId: "sc-dw6rvv-1"
3245
3250
  })(({ $picked, theme, $updating }) => css`border:1px solid transparent;height:100%;pointer-events:${$updating ? "none" : "auto"};position:relative;transition:all 300ms;user-select:none;width:100%;border:${$picked ? `1px solid ${theme.sanity.color.spot.orange} !important` : "1px solid inherit"};${!$updating && css`@media (hover:hover) and (pointer:fine){&:hover{border:1px solid var(--card-border-color);}}`}`), ContextActionContainer$2 = /* @__PURE__ */ styled(Flex).withConfig({
3246
3251
  displayName: "ContextActionContainer",
3247
- componentId: "sc-0wpyxz-2"
3252
+ componentId: "sc-dw6rvv-2"
3248
3253
  })(({ $scheme }) => css`cursor:pointer;height:${32}px;transition:all 300ms;@media (hover:hover) and (pointer:fine){&:hover{background:${getSchemeColor($scheme, "bg")};}}`), StyledWarningOutlineIcon = /* @__PURE__ */ styled(WarningFilledIcon).withConfig({
3249
3254
  displayName: "StyledWarningOutlineIcon",
3250
- componentId: "sc-0wpyxz-3"
3255
+ componentId: "sc-dw6rvv-3"
3251
3256
  })(({ theme }) => ({ color: theme.sanity.color.spot.red })), CardAsset = (props) => {
3252
3257
  let $ = c(83), { id, selected, source } = props, scheme = useColorSchemeValue(), toast = useToast(), shiftPressed = useKeyPress("shift"), dispatch = useDispatch(), lastPicked = useTypedSelector(_temp$34), assetsPicked = useTypedSelector(selectAssetsPicked), t0;
3253
3258
  $[0] === id ? t0 = $[1] : (t0 = (state_0) => selectAssetById(state_0, id), $[0] = id, $[1] = t0);
@@ -3468,13 +3473,13 @@ function _temp2$20(d) {
3468
3473
  }
3469
3474
  const CardWrapper$1 = styled(Flex).withConfig({
3470
3475
  displayName: "CardWrapper",
3471
- componentId: "sc-75tou-0"
3476
+ componentId: "sc-21m5j6-0"
3472
3477
  })`box-sizing:border-box;height:100%;overflow:hidden;position:relative;width:100%;`, FolderCard = styled(Card).withConfig({
3473
3478
  displayName: "FolderCard",
3474
- componentId: "sc-75tou-1"
3479
+ componentId: "sc-21m5j6-1"
3475
3480
  })`cursor:pointer;height:100%;transition:border-color 200ms ease;width:100%;@media (hover:hover) and (pointer:fine){&:hover{border-color:var(--card-border-color);}}`, FolderGlyph = /* @__PURE__ */ styled(Box).withConfig({
3476
3481
  displayName: "FolderGlyph",
3477
- componentId: "sc-75tou-2"
3482
+ componentId: "sc-21m5j6-2"
3478
3483
  })(({ theme }) => css`align-items:flex-end;background:linear-gradient( 180deg,${theme.sanity.color.spot.yellow} 0%,${theme.sanity.color.spot.yellow} 100% );border-radius:8px;display:flex;height:72px;position:relative;width:96px;&::before{background:${theme.sanity.color.spot.yellow};border-radius:8px 8px 0 0;content:'';height:18px;left:0;position:absolute;top:-8px;width:38px;}`), CardFolder = (t0) => {
3479
3484
  let $ = c(22), { folderId, name, totalCount } = t0, dispatch = useDispatch(), scheme = useColorSchemeValue(), t1;
3480
3485
  $[0] !== dispatch || $[1] !== folderId ? (t1 = () => dispatch(foldersActions.currentFolderSet({ folderId })), $[0] = dispatch, $[1] = folderId, $[2] = t1) : t1 = $[2];
@@ -3524,7 +3529,7 @@ const CardWrapper$1 = styled(Flex).withConfig({
3524
3529
  height: "fill",
3525
3530
  justify: "space-between",
3526
3531
  children: [t4, /* @__PURE__ */ jsxs(Stack, {
3527
- space: 2,
3532
+ gap: 2,
3528
3533
  children: [t6, t9]
3529
3534
  })]
3530
3535
  }), $[15] = t6, $[16] = t9, $[17] = t10) : t10 = $[17];
@@ -4150,7 +4155,7 @@ const DialogAllAssets = (props) => {
4150
4155
  paddingX: 4,
4151
4156
  paddingY: 4,
4152
4157
  children: /* @__PURE__ */ jsxs(Stack, {
4153
- space: 3,
4158
+ gap: 3,
4154
4159
  children: [t6, t7]
4155
4160
  })
4156
4161
  }), $[22] = t6, $[23] = t7, $[24] = t8) : t8 = $[24];
@@ -4388,7 +4393,7 @@ const getExpandedIdSet$1 = (folderId, byId) => {
4388
4393
  }), $[34] = t16, $[35] = t17, $[36] = t18) : t18 = $[36];
4389
4394
  let t19;
4390
4395
  $[37] === selectedFolder ? t19 = $[38] : (t19 = selectedFolder && /* @__PURE__ */ jsxs(Inline, {
4391
- space: 2,
4396
+ gap: 2,
4392
4397
  children: [/* @__PURE__ */ jsx(Text, {
4393
4398
  muted: !0,
4394
4399
  size: 1,
@@ -4401,8 +4406,8 @@ const getExpandedIdSet$1 = (folderId, byId) => {
4401
4406
  }), $[37] = selectedFolder, $[38] = t19);
4402
4407
  let t20;
4403
4408
  $[39] !== t14 || $[40] !== t18 || $[41] !== t19 ? (t20 = /* @__PURE__ */ jsxs(Stack, {
4409
+ gap: 4,
4404
4410
  padding: 4,
4405
- space: 4,
4406
4411
  children: [
4407
4412
  t14,
4408
4413
  t18,
@@ -4687,7 +4692,7 @@ const getExpandedIdSet = (folderId, byId) => {
4687
4692
  $[15] === t6 ? t7 = $[16] : (t7 = /* @__PURE__ */ jsx(Box, {
4688
4693
  flex: 1,
4689
4694
  children: /* @__PURE__ */ jsxs(Inline, {
4690
- space: 2,
4695
+ gap: 2,
4691
4696
  children: [t5, t6]
4692
4697
  })
4693
4698
  }), $[15] = t6, $[16] = t7);
@@ -4716,7 +4721,7 @@ const getExpandedIdSet = (folderId, byId) => {
4716
4721
  }), $[24] = canDeleteFolder, $[25] = currentFolderId, $[26] = handleFolderDelete, $[27] = t11) : t11 = $[27];
4717
4722
  let t12;
4718
4723
  $[28] !== t10 || $[29] !== t11 || $[30] !== t8 ? (t12 = /* @__PURE__ */ jsxs(Inline, {
4719
- space: 1,
4724
+ gap: 1,
4720
4725
  children: [
4721
4726
  t8,
4722
4727
  t10,
@@ -5313,7 +5318,7 @@ const DialogFolders = (props) => {
5313
5318
  fontSize: 1,
5314
5319
  onClick: () => handleOperatorItemClick(operatorType_0),
5315
5320
  padding: 2,
5316
- space: 4,
5321
+ gap: 4,
5317
5322
  style: { minWidth: "150px" },
5318
5323
  text: operators[operatorType_0].label
5319
5324
  }, operatorType_0) : /* @__PURE__ */ jsx(MenuDivider, {}, index)) }),
@@ -5355,7 +5360,7 @@ function _temp3$6() {
5355
5360
  }
5356
5361
  const StackContainer = /* @__PURE__ */ styled(Flex).withConfig({
5357
5362
  displayName: "StackContainer",
5358
- componentId: "sc-aa4qqn-0"
5363
+ componentId: "sc-bz9z8l-0"
5359
5364
  })(({ theme }) => css`> *{margin-bottom:${rem(theme.sanity.space[2])};}`), SearchFacets = (props) => {
5360
5365
  let $ = c(6), { layout: t0 } = props, layout = t0 === void 0 ? "inline" : t0, searchFacets = useTypedSelector(_temp$26), t1;
5361
5366
  $[0] === searchFacets ? t1 = $[1] : (t1 = searchFacets.map(_temp2$13), $[0] = searchFacets, $[1] = t1);
@@ -5366,7 +5371,7 @@ const StackContainer = /* @__PURE__ */ styled(Flex).withConfig({
5366
5371
  return $[2] === Items ? t2 = $[3] : (t2 = /* @__PURE__ */ jsx(Box, {
5367
5372
  marginBottom: 2,
5368
5373
  children: /* @__PURE__ */ jsx(Inline, {
5369
- space: 2,
5374
+ gap: 2,
5370
5375
  children: Items
5371
5376
  })
5372
5377
  }), $[2] = Items, $[3] = t2), t2;
@@ -5422,7 +5427,7 @@ const SearchFacetsControl = () => {
5422
5427
  fontSize: 1,
5423
5428
  icon: AddIcon,
5424
5429
  mode: "bleed",
5425
- space: 2,
5430
+ gap: 2,
5426
5431
  text: "Add filter",
5427
5432
  tone: "primary"
5428
5433
  }), $[15] = t5, $[16] = t1), t2 = "facets", T0 = Menu, t0 = renderMenuFacets(filteredFacets), $[0] = assetTypes, $[1] = creditLine?.enabled, $[2] = dispatch, $[3] = isTool, $[4] = searchFacets, $[5] = T0, $[6] = T1, $[7] = T2, $[8] = t0, $[9] = t1, $[10] = t2;
@@ -5704,10 +5709,10 @@ function _temp$23(tag) {
5704
5709
  }
5705
5710
  const TagContainer = styled(Flex).withConfig({
5706
5711
  displayName: "TagContainer",
5707
- componentId: "sc-4mmug9-0"
5712
+ componentId: "sc-wgczkj-0"
5708
5713
  })`height:${32}px;`, ButtonContainer = styled(Flex).withConfig({
5709
5714
  displayName: "ButtonContainer",
5710
- componentId: "sc-4mmug9-1"
5715
+ componentId: "sc-wgczkj-1"
5711
5716
  })`@media (pointer:fine){visibility:hidden;}@media (hover:hover) and (pointer:fine){${TagContainer}:hover &{visibility:visible;}}`, TagButton = (props) => {
5712
5717
  let $ = c(10), { disabled, icon, onClick, tone, tooltip } = props, t0;
5713
5718
  $[0] === tooltip ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Container, {
@@ -6009,7 +6014,7 @@ const TagViewHeader = (t0) => {
6009
6014
  }), $[9] = tagsFetching, $[10] = t5);
6010
6015
  let t6;
6011
6016
  $[11] !== t4 || $[12] !== t5 ? (t6 = /* @__PURE__ */ jsxs(Inline, {
6012
- space: 2,
6017
+ gap: 2,
6013
6018
  children: [t4, t5]
6014
6019
  }), $[11] = t4, $[12] = t5, $[13] = t6) : t6 = $[13];
6015
6020
  let t7;
@@ -6458,7 +6463,7 @@ const ButtonViewGroup = () => {
6458
6463
  }), $[10] = t5, $[11] = t6, $[12] = t8) : t8 = $[12];
6459
6464
  let t9;
6460
6465
  return $[13] !== t4 || $[14] !== t8 ? (t9 = /* @__PURE__ */ jsxs(Inline, {
6461
- space: 0,
6466
+ gap: 0,
6462
6467
  style: t0,
6463
6468
  children: [t4, t8]
6464
6469
  }), $[13] = t4, $[14] = t8, $[15] = t9) : t9 = $[15], t9;
@@ -6491,7 +6496,7 @@ const OrderSelect = () => {
6491
6496
  } })),
6492
6497
  padding: 2,
6493
6498
  selected,
6494
- space: 4,
6499
+ gap: 4,
6495
6500
  style: { minWidth: "200px" },
6496
6501
  text: getOrderTitle(item.field, item.direction)
6497
6502
  }, index);
@@ -6660,7 +6665,7 @@ const Controls = () => {
6660
6665
  $[19] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxs(Box, {
6661
6666
  display: t10,
6662
6667
  children: [t11, /* @__PURE__ */ jsx(Inline, {
6663
- space: 2,
6668
+ gap: 2,
6664
6669
  children: /* @__PURE__ */ jsx(SearchFacetsControl, {})
6665
6670
  })]
6666
6671
  }), $[19] = t12) : t12 = $[19];
@@ -6701,7 +6706,7 @@ const Controls = () => {
6701
6706
  display: t13,
6702
6707
  marginX: 2,
6703
6708
  children: /* @__PURE__ */ jsxs(Inline, {
6704
- space: 2,
6709
+ gap: 2,
6705
6710
  style: t14,
6706
6711
  children: [
6707
6712
  t16,
@@ -6755,7 +6760,7 @@ const Controls = () => {
6755
6760
  $[43] === t25 ? t27 = $[44] : (t27 = /* @__PURE__ */ jsx(Box, {
6756
6761
  marginX: 2,
6757
6762
  children: /* @__PURE__ */ jsxs(Inline, {
6758
- space: 2,
6763
+ gap: 2,
6759
6764
  style: t22,
6760
6765
  children: [t25, t26]
6761
6766
  })
@@ -6912,7 +6917,7 @@ const FolderBreadcrumbs = () => {
6912
6917
  if ($[3] !== currentFolderId || $[4] !== dispatch || $[5] !== segments) {
6913
6918
  let t3;
6914
6919
  $[7] !== currentFolderId || $[8] !== dispatch ? (t3 = (segment) => /* @__PURE__ */ jsxs(Inline, {
6915
- space: 1,
6920
+ gap: 1,
6916
6921
  children: [/* @__PURE__ */ jsx(Text, {
6917
6922
  muted: !0,
6918
6923
  size: 1,
@@ -6931,7 +6936,7 @@ const FolderBreadcrumbs = () => {
6931
6936
  display: t0,
6932
6937
  padding: 2,
6933
6938
  children: /* @__PURE__ */ jsxs(Inline, {
6934
- space: 1,
6939
+ gap: 1,
6935
6940
  children: [t1, t2]
6936
6941
  })
6937
6942
  }), $[10] = t1, $[11] = t2, $[12] = t3) : t3 = $[12], t3;
@@ -7185,13 +7190,13 @@ function _temp$7(state) {
7185
7190
  }
7186
7191
  const ContainerGrid$1 = /* @__PURE__ */ styled(Grid).withConfig({
7187
7192
  displayName: "ContainerGrid",
7188
- componentId: "sc-5nw9dx-0"
7193
+ componentId: "sc-8clx1w-0"
7189
7194
  })(({ $scheme, $selected, $updating }) => css`align-items:center;cursor:${$selected ? "default" : "pointer"};height:100%;pointer-events:${$updating ? "none" : "auto"};user-select:none;white-space:nowrap;${!$updating && css`@media (hover:hover) and (pointer:fine){&:hover{background:${getSchemeColor($scheme, "bg")};}}`}`), ContextActionContainer = /* @__PURE__ */ styled(Flex).withConfig({
7190
7195
  displayName: "ContextActionContainer",
7191
- componentId: "sc-5nw9dx-1"
7196
+ componentId: "sc-8clx1w-1"
7192
7197
  })(({ $scheme }) => css`cursor:pointer;@media (hover:hover) and (pointer:fine){&:hover{background:${getSchemeColor($scheme, "bg2")};}}`), StyledWarningIcon = /* @__PURE__ */ styled(WarningFilledIcon).withConfig({
7193
7198
  displayName: "StyledWarningIcon",
7194
- componentId: "sc-5nw9dx-2"
7199
+ componentId: "sc-8clx1w-2"
7195
7200
  })(({ theme }) => ({ color: theme.sanity.color.spot.red })), TableRowAsset = (props) => {
7196
7201
  let $ = c(150), { id, selected } = props, scheme = useColorSchemeValue(), shiftPressed = useKeyPress("shift"), [referenceCountVisible, setReferenceCountVisible] = useState(!1), refCountVisibleTimeout = useRef(null), dispatch = useDispatch(), lastPicked = useTypedSelector(_temp$6), t0;
7197
7202
  $[0] === id ? t0 = $[1] : (t0 = (state_0) => selectAssetById(state_0, id), $[0] = id, $[1] = t0);
@@ -7556,10 +7561,10 @@ function _temp2$4(t0) {
7556
7561
  }
7557
7562
  const ContainerGrid = /* @__PURE__ */ styled(Grid).withConfig({
7558
7563
  displayName: "ContainerGrid",
7559
- componentId: "sc-k92msu-0"
7564
+ componentId: "sc-a1pmug-0"
7560
7565
  })(({ theme }) => css`align-items:center;cursor:pointer;height:100%;user-select:none;white-space:nowrap;@media (hover:hover) and (pointer:fine){&:hover{background:${theme.sanity.color.card.enabled.bg};}}`), FolderBadge = /* @__PURE__ */ styled(Box).withConfig({
7561
7566
  displayName: "FolderBadge",
7562
- componentId: "sc-k92msu-1"
7567
+ componentId: "sc-a1pmug-1"
7563
7568
  })(({ theme }) => css`background:${theme.sanity.color.spot.yellow};border-radius:6px;height:42px;position:relative;width:52px;&::before{background:${theme.sanity.color.spot.yellow};border-radius:6px 6px 0 0;content:'';height:12px;left:0;position:absolute;top:-6px;width:18px;}`), TableRowFolder = (t0) => {
7564
7569
  let $ = c(45), { folderId, name, totalCount } = t0, dispatch = useDispatch(), mediaIndex = useMediaIndex(), scheme = useColorSchemeValue(), t1;
7565
7570
  $[0] !== dispatch || $[1] !== folderId ? (t1 = () => dispatch(foldersActions.currentFolderSet({ folderId })), $[0] = dispatch, $[1] = folderId, $[2] = t1) : t1 = $[2];
@@ -7609,7 +7614,7 @@ const ContainerGrid = /* @__PURE__ */ styled(Grid).withConfig({
7609
7614
  }), $[18] = t15) : t15 = $[18];
7610
7615
  let t16;
7611
7616
  $[19] === t14 ? t16 = $[20] : (t16 = /* @__PURE__ */ jsxs(Stack, {
7612
- space: 2,
7617
+ gap: 2,
7613
7618
  children: [t14, t15]
7614
7619
  }), $[19] = t14, $[20] = t16);
7615
7620
  let t17;
@@ -7803,7 +7808,7 @@ const ContainerGrid = /* @__PURE__ */ styled(Grid).withConfig({
7803
7808
  }), $[44] = status, $[45] = t24);
7804
7809
  let t25;
7805
7810
  $[46] !== t23 || $[47] !== t24 ? (t25 = /* @__PURE__ */ jsxs(Stack, {
7806
- space: 3,
7811
+ gap: 3,
7807
7812
  children: [t23, t24]
7808
7813
  }), $[46] = t23, $[47] = t24, $[48] = t25) : t25 = $[48];
7809
7814
  let t26;