sanity 5.8.1 → 5.8.2-next.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/lib/_chunks-dts/ActiveWorkspaceMatcherContext.d.ts +194 -194
- package/lib/_chunks-dts/index.d.ts +9 -9
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_singletons.d.ts +102 -102
- package/lib/router.d.ts +4 -4
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as StructureToolOptions, E as StructureResolver, O as StructureToolContextValue, _t as DefaultDocumentNodeResolver, f as DocumentPaneNode, i as PaneRouterContextValue, s as DocumentPaneContextValue, v as PaneNode } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react577 from "react";
|
|
3
3
|
import { ComponentProps, ComponentType, ElementType, HTMLProps, ReactNode } from "react";
|
|
4
4
|
import { Path, PreviewValue, SanityDocument, SanityDocumentLike, SchemaType, SortOrdering } from "@sanity/types";
|
|
5
5
|
import { BoxOverflow, CardProps, SelectableTone } from "@sanity/ui";
|
|
@@ -54,7 +54,7 @@ interface ConfirmDeleteDialogProps {
|
|
|
54
54
|
onConfirm: (versions: string[]) => void;
|
|
55
55
|
}
|
|
56
56
|
/** @internal */
|
|
57
|
-
declare function ConfirmDeleteDialogContainer(props: ConfirmDeleteDialogProps):
|
|
57
|
+
declare function ConfirmDeleteDialogContainer(props: ConfirmDeleteDialogProps): react577.JSX.Element;
|
|
58
58
|
interface PaneProps {
|
|
59
59
|
children?: ReactNode;
|
|
60
60
|
currentMinWidth?: number;
|
|
@@ -69,7 +69,7 @@ interface PaneProps {
|
|
|
69
69
|
* @hidden
|
|
70
70
|
* @internal
|
|
71
71
|
*/
|
|
72
|
-
declare const Pane:
|
|
72
|
+
declare const Pane: react577.ForwardRefExoticComponent<Omit<PaneProps & Omit<CardProps, "as" | "overflow"> & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "hidden" | "id" | "style">, "ref"> & react577.RefAttributes<HTMLDivElement>>;
|
|
73
73
|
interface PaneContentProps {
|
|
74
74
|
as?: ElementType | keyof React.JSX.IntrinsicElements;
|
|
75
75
|
overflow?: BoxOverflow;
|
|
@@ -79,7 +79,7 @@ interface PaneContentProps {
|
|
|
79
79
|
* @hidden
|
|
80
80
|
* @internal
|
|
81
81
|
*/
|
|
82
|
-
declare const PaneContent:
|
|
82
|
+
declare const PaneContent: react577.ForwardRefExoticComponent<PaneContentProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref"> & react577.RefAttributes<HTMLDivElement>>;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @hidden
|
|
@@ -95,7 +95,7 @@ interface PaneLayoutProps {
|
|
|
95
95
|
* @hidden
|
|
96
96
|
* @beta This API will change. DO NOT USE IN PRODUCTION.
|
|
97
97
|
*/
|
|
98
|
-
declare function PaneLayout(props: PaneLayoutProps & CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'wrap'>):
|
|
98
|
+
declare function PaneLayout(props: PaneLayoutProps & CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'wrap'>): react577.JSX.Element;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
101
|
* @hidden
|
|
@@ -663,7 +663,7 @@ type DocumentPaneOptions = DocumentPaneNode['options'];
|
|
|
663
663
|
/**
|
|
664
664
|
* @internal
|
|
665
665
|
*/
|
|
666
|
-
declare const DocumentPane:
|
|
666
|
+
declare const DocumentPane: react577.NamedExoticComponent<DocumentPaneProviderProps>;
|
|
667
667
|
/**
|
|
668
668
|
* @internal
|
|
669
669
|
*/
|
|
@@ -671,7 +671,7 @@ declare function usePaneOptions(options: DocumentPaneOptions, params?: Record<st
|
|
|
671
671
|
/**
|
|
672
672
|
* @internal
|
|
673
673
|
*/
|
|
674
|
-
declare const DocumentPaneProviderWrapper:
|
|
674
|
+
declare const DocumentPaneProviderWrapper: react577.MemoExoticComponent<(props: DocumentPaneProviderProps) => react577.JSX.Element>;
|
|
675
675
|
/**
|
|
676
676
|
* useDocumentTitle hook return type.
|
|
677
677
|
*
|
|
@@ -699,13 +699,13 @@ interface DocumentInspectorHeaderProps {
|
|
|
699
699
|
title: ReactNode;
|
|
700
700
|
}
|
|
701
701
|
/** @internal */
|
|
702
|
-
declare function DocumentInspectorHeader(props: DocumentInspectorHeaderProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref'>):
|
|
702
|
+
declare function DocumentInspectorHeader(props: DocumentInspectorHeaderProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref'>): react577.JSX.Element;
|
|
703
703
|
/** @internal */
|
|
704
704
|
declare function useDocumentPane(): DocumentPaneContextValue;
|
|
705
705
|
/**
|
|
706
706
|
* @internal
|
|
707
707
|
*/
|
|
708
|
-
declare const PaneContainer:
|
|
708
|
+
declare const PaneContainer: react577.NamedExoticComponent<BaseStructureToolPaneProps<"documentList">>;
|
|
709
709
|
/**
|
|
710
710
|
* @internal
|
|
711
711
|
*/
|
|
@@ -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.8.1";
|
|
10
|
+
"5.8.2-next.1+7a166946ce";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|