@sanity/vision 6.9.2-next.8 → 6.9.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.
|
@@ -3,11 +3,12 @@ import { Component, Fragment, Suspense, use, useEffect, useImperativeHandle, use
|
|
|
3
3
|
import { ContextMenuButton, Translate, UserAvatar, getReleaseIdFromReleaseDocumentId, isCardinalityOneRelease, sortReleases, useActiveReleases, useClient, useCurrentUser, useDataset, useDateTimeFormat, useKeyValueStore, usePerspective, useScheduledDraftsEnabled, useTranslation, useWorkspace } from "sanity";
|
|
4
4
|
import { IntentLink } from "sanity/router";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { Badge, Box, Button, Card,
|
|
6
|
+
import { Badge, Box, Button, Card, Container, Dialog, Flex, Grid, Heading, Hotkeys, Inline, Label, Select, Spinner, Stack, Tab, TabList, Text, TextInput, rem, useClickOutsideEvent, useTheme, useTheme_v2 } from "@sanity/ui";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { SplitPane } from "@rexxars/react-split-pane";
|
|
9
9
|
import { ChevronLeftIcon } from "@sanity/icons/ChevronLeft";
|
|
10
10
|
import { ChevronRightIcon } from "@sanity/icons/ChevronRight";
|
|
11
|
+
import { useToast } from "@sanity/ui/toast";
|
|
11
12
|
import { isHotkey } from "is-hotkey-esm";
|
|
12
13
|
import { useEffectEvent } from "use-effect-event";
|
|
13
14
|
import { closeBrackets } from "@codemirror/autocomplete";
|
|
@@ -22,6 +23,7 @@ import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
|
22
23
|
import { tags } from "@lezer/highlight";
|
|
23
24
|
import { hues } from "@sanity/color";
|
|
24
25
|
import { ErrorOutlineIcon } from "@sanity/icons/ErrorOutline";
|
|
26
|
+
import { Tooltip } from "@sanity/ui/tooltip";
|
|
25
27
|
import debounce from "lodash-es/debounce.js";
|
|
26
28
|
import JSON5 from "json5";
|
|
27
29
|
import { AddIcon } from "@sanity/icons/Add";
|
|
@@ -30,6 +32,8 @@ import { SearchIcon } from "@sanity/icons/Search";
|
|
|
30
32
|
import { TrashIcon } from "@sanity/icons/Trash";
|
|
31
33
|
import { UnpublishIcon } from "@sanity/icons/Unpublish";
|
|
32
34
|
import { UsersIcon } from "@sanity/icons/Users";
|
|
35
|
+
import { Code } from "@sanity/ui/code";
|
|
36
|
+
import { Menu, MenuButton, MenuItem } from "@sanity/ui/menu";
|
|
33
37
|
import isEqual from "lodash-es/isEqual.js";
|
|
34
38
|
import { uuid } from "@sanity/uuid";
|
|
35
39
|
import { map, startWith } from "rxjs/operators";
|
|
@@ -37,6 +41,7 @@ import { PlayIcon } from "@sanity/icons/Play";
|
|
|
37
41
|
import { StopIcon } from "@sanity/icons/Stop";
|
|
38
42
|
import { CopyIcon } from "@sanity/icons/Copy";
|
|
39
43
|
import { HelpCircleIcon } from "@sanity/icons/HelpCircle";
|
|
44
|
+
import { Popover } from "@sanity/ui/popover";
|
|
40
45
|
import { json2csv } from "json-2-csv";
|
|
41
46
|
import { JsonInspector } from "@rexxars/react-json-inspector";
|
|
42
47
|
import { LinkIcon } from "@sanity/icons/Link";
|
|
@@ -2258,7 +2263,7 @@ function VisionGui(props) {
|
|
|
2258
2263
|
}
|
|
2259
2264
|
let t17;
|
|
2260
2265
|
if ($[33] !== isDraftModelEnabled || $[34] !== releases) {
|
|
2261
|
-
let
|
|
2266
|
+
let scheduledDraftReleases = releases.filter(_temp$1), releaseIds = sortReleases(scheduledDraftReleases).map(_temp2$1), t18;
|
|
2262
2267
|
$[36] === isDraftModelEnabled ? t18 = $[37] : (t18 = isDraftModelEnabled ? ["drafts"] : ["published"], $[36] = isDraftModelEnabled, $[37] = t18);
|
|
2263
2268
|
let defaultPerspective = t18;
|
|
2264
2269
|
t17 = [...releaseIds, ...defaultPerspective], $[33] = isDraftModelEnabled, $[34] = releases, $[35] = t17;
|
|
@@ -2769,4 +2774,4 @@ function SanityVision(props) {
|
|
|
2769
2774
|
}
|
|
2770
2775
|
export { SanityVision as default };
|
|
2771
2776
|
|
|
2772
|
-
//# sourceMappingURL=SanityVision-
|
|
2777
|
+
//# sourceMappingURL=SanityVision-BnC8gWR8.js.map
|