sanity 5.19.0-next.38 → 5.19.0
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.
|
@@ -7572,8 +7572,8 @@ declare function useScheduleAction(props: DocumentActionProps): {
|
|
|
7572
7572
|
icon: react.ForwardRefExoticComponent<Omit<react.SVGProps<SVGSVGElement>, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
7573
7573
|
label: string;
|
|
7574
7574
|
title: react.JSX.Element;
|
|
7575
|
-
dialog?: undefined;
|
|
7576
7575
|
onHandle?: undefined;
|
|
7576
|
+
dialog?: undefined;
|
|
7577
7577
|
} | {
|
|
7578
7578
|
dialog: false | DocumentActionModalDialogProps;
|
|
7579
7579
|
disabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.19.0
|
|
1
|
+
var version = "5.19.0";
|
|
2
2
|
let buildVersion;
|
|
3
3
|
try {
|
|
4
4
|
buildVersion = process.env.PKG_BUILD_VERSION;
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.19.0
|
|
10
|
+
"5.19.0";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -35603,7 +35603,8 @@ function CrossDatasetReferenceInput(props2) {
|
|
|
35603
35603
|
/* @__PURE__ */ jsx(Inline, { paddingX: 1, children: /* @__PURE__ */ jsx(MenuButton, { button: /* @__PURE__ */ jsx(ContextMenuButton, { "data-testid": "menu-button" }), id: `${inputId}-menuButton`, menu: /* @__PURE__ */ jsx(Menu, { children: !readOnly && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
35604
35604
|
/* @__PURE__ */ jsx(MenuItem, { text: t("inputs.reference.action.clear"), tone: "critical", icon: ResetIcon, "data-testid": "menu-item-clear", onClick: handleClear }),
|
|
35605
35605
|
/* @__PURE__ */ jsx(MenuItem, { text: t("inputs.reference.action.replace"), icon: SyncIcon, "data-testid": "menu-item-replace", onClick: handleReplace })
|
|
35606
|
-
] }) }),
|
|
35606
|
+
] }) }), popover: {
|
|
35607
|
+
placement: "right",
|
|
35607
35608
|
portal: !0,
|
|
35608
35609
|
tone: "default"
|
|
35609
35610
|
} }) })
|
|
@@ -36235,7 +36236,8 @@ function GlobalDocumentReferenceInput(props2) {
|
|
|
36235
36236
|
/* @__PURE__ */ jsx(Inline, { paddingX: 1, children: /* @__PURE__ */ jsx(MenuButton, { button: /* @__PURE__ */ jsx(ContextMenuButton, { "data-testid": "menu-button" }), id: `${inputId}-menuButton`, menu: /* @__PURE__ */ jsx(Menu, { children: !readOnly && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
36236
36237
|
/* @__PURE__ */ jsx(MenuItem, { text: t("inputs.reference.action.clear"), tone: "critical", icon: ResetIcon, "data-testid": "menu-item-clear", onClick: handleClear }),
|
|
36237
36238
|
/* @__PURE__ */ jsx(MenuItem, { text: t("inputs.reference.action.replace"), icon: SyncIcon, "data-testid": "menu-item-replace", onClick: handleReplace })
|
|
36238
|
-
] }) }),
|
|
36239
|
+
] }) }), popover: {
|
|
36240
|
+
placement: "right",
|
|
36239
36241
|
portal: !0,
|
|
36240
36242
|
tone: "default"
|
|
36241
36243
|
} }) })
|
|
@@ -52627,12 +52629,13 @@ function OperatorsMenuButton(t0) {
|
|
|
52627
52629
|
$[26] !== T0 || $[27] !== t1 ? (t5 = /* @__PURE__ */ jsx(T0, { children: t1 }), $[26] = T0, $[27] = t1, $[28] = t5) : t5 = $[28];
|
|
52628
52630
|
let t6;
|
|
52629
52631
|
$[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = {
|
|
52632
|
+
placement: "bottom-start",
|
|
52630
52633
|
constrainSize: !0,
|
|
52631
52634
|
portal: !1,
|
|
52632
52635
|
radius: 2
|
|
52633
52636
|
}, $[29] = t6) : t6 = $[29];
|
|
52634
52637
|
let t7;
|
|
52635
|
-
$[30] !== T1 || $[31] !== t2 || $[32] !== t3 || $[33] !== t5 ? (t7 = /* @__PURE__ */ jsx(T1, { button: t2, id: t3, menu: t5,
|
|
52638
|
+
$[30] !== T1 || $[31] !== t2 || $[32] !== t3 || $[33] !== t5 ? (t7 = /* @__PURE__ */ jsx(T1, { button: t2, id: t3, menu: t5, popover: t6 }), $[30] = T1, $[31] = t2, $[32] = t3, $[33] = t5, $[34] = t7) : t7 = $[34];
|
|
52636
52639
|
let t8;
|
|
52637
52640
|
return $[35] !== T2 || $[36] !== t7 ? (t8 = /* @__PURE__ */ jsx(T2, { children: t7 }), $[35] = T2, $[36] = t7, $[37] = t8) : t8 = $[37], t8;
|
|
52638
52641
|
}
|
|
@@ -53620,11 +53623,12 @@ function SortMenu() {
|
|
|
53620
53623
|
$[30] !== menuOrderings ? (t15 = /* @__PURE__ */ jsx(Menu, { children: menuOrderings.map(_temp$1T) }), $[30] = menuOrderings, $[31] = t15) : t15 = $[31];
|
|
53621
53624
|
let t16;
|
|
53622
53625
|
$[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t16 = {
|
|
53626
|
+
placement: "bottom-start",
|
|
53623
53627
|
portal: !0,
|
|
53624
53628
|
radius: 2
|
|
53625
53629
|
}, $[32] = t16) : t16 = $[32];
|
|
53626
53630
|
let t17;
|
|
53627
|
-
$[33] !== T1 || $[34] !== t13 || $[35] !== t14 || $[36] !== t15 ? (t17 = /* @__PURE__ */ jsx(T1, { button: t13, id: t14, menu: t15,
|
|
53631
|
+
$[33] !== T1 || $[34] !== t13 || $[35] !== t14 || $[36] !== t15 ? (t17 = /* @__PURE__ */ jsx(T1, { button: t13, id: t14, menu: t15, popover: t16 }), $[33] = T1, $[34] = t13, $[35] = t14, $[36] = t15, $[37] = t17) : t17 = $[37];
|
|
53628
53632
|
let t18;
|
|
53629
53633
|
$[38] !== T2 || $[39] !== t10 || $[40] !== t17 || $[41] !== t8 || $[42] !== t9 ? (t18 = /* @__PURE__ */ jsx(T2, { align: t8, flex: t9, padding: t10, children: t17 }), $[38] = T2, $[39] = t10, $[40] = t17, $[41] = t8, $[42] = t9, $[43] = t18) : t18 = $[43];
|
|
53630
53634
|
let t19;
|
|
@@ -73893,7 +73897,9 @@ const ScheduleFilter = (props2) => {
|
|
|
73893
73897
|
minWidth: "175px"
|
|
73894
73898
|
}, children: SCHEDULE_FILTERS.map((filter2) => /* @__PURE__ */ jsx(MenuItem, { iconRight: filter2 === scheduleState ? CheckmarkIcon : void 0, onClick: handleMenuClick.bind(void 0, {
|
|
73895
73899
|
state: filter2
|
|
73896
|
-
}), text: SCHEDULE_STATE_DICTIONARY[filter2].title }, filter2)) }),
|
|
73900
|
+
}), text: SCHEDULE_STATE_DICTIONARY[filter2].title }, filter2)) }), popover: {
|
|
73901
|
+
placement: "bottom"
|
|
73902
|
+
} }), $[6] = currentSchedules?.length, $[7] = handleMenuClick, $[8] = scheduleState, $[9] = t3) : t3 = $[9];
|
|
73897
73903
|
let t4;
|
|
73898
73904
|
$[10] !== t2 || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(Box, { display: t1, children: [
|
|
73899
73905
|
t2,
|
|
@@ -74925,11 +74931,12 @@ const MenuItemWithPermissionsTooltip = (props2) => {
|
|
|
74925
74931
|
$[1] !== actions || $[2] !== onDelete || $[3] !== onEdit || $[4] !== schedule || $[5] !== schemaType ? (t1 = /* @__PURE__ */ jsx(Menu, { children: /* @__PURE__ */ jsx(ContextMenuItems, { actions, onDelete, onEdit, schedule, schemaType }) }), $[1] = actions, $[2] = onDelete, $[3] = onEdit, $[4] = schedule, $[5] = schemaType, $[6] = t1) : t1 = $[6];
|
|
74926
74932
|
let t2;
|
|
74927
74933
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
74934
|
+
placement: "left",
|
|
74928
74935
|
portal: !0,
|
|
74929
74936
|
tone: "default"
|
|
74930
74937
|
}, $[7] = t2) : t2 = $[7];
|
|
74931
74938
|
let t3;
|
|
74932
|
-
return $[8] !== t1 ? (t3 = /* @__PURE__ */ jsx(MenuButton, { button: t0, id: "contextMenu", menu: t1,
|
|
74939
|
+
return $[8] !== t1 ? (t3 = /* @__PURE__ */ jsx(MenuButton, { button: t0, id: "contextMenu", menu: t1, popover: t2 }), $[8] = t1, $[9] = t3) : t3 = $[9], t3;
|
|
74933
74940
|
}, EMPTY_VALIDATION_STATUS = {
|
|
74934
74941
|
validation: [],
|
|
74935
74942
|
isValidating: !1
|
|
@@ -75434,11 +75441,12 @@ const DocumentPreview$1 = (props2) => {
|
|
|
75434
75441
|
$[5] !== handleDelete ? (t2 = /* @__PURE__ */ jsx(Menu, { children: /* @__PURE__ */ jsx(MenuItem, { icon: TrashIcon, onClick: handleDelete, text: "Delete schedule", tone: "critical" }) }), $[5] = handleDelete, $[6] = t2) : t2 = $[6];
|
|
75435
75442
|
let t3;
|
|
75436
75443
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = {
|
|
75444
|
+
placement: "left",
|
|
75437
75445
|
portal: !0,
|
|
75438
75446
|
tone: "default"
|
|
75439
75447
|
}, $[7] = t3) : t3 = $[7];
|
|
75440
75448
|
let t4;
|
|
75441
|
-
return $[8] !== t2 ? (t4 = /* @__PURE__ */ jsx(MenuButton, { button: t1, id: "contextMenu", menu: t2,
|
|
75449
|
+
return $[8] !== t2 ? (t4 = /* @__PURE__ */ jsx(MenuButton, { button: t1, id: "contextMenu", menu: t2, popover: t3 }), $[8] = t2, $[9] = t4) : t4 = $[9], t4;
|
|
75442
75450
|
}, NoSchemaItem = (t0) => {
|
|
75443
75451
|
const $ = c(6), {
|
|
75444
75452
|
schedule
|